JPH04277812A - Multiport access control circuit - Google Patents

Multiport access control circuit

Info

Publication number
JPH04277812A
JPH04277812A JP3966891A JP3966891A JPH04277812A JP H04277812 A JPH04277812 A JP H04277812A JP 3966891 A JP3966891 A JP 3966891A JP 3966891 A JP3966891 A JP 3966891A JP H04277812 A JPH04277812 A JP H04277812A
Authority
JP
Japan
Prior art keywords
access
port
terminal
signal
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3966891A
Other languages
Japanese (ja)
Other versions
JP3077214B2 (en
Inventor
Tsuneo Koike
庸夫 小池
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP03039668A priority Critical patent/JP3077214B2/en
Publication of JPH04277812A publication Critical patent/JPH04277812A/en
Application granted granted Critical
Publication of JP3077214B2 publication Critical patent/JP3077214B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To arbitrate plural access requests to a peripheral device requiring continuous access and to prevent an abnormal operation from being generated in the case of an access locking control by locking the arbitration of the access requests in the manner of a hardware and setting the continuous access to a single port corresponding to the relevant peripheral device. CONSTITUTION:Binary counters 10 and 11 are provided to count the number of times to perform access on the sides of a port (1) and a port (2) corresponding to the inputs of access requiring signals 106 and 107 and as a logic means to generate a lock control signal to an access arbitration circuit 9, a logic circuit is provided with OR gates 12 and 13, AND gates 14 and 15, NOR gates 16 and 17, data selectors 18 and 19 and inverter 20.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はマルチポートアクセス制
御回路に関し、特に、周辺装置をアクセスする情報処理
装置において、複数の情報処理装置が同一の周辺装置へ
アクセスする際に、そのアクセスを調停するマルチポー
トアクセス制御回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multi-port access control circuit, and more particularly to a multi-port access control circuit that arbitrates access when multiple information processing devices access the same peripheral device in an information processing device that accesses peripheral devices. This invention relates to a multiport access control circuit.

【0002】0002

【従来の技術】従来、この種のマルチポートアクセス制
御回路は、図5に示されるような機能ブロックを有して
いる。なお、本例においては、説明を簡単にするために
2ポートアクセスの場合を例としている。
2. Description of the Related Art Conventionally, this type of multiport access control circuit has functional blocks as shown in FIG. Note that in this example, in order to simplify the explanation, a case of 2-port access is used as an example.

【0003】図5において、周辺装置1はアクセスの対
象となる周辺装置(ペリフェラルI/Oやメモリ等)を
表わしている。双方向バッファ2および3には、バッフ
ァをアクティブとするイネーブル信号(以下ENBと称
する)が入力されており、アクセス調停回路4は、周辺
装置1に対するアクセスを調停する回路で、アクセス要
求を受け付ける信号端子(以下P1SELおよびP2S
ELと称する)、アクセスを受け付けたときにアクティ
ブとなるイネーブル信号出力端子(以下P1EおよびP
2Eと称する)、アクセスが完了したことを通知する信
号端子(以下P1ACKおよびP2ACKと称する)、
アクセス調停をロックする信号端子(以下P1LOCK
およびP2LOCKと称する)、さらに本アクセス調停
回路の動作を初期化するリセット信号端子(以下RES
と称する)を有している。実際には、これ以外に、周辺
装置1に対するアクセスがリード/ライトかを指定する
信号端子、および双方向バッファ2および3の方向を制
御する信号端子があるが、本発明には無関係なので省略
している。P1SEL,P1LOCK,P1ACK,P
2SEL,P2LOCKおよびP2ACKの各端子は、
アクセスを要求するシステム(マイクロプロセッサ等)
の信号を変換して接続される。また、P1E,P2Eは
、それぞれ双方向バッファ2および3のイネーブル信号
端子へ接続されている。双方向バッファ2および3は、
データバス102および103を含む各データバスと、
周辺装置のデータバス102に図5のように接続されて
いる。
In FIG. 5, a peripheral device 1 represents a peripheral device (peripheral I/O, memory, etc.) to be accessed. An enable signal (hereinafter referred to as ENB) that activates the buffers is input to the bidirectional buffers 2 and 3, and the access arbitration circuit 4 is a circuit that arbitrates access to the peripheral device 1, and receives a signal that accepts an access request. Terminals (hereinafter referred to as P1SEL and P2S
EL), enable signal output terminals that become active when access is accepted (hereinafter referred to as P1E and P
2E), a signal terminal for notifying that access has been completed (hereinafter referred to as P1ACK and P2ACK),
Signal terminal that locks access arbitration (hereinafter referred to as P1LOCK)
and P2LOCK), and a reset signal terminal (hereinafter referred to as RES) that initializes the operation of this access arbitration circuit.
). Actually, in addition to this, there are signal terminals that specify whether access to peripheral device 1 is read/write, and signal terminals that control the direction of bidirectional buffers 2 and 3, but these are omitted because they are irrelevant to the present invention. ing. P1SEL, P1LOCK, P1ACK, P
Each terminal of 2SEL, P2LOCK and P2ACK is
System requesting access (e.g. microprocessor)
The signal is converted and connected. Furthermore, P1E and P2E are connected to enable signal terminals of bidirectional buffers 2 and 3, respectively. Bidirectional buffers 2 and 3 are
Each data bus including data buses 102 and 103;
It is connected to the data bus 102 of the peripheral device as shown in FIG.

【0004】本例の動作を図6(a),(b),(c)
,(d),(e)および(f)のタイムチャートを用い
て説明する。このタイムチャートではP1LOCK,P
2LOCKはディスエーブル状態としている。図6の「
A」の区間は、ポート(1)からのアクセス要求信号1
06がポート2のアクセス要求信号107よりも早い場
合を表わしている。「A」の区間においては、始めアク
セス要求信号106を介してP1SEL端子がアクティ
ブになり、P2SEL端子がインアクティブの状態なの
で、アクセス調停回路4はポート(1)側が動作するこ
とになる。するとP1E端子がアクティブとなり、所定
のアクセス時間後、P1ACK端子がパルス状にアクテ
ィブとなる。これにより、ポート(1)側はアクセスを
終了して、P1SEL端子をインアクティブに戻す。P
1SEL端子がインアクティブになると、P1E端子が
インアクティブとなり、ポート(1)側の双方向バッフ
ァ2が切れてアクセスが終了する。ポート(1)が動作
している間に、ポート(2)側からアクセス要求信号1
07を介してアクセス要求があった場合(すなわちP2
SEL端子がアクティブになる)、ポート(1)側への
アクセスが終了するまでP2E端子はインアクティブの
ままで、ポート(2)側のバッファは切れた状態となっ
ている。ポート(1)側のアクセスが終了すると、P2
E端子がアクティブとなり、ポート(2)側が動作可能
になる。「B」の区間は、ポート(2)からのアクセス
要求がポート(1)からのアクセス要求よりも早い場合
を表わしている。この場合の動作は、上述した例でポー
ト(1)側とポート(2)側とを入れ換えたものとなる
。「C」の区間は、ポート(1)とポート(2)のアク
セス要求が同時にあった場合の状態で、本例ではポート
(1)側優先としているので、「A」の区間と同じ動作
となる。
The operation of this example is shown in FIGS. 6(a), (b), and (c).
, (d), (e), and (f). In this time chart, P1LOCK, P
2LOCK is in a disabled state. In Figure 6, “
A” section is access request signal 1 from port (1)
06 is earlier than the port 2 access request signal 107. In the period "A", the P1SEL terminal becomes active via the initial access request signal 106, and the P2SEL terminal is inactive, so that the access arbitration circuit 4 operates on the port (1) side. Then, the P1E terminal becomes active, and after a predetermined access time, the P1ACK terminal becomes active in a pulsed manner. As a result, the port (1) side ends the access and returns the P1SEL terminal to inactive. P
When the 1SEL terminal becomes inactive, the P1E terminal becomes inactive, the bidirectional buffer 2 on the port (1) side is cut off, and the access ends. While port (1) is operating, access request signal 1 is sent from port (2) side.
If there is an access request via P2
(SEL terminal becomes active), the P2E terminal remains inactive until the access to the port (1) side is completed, and the buffer on the port (2) side is in an empty state. When access on the port (1) side ends, P2
The E terminal becomes active and the port (2) side becomes operational. Section "B" represents a case where the access request from port (2) is faster than the access request from port (1). The operation in this case is the same as in the example described above, with the port (1) side and port (2) side swapped. Section "C" is the state when there are access requests for port (1) and port (2) at the same time. In this example, priority is given to port (1), so the operation is the same as section "A". Become.

【0005】図7(a),(b),(c),(d),(
e),(f),(g)および(h)は、クロック信号の
動作を表わすタイミングチャートである。「D」の区間
は、ポート(1),ポート(2)の両方からロック付ア
クセスが同時に起こった場合を示している。先に説明し
たように、ポート(1)優先なので、まずP1E端子が
インアクティブとなり、ポート(1)側がアクセス可能
になる。最初のアクセスが終了し、P1SEL端子がイ
ンアクティブに戻るのは先の例と同様である。この時、
P1LOCK端子がアクティブであるため、P1SEL
端子がインアクティブ、P2SEL端子がアクティブの
期間、すなわちポート(2)からのアクセス要求のみが
ある場合でも、P2E端子がイネーブルにならずポート
(2)は動作しない。再度P1SEL端子がアクティブ
となりポート(1)側のアクセスが行われ、P1LOC
K端子がインアクティブになると、はじめてP2E端子
がイネーブルとなりポート(2)側がアクセス可能にな
る。「E」の区間は、P2LOCK端子がアクティブの
状態を表わしたもので、上述の説明でポート(1)とポ
ート(2)を入れ替えた動作となっている。
FIGS. 7(a), (b), (c), (d), (
e), (f), (g) and (h) are timing charts showing the operation of clock signals. Section "D" indicates a case where access with lock occurs simultaneously from both port (1) and port (2). As explained above, since port (1) has priority, the P1E terminal becomes inactive first, and the port (1) side becomes accessible. As in the previous example, the first access ends and the P1SEL terminal returns to inactive. At this time,
Since P1LOCK terminal is active, P1SEL
Even when the terminal is inactive and the P2SEL terminal is active, that is, there is only an access request from port (2), the P2E terminal is not enabled and port (2) does not operate. The P1SEL terminal becomes active again, access to the port (1) side is performed, and the P1LOC
When the K terminal becomes inactive, the P2E terminal becomes enabled and the port (2) side becomes accessible. The period "E" represents the state in which the P2LOCK terminal is active, and is an operation in which port (1) and port (2) are interchanged in the above explanation.

【0006】図8は、他の従来例の機能ブロック図を表
わしている。アクセス調停回路9は、図5と異なる調停
回路で、ロック信号(P1LOCK,P2LOCK)が
ない場合の調停回路である。このようなアクセス調停回
路が必要になるのは、ロック信号がサポートされていな
いシステムに対応するもので、例えば、IEEE101
4規格(VMEバス)のように、アクセスが完了しても
アクセス要求を取り下げないタイプのシステムに対応し
ている。これに対し、前述の例ではIEEE796規格
(マルチバス)のように、ロック信号をサポートしてい
るバスに対応している。
FIG. 8 shows a functional block diagram of another conventional example. The access arbitration circuit 9 is an arbitration circuit different from that in FIG. 5, and is an arbitration circuit used when there is no lock signal (P1LOCK, P2LOCK). Such an access arbitration circuit is required for systems that do not support lock signals; for example, IEEE101
4 standard (VME bus), which does not cancel the access request even after the access is completed. On the other hand, the above-mentioned example corresponds to a bus that supports a lock signal, such as the IEEE796 standard (multibus).

【0007】図8の従来例の動作を、図9(a),(b
),(c),(d),(e)および(f)のタイミング
チャートを用いて説明する。P1SEL,P2SELの
両端子が同時にアクティブとなり、ポート(1)側が優
先のためP1E端子がアクティブとなり、ポート(1)
からアクセスが可能になる。所定のアクセスタイム後、
P1ACK端子がパルス状にアクティブとなるところま
では前述の例と同じである。これに対し、ポート(1)
がロックアクセスを行うために、P1SEL端子がイン
アクティブにならず、続けてP1E端子がアクティブに
なり続け、ポート(1)が連続してアクセス可能となる
。ポート(1)が2回のアクセスを完了し、ロックが不
要になると、P1ACK端子のパルスに同期してP1S
EL端子をインアクティブに戻す。このように、完了信
号を受け付けても、アクセス要求を取り下げないことに
よってロックアクセスを行うものである。タイミング・
チャートの後半は、ポート(2)側がロックアクセスを
行う場合を示したものである。
The operation of the conventional example shown in FIG. 8 is illustrated in FIGS.
), (c), (d), (e), and (f). Both P1SEL and P2SEL terminals become active at the same time, and since port (1) has priority, P1E terminal becomes active, and port (1)
It will be accessible from. After the specified access time,
The process is the same as the previous example until the P1ACK terminal becomes active in a pulsed manner. On the other hand, port (1)
performs lock access, the P1SEL terminal does not become inactive, the P1E terminal continues to become active, and port (1) becomes continuously accessible. When port (1) completes two accesses and lock is no longer required, P1S is activated in synchronization with the pulse of the P1ACK pin.
Return the EL terminal to inactive. In this way, lock access is performed by not canceling the access request even if the completion signal is received. timing·
The latter half of the chart shows a case where the port (2) side performs lock access.

【0008】ここでは、2ポートの例のみを示したが、
3ポート以上の場合も全く同様の処理方式が適用できる
。またこの例では、2回で一つの意味あるアクセスの場
合であるが、I/O等では3回,4回といった連続アク
セスで、一つの意味ある動作になる場合もある。
[0008] Here, only an example of two ports is shown, but
Exactly the same processing method can be applied to the case of three or more ports. Further, in this example, two accesses are one meaningful access, but in I/O, etc., three or four consecutive accesses may be one meaningful operation.

【0009】[0009]

【発明が解決しようとする課題】上述した従来のマルチ
ポートアクセス制御回路においては、もともと、アクセ
スロック制御は、メモリアクセスにおけるリードモディ
ファライトや、割込みコントローラ(例えばi8259
)の割込みアクノリッジサイクルのように、複数回のア
クセスで一つの意味を持つようなアクセスをサポートす
る為に存在している。しかし、この他にソフトウェア的
にロックを行う必要がある場合が存在する。端的な例と
しては、1回目のアクセスでI/Oの内部レジスタ番号
を指定し、2回目のアクセスで実際のデータ交換を行う
ようなペリフェラルI/Oである(例えばμPD720
01)。
[Problems to be Solved by the Invention] In the above-mentioned conventional multi-port access control circuit, access lock control was originally performed on read modifier write in memory access and interrupt controller (for example, i8259
) exists to support accesses where multiple accesses have one meaning, such as the interrupt acknowledge cycle. However, there are other cases in which it is necessary to perform locking using software. A simple example is a peripheral I/O in which the I/O internal register number is specified on the first access, and the actual data is exchanged on the second access (for example, μPD720
01).

【0010】上述したような場合、アクセスをロックし
なければならないが上述した従来のマルチポートアクセ
ス制御回路では、それがわからない為にロックすること
ができず、場合によっては別なポートからのアクセス要
求に応答してしまい、システムとして誤動作する場合が
ある。例えば、上述したペリフェラルI/O(μPD7
2001)へのアクセスにおいて、ポート(1)からレ
ジスタ指定を行った後、アクセスがロックされないため
に、ポート(2)からのアクセスがあるとポート(2)
とペリフェラルI/Oがデータ交換してしまうという異
常動作が発生するという欠点がある。
[0010] In the above-mentioned case, access must be locked, but the conventional multi-port access control circuit described above cannot lock it because it does not know this, and in some cases, access requests from other ports This may cause the system to malfunction. For example, the peripheral I/O (μPD7
2001), the access is not locked after specifying the register from port (1), so if there is an access from port (2), port (2)
There is a drawback that an abnormal operation occurs in which data is exchanged between the peripheral I/O and the peripheral I/O.

【0011】[0011]

【課題を解決するための手段】本発明のマルチポートア
クセス制御回路は、所定のアクセス調停回路を介してア
クセス要求を調停し、双方向バッファを排他的にイネー
ブルすることにより、複数のポートからのアクセス要求
を処理するマルチポートアクセス制御回路において、前
記複数のポートに含まれる各ポートのアクセス回数をカ
ウントする手段と、前記カウントする手段の出力から、
前記アクセス調停回路の調停作用をロックする制御信号
を生成するロジック手段と、を備えて構成される。
[Means for Solving the Problems] The multiport access control circuit of the present invention arbitrates access requests through a predetermined access arbitration circuit and exclusively enables bidirectional buffers, thereby allowing access requests from multiple ports to be In a multi-port access control circuit that processes access requests, means for counting the number of accesses of each port included in the plurality of ports, and an output of the counting means,
and logic means for generating a control signal for locking the arbitration function of the access arbitration circuit.

【0012】0012

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0013】図1は、本発明の一実施例の機能ブロック
図である。前述の従来例と同じ番号は、同じ機能ブロッ
クを表わしている。図1に示されるように、本実施例は
、周辺装置1に対応して、双方向バッファ2および3と
、アクセス調停回路4と、ORゲート5および6と、プ
リセット/クリア付きJ−Kフリップフロップ7および
8とを備えて構成される。J−Kフリップフロップ7お
よび8のプリセット入力(以下PRと称する)の立ち上
がりエッジで、Q出力がハイに、Qの反転出力がローと
なる。クリア入力(以下CLと称する)の立ち上がりエ
ッジで、Q出力がローに、Qの反転出力がハイとなる。 J−Kフリップフロップ7および8のJ入力,K入力,
PR入力はプルアップされている。またアクセス要求信
号106および107は、それぞれCK入力端子および
アクセス調停回路4のP1SEL,P2SELの各端子
に接続され、Q出力とロック要求信号108および10
9はそれぞれORゲート5および6に接続され、その出
力はアクセス調停回路4のロック入力端子(P1LOC
K,P2LOCK)に接続されている。また、初期化信
号112は、調停回路4のRES端子とJ−Kフリップ
フロップ7および8のCL端子に接続されている。 J−Kフリップフロップ7および8において、J入力,
K入力は、ともにハイレベルの場合、CKアクセス入力
の立ち上がりエッジでQおよびQの反転出力が反転する
FIG. 1 is a functional block diagram of an embodiment of the present invention. The same numbers as in the conventional example described above represent the same functional blocks. As shown in FIG. 1, this embodiment includes bidirectional buffers 2 and 3, an access arbitration circuit 4, OR gates 5 and 6, and a JK flip-flop with preset/clear, corresponding to a peripheral device 1. 7 and 8. At the rising edge of the preset inputs (hereinafter referred to as PR) of JK flip-flops 7 and 8, the Q output goes high and the inverted output of Q goes low. At the rising edge of the clear input (hereinafter referred to as CL), the Q output goes low and the inverted output of Q goes high. J input, K input of J-K flip-flops 7 and 8,
The PR input is pulled up. The access request signals 106 and 107 are connected to the CK input terminal and the P1SEL and P2SEL terminals of the access arbitration circuit 4, respectively, and are connected to the Q output and the lock request signals 108 and 10.
9 are connected to OR gates 5 and 6, respectively, and their outputs are connected to the lock input terminal (P1LOC) of the access arbitration circuit 4.
K, P2LOCK). Further, the initialization signal 112 is connected to the RES terminal of the arbitration circuit 4 and the CL terminals of the JK flip-flops 7 and 8. In J-K flip-flops 7 and 8, J input,
When both K inputs are at a high level, Q and the inverted outputs of Q are inverted at the rising edge of the CK access input.

【0014】本実施例の動作を、図2(a),(b),
(c),(d)および(e)のタイミングチャートを用
いて説明する。今、各ポートのロック要求信号108お
よび109がインアクティブ状態でも、ポートがロック
する回路を構成しているため、ポート(1)および(2
)からのロック要求信号108および109はインアク
ティブの場合を記述している。また、調停ロジック自身
は、従来例と全く同じなので、ポート(1)側の動作の
み記述している。
The operation of this embodiment is illustrated in FIGS. 2(a), (b),
This will be explained using timing charts (c), (d), and (e). Now, even if the lock request signals 108 and 109 of each port are inactive, the ports constitute a locking circuit, so ports (1) and (2)
) describes the inactive case. Furthermore, since the arbitration logic itself is exactly the same as the conventional example, only the operation on the port (1) side is described.

【0015】初期化信号112の立ち上がりエッジで、
Q出力がインアクティブになる。アクティブ要求信号1
06により、P1SELがアクティブになる立ち上がり
エッジでQ出力は反転してアクセスとなり、ORゲート
7を通してP1LOCK端子がアクティブとなる。この
ため、従来例で説明したように、ポート(1)からの次
のアクセス要求があるまでロックされる。2回目のアク
セス要求があると、アクセス要求信号106を介してP
1SEL端子がアクティブとなり、その立ち上がりエッ
ジでQ出力がインアクティブに反転すると、ポート(1
)側のロックが解除される。
At the rising edge of the initialization signal 112,
Q output becomes inactive. Active request signal 1
06, the Q output is inverted and accessed at the rising edge when P1SEL becomes active, and the P1LOCK terminal becomes active through OR gate 7. Therefore, as described in the conventional example, the port is locked until the next access request from port (1). When there is a second access request, P is sent via the access request signal 106.
When the 1SEL terminal becomes active and the Q output inverts to inactive at its rising edge, the port (1
) side is unlocked.

【0016】この実施例では、アクセス要求信号106
および107の入力に対応して、P1SEL,P2SE
Lの各端子をJ−Kフリップフロップ7および8のCK
入力に接続しているが、これをP1E,P2Eの各端子
に接続することも可能である(P1SEL,P2SEL
とP1E,P2Eの信号は、同期して変化するため)。 しかし、この例は特に説明する必要もないので省略する
In this embodiment, the access request signal 106
and 107 inputs, P1SEL, P2SE
Connect each terminal of L to the CK of J-K flip-flops 7 and 8.
Although it is connected to the input, it is also possible to connect it to each terminal of P1E and P2E (P1SEL, P2SEL
(This is because the P1E and P2E signals change synchronously.) However, there is no need to particularly explain this example, so it will be omitted.

【0017】図3は、本発明の第2の実施例を示す機能
ブロック図である。本実施例では、ロック要求信号をサ
ポートしていないアクセス調停回路に対応し、かつポー
ト(1)からは2回の連続アクセスをロックし、ポート
(2)からは4回の連続アクセスをロックする場合を示
している。
FIG. 3 is a functional block diagram showing a second embodiment of the present invention. This embodiment supports an access arbitration circuit that does not support lock request signals, and locks two consecutive accesses from port (1) and locks four consecutive accesses from port (2). It shows the case.

【0018】図3に示されるように、本実施例は、周辺
装置1に対応して、双方向バッファ2および3と、アク
セス調停回路9と、3ビットのバイナリカウンタ10お
よび11と、ORゲート12および13と、ANDゲー
ト14および15と、NORゲート16および17と、
データセレクタ18および19とを備えて構成される。
As shown in FIG. 3, this embodiment includes bidirectional buffers 2 and 3, an access arbitration circuit 9, 3-bit binary counters 10 and 11, and an OR gate, corresponding to the peripheral device 1. 12 and 13, AND gates 14 and 15, and NOR gates 16 and 17,
The data selector 18 and 19 are provided.

【0019】図3において、バイナリカウンタ10およ
び11においては、アクセス要求信号106および10
7の入力パルスがカウントアップされ、0〜2の出力に
カウント値を出力する。そして、CL入力の立ち上がり
エッジで、カウント値が0(0〜2出力がすべて“0”
)となる。データセレクタ18および19においては、
A〜C入力のバイナリ値にしたがって、“0”であれば
Q0出力がアクティブに、“1”であればQ1出力がア
クティブになり、以下同様に変化する。ポート(1)側
のアクセス要求信号106はバイナリカウンタ10のC
入力に接続され、その出力0〜2はデータセレクタ18
のA〜C入力に接続されている。データセレクタ18の
Q1,Q2,Q3出力はORゲート16に入力され、そ
の出力がアクセス調停回路9のP1SEL端子に接続さ
れている。ポート(2)側のアクセス要求信号107は
バイナリカウンタ11のC入力に接続され、その出力0
〜2はデータセレクタ19のA〜C入力に接続されてい
る。データセレクタ19のQ1〜Q4出力はORゲート
17に入力され、その出力がアクセス調停回路9のP2
SEL端子に接続されている。ポート(1)側のバイナ
リカウンタ10のCL入力には、データセレクタ18の
Q3出力とP1ACK端子から出力されるアクセス完了
信号110のAND信号と、初期化信号112をインバ
ータ20により反転した信号とのNOR信号が接続され
ている。同様に、ポート(2)側においては、データセ
レクタ19のQ4とP2ACK端子より出力されるアク
セス完了信号111のAND信号と、初期化信号112
のNOR出力が接続されている。
In FIG. 3, in binary counters 10 and 11, access request signals 106 and 10
The input pulse number 7 is counted up and the count value is output to the outputs 0 to 2. Then, at the rising edge of the CL input, the count value becomes 0 (0 to 2 outputs are all “0”).
). In the data selectors 18 and 19,
According to the binary values of the A to C inputs, if it is "0", the Q0 output becomes active, if it is "1", the Q1 output becomes active, and so on. The access request signal 106 on the port (1) side is the C of the binary counter 10.
The outputs 0 to 2 are connected to the data selector 18.
are connected to the A to C inputs of the The Q1, Q2, and Q3 outputs of the data selector 18 are input to the OR gate 16, and its output is connected to the P1SEL terminal of the access arbitration circuit 9. The access request signal 107 on the port (2) side is connected to the C input of the binary counter 11, and its output is 0.
2 are connected to the A to C inputs of the data selector 19. The Q1 to Q4 outputs of the data selector 19 are input to the OR gate 17, and the output is P2 of the access arbitration circuit 9.
Connected to the SEL terminal. The CL input of the binary counter 10 on the port (1) side receives an AND signal of the Q3 output of the data selector 18 and the access completion signal 110 output from the P1ACK terminal, and a signal obtained by inverting the initialization signal 112 by the inverter 20. NOR signal is connected. Similarly, on the port (2) side, the AND signal of the access completion signal 111 output from the Q4 and P2ACK terminals of the data selector 19 and the initialization signal 112
The NOR output of is connected.

【0020】本実施例の機能ブロックの動作を、図4の
タイミングチャートを用いて説明する。ここでは、簡単
のため、ポート(1)側の動作のみを記述している。初
期化信号112がインアクティブになると、バイナリカ
ウンタ10のCL入力がハイレベルになり、その立ち上
がりでカウンタの値が“0”になり初期化される。ポー
ト(1)からのアクセス要求信号106にしたがってバ
イナリカウンタ10はカウントアップされ、その出力に
したがってQ1〜Q3がアクティブとなる。このQ1〜
Q3の出力信号のOR出力がP1SEL端子に入力され
ているため、調停回路9のP1SELに対するアクセス
要求は3回のアクセスの間アクティブとなり続ける。3
回目のアクセスでQがアクティブとなり、P1ACK端
子から出力されるパルスがANDゲート14およびNO
Rゲート12を通過してCLに入力されるため、3回目
のアクセスが終了した時点でカウンタがクリアされ、Q
1〜Q3がインアクティブとなり、P1SEL端子がイ
ンアクティブに戻る。
The operation of the functional blocks of this embodiment will be explained using the timing chart of FIG. Here, for simplicity, only the operation on the port (1) side is described. When the initialization signal 112 becomes inactive, the CL input of the binary counter 10 becomes high level, and at its rising edge, the value of the counter becomes "0" and is initialized. The binary counter 10 counts up according to the access request signal 106 from port (1), and Q1 to Q3 become active according to its output. This Q1~
Since the OR output of the output signal of Q3 is input to the P1SEL terminal, the access request to P1SEL of the arbitration circuit 9 continues to be active during three accesses. 3
Q becomes active on the second access, and the pulse output from the P1ACK terminal is applied to the AND gate 14 and the NO
Since it passes through the R gate 12 and is input to CL, the counter is cleared at the end of the third access, and the Q
1 to Q3 become inactive, and the P1SEL terminal returns to inactive.

【0021】他方、ポート(2)側においては、4回の
連続アクセスをロックするので、データセレクタ19に
おけるQ1〜Q4の四つの信号をORした信号をP2S
EL端子に入力している点と、カウンタをクリアするタ
イミングが4回目のアクセスの完了時点である点を除く
と、ポート(1)の場合と全く同様の動作をするので、
詳細な説明は省略する。
On the other hand, on the port (2) side, four consecutive accesses are locked, so the signal obtained by ORing the four signals Q1 to Q4 in the data selector 19 is
The operation is exactly the same as port (1), except that the input is input to the EL terminal and the counter is cleared at the completion of the fourth access.
Detailed explanation will be omitted.

【0022】[0022]

【発明の効果】以上説明したように本発明は、アクセス
回数をカウントアップし、その間、調停回路に対するア
クセスをロックすることにより、連続アクセスしなけれ
ばならない周辺装置に対し、ハードウェア的にロックす
ることにより異常動作を防止することができるという効
果がある。
[Effects of the Invention] As explained above, the present invention counts up the number of accesses and locks access to the arbitration circuit during that time, thereby locking peripheral devices that must be accessed continuously using hardware. This has the effect of preventing abnormal operations.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の第1の実施例を示す機能ブロック図で
ある。
FIG. 1 is a functional block diagram showing a first embodiment of the present invention.

【図2】第1の実施例における動作タイミングチャート
を示す図である。
FIG. 2 is a diagram showing an operation timing chart in the first embodiment.

【図3】本発明の第2の実施例を示す機能ブロック図で
ある。
FIG. 3 is a functional block diagram showing a second embodiment of the present invention.

【図4】第2の実施例における動作タイミングチャート
を示す図である。
FIG. 4 is a diagram showing an operation timing chart in a second embodiment.

【図5】従来例を示す機能ブロック図である。FIG. 5 is a functional block diagram showing a conventional example.

【図6】前記従来例において、ロック信号がインアクテ
ィブ時における動作タイミングチャートを示す図である
FIG. 6 is a diagram showing an operation timing chart when the lock signal is inactive in the conventional example.

【図7】前記従来例において、ロック信号がアクティブ
時における動作タイミングチャートを示す図である。
FIG. 7 is a diagram showing an operation timing chart when a lock signal is active in the conventional example.

【図8】他の従来例を示す機能ブロック図である。FIG. 8 is a functional block diagram showing another conventional example.

【図9】前記他の従来例における動作タイミングチャー
トを示す図である。
FIG. 9 is a diagram showing an operation timing chart in the other conventional example.

【符号の説明】[Explanation of symbols]

1    周辺装置 2,3    双方向バッファ 4,9    アクセス調停回路 5,6    ORゲート 7,8    J−Kフリップフロップ10,11  
  バイナリカウンタ 12,13    ORゲート 14,15    ANDゲート 16,17    NORゲート 18,19    データセレクタ 20    インバータ
1 Peripheral devices 2, 3 Bidirectional buffers 4, 9 Access arbitration circuits 5, 6 OR gates 7, 8 J-K flip-flops 10, 11
Binary counter 12, 13 OR gate 14, 15 AND gate 16, 17 NOR gate 18, 19 Data selector 20 Inverter

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  所定のアクセス調停回路を介してアク
セス要求を調停し、双方向バッファを排他的にイネーブ
ルすることにより、複数のポートからのアクセス要求を
処理するマルチポートアクセス制御回路において、前記
複数のポートに含まれる各ポートのアクセス回数をカウ
ントする手段と、前記カウントする手段の出力から、前
記アクセス調停回路の調停作用をロックする制御信号を
生成するロジック手段と、を備えることを特徴とするマ
ルチポートアクセス制御回路。
1. A multi-port access control circuit that processes access requests from a plurality of ports by arbitrating access requests through a predetermined access arbitration circuit and exclusively enabling a bidirectional buffer. and logic means for generating, from the output of the counting means, a control signal for locking the arbitration action of the access arbitration circuit. Multiport access control circuit.
JP03039668A 1991-03-06 1991-03-06 Multi-port access control circuit Expired - Lifetime JP3077214B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03039668A JP3077214B2 (en) 1991-03-06 1991-03-06 Multi-port access control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03039668A JP3077214B2 (en) 1991-03-06 1991-03-06 Multi-port access control circuit

Publications (2)

Publication Number Publication Date
JPH04277812A true JPH04277812A (en) 1992-10-02
JP3077214B2 JP3077214B2 (en) 2000-08-14

Family

ID=12559468

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03039668A Expired - Lifetime JP3077214B2 (en) 1991-03-06 1991-03-06 Multi-port access control circuit

Country Status (1)

Country Link
JP (1) JP3077214B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001325049A (en) * 2000-05-18 2001-11-22 Naltec Inc Interface device and output device
JP2007286978A (en) * 2006-04-18 2007-11-01 Fujitsu Ltd Electronic apparatus, and its control method and program for data transfer, and data transfer system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001325049A (en) * 2000-05-18 2001-11-22 Naltec Inc Interface device and output device
JP2007286978A (en) * 2006-04-18 2007-11-01 Fujitsu Ltd Electronic apparatus, and its control method and program for data transfer, and data transfer system
US8245275B2 (en) 2006-04-18 2012-08-14 Fujitsu Limited Electronic device, non-transitory computer-readable medium storing program, and circuit chip

Also Published As

Publication number Publication date
JP3077214B2 (en) 2000-08-14

Similar Documents

Publication Publication Date Title
US4380798A (en) Semaphore register including ownership bits
US4779089A (en) Bus arbitration controller
US4847757A (en) Interleaved access to global memory by high priority source
US4586128A (en) Arbitrator circuit and technique for use in a digital computing system having multiple bus controllers
EP0428330A2 (en) Computer interface circuit
US4789926A (en) Digital data processing arbitration system
US4612542A (en) Apparatus for arbitrating between a plurality of requestor elements
US5241661A (en) DMA access arbitration device in which CPU can arbitrate on behalf of attachment having no arbiter
JPH10143467A (en) Method and device for arbitrating bus ownership in data processing system
JPH04277812A (en) Multiport access control circuit
US5627968A (en) Data transfer apparatus which allows data to be transferred between data devices without accessing a shared memory
US5353414A (en) Bus lock control apparatus capable of controlling without stopping bus arbiters
US10719387B2 (en) Memory interface with tamper-evident features to enhance software security
US6263425B1 (en) Circuit that implements semaphores in a multiprocessor environment without reliance on atomic test and set operations of the processor cores
US5442658A (en) Synchronization apparatus for a synchronous data processing system
US3921150A (en) Three-rank priority select register system for fail-safe priority determination
EP0226053A1 (en) Bus arbitration controller
US5045999A (en) Multi-function timing sequencer for different speed main storage units
CA1299295C (en) Dma access arbitration device in which cpu can arbitrate on behalfof attachment having no arbiter
KR940005778B1 (en) Cache data access interface circuit
JPS6265155A (en) Digital data processing arbitration system
KR100231721B1 (en) Bus abitor for accessing apparatus sharing
JPH05210514A (en) Logical integrated circuit
KR960001267B1 (en) Input/output processing arbitrator for ticom system
JPH0644182A (en) Bus arbiter for electronic equipment

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000516