JPS6052466B2 - Distributed interrupt priority control method - Google Patents
Distributed interrupt priority control methodInfo
- Publication number
- JPS6052466B2 JPS6052466B2 JP8437781A JP8437781A JPS6052466B2 JP S6052466 B2 JPS6052466 B2 JP S6052466B2 JP 8437781 A JP8437781 A JP 8437781A JP 8437781 A JP8437781 A JP 8437781A JP S6052466 B2 JPS6052466 B2 JP S6052466B2
- Authority
- JP
- Japan
- Prior art keywords
- bus
- request
- devices
- shared
- interrupt
- 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.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/24—Handling requests for interconnection or transfer for access to input/output bus using interrupt
- G06F13/26—Handling requests for interconnection or transfer for access to input/output bus using interrupt with priority control
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Bus Control (AREA)
Description
【発明の詳細な説明】
本発明は複数の装置が共有する装置を有してシステムを
構成している場合の優先制御における割制御方法および
装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a split control method and device for priority control when a system is configured with a device shared by a plurality of devices.
複数の装置が共有バスラインに接続されていて、共有バ
スラインを介して各々の装置が情報伝送をおこなう場合
が少なくない。In many cases, a plurality of devices are connected to a shared bus line, and each device transmits information via the shared bus line.
また前記複数装置が共有する装置にそれぞれ独立に接続
されているが、同時にその装置を使用することはできず
、何らかの優先制御をおこなわないと競合の問題が発生
し混乱する。したがつて上記のような共有バスあるいは
共有装置(以下これらの類を共有資源と呼ぶ)の使用に
あたつて何らかの優先制御をおこなう必要がある。この
問題に対し従来は次のような方式がとられていた。その
1つに、複数装置からの使用要求を制御する優先制御装
置を設ける方式がある。Furthermore, although each of the plurality of devices is independently connected to a shared device, the devices cannot be used at the same time, and unless some kind of priority control is performed, a conflict problem will occur and confusion will occur. Therefore, it is necessary to perform some kind of priority control when using the above-mentioned shared buses or shared devices (hereinafter referred to as shared resources). Conventionally, the following methods have been used to address this problem. One method is to provide a priority control device that controls usage requests from multiple devices.
この装置は複数装置からの使用要求を受け付け、あらか
じめ定められた優先順位にしたがつて各装置に対し共有
資源の使用許可を与える。しカルながら優先制御装置が
必要であること、要求受付、許可信号の返送などのため
の信号線が必要になることさらに)は該優先制御装置の
異常は該複数装置の全てに影響を与えるなどの欠点があ
る。他の例には特公昭55−2948時がある。This device accepts usage requests from multiple devices and grants each device permission to use the shared resource according to a predetermined priority order. However, a priority control device is required, and a signal line is required for receiving requests, returning permission signals, etc.Furthermore, an abnormality in the priority control device will affect all of the multiple devices. There are drawbacks. Another example is the Special Publication of 1984-2948.
これは前記のような集中的な優先制御装置を設けない方
式である。競合制御を分散形にするとともに、ラウンド
ロピン的に資源の使用権が渡るようにしたもので、優先
度記憶素子のりセツト信号線、マスク信号線などが必要
で、所謂デイジーチェーン(DaisyChain)方
式に該当する。しかしチェーンの一部を取外したり、あ
るいは故障したりするとそれに続く装置の優先制御が不
可能になる欠点がある。またこの種の技術として、特開
昭M一81734号もあるが、同様の欠点を有する。そ
こで発明者らは、これらの欠点を解決するために次に述
べる方法を発明し、特願昭56−35378(昭和5@
3月13日付特許願)として特許出願を行つた。これら
の欠点を解決するためにわれわれはすでに出願した。This is a method that does not provide a centralized priority control device as described above. In addition to distributing contention control, the right to use resources is passed in a round-robin manner, and requires a priority storage element reset signal line, a mask signal line, etc., and is not compatible with the so-called daisy chain method. Applicable. However, there is a drawback that if a part of the chain is removed or breaks down, priority control of subsequent devices becomes impossible. Another technique of this type is Japanese Patent Application Laid-Open No. 181734, but it has the same drawbacks. In order to solve these drawbacks, the inventors invented the method described below, and filed patent application No. 56-35378 (Showa 5@
A patent application was filed as (patent application dated March 13). We have already filed an application to solve these shortcomings.
その要旨は1つの資源を共有する各装置において、共有
資源が現在いずれかの装置に使用されているか否かを判
別し、共有資源が使用されなくなつた時刻又は使用され
なくなるであろう予測時刻からの経過時間を測定し、各
装置に設定された各々異なる固有の時間に上記測定経過
時間が等しくなつた時、もしその装置が共有資源の使用
を要求していれば共有資源の使用権を得、共有資源を使
用できるようにしたことにある。しかし、複数の装置内
での共用装置使用要求レーベルの差異、例えば常用、緊
急用等、がある場合には十分対処しきれない場合がある
。即ち、通常時は共用装置の使用頻度が小さく、かつ共
用装置使用優先度は低いが緊急時には高優先度が要求さ
れるような装置が存在する場合、該発明のみでは!常用
、緊急用、又は割込等の概念がない。もし該装置の優先
度を高くしておけは他装置の待時間が長くなり、優先度
を低くしておけば割込としての用を為さないという欠点
があつた。本発明は上記発明に改良を加え、各装置内に
お3いて共用装置の使用要求をレベル分けし、各レベル
に応じた共用装置使用時の競合制御を各装置に分散して
行い得る制御方法を提供するものである。The gist of this is that each device that shares one resource determines whether the shared resource is currently being used by any device, and the time when the shared resource is no longer used or the estimated time when it will no longer be used. When the elapsed time is equal to the unique time set for each device, if the device requests the use of the shared resource, the device is granted the right to use the shared resource. The advantage lies in making it possible to use shared resources. However, if there are differences in shared device use request labels among multiple devices, such as regular use and emergency use, this may not be able to be adequately addressed. In other words, if there is a device that is used infrequently in normal times and has a low priority for shared device use, but requires high priority in an emergency, this invention alone cannot solve the problem! There is no concept of regular use, emergency use, or interruption. If the priority of the device is set high, the waiting time of other devices becomes long, and if the priority is set low, the interrupt is of no use. The present invention is a control method that improves the above invention, divides requests for use of a shared device into three levels within each device, and performs contention control when using the shared device according to each level by distributing it to each device. It provides:
本発明は、1つの装別を共用する各装置におい4て、共
用装置が現在いずれかの装置に使用されているか否かを
判路し、共用装置が使用されなくなつた時刻又は使用さ
れなくなるであろう使用時刻からの経過時間を計測し、
該計測時間があらかじめ定めた間に一致したとき何れか
の装置に割込要求があれば当該装置は割込要求を他の装
置に知らしめた後複数の装置にそれぞれ固有にあらかじ
め設定された時間内に他の装置が該共用装置の専有をな
し得なかつた場合に該共用装置を専有し、かつ共用装置
を専用したことを他の装置に知らしめるようにし、割込
的に共用装置を使用てきるようにしたことに特徴がある
。In the present invention, in each device that shares one equipment, it is determined whether the shared device is currently being used by any device or not, and the time when the shared device is no longer used or the time when the shared device is no longer used or Measure the elapsed time from the time of use,
When the measured times match a predetermined period, if any device receives an interrupt request, that device notifies the other devices of the interrupt request, and then transmits the interrupt request to each of the multiple devices at a unique preset time. If no other device is able to monopolize the shared device within a period of time, the shared device is used exclusively, and the shared device is made known to other devices that the shared device is dedicated, and the shared device is used interruptively. It is distinctive in that it has been made to work.
以下、本発明の実施例を図面により説明する。Embodiments of the present invention will be described below with reference to the drawings.
)第1図は本発明の一実施例を示す。本例では複数の装
置(CPU)11〜13がバス101および入出力装置
(1/σ)10を共用している。CPUll〜13はビ
ジーライン100を介して相互にバス101の使用状況
を監視している。ビージーライン100は本実施例では
短絡状態でI/Oバス101が使用状態であることを示
し、オープ7状態でI/0バス101が不使用状態であ
ることを示す。以下、各CPUll〜13がどのように
して、I/0バス101の使用権を得るかを第2図によ
り説明する。第2図は各CPUll〜13の本発明に係
るI/0バス101使用権制御回路の部分を示している
。サイクリツクにクロツクCLKのパルスをカウントす
るカウンタ120には分周器127を介してクロツクパ
ルスが入力されている。) FIG. 1 shows an embodiment of the present invention. In this example, a plurality of devices (CPUs) 11 to 13 share a bus 101 and an input/output device (1/σ) 10. The CPUs 11-13 mutually monitor the usage status of the bus 101 via the busy line 100. In this embodiment, the busy line 100 is short-circuited, indicating that the I/O bus 101 is in use, and in the open 7 state, indicating that the I/O bus 101 is not in use. Hereinafter, how each CPUll-13 obtains the right to use the I/0 bus 101 will be explained with reference to FIG. FIG. 2 shows a portion of the I/0 bus 101 usage right control circuit of each CPU11-13 according to the present invention. Clock pulses are inputted via a frequency divider 127 to a counter 120 that cyclically counts the pulses of the clock CLK.
ビジーライン100がシヨート状態(以下“L゛と表わ
す)であればりセツト状態にあり、ビジーラインがオー
プン状態(以下、゜゜H゛と表わす)になればカウント
を開始する。すなわちビジーラインが゜“L゛から“H
゛に変化し、何れかのCPUがI/Oバス101の使用
を終了すると各々のCPUll〜13内のカウンタ12
0は同時にカウントを開始する。カウンタ出力は比較器
121に入力され、各CPU毎に異なる値に設定されて
いる設定値C3と比較され、一致したときのみ出力信号
を発生し出力信号TO,によりフリツプフロツプ122
をトリガする。フリツプフロツプ122がトリガされた
時、もし使用要求Sreq又はLeqが無ければ、フリ
ツプフロツプ122はりセツト状態を保ちI/0バス1
01に対しても、ビジーライン100に対しても何ら影
響を与えない。When the busy line 100 is in the short state (hereinafter expressed as “L”), it is in the set state, and when the busy line is in the open state (hereinafter expressed as ゜゜H゛), it starts counting. That is, when the busy line is in the “゜゜” From L゛ to “H”
When any CPU finishes using the I/O bus 101, the counters 12 in each CPU11 to 13
0 starts counting at the same time. The counter output is input to a comparator 121 and compared with a set value C3 which is set to a different value for each CPU, and only when they match, an output signal is generated.
trigger. When the flip-flop 122 is triggered, if there is no usage request Sreq or Leq, the flip-flop 122 remains in the set state and the I/0 bus 1
01 and the busy line 100.
一方フリツプフロツプがトリガされた時、もし通常使用
要求(S,eq)又は割込使用要求(,Eq)があれば
フリツプフロツプ122はセツトされ出力信号を発生す
る。そして、使用要求があつてフリツプフロツプ122
が0Nという条件で論理積ゲート123が0Nし、出力
ゲート125を介して送信データをバス101を使用し
て送信する。バス101の占有を開始するとともにビジ
ーライン100を“L゛状態にする。それは第2図に示
すようにトランジスタ回路124で実現することができ
る。この状態で、すべてのCPU(装置)のカウンタ1
20はりセツト状態になるとともに、当該CPU以外の
CPU(当該CPUを11とすると12,13)はバス
101を使用することが出来ない状態になる。On the other hand, when the flip-flop is triggered, if there is a normal use request (S, eq) or an interrupt use request (,Eq), the flip-flop 122 is set and generates an output signal. Then, when there is a request for use, the flip-flop 122
Under the condition that is 0N, the AND gate 123 becomes 0N, and the transmission data is transmitted via the output gate 125 using the bus 101. It starts occupying the bus 101 and puts the busy line 100 in the "L" state. This can be realized by the transistor circuit 124 as shown in FIG. 2. In this state, the counter 1 of all CPUs (devices)
20 enters the reset state, and CPUs other than the CPU (12 and 13 if the CPU is 11) are unable to use the bus 101.
1/Oバス101の使用権を得たCPUは一連のデータ
の送信処理終了後使用要求を解除する。The CPU that has obtained the right to use the 1/O bus 101 releases the use request after completing a series of data transmission processes.
1/0バス101に対する出力ゲート125を解放し、
同時にビジーライン100を“H′3状態にする。releasing output gate 125 for 1/0 bus 101;
At the same time, the busy line 100 is set to the "H'3" state.
以後各CPU内のカウンタ120は初期状態からカウン
トを開始し上記動作をくりかえす。Thereafter, the counter 120 in each CPU starts counting from the initial state and repeats the above operation.
以上が通常使用要求と割込使用要求に共通した動作であ
るが、次に割込使用要求特有の動作を説明する。比較器
131はカウンタ120の出力が“1゛3となつたとき
のみ出力信号を発生し出力信号Teiによりフリツプフ
ロツプ132をトリガする。The above is the operation common to the normal use request and the interrupt use request. Next, the operation specific to the interrupt use request will be explained. The comparator 131 generates an output signal only when the output of the counter 120 becomes "1.3" and triggers the flip-flop 132 by the output signal Tei.
フリツプフロツプ132がトリガされた時、もし割込使
用要求(1、,q)が無ければ、フリツプフロツプ13
2はりセツト状態を保ちワンシヨツトトリガ回路134
に対しては何ら影響を与えない。一方、フリツプフロツ
プ132がトリガされた時、もし割込使用要求(、Eq
)があればフリツプフロツプ132はセツトされ、その
出力によリワンシヨツトトリガ回路134がトリガされ
論理和135およびトランジスタ124を介してビジー
ライン100を一定時間“L゛とし割込要求を発する。
このようにして、各装置のうちの1つでも、カウンタ値
が66r1の時点でビジーライン100を゜゜L゛とす
れば、フリツプフロツプ130がセツトされる。以上の
説明のもとに、割込要求の有無と割込要求を発している
装置が当該装置か他の装置かによつて場合分けし、その
各々の動作を説明する。1)全ての装置が割込要求を発
生しなかつた場合カウンタ120はカウントアツプされ
、フリツプフロツプ130およびフリツプフロツプ13
2はセツトされないため論理積ゲート133はオフ状態
となり、論理和ゲート129には影響をおよぼさない。When flip-flop 132 is triggered, if there is no interrupt use request (1, q), flip-flop 13
2 The one-shot trigger circuit 134 maintains the set state.
has no effect on. On the other hand, when the flip-flop 132 is triggered, if the interrupt use request (, Eq
), the flip-flop 132 is set, and its output triggers the re-upshot trigger circuit 134, which sets the busy line 100 to "L" for a certain period of time via the logical sum 135 and the transistor 124 to issue an interrupt request.
In this way, if one of the devices sets the busy line 100 to 0.0L when the counter value is 66r1, the flip-flop 130 is set. Based on the above explanation, the operations will be explained based on the presence or absence of an interrupt request and whether the device issuing the interrupt request is the device or another device. 1) If none of the devices generates an interrupt request, the counter 120 counts up, and the flip-flop 130 and the flip-flop 13
2 is not set, AND gate 133 is turned off, and OR gate 129 is not affected.
1)当該装置が割込要求を発した場合
カウンタ120はカウントアツプされフリツプフロツプ
130およびフリツプフロツプ132は共にセツトされ
るため論理積ゲート133はオア状態となり論理和ゲー
ト129には影響をおよぼさない。1) When the device issues an interrupt request, the counter 120 is counted up and the flip-flops 130 and 132 are both set, so the AND gate 133 becomes an OR state and the OR gate 129 is not affected.
この場合は割込要求(1.eq)が出力されているから
、もしもカウンタが設定値(C,)に一致すれば、前に
述べたようにして当該装置がバス101の使用権を得る
。但し、当該装置よりも優先度の高い即ち設定値の小さ
い他の装置が同様の動作を行つた場合には、その装置か
ら発せられるビジー信号により、分周器127およびカ
ウンタ120がりセツトされるため、比較器121出力
Tc$は発生せず、当該装置のバス101使用は他の装
置がバス101使用終了以後まで待たされる。{)当該
装置が割込要求を発せず、他の装置の1つ以上が割込要
求を発した場合カウンタ120はカウントアツプされフ
リツプフロツプ130はセツトされフリツプフロツプ1
32はりセツト状態を保つから論理積ゲート133が0
Nし論理和ゲート129を通してフリツプフロツプ12
2はりセツト状態に保たれ当該装置の使用要求Sreq
およびIreqは受付られない。In this case, since an interrupt request (1.eq) is output, if the counter matches the set value (C,), the device obtains the right to use the bus 101 as described above. However, if another device with a higher priority, that is, a smaller setting value, performs a similar operation than the device in question, the frequency divider 127 and counter 120 will be reset by the busy signal issued from that device. , the output Tc$ of the comparator 121 is not generated, and the use of the bus 101 by the device is made to wait until after other devices finish using the bus 101. {) If the device in question does not issue an interrupt request, but one or more other devices issue an interrupt request, counter 120 counts up, flip-flop 130 is set, and flip-flop 1
32 maintains the set state, so the AND gate 133 becomes 0.
Flip-flop 12 through N and OR gate 129
2 is kept in the set state and requests for use of the device Sreq
and Ireq will not be accepted.
この状態は他の装置のうちのどれか、即ち、割込要求を
発した装置のうち最も優先度の高い装置がバス101を
専有しビジー信号を発するまで保たれる。128は0R
ゲートであり、Sreq,.I.eqのどちらも発せら
れていない場合フリツプフロツプ122をりセツトする
ためのものである。This state is maintained until one of the other devices, ie, the device with the highest priority among the devices that issued the interrupt request, occupies the bus 101 and issues a busy signal. 128 is 0R
A gate, Sreq, . I. This is to reset the flip-flop 122 when neither eq is asserted.
以上述べたようにして、どの装置の割込要求もトての装
置の通常使用要求に優先し、しかも複数り割込要求間に
おいては先着優先かつ同時の場合ま設定値に従つた優先
度により、バス101の使1]が許されることが判る。As described above, interrupt requests for any device have priority over normal usage requests for the other device, and among multiple interrupt requests, priority is given to the first come first served, and if they are simultaneous, priority is given according to the set value. , the use of bus 101] is allowed.
以上の動作のうち割込が全くない場合のタイム1アート
を第3図a−hに示す。第3図では各CPUに割当られ
ている設定値Csを、CPUllは゜゜2゛、CPUl
2は“3゛、CPUl3は“4゛としている。まず最初
カウンタ値が゜゜2゛となつた時点160ではCPUl
lとCPUl3が使用要求151および154を出して
いる。Time 1 art in the case where there is no interruption among the above operations is shown in FIGS. 3a to 3h. In Figure 3, the setting value Cs assigned to each CPU is ゜゜2゛, CPUll is ゜゜2゛,
2 is set to "3", and CPU13 is set to "4". First, at the time 160 when the counter value reaches ゜゜2゛, the CPU1
1 and CPU 13 are issuing usage requests 151 and 154.
この時点では設定値が2であるところのCPUllがバ
スの使用権を獲得し、ただちにビジーラインに対しビジ
ー信号150を送出し、バスを使用する。これによりカ
ウンタはりセツトされ、その状態はCPUllがバスの
使用を終了するまで続く。CPUllがバスの使用を終
了152するとビジーラインが解放されカウンタは再び
カウントを開始する。ここでCPUl3からの使用要求
154はカウンタ値が′6『゛となつた時点161で受
付けられ、CPUl3は上で述べたような所定の動作を
する。その後発せられたCPUl2からの使用要求15
7はCPUl3のバス使用155が終了してカウンタ値
が゜“3゛となつた時点162で受付けられる。154
はCPUl3がバスの使用を終了155して要求を解除
した点、同時にビジーラインも解除する153。At this point, CPUll, whose set value is 2, acquires the right to use the bus and immediately sends a busy signal 150 to the busy line to use the bus. This resets the counter, which remains in that state until CPU11 finishes using the bus. When CPUll finishes using the bus 152, the busy line is released and the counter starts counting again. Here, the usage request 154 from the CPU 13 is accepted at the time 161 when the counter value reaches '6'', and the CPU 13 performs the predetermined operation as described above. Usage request 15 from CPUl2 issued after that
7 is accepted at the time 162 when the bus use 155 of CPU13 is finished and the counter value reaches ゜"3゛. 154
The CPU 13 terminates the use of the bus 155 and releases the request, and at the same time releases the busy line 153.
次に割込がある場合についてのタイムチヤートを第4図
a−kにより説明する。本図においても各CPUに割当
てられている設定値Csは第3図と同じである。まず最
初カウンタ値が“1゛となつた時点261ではCPUl
lの通常使用要求259およびCPUl3の割込使用要
求252が出ている。Next, time charts for the case where there is an interruption will be explained with reference to FIGS. 4a to 4k. Also in this figure, the set value Cs assigned to each CPU is the same as in FIG. 3. First, at the time 261 when the counter value reaches "1", the CPU
A normal use request 259 for CPU 1 and an interrupt use request 252 for CPU 13 are issued.
この時点では割込要求252を発しているところのCP
Ul3がビジーライン上に割込要求信号250を出力し
、他のCPUの要求を禁止する。その後一旦りセツトさ
れたカウンタカ幼ウントアツプし、カウント値が“4゛
となるとCPUl3がビジー信号251を送出し、バス
を使用する。これ.によりカウンタはりセツトされ、そ
の状態はCPUl3がバスの使用を終了するまで続く。
CPUl3がバスの使用を終了253するとビジーライ
ンが解放されカウンタは再びカウントを開始する。次に
カウンタ値が゜“1゛となつた時点263ではCPUl
lの通常使用要求が出力されているが同時にCPUl2
の割込使用要求が出力されているため、CPUl2は前
述のCPUl3と同様の動作をする。CPUl2のバス
使用が終了257後カウントが開始され、カウンタ値が
゜゜1゛となつた時点265ではどのCPUからも割込
要求は出ておらず、CPUllの通常使用要求のみが出
力されているから、カウント値が6゜2゛となつた時点
てCPUllがビジー信号を発しバスの使用が受けられ
る。259はCPUllがバスの使用を終了260して
要求を解除した点であり、同時にビジーラインも解除す
る258。At this point, the CP that is issuing the interrupt request 252
Ul3 outputs an interrupt request signal 250 on the busy line, inhibiting requests from other CPUs. Thereafter, the counter that has been set once is counted up, and when the count value reaches "4", the CPU 13 sends out a busy signal 251 and uses the bus.The counter is thereby reset, and the state is such that the CPU 13 does not use the bus. Continues until finished.
When the CPU 13 finishes using the bus 253, the busy line is released and the counter starts counting again. Next, at the time 263 when the counter value reaches "1", the CPU
A normal use request for CPU l is output, but at the same time
Since the interrupt use request is output, CPU12 operates in the same manner as CPU13 described above. Counting starts after the bus use of CPU12 ends 257, and at the time 265 when the counter value reaches ゜゜1゛, no interrupt request has been issued from any CPU, and only the normal use request of CPUll has been output. , when the count value reaches 6.2 degrees, CPUll issues a busy signal and the bus can be used. 259 is the point at which CPUll terminates the use of the bus 260 and releases the request, and at the same time releases the busy line 258.
第5図a−kはCPUllおよびCPUl2から・通常
使用要求が発せられ、既にCPUllがバス使用権を獲
得した時点でCPUl3から割込使用要求が発せられた
場合を示す。FIGS. 5a to 5k show a case in which normal use requests are issued from CPUll and CPUl2, and an interrupt use request is issued from CPUl3 at the time when CPUll has already acquired the right to use the bus.
カウンタ値が6621となつた時点360では、CPU
llの通常使用要求351およびCPUl2の通常使用
要求358が出ている。At the time point 360 when the counter value reaches 6621, the CPU
A normal use request 351 for CPU11 and a normal use request 358 for CPU12 are issued.
この時点ではCPUllがビジー信号350を送出しバ
スを使用する352。さらにCPUllがバス使用中に
、CPUl3に割込使用要求355が発生した場合には
、CPUllがバス使用を終了351し、カウンタ値が
゛゜1゛となつた時点361においてCPUl3からビ
ジーライン上に割込要求信号353出力され、他のCP
Uの要求を禁止する。その後、第4図の説明と同様の動
作を行い、CPUl3の割込使用が終了後355、CP
Ul2の通常使用359が行われる。以上のようにして
、1つのCPUがバス使用中に、あるCPUに割込使用
要求が発した場合には該時点で進行中のバス使用は何ら
影響を受けずバス使用を継続し、さらに刻バス使用が終
了後は、割込要求がどの通常使用要求よりも優先される
ことが判る。At this point, CPUll sends a busy signal 350 and uses the bus 352. Furthermore, if an interrupt use request 355 occurs to CPU13 while CPU11 is using the bus, CPU11 finishes using the bus 351, and at the time 361 when the counter value reaches ゛゜1゛, an interrupt is issued from CPU13 on the busy line. Input request signal 353 is output and other CP
Forbid U's request. After that, the same operation as explained in FIG.
A normal use 359 of Ul2 takes place. As described above, if an interrupt use request is issued to a CPU while one CPU is using the bus, the bus use that is currently in progress will not be affected and the bus will continue to be used. It can be seen that after bus use is finished, interrupt requests take priority over any normal use requests.
以上のようにして、本実施例ては割込の制御を可能とし
ているが、ここで注意しなければならないことは、割込
要求用の設定値として“1゛を使用しているのは、ハー
ドウエア簡略化のためである。場合によつては割込用の
タイムスロツトを別のハードウエアで構成することによ
り、設定値の゜゜1゛を使用する必要性を無くすことが
できる。また、本実施例におけるアツプカウンタ、比較
器等をダウンカウンタ、プリセツタブルカウンタに置き
換え得ることは容易に想像ができよう。As described above, this embodiment makes it possible to control interrupts, but it should be noted that the reason for using "1" as the setting value for interrupt requests is that This is to simplify the hardware.In some cases, by configuring the interrupt time slot with separate hardware, it is possible to eliminate the need to use the set value of ゜゜1゛.Also, It is easy to imagine that the up counter, comparator, etc. in this embodiment can be replaced with a down counter or presettable counter.
さらに、この実施例では共有資源の使用終了後ビジーラ
インを解除しているが、これはハードウエアの簡素化を
図つたものである。より一層のスループツトの向上を望
むならば、共有資源の使用終了前一定時間内にビジーラ
インを解除する方式が採用できる。ただし、この場合、
1つの装置が共有資源の使用を開始した時点においてそ
れ以前の他の装置の共有資源使用が終了していることを
保証するように上記一定時間を定める必要がある。これ
は共有資源の使用効率を高めるためにあらかじめ終了時
刻を予測してカウンタのカウントを開始させ、使用要求
が発せられている装置が終了に続いていちはやく共有資
源の利用ができるようにするためである。Furthermore, in this embodiment, the busy line is released after the shared resource is used, but this is done to simplify the hardware. If it is desired to further improve the throughput, a method can be adopted in which the busy line is released within a certain period of time before the end of use of the shared resource. However, in this case,
It is necessary to set the above-mentioned certain period of time to ensure that at the time one device starts using the shared resource, other devices have finished using the shared resource. This is done in order to increase the efficiency of shared resource usage by predicting the end time in advance and starting counting on the counter, so that the device that has issued the usage request can use the shared resource as soon as it ends. be.
さらに、本実施例ではカウンタおよびクロツクを用いて
バス使用が終了してからの時間を測定しているが、この
部分は例えばワンシヨツト回路等で置き替えることが可
能である。Further, in this embodiment, a counter and a clock are used to measure the time elapsed after bus use ends, but this portion can be replaced with, for example, a one-shot circuit.
さらに本実施例のようにカウンタおよびクロツク信号を
用いる装置においては、長時間にわたり全く使用要求が
発せられない場合、すなわちビジー信号がどの装置から
も発ぜられない場合には、各クロツクの周波数のズレに
より各カウンタが同期してカウントができなくなる恐れ
がある。Furthermore, in a device that uses a counter and a clock signal as in this embodiment, if no usage request is issued for a long time, that is, if no busy signal is issued from any device, the frequency of each clock will change. Due to the discrepancy, there is a risk that each counter will not be able to synchronize and count.
これを避けるために、もしカウンタがカウントアウトし
た場合は、一瞬間強制的にビジー信号を送信するように
しておけば、そのビジー信号によりカウンタの同期がと
れることとなる。さらに、本発明がビジーラインをこと
さら必要としないことは先願で述べた。In order to avoid this, if the counter counts out, a busy signal is forcibly transmitted for a moment, and the counter is synchronized by the busy signal. Furthermore, it was stated in the earlier application that the present invention does not particularly require a busy line.
ここではそれについては省略する。本発明によると、共
用システムにおける通常の共用装置使用の他に割込的な
使用も、競合制御を各装置に分散して行えるため、信頼
性の向上および応答性の向上が図れる。I will omit that here. According to the present invention, in addition to the normal use of a shared device in a shared system, contention control can be distributed to each device for interruptive use, thereby improving reliability and responsiveness.
第1図は本発明を複数CPU間の共有バス使用権制御に
採用した一実施例のシステム構成を、第2図は第1図に
おける本発明による制御回路構成を、第3図、第4図は
第1図におけるバス使用権の推移を、第5図は通常要求
と割込要求の関係を説明する図を、それぞれ示す。
121,131・・・・・・比較器、120,130,
122,132・・・・・フリツプフロツプ、134・
・・・・・ワンシヨツト回路。FIG. 1 shows a system configuration of an embodiment in which the present invention is adopted for shared bus right control between multiple CPUs, FIG. 2 shows a control circuit configuration according to the present invention in FIG. 1, and FIGS. 1 shows the transition of bus usage rights in FIG. 1, and FIG. 5 shows a diagram explaining the relationship between normal requests and interrupt requests. 121, 131... Comparator, 120, 130,
122, 132...Flip-flop, 134.
...One shot circuit.
Claims (1)
該複数の装置が該共用装置の使用状態を監視し、該共用
装置を必要に応じて使用するシステムであつて、該複数
の装置の何れからの使用もなくなつたことを判別してそ
の時点からの経過時間を該複数装置各々において計測し
、該計測経過時間があらかじめ設定された固有の時間と
一致しかつ当該装置に該共用装置の使用要求があるとき
当該装置が該共用装置を使用することができるシステム
において、該複数の装置に割込要求があるときは、該複
数の装置の何れからの使用もなくなつた時点からの最小
カウント時間にて、他の装置からの前記使用要求による
該共用装置の使用を禁止し、前記計測経過時間があらか
じめ設定された固有の時間と一致したとき、当該装置が
割込要求による送信を他の装置の使用要求に優先して行
ない該共用装置を使用することを特徴とする分割形優先
割込制御方法。1 Has a shared device that can be used by multiple devices,
A system in which the plurality of devices monitor the usage status of the shared device and use the shared device as necessary, and at the point when it is determined that the shared device is no longer being used by any of the plurality of devices; The device uses the shared device when the measured elapsed time matches a unique time set in advance and there is a request for the device to use the shared device. In a system that allows interrupt requests to be made to the plurality of devices, the interrupt request from the other device will be processed within the minimum count time from the point in time when there is no longer any use from any of the plurality of devices. When the use of the shared device is prohibited and the measured elapsed time coincides with a unique time set in advance, the device transmits an interrupt request with priority over the use requests of other devices and uses the shared device. A split-type priority interrupt control method characterized in that it is used.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8437781A JPS6052466B2 (en) | 1981-06-03 | 1981-06-03 | Distributed interrupt priority control method |
| US06/356,891 US4494113A (en) | 1981-03-13 | 1982-03-10 | Method and apparatus for self-control in distributed priority collision |
| DE3209037A DE3209037A1 (en) | 1981-03-13 | 1982-03-12 | METHOD AND ARRANGEMENT FOR SELF-CONTROL IN A DISTRIBUTED PRIORITY COLLISION |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP8437781A JPS6052466B2 (en) | 1981-06-03 | 1981-06-03 | Distributed interrupt priority control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57199030A JPS57199030A (en) | 1982-12-06 |
| JPS6052466B2 true JPS6052466B2 (en) | 1985-11-19 |
Family
ID=13828843
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP8437781A Expired JPS6052466B2 (en) | 1981-03-13 | 1981-06-03 | Distributed interrupt priority control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6052466B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03284161A (en) * | 1990-03-30 | 1991-12-13 | Chodendo Hatsuden Kanren Kiki Zairyo Gijutsu Kenkyu Kumiai | Rotor of superconductive revolving armature |
-
1981
- 1981-06-03 JP JP8437781A patent/JPS6052466B2/en not_active Expired
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03284161A (en) * | 1990-03-30 | 1991-12-13 | Chodendo Hatsuden Kanren Kiki Zairyo Gijutsu Kenkyu Kumiai | Rotor of superconductive revolving armature |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57199030A (en) | 1982-12-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5621897A (en) | Method and apparatus for arbitrating for a bus to enable split transaction bus protocols | |
| US4972313A (en) | Bus access control for a multi-host system using successively decremented arbitration delay periods to allocate bus access among the hosts | |
| US5410710A (en) | Multiprocessor programmable interrupt controller system adapted to functional redundancy checking processor systems | |
| EP1016957B1 (en) | Method of managing resources shared by multiple processing units | |
| US5239631A (en) | Cpu bus allocation control | |
| US5274785A (en) | Round robin arbiter circuit apparatus | |
| JPH0467224B2 (en) | ||
| KR930002787B1 (en) | Peripheral controller and adapter interface | |
| US20080270658A1 (en) | Processor system, bus controlling method, and semiconductor device | |
| US4789926A (en) | Digital data processing arbitration system | |
| JPH08255126A (en) | Bus access arbitration system and method for recognition bus access | |
| KR101050019B1 (en) | Memory interface for systems with multiple processors and one memory system | |
| US4896266A (en) | Bus activity sequence controller | |
| US12468646B2 (en) | Device and method for sharing resource via bus | |
| US5649209A (en) | Bus coupling information processing system for multiple access to system bus | |
| US7467245B2 (en) | PCI arbiter | |
| JPH10143467A (en) | Method and device for arbitrating bus ownership in data processing system | |
| US10983937B2 (en) | Method for managing access to a shared bus and corresponding electronic device | |
| US5150466A (en) | Flexible distributed bus priority network | |
| US6571306B1 (en) | Bus request mechanism for bus master which is parked on a shared bus | |
| US6889283B2 (en) | Method and system to promote arbitration priority in a buffer queue | |
| JPS6052466B2 (en) | Distributed interrupt priority control method | |
| JPS594733B2 (en) | Kyoutsuba Seigiyo Cairo | |
| US5241629A (en) | Method and apparatus for a high performance round robin distributed bus priority network | |
| US7325082B1 (en) | System and method for guaranteeing transactional fairness among multiple requesters |