JPS6175452A - Interruption circuit - Google Patents

Interruption circuit

Info

Publication number
JPS6175452A
JPS6175452A JP19683884A JP19683884A JPS6175452A JP S6175452 A JPS6175452 A JP S6175452A JP 19683884 A JP19683884 A JP 19683884A JP 19683884 A JP19683884 A JP 19683884A JP S6175452 A JPS6175452 A JP S6175452A
Authority
JP
Japan
Prior art keywords
interrupt
output
interruption
processing
terminal
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
Application number
JP19683884A
Other languages
Japanese (ja)
Inventor
Katsuhide Yamaoka
山岡 勝秀
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP19683884A priority Critical patent/JPS6175452A/en
Publication of JPS6175452A publication Critical patent/JPS6175452A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • G06F13/26Handling requests for interconnection or transfer for access to input/output bus using interrupt with priority control

Abstract

PURPOSE:To prevent interruption processing from being interrupted by other interruptions and to initiate an efficient interruption by giving respective interruption requests, having equal priority and inhibiting other interruptions during interruption processing. CONSTITUTION:While a low-priority peripheral device 22 performs interruption processing, a flip-flop 33 and an OR gate 34 detect the peripheral device 22 in the act of performing the interruption processing and inhibits an interruption from a high-priority periphery device 21. Then, the transmission of the interruption inhibition to the low-priority peripheral device 22 by this peripheral device 21 through a daisy chain is cut off by a flip-flop 31 and an OR gate 32, and the interruption permission of the peripheral device 22 is held. Consequently, the interruption of the interruption processing of the peripheral device 22 by other peripheral devices is eliminated. Thus, the interruption is carried out efficiently.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は割り込み回路に係り、特にデイジー・チェーン
において優先順位を等しくした割り込み回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to an interrupt circuit, and more particularly to an interrupt circuit with equal priorities in a daisy chain.

〔発明の技術的背景とその問題点〕[Technical background of the invention and its problems]

電子計算機等の情報処理装置に多用される割り込み処理
の一方式に、デイジー・チェーンによって優先順位付け
された割り込み処理方式がある。
2. Description of the Related Art One interrupt processing method frequently used in information processing devices such as electronic computers is an interrupt processing method prioritized by a daisy chain.

このデイジー・チェーン(よる優先順位付けは。This daisy chain (prioritization by

割り込み要求を伝達するだめの入力端と出力端を備えた
複数の情報処理装置において、夫々出力端を次の情報処
理装置の入力端に接続、即ち「いもづる式」に直列に接
続してチェーンを構成し、下位の装置に順次チェーン信
号を伝達させることによって決定する。つまり、装置で
電子計算機の中央処理装置(CPU )に対する割り込
み要求が発生した場合に、その装置よりも下位に接続さ
れた装置に割り込み要求の発生を禁止する。従って、こ
の方式ではチェーンの終端はど優先順位が低くなる。
In a plurality of information processing devices equipped with input terminals and output terminals for transmitting interrupt requests, each output terminal is connected to the input terminal of the next information processing device, that is, connected in series in the "imozuru style" to form a chain. It is determined by sequentially transmitting chain signals to lower-level devices. That is, when a device generates an interrupt request to the central processing unit (CPU) of a computer, generation of the interrupt request is prohibited to devices connected lower than the device. Therefore, in this method, the end of the chain has a lower priority.

このデイジー・チェーンを用いた割り込み回路が雑誌「
トランジスタ技術1982年9月号」の第259頁及び
K 260頁に記載されており、この割り込み回路を第
6図に示して、以下その概要を説明する。
An interrupt circuit using this daisy chain was published in the magazine “
This interrupt circuit is described in "Transistor Technology September 1982 issue", pages 259 and K, pages 260, and this interrupt circuit is shown in FIG. 6, and its outline will be explained below.

同図において、CPUl0の割り込み要求入力端子開に
は、周辺装置11〜14の割り込み要求を出力する出力
端子需がワイヤード・オアで接続てれ、抵抗Rによりグ
ル・アップされている。また、優先順位の最も高い装置
11の割り込み可能入力端子IEIを″H’に保持する
。この割り込み可能入力端子IEIに”H”が印加され
ている限り、その装置は割り込み要求を発生することが
出来るので、装置11は常に割り込み要求を発生するこ
とが可能となる。そして、上記装置11の割り込み可能
出力端子IEOを、その次に低い優先順位を有する装置
12の入力端子IEIに接続する。この割り込み可能出
力端子IEOから′L#が出力されると、その装置より
も下位に接続された装置の入力端子IEIには1L”が
印加されるので、その装置は割り込み要求の発生が禁止
される。出力端子IEOから”L”が出力されるのは、
その装置が割り込み要求を発生して、下位の装置の割り
込みを禁止する場合と、その装置の入力端子IEIに′
L″が印加して割り込みが禁止され、その割り込み禁止
を下位に伝達する場合である。
In the figure, output terminals for outputting interrupt requests of peripheral devices 11 to 14 are connected to the interrupt request input terminal of the CPU 10 by wired OR, and are pulled up by a resistor R. Also, the interrupt enable input terminal IEI of the device 11 with the highest priority is held at "H". As long as "H" is applied to this interrupt enable input terminal IEI, that device cannot generate an interrupt request. Therefore, the device 11 can always generate an interrupt request. Then, the interrupt enable output terminal IEO of the device 11 is connected to the input terminal IEI of the device 12 having the next lowest priority. When 'L#' is output from the interrupt enable output terminal IEO, 1L" is applied to the input terminal IEI of a device connected below that device, so that device is prohibited from generating an interrupt request. . “L” is output from the output terminal IEO because
When the device generates an interrupt request and disables the interrupt of the lower device, and when the input terminal IEI of the device is
This is a case where interrupts are prohibited by applying L'' and the interrupt prohibition is transmitted to the lower layer.

以下、順次出力端子IEOを下位の装置の入力端子IE
Iに接続し、最下位の優先順位である装置14の出力端
子IEOは放置しておく。以上により装置11〜14間
にデイジー・チェーンが形成され、装置11が最上位の
優先順位を有し、装置14が最下位のそれを有すること
になる。
Below, the output terminal IEO is sequentially converted into the input terminal IEO of the lower device.
The output terminal IEO of the device 14, which has the lowest priority, is left alone. A daisy chain is thus formed between devices 11-14, with device 11 having the highest priority and device 14 having the lowest priority.

上記構成の割り込み回路において、初期状態ではすべて
の装置11〜14の入力端子IEIは@H#であるので
、どの装置も割り込み要求を発することができる。ここ
で、装置13がCPUl0に対して割り込み要求を発生
したとすると、この装置13は出力端子IEOを°L#
に落としてそれより下位の装置14の割り込み要求の発
生を禁止する。
In the interrupt circuit configured as described above, in the initial state, the input terminals IEI of all the devices 11 to 14 are @H#, so any device can issue an interrupt request. Here, if the device 13 generates an interrupt request to CPU10, this device 13 outputs the output terminal IEO to °L#
, and prohibits generation of interrupt requests from lower-level devices 14.

割り込み要求を発した装置13は、CPUl0から割り
込み応答がきた時点で、自分のベクトルをCPU10の
データバスを介して送出して、CPU10のプログラム
を割り込み処理ルーチンへ飛ばし、割り込み処理を行な
う。
When the device 13 that has issued the interrupt request receives an interrupt response from the CPU 10, it sends its own vector via the data bus of the CPU 10, skips the program of the CPU 10 to the interrupt processing routine, and performs the interrupt processing.

このとき、割り込み処理を行なっている装置13より下
位の優先順位の装置14は、その入力端子IEIにL″
が印加されているので割り込み要求を出すことは出来な
い。一方、装置13より優先順位の高い装置11.12
は、その入力端子IEIには”H”が印加されたままで
ある−ので、装置13が割り込み処理中であっても、割
り込み要求を発生することができる。
At this time, the device 14 that has a lower priority than the device 13 that is processing the interrupt has its input terminal IEI set to L''.
is being applied, it is not possible to issue an interrupt request. On the other hand, devices 11 and 12 that have higher priority than device 13
Since "H" remains applied to its input terminal IEI, an interrupt request can be generated even when the device 13 is processing an interrupt.

上述の説明では、上記装置11〜14は一般的な情報処
理装置としていたが、例えば通信回線に接続され通信回
線を介し伝送データを受信処理する装置とすると、次の
ような問題点が生ずる。即ち装置13に接続された通信
回線からデータが伝送され、装置13が割り込み要求を
発して伝送データの受信処理を行なっている場合に、そ
れよりも優先順位の高い装置11又は装置12に接続さ
れた通信回線からデータが伝送されると、その装置11
.12が割り込み要求を発して受信処理を行なうので、
装置13の割り込み処理が中断させられてしまい、伝送
データを受信できなくなってしまうといった問題点があ
る。
In the above description, the devices 11 to 14 are general information processing devices, but if they are connected to a communication line and receive and process transmitted data via the communication line, for example, the following problems arise. That is, when data is transmitted from a communication line connected to the device 13 and the device 13 issues an interrupt request and is processing the reception of the transmitted data, the device 13 is connected to the device 11 or device 12 with a higher priority. When data is transmitted from the communication line, the device 11
.. 12 issues an interrupt request and performs reception processing, so
There is a problem in that the interrupt processing of the device 13 is interrupted, making it impossible to receive transmitted data.

この問題点は、優先順位が付けられた割り込みにおいて
は、ある特定の割り込みがあった時に、下位の優先順位
を有する割り込みは禁止できるが、上位の優先順位を有
する割り込みに対しては禁止を行なえないことに起因す
る。
The problem with this problem is that when a specific interrupt occurs, interrupts with lower priorities can be disabled, but interrupts with higher priorities cannot be disabled. This is due to the fact that there is no such thing.

他の割り込み処理方式として、優先順位を付けないで周
辺装置各々が自由に割り込み要求を発生し、その割り込
み要求に対してCPUが割り込み許可を与える方式もあ
るが、その割り込み許可を与える処理が非常に複雑にな
る欠点がある。さらに、処理が複雑になるため、割り込
み許可を与え名までに要する時間が増大し、高速の割り
込み処理が非常に複雑になる欠点がらる。
As another interrupt processing method, there is a method in which each peripheral device freely generates an interrupt request without prioritizing it, and the CPU grants interrupt permission in response to the interrupt request, but the process of granting the interrupt permission is very difficult. has the disadvantage of becoming complicated. Furthermore, since the processing becomes complicated, the time required to grant and register an interrupt increases, resulting in the disadvantage that high-speed interrupt processing becomes extremely complicated.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、デイジー・チェーンを用いた割り込み
回路において、各割り込み要求に対して等しい優先順位
をもたせて11割り込み処理中には他の割り込みを禁止
することのできる割り込み回路を提供することにある。
An object of the present invention is to provide an interrupt circuit using a daisy chain, which can give equal priority to each interrupt request and prohibit other interrupts while 11 interrupts are being processed. be.

〔発明の概要〕[Summary of the invention]

この発明では、ディジー9チエーンを用いた割り込み回
路において、例えば第1図の周辺装置22が割り込み処
理を行なうとき、周辺装置22が割り込み中であること
を7リツプフロツプ33、オアゲート34で検出し、上
位の周辺装置21の割り込みを禁止する。この周辺装置
21がデイジー・チェーンによって割り込み禁止を下位
の周辺装置22に伝達するのを7リツプフロツプ31゜
オアゲート32によって遮断し、周辺装置22の割り込
み許可を保持することによって上記目的を達成している
In this invention, in an interrupt circuit using a daisy-9 chain, when the peripheral device 22 shown in FIG. interrupts of peripheral devices 21 are prohibited. The above purpose is achieved by blocking the peripheral device 21 from transmitting interrupt disabling to the lower peripheral device 22 through a daisy chain using the 7 lip-flop 31° OR gate 32 and maintaining the interrupt permission of the peripheral device 22. .

〔発明の実施例〕[Embodiments of the invention]

以下、図面を参照して、2個の周辺装置に本発明の割り
込み回路を適用した場合の一実施例を説明する。
An embodiment in which the interrupt circuit of the present invention is applied to two peripheral devices will be described below with reference to the drawings.

この実施例の回路図を示す第1図において、CPU20
の割り込み要求入力・端子型には、情報処理を行なう周
辺装置21.22の割り込み要求出力端子INTがワイ
ヤード・オアで接続され、抵抗Rによりプルφアップル
される。装置210割り込み可能出力端子IEOと装置
22の割り込み可能出力端子IEIが割り込み制御回路
30を介して接続され、デイジー・チェーンが形成され
ている。
In FIG. 1 showing the circuit diagram of this embodiment, the CPU 20
The interrupt request input/terminal type of is connected to the interrupt request output terminals INT of peripheral devices 21 and 22 that perform information processing by wired OR, and is pulled up by a resistor R. The interrupt-enabled output terminal IEO of device 210 and the interrupt-enabled output terminal IEI of device 22 are connected through interrupt control circuit 30 to form a daisy chain.

さらに、装置22の出力端子IEOは上記制御回路30
を介して装置21の入力端子IEIに接続されている。
Furthermore, the output terminal IEO of the device 22 is connected to the control circuit 30.
is connected to the input terminal IEI of the device 21 via.

ここでT1〜T4は制御回路の端子である。Here, T1 to T4 are terminals of the control circuit.

上記制御回路30のD壓フリップ70ッグ(以下FFと
いう)31は、装置22が割り込み処理中でろる場合に
装置22に対して割り込みの許可を維持し、可能信号を
出力する回路である。この可能信号は、装置21の出力
端子IEOから出力される割り込み可能信号とともに、
オアゲート32により装置22の入力端子IEIに供給
される。またFF33及びオアゲート34は、装置22
が割り込み処理中でらることを検出して、割り込み処理
中であれば、割シ込み検出信号としてL”を端子T2に
出力する回路である。そして、この端子T2を上記装置
210入力端子IEIに接続することによって、上記割
り込み検出18号により本来装置22よりも優先順位の
高い装置21の割り込み要求の発生を禁止する。なお、
FF31,33のクリア端子CLにはシステムリセット
端子RESET  (図示せず)が接続されており、F
F31,33の初期状態を設定する。
The D-type flip 70 (hereinafter referred to as FF) 31 of the control circuit 30 is a circuit that maintains interrupt permission for the device 22 and outputs an enable signal when the device 22 is disabled during interrupt processing. This enable signal, together with the interrupt enable signal output from the output terminal IEO of the device 21,
An input terminal IEI of device 22 is provided by OR gate 32 . Furthermore, the FF33 and the OR gate 34 are connected to the device 22.
This circuit detects that the interrupt is being processed and, if the interrupt is being processed, outputs "L" as an interrupt detection signal to the terminal T2.Then, this terminal T2 is connected to the input terminal IEI of the device 210. By connecting to the above interrupt detection number 18, the generation of an interrupt request of the device 21, which originally has a higher priority than the device 22, is prohibited.
A system reset terminal RESET (not shown) is connected to the clear terminal CL of FF31, 33, and
Set the initial state of F31 and F33.

次に、第1図に示す回路図の各部の波形を第2図gこ示
して、実施例の動作を説明する。
Next, the operation of the embodiment will be described with reference to FIG. 2g, which shows waveforms at various parts of the circuit diagram shown in FIG.

初期設定のためRESET信号(第2図g)を11L”
にし、時刻t1で解除する。これにより、FF31.3
3のQ出力(第2図g 、f )iJl共K”L’ (
!:なる。ここで、装置21は割り込み要求を発してい
ないので出力端子IEOの出力(第2図b)は′H”で
あり、オアゲート32からは可能信号″H”(第2図d
)が出力され、装置22の入力端子IEIに供給される
。また、装置22も割り込み要求を発していないので出
力端子IEOの出力(第2図g)は′H”となり、オア
ゲート32からは検出信号として”H”(第2図g)が
出力される。このg″H’H’出力210入力端子IE
Iに供給されて、割り込み要求の発生の許可を維持する
。以上、初期設定により、装置21.22は共に割り込
み要求を発生できる待機状態となっている。
Set the RESET signal (Fig. 2g) to 11L for initial setting.
and release it at time t1. As a result, FF31.3
Q output of 3 (Fig. 2 g, f) iJl both K"L' (
! :Become. Here, since the device 21 has not issued an interrupt request, the output of the output terminal IEO (FIG. 2b) is 'H', and the enable signal 'H' (FIG. 2d) is output from the OR gate 32.
) is output and supplied to the input terminal IEI of the device 22. Since the device 22 also does not issue an interrupt request, the output of the output terminal IEO (Fig. 2g) becomes 'H', and the OR gate 32 outputs 'H' (Fig. 2g) as a detection signal. This g″H'H' output 210 input terminal IE
I to maintain permission for generation of interrupt requests. As described above, according to the initial settings, both devices 21 and 22 are in a standby state in which they can generate an interrupt request.

そこで、装置21が割り込み要求を発生する場合を説明
する。装置21が出力端子INTからCPU20の入力
端子INTに割り込み要求を発生し、時刻t2でその要
求がCPU 20に受理されると、装置21の出力端子
IEOの出力(第2図b)は”L”となる。これにより
、オアゲート32の出力(第2図d)は”L#となって
、デイジー・チェーン接続されている装置22の割り込
み要求発生を禁止する。また、オアゲート32の出力は
FF33のプリセット端子PRにも供給されているので
、FF33のQ出力(第2図f)は立ち上ってH″とな
り、装置21から割り込み要求発生禁止があったことを
保持する。
Therefore, a case where the device 21 generates an interrupt request will be explained. When the device 21 generates an interrupt request from the output terminal INT to the input terminal INT of the CPU 20 and the request is accepted by the CPU 20 at time t2, the output of the output terminal IEO of the device 21 (FIG. 2b) becomes "L". ” becomes. As a result, the output of the OR gate 32 (FIG. 2 d) becomes "L#", which prohibits generation of an interrupt request from the devices 22 connected in the daisy chain. Since the Q output of the FF 33 (FIG. 2 f) rises to H'', it holds that the interrupt request generation is prohibited from the device 21.

時刻t2から所定時間遅れた時刻t3には、割り込みが
禁止された装置22の出力端子IEOからは、上位の装
置21から伝達された割り込み禁止信号を下位の装置へ
伝達すべく”L”が出力される。ただし、この実施例で
は装置22よりも下位の装置はないので、実際に伝達さ
れることはない。装置22の出力端子IEOから出力さ
れる信号゛L”は、上記FF33のQ出力が”H”とな
っていることより、上位の装置21から伝達された割り
込み禁止信号を示していることがオアゲート34によっ
て検出され、雑然装置22は割り込み中でないことを示
す”H”がオアゲート34から出力される(第2図g)
。従って、このオアゲート34からはH#が出力されて
、装置210入力端子IEIに供給されるので、装置2
1は割り込み処理を続けることができる。      
             ′装装置21が時刻t4に
おいて割り込み処理を終了すると、出力端子IEOの出
力を′L”から1H″にして下位の装置22の割)込み
禁止を解除する。
At time t3, which is delayed by a predetermined time from time t2, the output terminal IEO of the device 22 in which interrupts are disabled outputs "L" in order to transmit the interrupt disable signal transmitted from the higher-level device 21 to the lower-level device. be done. However, in this embodiment, since there is no device lower than the device 22, the information is not actually transmitted. Since the Q output of the FF 33 is "H", the signal "L" output from the output terminal IEO of the device 22 is an OR gate indicating the interrupt disable signal transmitted from the upper device 21. 34, and "H" indicating that the clutter device 22 is not being interrupted is output from the OR gate 34 (Fig. 2g)
. Therefore, H# is output from the OR gate 34 and supplied to the input terminal IEI of the device 210, so the device 2
1 can continue interrupt processing.
When the device 21 completes the interrupt processing at time t4, the output of the output terminal IEO changes from ``L'' to 1H'', thereby canceling the interrupt inhibition of the lower device 22.

この割り込み可能信号によって割り込み禁止が解除され
た装置22の出力端子IEOからは時刻t5に上位の装
置21から伝達された可能信号を下位の装置へ伝達すべ
く″H”が出力され、この°H”出力をクロックとして
装置21から割り込み要求禁止の発生を保持している上
記FF33を′L”にセットする。これにより、装置2
1.22は上述の待機状態に戻る。
The output terminal IEO of the device 22 whose interrupt prohibition has been canceled by this interrupt enable signal outputs "H" at time t5 in order to transmit the enable signal transmitted from the upper device 21 to the lower device. ``The above-mentioned FF 33, which holds the generation of interrupt request prohibition from the device 21 using the output as a clock, is set to ``L''. As a result, device 2
1.22 returns to the above-mentioned standby state.

次に、装置22が割り込み要求を発生する場合を説明す
る。装置22が出力端子INTからCPU20の入力端
子INTに割り込み要求を発生し、時刻t6でその要求
がCPC20に受理されると、装置22の出力端子IE
X)の出力(第2図e)は@L”となり、オアゲート3
4の一方入力となる。ここで、装置21のの出力端子I
EOからは@H”が出力されたままなので、 FF33
の状態も変化せず、Q出力はuLsのままとなりオアゲ
−34の他方入力となる。従って、装置22の出力端子
IEOから出力される信号@L″は装置22が割り込み
処理中を示す信号であるとオアゲート34によって検出
され。
Next, a case will be described in which the device 22 generates an interrupt request. The device 22 generates an interrupt request from the output terminal INT to the input terminal INT of the CPU 20, and when the request is accepted by the CPC 20 at time t6, the output terminal IE of the device 22
The output (Fig. 2 e) of
This is one input of 4. Here, the output terminal I of the device 21
Since @H” is still output from EO, FF33
The state of Q does not change, and the Q output remains uLs and becomes the other input of ORG-34. Therefore, the signal @L'' output from the output terminal IEO of the device 22 is detected by the OR gate 34 as a signal indicating that the device 22 is processing an interrupt.

割り込み中であることを示す信号@LMがオアゲート3
4から出力されるC82図g)。そして、このオアゲー
ト34の出力”L”は端子T2を介して装置22の上位
の装置である装置210入力端子IEIへ供給され、最
上位の装置21は割り込み処理の要求を発生することが
禁止される。また、このオアゲート34の出力はFF3
1のプリセット端子PRに供給されているので、この出
力が”H”から@L″へ立ち下ることによって、FF3
1のQ出力(第2図C)はH#になる。これにより、゛
装置22とデイジー・チェーン接続されている上位の装
置21の出力端子IEOから出力される割り込み禁止信
号によって、装置22の割り込みが中断されることを防
止している。
Signal @LM indicating that an interrupt is in progress is OR gate 3
C82 diagram g) output from 4). The output "L" of this OR gate 34 is supplied to the input terminal IEI of the device 210, which is a higher-level device than the device 22, through the terminal T2, and the highest-level device 21 is prohibited from generating requests for interrupt processing. Ru. Also, the output of this OR gate 34 is FF3
Since it is supplied to the preset terminal PR of FF3, when this output falls from "H" to @L", FF3
The Q output of 1 (FIG. 2C) becomes H#. This prevents the interrupt of the device 22 from being interrupted by the interrupt disabling signal output from the output terminal IEO of the higher-level device 21 connected to the device 22 in a daisy chain.

装置21は時刻t7において、オアゲート34からの割
り込み禁止信号を下位の装置22へ伝達するため、出力
端子IEOから′L”を出力する。しかし、上述した様
に、 FF31のQ出力は、上位の装置21から伝達て
れる割り込み禁止信号による割り込み処理の中断をさけ
るため時刻t6からH″′を保持しているので、オアゲ
ート32からは雑然パH#が出力され(第2図d)、装
置22は割り込みを許可てれたままとなる。
At time t7, the device 21 outputs 'L' from the output terminal IEO in order to transmit the interrupt disable signal from the OR gate 34 to the lower device 22. However, as described above, the Q output of the FF 31 is In order to avoid interruption of the interrupt processing due to the interrupt disable signal transmitted from the device 21, H'' is held from time t6, so the OR gate 32 randomly outputs H# (FIG. 2d), and the device 22 remains enabled for interrupts.

時刻t8において装置22が割9込み処理を終了すると
、下位の装置の割り込み禁止を解除すべく、出力端子I
EOの出力をL”から”H”にする。この割り込み可能
信号によって、オアゲート34は°H#を出力して装置
21の割り込み禁止を解除する。装置21は割り込み禁
止が解除されると、出力端子IEOから所定時間後の時
刻t9に下位の装置へ割り込み可能信号を伝達するため
′H”を出力する。この″H″出力をクロックとして、
装置21に対する割り込み許可を保持している上記FF
31を1L”にセットする。これにより、装!!21.
22は上述の待機状態に復帰する。
When the device 22 finishes the interrupt processing at time t8, the output terminal I
The output of EO is changed from "L" to "H". In response to this interrupt enable signal, the OR gate 34 outputs °H# and cancels the interrupt prohibition of the device 21. When the interrupt prohibition is canceled, the device 21 outputs At time t9 after a predetermined time from terminal IEO, it outputs 'H' in order to transmit an interrupt enable signal to lower-order devices. Using this “H” output as a clock,
The above FF that holds interrupt permission for the device 21
Set 31 to 1L". This will complete the installation!!21.
22 returns to the above-mentioned standby state.

ここで、割り込み制御回路30の機能について説明する
。上述したように、FF31は下位の装置が割り込み処
理中である時に、デイジー・チェーン接続された上位の
装置からの割り込み禁止信号を遮断し、下位の装置に対
して割り込みの許可を保持°し、可能信号を出力する。
Here, the functions of the interrupt control circuit 30 will be explained. As described above, the FF 31 blocks the interrupt disabling signal from the daisy-chained higher-level device when the lower-level device is processing an interrupt, and maintains interrupt permission for the lower-level device. Output enable signal.

この可能信号はオアゲー32で上位の装置からの割り込
み許可信号とともに出力され端子T3に供給する。即ち
、端子T3からは下位に対する割り込み可能、許可信号
が出力される。
This enable signal is output from the OR game 32 together with an interrupt enable signal from a higher-order device and is supplied to the terminal T3. That is, an interrupt enable/permit signal for the lower level is output from the terminal T3.

また、FF33は下位の装置の割り込みが禁止されたこ
とを検出してQ出力する。一方、下位の装置の出力端子
IEOからは、上位の装置から伝達された割り込み禁止
信号をより下位の装置へ伝達するだめの割り込み禁止信
号と、下位の装置自身が割り込み処理を行なっている時
により゛下位の装置の割)込みを禁止するだめの割り込
み禁止信号が出力される。従って、出力端子IEOから
出力される割υ込み禁止信号を上記FF33のQ出力で
ゲートすれば、下位の装置が割り込み中であるか否かの
検出ができ、その検出出力は端子T2に供給される。
Further, the FF 33 detects that interrupts of lower-order devices are prohibited and outputs a Q signal. On the other hand, from the output terminal IEO of the lower device, there is an interrupt disable signal that is used to transmit the interrupt disable signal transmitted from the upper device to the lower device, and an interrupt disable signal that is used when the lower device itself is processing an interrupt. An interrupt disable signal is output to disable interrupts from lower-level devices. Therefore, by gating the interrupt disable signal output from the output terminal IEO with the Q output of the FF33, it is possible to detect whether or not the lower device is interrupting, and the detection output is supplied to the terminal T2. Ru.

そして、この端子T2から出力される割り込み検出信号
から、最上位の装置への割り込み禁止信号を成虫して最
上位の装置の入力端子IEI K与えるものである。
Then, from the interrupt detection signal outputted from this terminal T2, an interrupt disable signal to the highest-level device is generated and applied to the input terminal IEIK of the highest-level device.

以上説明したように、この実施例によれば、デイジー・
チェーンにより接続された2個の装置のうち、下位の装
置21が割り込み処理を行なっているときには、上位の
装置22が装置21の割り込み処理を中断させて割り込
み処理をすることが防止できる。即ち、装置21と装置
22の割シ込み優先順位を等しくすることができる。
As explained above, according to this embodiment, Daisy
When the lower device 21 of two devices connected by a chain is processing an interrupt, it is possible to prevent the higher device 22 from interrupting the interrupt processing of the device 21 and processing the interrupt. That is, the interrupt priorities of the device 21 and the device 22 can be made equal.

次に、n個の周辺装置に等しい割り込み優先順位を与え
た実施例を、第3図に示す回路図を参照して説明する。
Next, an embodiment in which n peripheral devices are given equal interrupt priorities will be described with reference to the circuit diagram shown in FIG.

第3図において、CPU40の割り込み要求入力端子I
NTには、情報処理を行なう周辺装置41゜42 、4
3 、・・・、4nの割り込み要求端子INTがワイヤ
ード−オアで接続され、抵抗Rによりプルアップされる
。装置41,42,43.・・・、4nは割り込み制御
回路30を介して接続され、デイジー・チェーンが形成
されている。ここで、制御回路30は第1図に示した制
御回路30と同一機能を有するものでるる。また、制御
回路30−2 、30−3 、・・・。
In FIG. 3, the interrupt request input terminal I of the CPU 40
The NT has peripheral devices 41, 42, 4 that perform information processing.
The interrupt request terminals INT of 3, . . . , 4n are connected by wired-OR and pulled up by a resistor R. Devices 41, 42, 43. . . , 4n are connected via the interrupt control circuit 30 to form a daisy chain. Here, the control circuit 30 has the same function as the control circuit 30 shown in FIG. Further, control circuits 30-2, 30-3, . . .

30−nの夫々の端子で2からの出力はアンドゲート5
0に供給され、このアンドゲート50の出力は最上位の
装置41の割り込み許可入力端子IEIに供給される。
The output from 2 at each terminal of 30-n is AND gate 5
0, and the output of this AND gate 50 is supplied to the interrupt enable input terminal IEI of the topmost device 41.

上述したように、制御回路30の端子T2からは下位の
装置の割り込み検出信号が出力される。例えば、制御回
路30−2の端子T2からは装置42が割り込み処理中
であれば、検出信号として”L”が出力される。従って
1.制御回路30−2.30−3 。
As described above, the terminal T2 of the control circuit 30 outputs an interrupt detection signal from a lower-order device. For example, if the device 42 is processing an interrupt, "L" is output from the terminal T2 of the control circuit 30-2 as a detection signal. Therefore 1. Control circuit 30-2.30-3.

30−nの夫々の端子T2が接続されるアントゲ−)5
0からは、装置42,43.・・・、4nのいずれか1
つが割り込み処理中であればwI、sが出力され、装置
41に割り込み禁止信号を供給することになまず、待機
状態において最上位の装置41が割り込み要求を発生し
た場合を説明する。割り込み要求がCPU 40に受理
されると、装置41は下位の装置42 、43 、・・
・、4nの割り込み要求発生を禁止するため、出力端子
IEOから割り込み禁止信号を出力する。この禁止信号
はデイジー・チェーンにより下位の装置42,43.・
・・、4nに伝達され、各装置は割り込みが禁止される
。ここで制御回路30−2 、30−3、−・・、 3
0−nの端子T2からは割り込み検出信号は出力されず
、すべて°H’となっているので、アンドゲート50か
らは最上位の装置410入力端子IEIへ“H”が供給
され、装置41の割り込み状態は保持される。そして、
装置410割り込み処理が終了すると、装置41の出力
端子IEOから禁止解除信号が出力され、デイジー・チ
ェーンにより各装置に順次伝播される。これにより、全
装置が割り込み可能な状態、即ち待機状態となる。
30-n to which each terminal T2 is connected) 5
From 0, devices 42, 43 . ..., any 1 of 4n
If the device 41 is processing an interrupt, wI, s is output, and the device 41 at the highest level generates an interrupt request in a standby state without supplying an interrupt disable signal to the device 41. When the interrupt request is accepted by the CPU 40, the device 41 sends the lower devices 42, 43, . . .
, 4n, outputs an interrupt disable signal from the output terminal IEO. This inhibition signal is sent to the lower devices 42, 43 . . . in a daisy chain.・
..., 4n, and each device is prohibited from interrupting. Here, the control circuits 30-2, 30-3, ..., 3
Since no interrupt detection signal is output from the terminals T2 of 0-n and all of them are at °H', "H" is supplied from the AND gate 50 to the input terminal IEI of the top device 410, and the signal of the device 41 is Interrupt status is retained. and,
When the device 410 interrupt processing is completed, an inhibit release signal is output from the output terminal IEO of the device 41, and is sequentially propagated to each device by the daisy chain. This causes all devices to be in an interruptible state, that is, in a standby state.

次に、装置43が割や込み処理を行なう場合を説明する
。割り込み要求がCPU40に受理されると、装置43
は出力端子IEOから1L″を出力してより下位の装置
の割り込みを禁止する。と同時に制御回路30−3は装
置43の割り込みを検出して検出信号”L”をアンドゲ
ート50に供給する。従って、アントゲ−)50からは
最上位の装置410割鯵込み禁止する禁止信号@L”が
出力てれて、装置41は割り込みが禁止される。さらに
、この装置41は出力端子IEOによって、禁止信号を
下位の装置に伝播し、装置42も割ね込みが禁止される
。この装置42の出端子IEOからも禁止信号が出力さ
れるが、上述したように制御回路30−3の端子T3は
装置43の割り込み許可を保持しているので、装置43
は割り込み処理を続けることができる。そして、装置4
30割り込み処理が終了すると、装置43の出力端子I
EOから禁止解除信号が出力され、デイジー・チェーン
により下位の装置へ順次伝達される。また、制御回路3
0−3の端子T2からは割り込み検出信号は出力されず
、′H“が出力される。従って、アンドゲート50から
は割り込み許可信号″′H″が出力され、最上位の装置
41は割り込みが解除され、装置42も同様に解1.除
される。
Next, a case will be described in which the device 43 performs interrupt processing. When the interrupt request is accepted by the CPU 40, the device 43
outputs 1L'' from the output terminal IEO to inhibit interrupts from lower-order devices.At the same time, the control circuit 30-3 detects the interrupt from the device 43 and supplies a detection signal "L" to the AND gate 50. Therefore, the top game device 50 outputs a prohibition signal @L'' which prohibits the top-level device 410 from interrupting, and the device 41 is prohibited from interrupting. Furthermore, this device 41 propagates the inhibit signal to lower-level devices through the output terminal IEO, and the device 42 is also inhibited from interrupting. An inhibit signal is also output from the output terminal IEO of this device 42, but since the terminal T3 of the control circuit 30-3 holds the interrupt permission for the device 43 as described above, the device 43
can continue processing the interrupt. And device 4
30 When the interrupt processing is completed, the output terminal I of the device 43 is
A prohibition release signal is output from the EO and is sequentially transmitted to lower-order devices through a daisy chain. In addition, the control circuit 3
The interrupt detection signal is not outputted from the terminal T2 of 0-3, but ``H'' is outputted. Therefore, the AND gate 50 outputs the interrupt enable signal ``H'', and the highest level device 41 does not accept the interrupt. The device 42 is also released.

以上説明したように、この実施例によればn個の装置の
うち、ある装置が割り込み処理を行なうと、他のどの装
置も割り込み処理を行なうことができないので、割り込
み処理を中断されることがない。即ち、n個の装置の割
り込み優先順位を等しくすることができる。従って、情
報処理装置を、通信回線に接続され通信回線を介して伝
送データを受信処理する装置とした場合でも、処理中の
割り込みが終了するまで他のいかなる割り込み要求も発
生することはなく、受信中のデータを取9逃すといった
問題点は解消する。
As explained above, according to this embodiment, when one device among the n devices performs interrupt processing, no other device can process the interrupt, so the interrupt processing is not interrupted. do not have. That is, the interrupt priorities of n devices can be made equal. Therefore, even if the information processing device is connected to a communication line and receives and processes transmitted data via the communication line, no other interrupt request will be generated until the interrupt being processed is completed, and the This solves the problem of missing data inside.

次に、ざらに他の実施例について第4図及び第5図を参
照して説明する。これは、等しい睦先順位を有する周辺
装置を単位としてグループを形成し、このグループには
異なる旋光順位を設定したものである。
Next, another embodiment will be briefly described with reference to FIGS. 4 and 5. In this method, peripheral devices having the same rotational order are formed into groups, and different optical rotation orders are set for these groups.

実施例の回路図を示す第4図において、 CPU60の
割り込み要求入力端子INTには、情報処理を行なう周
辺装置61〜66の割り込み要求出力端子INTがワイ
ヤード・オアで接続され、抵抗Rによりプル・アップさ
れる。装置61.62は制御回路30を介して、装置6
4〜66は制御回路70を介してディジm−チェーンが
形成されている。ここで、制御口WIA70はその詳細
を第5図に示すように、制御回路30にアンドゲート7
5、端子T5を付加した回路となっている。
In FIG. 4 showing the circuit diagram of the embodiment, the interrupt request input terminal INT of the CPU 60 is connected to the interrupt request output terminals INT of the peripheral devices 61 to 66 that perform information processing in a wired-OR manner, and is pulled by a resistor R. Will be uploaded. The devices 61, 62, via the control circuit 30,
4 to 66 form a digital m-chain via a control circuit 70. Here, the control port WIA 70 is connected to the AND gate 7 in the control circuit 30, as shown in detail in FIG.
5. The circuit has an additional terminal T5.

上記構成の実施例では、装置61.62が第1のグルー
プ、装置63は単独で第2のグループ、装置64〜66
が第3のグループを形成しており、グループ内の優先順
位は等しい。また、グループ間は単なるデイジー・チェ
ーン接続されているので、第1のグループは最も優先順
位が高く、第3のグループが最も低くなる。
In the embodiment with the above configuration, the devices 61 and 62 are in the first group, the device 63 is alone in the second group, and the devices 64 to 66 are in the second group.
form the third group, and the priorities within the group are equal. Also, since the groups are simply connected in a daisy chain, the first group has the highest priority and the third group has the lowest priority.

ここで、上記制御回路700機能について説明する。端
子T5には、上位のグループの装置63からの割り込み
禁止信号が印加し、この禁止信号でオアゲート32から
の割り込み可能・許可信号をゲートしている。これによ
り、上位のグループが割り込み要求を発生した場合に、
割り込み禁止を端子T3から出力することができる。
Here, the functions of the control circuit 700 will be explained. An interrupt disable signal from the upper group device 63 is applied to the terminal T5, and this disable signal gates the interrupt enable/permit signal from the OR gate 32. As a result, when a higher-level group generates an interrupt request,
Interrupt inhibition can be output from terminal T3.

以上説明したように、本実施例によればグループ単位で
割)込み優先順位を設定することができる。
As explained above, according to this embodiment, interrupt priorities can be set on a group-by-group basis.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、簡単な構成により優先順位の等しい割
り込み回路を提供できるので、割り込み処理中に他の周
辺装置の割り込みによって中断されることがなく効率的
な割り込み処理が行なえる利点を有する。
According to the present invention, it is possible to provide interrupt circuits with equal priorities with a simple configuration, so that there is an advantage that efficient interrupt processing can be performed without being interrupted by interrupts from other peripheral devices during interrupt processing.

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

第1図は本発明の割り込み回路に係る実施例を示す回路
図、第2図は第1図に示す実施例の各部の動作を説明す
るタイムチャート、第3図及び第4図は本発明の他の実
施例を示す回路図、第5図は第4図に示す実施例の一部
の詳細を示す回路図、第6図は従来の割り込み回路を示
す回路図である。 20・・・CPU 21.22・・・周辺装置 31.33・・・フリップフロッグ 32.34・・・オアゲート
FIG. 1 is a circuit diagram showing an embodiment of the interrupt circuit of the present invention, FIG. 2 is a time chart explaining the operation of each part of the embodiment shown in FIG. 1, and FIGS. FIG. 5 is a circuit diagram showing some details of the embodiment shown in FIG. 4, and FIG. 6 is a circuit diagram showing a conventional interrupt circuit. 20...CPU 21.22...Peripheral device 31.33...Flip frog 32.34...Or gate

Claims (1)

【特許請求の範囲】 割り込み優先順位がデイジー・チェーン形態の接続によ
って決定されうる複数の周辺装置と、上記に接続された
周辺装置から下位に接続された周辺装置へ伝達される割
り込み禁止信号を遮断し、下位に接続された周辺装置へ
の割り込み許可を保持する割り込み許可保持手段と、 最上位に接続された周辺装置以外の周辺装置の割り込み
状態を検出する割り込み検出手段と、この割り込み検出
手段の検出結果により、最上位に接続された周辺装置の
割り込みを禁止して、下位の周辺装置の割り込みをデイ
ジー・チェーンによって禁止する割り込み禁止手段とを
具備したことを特徴とする割り込み回路。
[Claims] A plurality of peripheral devices whose interrupt priorities can be determined by daisy-chained connections, and interrupt disable signals transmitted from the peripheral devices connected above to the peripheral devices connected below. an interrupt permission retaining means for retaining interrupt permission for peripheral devices connected at the lower level; an interrupt detecting means for detecting the interrupt state of a peripheral device other than the peripheral device connected at the highest level; An interrupt circuit comprising an interrupt disabling means for disabling interrupts of a peripheral device connected to the highest level and disabling interrupts of a lower peripheral device by daisy chaining based on a detection result.
JP19683884A 1984-09-21 1984-09-21 Interruption circuit Pending JPS6175452A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19683884A JPS6175452A (en) 1984-09-21 1984-09-21 Interruption circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19683884A JPS6175452A (en) 1984-09-21 1984-09-21 Interruption circuit

Publications (1)

Publication Number Publication Date
JPS6175452A true JPS6175452A (en) 1986-04-17

Family

ID=16364503

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19683884A Pending JPS6175452A (en) 1984-09-21 1984-09-21 Interruption circuit

Country Status (1)

Country Link
JP (1) JPS6175452A (en)

Similar Documents

Publication Publication Date Title
US7434264B2 (en) Data processing system with peripheral access protection and method therefor
US5996037A (en) System and method for arbitrating multi-function access to a system bus
JP2625589B2 (en) Multiprocessor system
US5862355A (en) Method and apparatus for overriding bus prioritization scheme
JP4485599B2 (en) Access control device, access control integrated circuit, and access control method
EP0644487A2 (en) Scalable system interrupt structure for a multiprocessing system
JPS5812611B2 (en) Data Tensou Seigiyohoushiki
US5410715A (en) Interrupt controller with selectable interrupt nesting function
WO2003001388A1 (en) System and method for controlling bus arbitration during cache memory burst cycles
KR19990077646A (en) Bus control method, bus control apparatus, and storage medium for storing bus control program
JPH06161952A (en) Arbitration device of access request
US4604685A (en) Two stage selection based on time of arrival and predetermined priority in a bus priority resolver
JPS6048791B2 (en) access control device
KR900001120B1 (en) Distributed priority network logic for allowing a low priority unit to reside in a high priority position
US7080174B1 (en) System and method for managing input/output requests using a fairness throttle
TW200400438A (en) Bus arbiter for integrated circuit systems
JPS594733B2 (en) Kyoutsuba Seigiyo Cairo
JPS6175452A (en) Interruption circuit
US5557756A (en) Chained arbitration
JP2004062910A (en) Method for realizing semaphore to multi-core processor and controlling access to common resource
JP3105554B2 (en) Interrupt controller
JPH10320349A (en) Processor and data transfer system using the processor
JPH0443302B2 (en)
JPS6022248A (en) Interruption controller
JP2837698B2 (en) Direct memory access controller