JPH0452952A - Arbitration method between devices that use shared resources - Google Patents
Arbitration method between devices that use shared resourcesInfo
- Publication number
- JPH0452952A JPH0452952A JP16240290A JP16240290A JPH0452952A JP H0452952 A JPH0452952 A JP H0452952A JP 16240290 A JP16240290 A JP 16240290A JP 16240290 A JP16240290 A JP 16240290A JP H0452952 A JPH0452952 A JP H0452952A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- arbitration
- arbitration request
- gate
- signal
- 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.)
- Pending
Links
Landscapes
- Multi Processors (AREA)
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔概要〕
共有資源を利用する装置間の調停方式に関し、両装置間
での共有資源の占有権についての調停動作に必要な外部
信号線を2本で済ませるとともに、簡単な外付は回路で
当該調停動作を停止できるようにすることを目的とし、
共有資源を利用する第1の装置と第2の装置のそれぞれ
に、調停要求信号を出力する調停要求保持回路、調停要
求受付信号を出力する調停要求受付回路およびこの両回
路を接続するゲート回路からなる調停用回路を設け、各
装置の調停要求信号で相手方装置のゲート回路をオフに
する調停方式であって、第1の装置の調停要求信号は、
当該装置ゲート回路を介することなしに第2の装置のゲ
ート回路に伝送され、第2の装置の調停要求信号は、当
該装置のゲート回路を介して第1の装置のゲート回路に
伝送されるようにし、第1の装置が、共有資源の利用に
対する優先権を持つ構成を有する。[Detailed Description of the Invention] [Summary] Concerning an arbitration method between devices that use shared resources, only two external signal lines are required for the arbitration operation for exclusive rights to the shared resources between both devices, and the method is simple. The purpose of the external circuit is to stop the arbitration operation, and includes an arbitration request holding circuit that outputs an arbitration request signal to each of the first device and the second device that use the shared resource. This arbitration method includes an arbitration circuit consisting of an arbitration request acceptance circuit that outputs a request acceptance signal and a gate circuit that connects both circuits, and in which the arbitration request signal of each device turns off the gate circuit of the other device. The arbitration request signal of device 1 is
The arbitration request signal of the second device is transmitted to the gate circuit of the second device without passing through the device gate circuit, and the arbitration request signal of the second device is transmitted to the gate circuit of the first device via the gate circuit of the device. and has a configuration in which the first device has priority rights to use the shared resource.
本発明は、共有資源を利用する複数の装置、例えば2台
のプロセッサで1台のメモリや入出力装置を共有して利
用するときの各プロセッサの資源占有権を調停する方式
に関する。The present invention relates to a method for arbitrating resource exclusive rights of each processor when a memory or an input/output device is shared and used by a plurality of devices that use shared resources, for example, two processors.
従来、複数の装置で共有資源を利用するときの各装置の
資源占有権を調停する方式とし5ては、第6図、第7図
に示すようなものがある。Conventionally, when a plurality of devices use a shared resource, there is a method 5 for arbitrating the resource exclusive rights of each device, as shown in FIGS. 6 and 7.
すなわち、第6図のように、第1の装置61と第2の装
置62のそれぞれが調停要求用のリクエスト線と調停要
求受付用の了クツリッジ線の2本の外部信号線を持ち、
合計4本の外部信号線を用いて調停回路63に接続して
いる。また、別の調停方式では、第7図のように、第2
の装置72に調停回路73を内蔵して第1の装置71に
対する外部信号線をリクエスト線とアクノリッジ線との
2本にしている。That is, as shown in FIG. 6, each of the first device 61 and the second device 62 has two external signal lines, a request line for requesting arbitration and an acceptance line for accepting arbitration requests.
It is connected to the arbitration circuit 63 using a total of four external signal lines. In addition, in another arbitration method, as shown in Figure 7, the second
An arbitration circuit 73 is built into the first device 72, and the external signal lines for the first device 71 are two, a request line and an acknowledge line.
以上のように、従来の第6図の調停方式では、両装置の
外部に調停回路を設けているため/’t−ド面での構造
が複雑になるとともに4本の外部信号線が必要となり、
また第7図の調停方式では、第2の装置72に内蔵され
ている調停回路73を外部から確認してその調停動作を
停止させようとする場合、そのだめの信号線が新たに必
要になるといった問題点があった。As mentioned above, in the conventional arbitration method shown in Fig. 6, the arbitration circuit is provided outside both devices, which complicates the structure on the /'t-plane and requires four external signal lines. ,
In addition, in the arbitration method shown in FIG. 7, when the arbitration circuit 73 built in the second device 72 is checked from the outside and the arbitration operation is to be stopped, a new signal line is required. There were some problems.
そこで、本発明では、共有資源を利用する第1の装置と
第2の装置のそれぞれに、調停要求信号を出力する調停
要求保持回路、調停要求受付信号を出力する調停要求受
付回路およびこの両回路を接続するゲート回路からなる
調停用回路をもうけ、第1の装置の調停要求信号は調停
要求保持回路の出力側から直接第2の装置のゲート回路
に伝送され、また第2の装置の調停要求信号は自装置の
ゲート回路を介して第1の装置のゲート回路に伝送され
るようにするとともに、それぞれの調停要求信号で相手
方装置のゲート回路をオフにして、第1の装置が、共有
資源の利用に対する優先権を持つようにすることにより
、両装置間での共有資源の占有権についての調停動作に
必要な外部信号線を2本で済ませるとともに、開部な外
付は回路で当該調停動作を停止できるようにすることを
目的とする。Therefore, in the present invention, an arbitration request holding circuit that outputs an arbitration request signal, an arbitration request reception circuit that outputs an arbitration request acceptance signal, and both circuits are provided to each of the first device and the second device that use the shared resource. The arbitration request signal of the first device is directly transmitted from the output side of the arbitration request holding circuit to the gate circuit of the second device. The signal is transmitted to the gate circuit of the first device via the gate circuit of its own device, and each arbitration request signal turns off the gate circuit of the other device, so that the first device uses the shared resource. By giving priority to the use of shared resources, only two external signal lines are required for arbitration for the exclusive right of shared resources between both devices, and open external connections can be used for arbitration using circuits. The purpose is to be able to stop the operation.
第1図は本発明の原理説明図である。 FIG. 1 is a diagram explaining the principle of the present invention.
第1図において、
1は、共有資源であり、例えばメモリや入出力装置であ
る。In FIG. 1, 1 is a shared resource, such as a memory or an input/output device.
2は、第1の装置であり、調停要求保持回路、ゲート回
路および調停要求受付回路からなる調停用回路等を備え
ている。Reference numeral 2 denotes a first device, which includes an arbitration circuit including an arbitration request holding circuit, a gate circuit, and an arbitration request receiving circuit.
3は、第2の装置であり、調停要求保持回路、ゲート回
路、調停要求受付回路等からなる調停用回路を備えてい
る。A second device 3 includes an arbitration circuit including an arbitration request holding circuit, a gate circuit, an arbitration request reception circuit, and the like.
4,5は、調停要求保持回路であり、その出力からは調
停要求信号が取り出される1゜
には、第1の装置2に設けたゲート回路であり、調停要
求保持回路4からの調停要求信号が入力され、また第2
の装置3に設けたゲート回路の出力信号でオフとなる。Reference numerals 4 and 5 denote arbitration request holding circuits, from which an arbitration request signal is taken out. 1° is a gate circuit provided in the first device 2, which receives an arbitration request signal from the arbitration request holding circuit 4. is input, and the second
It is turned off by the output signal of the gate circuit provided in the device 3.
7は、第2の装N3に設けたゲート回路であり、調停要
求保持回路5からの調停要求信号が入力され、また第J
の装置2に設けた調停要求保持回路4の出力信号でオフ
となる。7 is a gate circuit provided in the second device N3, into which the arbitration request signal from the arbitration request holding circuit 5 is input;
It is turned off by the output signal of the arbitration request holding circuit 4 provided in the device 2.
8.9は、調停要求受付回路であり、各ゲート回路の出
力信号が入力され、その出力からは調停要求受付信号が
取り出される。Reference numeral 8.9 denotes an arbitration request acceptance circuit, into which the output signals of each gate circuit are input, and an arbitration request acceptance signal is taken out from its output.
ここで、調停要求動作は、調停要求が発生したときの各
回路の状態に応じて、
■ 第2の装置3の非動作中に、第1の装置2が調停要
求を発生したとき
装置2の調停要求イ踊姿4の調停要求信号は、(ゲート
回路6を介することなく)信号路Aを介して、装置3の
ゲート回路7に加えられ当該ゲート回路をオフにする。Here, the arbitration request operation is performed depending on the state of each circuit when the arbitration request is generated. The arbitration request signal of the arbitration request signal 4 is applied via the signal path A (without passing through the gate circuit 6) to the gate circuit 7 of the device 3 to turn off the gate circuit.
そし、で、装置2のゲト回路6はオンになっているので
、装!2の調停要求信号は自装置の調停要求受付回路8
に加えられ、調停要求受付信号が出力されることになり
、装置2は共有資源の占有権を持つことになる。And, since the gate circuit 6 of device 2 is on, it is installed! The arbitration request signal No. 2 is sent to the arbitration request receiving circuit 8 of the own device.
, an arbitration request acceptance signal will be output, and the device 2 will have exclusive rights to the shared resource.
なお、装置2のゲート回路6には、ゲー ト回路7の出
力信号である、装置3の調停要求信号が信号路Bを介し
て加えられているが、当該出力信号は前記のようにオフ
に制御されているた約、装置2が共有資源の利用を開始
した後で装置3の調停要=M拒諮5から調停要求信号が
出力されても、ゲート回路6がオフ、ゲート回路7がオ
ンといった状態になることはなく、共有資源1について
の第1の装置2の占有権は確保されたままである。Note that the arbitration request signal of the device 3, which is the output signal of the gate circuit 7, is applied to the gate circuit 6 of the device 2 via the signal path B, but this output signal is turned off as described above. In the controlled contract, even if an arbitration request signal is output from the arbitration request = M rejection 5 of the apparatus 3 after the apparatus 2 starts using the shared resource, the gate circuit 6 is turned off and the gate circuit 7 is turned on. Such a situation does not occur, and the exclusive right of the first device 2 to the shared resource 1 remains secured.
■ 第1の装W12の非動作中に、第2の装置3が調停
要求を発生したとき
装置3の調停要W路5からの調停要求信号はオン状態の
ゲート回路7に入り、この出力側から信号路Bを経て装
ff、 2のグー1回路6に加えられ当該ゲート回路を
オフとするいしたがって、装置3の調停要求信号は調停
要求受付回路9に加えられ、調停要求受付信号が出力さ
れることになり、装置3は共有資源の占有権を持つこと
になる。■ When the second device 3 generates an arbitration request while the first device W12 is not operating, the arbitration request signal from the arbitration point W path 5 of the device 3 enters the on-state gate circuit 7, and the output side The arbitration request signal from the device 3 is applied to the arbitration request reception circuit 9, and the arbitration request reception signal is output. As a result, device 3 has exclusive rights to the shared resource.
なお、調停要求受付回路9を自己保持型の回路にすれば
、その出力信号を信号路Cを介して装置2のゲート回路
6に加えることにより、装置3が共有資源の利用を開始
した後で装置2が調停要求を発生して装置3のゲー ト
回路7がオフになってもゲート回路6がオフになるとい
ったことはなく、共有資源1についての第2の装[3の
占有権を確保することができる。Note that if the arbitration request receiving circuit 9 is made into a self-holding type circuit, its output signal can be applied to the gate circuit 6 of the device 2 via the signal path C, so that the arbitration request receiving circuit 9 can be used after the device 3 starts using the shared resource. Even if the device 2 issues an arbitration request and the gate circuit 7 of the device 3 is turned off, the gate circuit 6 will not be turned off, and the exclusive right of the second device [3 with respect to the shared resource 1] will be secured. can do.
■ 第2の装置3の動作中に、第1の装置2が調停要求
を発生したとき
前記のように、装置3の調停要求受付回路9の出力信号
を信号路Cを介して装置2のゲート回路6に加えること
により、装置3の動作が終了して調停要求受付回路9が
リセットされるまで、共有資源1についての第2の装置
3の占有権を確保することができる。■ When the first device 2 generates an arbitration request while the second device 3 is operating, the output signal of the arbitration request reception circuit 9 of the device 3 is sent to the gate of the device 2 via the signal path C. By adding it to the circuit 6, it is possible to secure the exclusive right of the second device 3 to the shared resource 1 until the operation of the device 3 ends and the arbitration request receiving circuit 9 is reset.
■ 第1の装置2の動作中に、第2の装[3が調停要求
を発生したとき
前記のように、装置2の動作中、装置3のゲト回路7は
オフとなっているため、装置2のゲート回路6は装置3
からの調停要求信号に制御されることはなく、装置2の
動作が終了して調停要求保持回路4がリセットされるま
で、共有資源1についての第1の装置2の占有権が確保
される。■ When the second device [3 issues an arbitration request while the first device 2 is operating] As mentioned above, while the device 2 is operating, the gate circuit 7 of the device 3 is off, so the device 2 gate circuit 6 is device 3
The exclusive right of the first device 2 to the shared resource 1 is secured until the operation of the device 2 ends and the arbitration request holding circuit 4 is reset.
■ 装置2と装置3が同時に調停要求を発生したとき
それぞれの装置の調停要求保持回路からの調停要求信号
によって相手方装置のゲート回路をオフにしようとする
制御動作が始まるが、装置2の調停要求保持回路4の出
力信号で直接制御されている(装置3の)ゲート回路7
がすぐにオフになるため、装置3からの調停要求信号が
装置2のゲート回路6に加えられることはなく、したが
ってゲート回路6がオン、ゲート回路7がオフといった
特定の状態に定まり、共有資源1についての第1の装置
2の占有権が優先的に確保される。■ When device 2 and device 3 generate arbitration requests at the same time, a control operation to turn off the gate circuit of the other device is started by the arbitration request signal from the arbitration request holding circuit of each device, but device 2's arbitration request Gate circuit 7 (of device 3) directly controlled by the output signal of holding circuit 4
is immediately turned off, the arbitration request signal from the device 3 is not applied to the gate circuit 6 of the device 2, and therefore the gate circuit 6 is set to a specific state such as on and gate circuit 7 is off, and the shared resource is 1 is preferentially secured for the first device 2.
のようになる。become that way.
なお、優先順位の低い第2の装置3に設けたゲート回路
7は、第2図のように、その出力信号で(装置2の)ゲ
ート回路6をオフに制御する第1のゲート回路17と、
その出力信号が自装置の調停要求受付回路9に加えられ
る第2のゲート回路27とで構成してもよい。このとき
、両ゲート回路17゜27は装置2からの調停要求信号
により同一内容の制御を受けることになる。Note that, as shown in FIG. 2, the gate circuit 7 provided in the second device 3 having a lower priority is connected to the first gate circuit 17 which controls the gate circuit 6 (of the device 2) to turn off with its output signal. ,
It may also be configured with a second gate circuit 27 whose output signal is applied to the arbitration request receiving circuit 9 of the device itself. At this time, both gate circuits 17 and 27 receive the same control based on the arbitration request signal from the device 2.
また、装置2.3のそれぞれを複数個設けてグループ化
し、優先順位の高いグループと優先順位の低いグループ
との間で前記調停方式を用いるようにしてもよい。Alternatively, a plurality of each of the devices 2.3 may be provided and grouped, and the arbitration method may be used between a group with a high priority and a group with a low priority.
本発明においては、共有資源を利用する第1の装置と第
2の装置の間で、一方の装置の調停要求保持回路からの
調停要求信号で他方の装置のゲト回路をオフにして当該
他方の装置の調停要求受付回路から調停要求受付信号が
出力されないように相互に制御するに際して、第2の装
置の調停要求信号は自装置のゲート回路を介して第1の
装置のゲート回路に伝送されるようにすることにより、
共有資源の占有についての優先権を第1の装置に第2の
装置よりも高く与えている。また、両装置とも非動作の
ときに、外部から各装置のゲート回路に制御信号を加え
て当該ゲート回路をともにオフにすることにより、調停
動作をとめることができる。In the present invention, between a first device and a second device that use a shared resource, an arbitration request signal from an arbitration request holding circuit of one device turns off the get circuit of the other device. When controlling each other so that the arbitration request acceptance signal is not output from the arbitration request acceptance circuit of the device, the arbitration request signal of the second device is transmitted to the gate circuit of the first device via the gate circuit of the own device. By doing so,
A first device is given higher priority than a second device for possession of the shared resource. Further, when both devices are not operating, the arbitration operation can be stopped by applying a control signal from the outside to the gate circuits of each device to turn off both gate circuits.
第3図〜第5図を参照して本発明の詳細な説明する。 The present invention will be described in detail with reference to FIGS. 3 to 5.
第3図は第1図の調停方式に対応する実施例を示す説明
図、第4図は第2図の調停方式に対応する実施例を示す
説明図、第5図は第3図、第4図の実施例におけるタイ
ムチャートの例を示す説明図である。FIG. 3 is an explanatory diagram showing an embodiment corresponding to the arbitration method shown in FIG. 1, FIG. 4 is an explanatory diagram showing an embodiment corresponding to the arbitration method shown in FIG. 2, and FIG. It is an explanatory diagram showing an example of a time chart in the example of a figure.
第3図において、第1の装置32アよび第2の装置33
はLSI化されており、各装置は調停要求保持回路34
.35、ゲート回路36.37、調停要求受付回路38
.39等で構成されている。そして、調停要求保持回路
34.35および調停要求受付回路38.39はそれぞ
れDフリップフロップ等で、またゲート回路36.37
はそれぞれANDゲートで構成されている。In FIG. 3, a first device 32a and a second device 33
is implemented as an LSI, and each device has an arbitration request holding circuit 34.
.. 35, gate circuit 36.37, arbitration request reception circuit 38
.. It is composed of 39 mag. The arbitration request holding circuits 34.35 and the arbitration request reception circuits 38.39 are each made of a D flip-flop or the like, and the gate circuits 36.37
are each composed of an AND gate.
ここで、装置32.33間の調停処理は第1図における
処理と同じである。例えば、第1の装置32においてセ
ット信号がセット端子32Sに加えられるとその時点で
調停要求保持回路34のDフリップフロップが動作して
調停要求信号を出力する。そして、この調停要求信号は
ORゲート40、信号路Aを経て第2の装置33のゲー
ト回路37に加わって当該ゲート回路(ANDゲート4
2)をオフにし、第2の装置33の方で調停要求を発生
しても調停要求保持回路35からの調停要求信号が調停
要求受付回路39に供給されないようにする。そして、
次のクロック・タイミングで調停要求受付回路38のD
フリップフロップが動作して調停要求受付信号を端子3
2Eに出力し、第1の装置32は共有資源31について
の占有権を確保することができる。そして、共有資源3
1の利用が終了した時点で、リセット信号がリセット端
子32Hに加えられ調停要求保持回路34および調停要
求受付回路38のDフリップ70ツブは調停創作開始前
の状態になって端子32Eへの調停要求受付信号は出力
されなくなるとともに第2の装置のゲート回路37もオ
ン状態に戻り、第1の装置32の動作中に第2の装置3
3側で調停要求が保留されていると、装置33側の内部
処理が開始される。Here, the arbitration process between the devices 32 and 33 is the same as the process in FIG. For example, when a set signal is applied to the set terminal 32S in the first device 32, at that point the D flip-flop of the arbitration request holding circuit 34 operates to output an arbitration request signal. Then, this arbitration request signal is applied to the gate circuit 37 of the second device 33 via the OR gate 40 and the signal path A, and is applied to the gate circuit (AND gate 4).
2) is turned off so that even if the second device 33 generates an arbitration request, the arbitration request signal from the arbitration request holding circuit 35 is not supplied to the arbitration request receiving circuit 39. and,
D of the arbitration request receiving circuit 38 at the next clock timing.
The flip-flop operates and outputs the arbitration request acceptance signal to terminal 3.
2E, the first device 32 can secure exclusive rights to the shared resource 31. And shared resources 3
1, a reset signal is applied to the reset terminal 32H, and the D flip 70 knobs of the arbitration request holding circuit 34 and the arbitration request reception circuit 38 are in the state before the start of arbitration creation, and an arbitration request is sent to the terminal 32E. The reception signal is no longer output, and the gate circuit 37 of the second device also returns to the on state, and the second device 3 is turned on while the first device 32 is in operation.
If the arbitration request is pending on the device 33 side, internal processing on the device 33 side is started.
また、第2の装置33においてセット信号がセット端子
33Sに加えられるときも第1の装置32の場合と同様
な回路動作となり、調停要求保持回路35からの調停要
求信号はゲート回路37.信号路B。Further, when a set signal is applied to the set terminal 33S in the second device 33, the circuit operation is similar to that in the first device 32, and the arbitration request signal from the arbitration request holding circuit 35 is applied to the gate circuit 37. Signal path B.
ORゲート41を経て第1の装置;32のゲート回路3
日に加わって当該ゲート回路をオフlJmする。 (、
(、、、、て、次のクロック・タイミングで調停要求受
付回路:390)1〕フリツプフL]ツブが動作して調
停要求、受伺信号を端子33Eに出力し、装置:33は
共有資源3Hr−:)いての占有権を確保することがで
きる1、このとき、端子33Eに得られる調停要求受(
=j倍信号仁号銘、C′。The gate circuit 3 of the first device; 32 via the OR gate 41
In addition, the gate circuit is turned off lJm. (,
(,,,,,,at the next clock timing, the arbitration request reception circuit: 390) 1] The flipflop L] operates and outputs the arbitration request and reception signal to the terminal 33E, and the device: 33 receives the shared resource 3Hr. -:) 1, at this time, the arbitration request received at terminal 33E (
=j times signal Jingo inscription, C'.
を介してORゲート41にも供給されるたy〕、第2の
装置33の動作中1、−“、第1の装置32が調停要求
を発生し、て(第2の装置33の)ゲート回路37がオ
フになっても(第1の装置32の)ゲート回路36はス
フのままであり、そしてこのオフ状態は第2の装置33
の動作終了後にリセット端子33Rからのリセット信号
で調停要求保持回路、35および調停要求受付回路39
のDフリップフロップのそ第1ぞれがリセットされるま
で継続するので、共有資源31についでの第2の装ft
33の占有権は確保されたままで5ある。この場合、第
1の装置32の調停要求は保留されることになる。during the operation of the second device 33, the first device 32 generates an arbitration request and the gate (of the second device 33) Even when the circuit 37 is turned off, the gate circuit 36 (of the first device 32) remains switched off, and this off state is applied to the second device 33.
After the operation is completed, a reset signal from the reset terminal 33R causes the arbitration request holding circuit 35 and the arbitration request receiving circuit 39.
This continues until each of the first D flip-flops is reset, so that the second
33 occupancy rights remain secured, leaving 5. In this case, the arbitration request of the first device 32 will be put on hold.
また、第1の装置:32と第2の装置:コ:1が同時に
調停要求を発生して調停要求保持回路34.調停要求保
持回路35のそれぞれのセット端子にセット信号が加え
られたときは、ゲー、ト回路36とゲー=ト回路37の
両者に調停要求信号が加えられるが、調停要求保持回路
34の出力信号で直接に制御されでいるゲート回路37
(ANDゲー、ト42)が先にオフ1.なるため、第2
の装置33からの調停要求信号がイ;÷号路B、ORゲ
ート41を介し5てゲート回路361、−加えられる動
作は1ぐに終わり、ゲート回路36がオン。Further, the first device 32 and the second device 1 simultaneously generate arbitration requests, and the arbitration request holding circuit 34. When a set signal is applied to each set terminal of the arbitration request holding circuit 35, the arbitration request signal is applied to both the gate and gate circuits 36 and the gate and gate circuits 37, but the output signal of the arbitration request holding circuit 34 gate circuit 37 which is directly controlled by
(AND game, g42) is turned off first. To become, the second
The arbitration request signal from the device 33 is applied to the gate circuit 361 through the OR gate 41 and the operation ends immediately, and the gate circuit 36 is turned on.
ゲ ト回路:37がオフの状態になる。イしで、次のク
ロックタイミングで(第1の装置32の)調停要求受付
回路38のDフリップフロップが動作1.て調停要求受
付信号を端:l’32Eに出力し、第1の装置32は第
2の装置33に優先して共杓資源31の利用を開始する
ことができる。Gate circuit: 37 is turned off. Then, at the next clock timing, the D flip-flop of the arbitration request reception circuit 38 (of the first device 32) operates 1. Then, the first device 32 can start using the common resource 31 in priority over the second device 33 by outputting an arbitration request acceptance signal to the terminal 1'32E.
また、第1の装置32と第2の装9133の両者とも非
動作のとき、外部端子45から○Rゲー+−44,43
を介して各装置のゲー ト回路36.37に調停停止信
号を加え6、当該ゲー ト回路をオフにすることにより
、調停動作を停止させることができる。Further, when both the first device 32 and the second device 9133 are inactive, the external terminal 45 connects the ○R game +-44, 43
The arbitration operation can be stopped by applying an arbitration stop signal 6 to the gate circuits 36 and 37 of each device via the gate circuit 6 and turning off the gate circuit.
なお、ゲート回路37の機能とし、では1.調停要求保
持回路35からの調停要求信号の、調停要求受付回路3
9への伝送とゲート回路36への伝送とを同時に制御す
ることであるが、ΔNDゲ、ト42の出力信号がA、
N Dゲート43に入力される構成とな、っている第3
図の実施例では、A、 N Dゲート42のみでこの両
方の制御4行なうことができ、ノへN丁)ゲト43は省
いでもよい。In addition, regarding the function of the gate circuit 37, 1. Arbitration request receiving circuit 3 receives arbitration request signal from arbitration request holding circuit 35
9 and the gate circuit 36 at the same time, the output signal of the ΔAND gate 42 is A,
The third
In the illustrated embodiment, both of these controls can be performed using only the A and ND gates 42, and the ND gate 43 may be omitted.
第41!lは、前!i:1.伝送の制御をそれぞれのゲ
ト回路で分担する場合の実施例である。イ、して、第
3図の実施例とは、A N Dゲート1j″A(第3図
のANDゲート43ニ対応)に11、A N Dゲート
52ノ出力信号ではなく、調停要求保持回路35からの
調停要求信号か直接入力されでいる点で相違し7でいる
。すなわち、調停要求保持回路35からの調停要求信号
の、調停要求受付回路39への伝送をA、 N Dゲー
ト53で制御し、ゲルト回路36への伝送をANDゲー
ト52で制御しでいる。41st! l is in front! i:1. This is an example in which transmission control is shared between each gate circuit. In the embodiment shown in FIG. 3, the output signal of the A N D gate 1j''A (corresponding to the AND gate 43 in FIG. 7 in that the arbitration request signal from the arbitration request holding circuit 35 is directly input. That is, the transmission of the arbitration request signal from the arbitration request holding circuit 35 to the arbitration request reception circuit 39 is performed by the A, ND gate 53. The transmission to the gelt circuit 36 is controlled by an AND gate 52.
し発明の効果〕
本発明は、共有資源を利用する第1の装置と第2の装置
のそれぞれに、調停要求信号を出力する調停要求保持回
路1調停要求受付信号を出力する調停要求受付回路およ
びこの両回路を接続するゲト回路からなる調停用回路を
設け、第1の装置の調停要求信号は当M装置の調停要求
保持回路の出力側から直接第2の装置のゲート回路に伝
送され、また第2の装置の調停要求信号は当該装置のゲ
ート回路を介して第1の装置のゲート回路に伝送される
ようにし2、それぞれの調停要求信号で相手方装置のゲ
ート回路をオフにする構成にし、ているた約、共有資源
の占有利用に関して第1の装置が第2の装置に対する優
先権を持ち、かつ、調停動作に必要な装置間の外部信号
線を2本で済ませるとともに、簡単な外付は回路で調停
動作を停止状態にできる調停方式を提供することかでき
る。[Effects of the Invention] The present invention provides an arbitration request holding circuit that outputs an arbitration request signal to each of a first device and a second device that use a shared resource, an arbitration request receiving circuit that outputs an arbitration request acceptance signal, and An arbitration circuit consisting of a gate circuit connecting these two circuits is provided, and the arbitration request signal of the first device is directly transmitted from the output side of the arbitration request holding circuit of the M device to the gate circuit of the second device. The arbitration request signal of the second device is transmitted to the gate circuit of the first device via the gate circuit of the device, and each arbitration request signal turns off the gate circuit of the other device, The first device has priority over the second device regarding the exclusive use of shared resources, and only two external signal lines are needed between the devices for arbitration, and a simple external connection is possible. It is possible to provide an arbitration method in which the arbitration operation can be stopped using a circuit.
第1図および第2図は本発明の原理説明図、第第3図は
第1I!lの調停方式に対応する実施例を示す説明図、
第4図は第2図の調停方式に対応する実施例を示す説明
図、第5図は本発明の調停方式のタイムチャートを示す
説明図、第6図および第7図は従来の調停方式を示す説
明図である。
第1図において、
1・・・・共有資源
2・・・・第1の装置
3・・・・第2の装置
4.5 ・・・調停要求保持回路
6.7 ・・・ゲート回路
8.9 ・・・調停要求受付回路
八〜C・ゲート回路制御用の信号路
特許出願人 株式会社ピーエフニー
代理人 弁理士 長浴用 文責
(外2名)
$−免圀■他O岸侘様、叩国
纂21!1
本も日月の原理−覧卯図1 and 2 are diagrams explaining the principle of the present invention, and FIG. 3 is the 1I! An explanatory diagram showing an embodiment corresponding to the arbitration method of l,
FIG. 4 is an explanatory diagram showing an embodiment corresponding to the arbitration method shown in FIG. 2, FIG. 5 is an explanatory diagram showing a time chart of the arbitration method of the present invention, and FIGS. FIG. In FIG. 1, 1...shared resource 2...first device 3...second device 4.5...arbitration request holding circuit 6.7...gate circuit 8. 9...Arbitration request reception circuit 8~C Gate circuit control signal path patent applicant Pfn Co., Ltd. agent Patent attorney Long bath writer (2 others) $-Munkuni ■Other Mr. Waki Kishi, bashing country纂21!1 This book is also the principle of sun and moon - a map of the book
Claims (3)
れぞれに、調停要求信号を出力する調停要求保持回路、
調停要求受付信号を出力する調停要求受付回路およびこ
の両回路を接続するゲート回路からなる調停用回路を設
け、各装置の調停要求信号で相手方装置のゲート回路を
オフにする調停方式であって、 第1の装置の調停要求信号は、当該装置のゲート回路を
介することなしに第2の装置のゲート回路に伝送され、 第2の装置の調停要求信号は、当該装置のゲート回路を
介して第1の装置のゲート回路に伝送されるようにし、 第1の装置が、共有資源の利用に対する優先権を持つよ
うにしたことを特徴とする共有資源を利用する装置間の
調停方式。(1) An arbitration request holding circuit that outputs an arbitration request signal to each of the first device and the second device that use the shared resource;
An arbitration method includes an arbitration circuit including an arbitration request acceptance circuit that outputs an arbitration request acceptance signal and a gate circuit that connects both circuits, and turns off the gate circuit of the other device with the arbitration request signal of each device, the arbitration method comprising: The arbitration request signal of the first device is transmitted to the gate circuit of the second device without going through the gate circuit of the device, and the arbitration request signal of the second device is transmitted to the gate circuit of the second device without going through the gate circuit of the device. 1. An arbitration method between devices using shared resources, characterized in that the information is transmitted to a gate circuit of one device, and the first device has priority over the use of the shared resources.
持回路を、フリップフロップで構成するとともに、セッ
ト信号およびリセット信号が入力されるものとし、 調停要求受付回路を、フリップフロップで構成するとと
もに、前記リセット信号が入力されるものとし、 第2の装置のゲート回路から第1の装置のゲート回路へ
の信号路にORゲートを設け、当該ORゲートに当該第
2の装置のゲート回路の出力信号と、当該第2の装置の
前記調停要求受付回路の出力信号とを加えるようにした
請求項1記載の共有資源を利用する装置間の調停方式。(2) The gate circuit is configured with an AND gate, the arbitration request holding circuit is configured with a flip-flop, and a set signal and reset signal are inputted, and the arbitration request reception circuit is configured with a flip-flop, The reset signal is inputted, an OR gate is provided in the signal path from the gate circuit of the second device to the gate circuit of the first device, and the output signal of the gate circuit of the second device is provided to the OR gate. 2. The arbitration method between devices using a shared resource according to claim 1, wherein the output signal of the arbitration request receiving circuit of the second device is added.
力されその出力信号が第1の装置のゲート回路へ伝送さ
れる第1のANDゲートと、調停要求信号が入力されそ
の出力信号が自装置の調停要求受付回路へ伝送される第
2のANDゲートとで構成した請求項2記載の共有資源
を利用する装置間の調停方式。(3) The AND gate of the second device is connected to the first AND gate, into which the arbitration request signal is input and whose output signal is transmitted to the gate circuit of the first device; 3. The arbitration method between devices using a shared resource according to claim 2, further comprising a second AND gate which is transmitted to an arbitration request receiving circuit of the device itself.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16240290A JPH0452952A (en) | 1990-06-20 | 1990-06-20 | Arbitration method between devices that use shared resources |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16240290A JPH0452952A (en) | 1990-06-20 | 1990-06-20 | Arbitration method between devices that use shared resources |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0452952A true JPH0452952A (en) | 1992-02-20 |
Family
ID=15753929
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16240290A Pending JPH0452952A (en) | 1990-06-20 | 1990-06-20 | Arbitration method between devices that use shared resources |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0452952A (en) |
-
1990
- 1990-06-20 JP JP16240290A patent/JPH0452952A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA2026737C (en) | Bus master interface circuit with transparent preemption of a data transfer controller | |
| RU2110838C1 (en) | Device for optimization of universal bus access during direct memory access data transmission | |
| JPH0452952A (en) | Arbitration method between devices that use shared resources | |
| JPS59177628A (en) | Bus control circuit | |
| JPH04323755A (en) | Dma device | |
| JPH01193959A (en) | Common bus arbitration circuit | |
| JPH06243089A (en) | Bus acquiring system | |
| JPS6252336B2 (en) | ||
| JPS60169969A (en) | Multiprocessor system | |
| JPH0142017B2 (en) | ||
| JPS63143654A (en) | Arbiter circuit | |
| JP2003216569A (en) | External bus access method | |
| JPH03201155A (en) | Bus using right arbitration system | |
| JPH02141858A (en) | Dma controller | |
| JPS5851456B2 (en) | Multi-route control method for remote monitoring and control equipment | |
| JPH02165720A (en) | semiconductor integrated circuit | |
| JPH02153451A (en) | Bus control system | |
| JPS6355656A (en) | Bus control circuit | |
| JPH01119845A (en) | Bus arbitration circuit | |
| JPS6097461A (en) | Data bus control circuit | |
| JPH02300955A (en) | Common using system for external memory by plural microprocessors | |
| JPS6269320A (en) | Latch circuit for data priority | |
| JPH0210980B2 (en) | ||
| JPH02118837A (en) | interrupt controller | |
| JPH03237549A (en) | Memory access control system |