JPH0476631A - Cpu interruption arbitration circuit - Google Patents
Cpu interruption arbitration circuitInfo
- Publication number
- JPH0476631A JPH0476631A JP7206690A JP7206690A JPH0476631A JP H0476631 A JPH0476631 A JP H0476631A JP 7206690 A JP7206690 A JP 7206690A JP 7206690 A JP7206690 A JP 7206690A JP H0476631 A JPH0476631 A JP H0476631A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- input
- interrupt
- cpu
- flip
- 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
- 238000000034 method Methods 0.000 abstract description 6
- 230000000630 rising effect Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 3
- 239000013256 coordination polymer Substances 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はCPUに対して要求される複数の割込信号を処
理するCPU割込調停回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a CPU interrupt arbitration circuit that processes a plurality of interrupt signals requested to a CPU.
CPLI (中央処理装置)は、種々のプログラムに従
って、対応する各種の処理を行うようになっている。C
PtJは、主となるプログラムによる処理を行うが、例
えば不定期に発生する処理の要求に対応するために割込
処理機能を通常備えている。The CPLI (Central Processing Unit) performs various types of processing according to various programs. C
PtJ performs processing using a main program, but usually includes an interrupt processing function in order to respond to processing requests that occur irregularly, for example.
CPUは、割込信号が入力されると現在実行している処
理プログラムを中断し、割り込みの原因を判断して該当
する割込処理プログラムの実行を開始する。割込処理プ
ログラムの実行が終了するとCPUは、中断していた元
のプログラムに戻って処理を続ける。例えば原因が周辺
装置の異常である場合、その装置の切り離し等の修復を
行うための割込プログラムが実行される。When an interrupt signal is input, the CPU interrupts the currently executing processing program, determines the cause of the interrupt, and starts executing the corresponding interrupt processing program. When the execution of the interrupt processing program is completed, the CPU returns to the original program that was interrupted and continues processing. For example, if the cause is an abnormality in a peripheral device, an interrupt program is executed to perform repairs such as disconnecting the device.
ところで、例えばディジタル通信の分野のように、CP
Uに対して多くの割込要求が発生する場合がある。この
ように複数の割り込みの要求が発生した場合、割込回路
を使用し、この回路からCPUに割込信号を入力してい
る。従来の割込回路は、複数の割込信号の論理和をとり
、これをCPUに入力していた。割込回路から割込信号
が入力され割り込みの要求を認識すると、CPUは割込
信号を出力している全ての対象に対して、時分割処理(
TSS)を行う。By the way, for example in the field of digital communications, CP
Many interrupt requests may occur to U. When multiple interrupt requests are generated in this manner, an interrupt circuit is used and interrupt signals are input to the CPU from this circuit. Conventional interrupt circuits take the logical sum of a plurality of interrupt signals and input this to the CPU. When an interrupt signal is input from the interrupt circuit and the interrupt request is recognized, the CPU performs time-sharing processing (
TSS).
このように従来の割込回路は複数の割込信号の論理和を
出力していたので、CPUは、特定の割込処理だけを行
うことができず、割込信号を出力している全ての対象に
対し時分割処理する必要があった。このため常に時分割
処理を意識しなければならず、CPUの負担が増大して
いた。In this way, conventional interrupt circuits output the logical sum of multiple interrupt signals, so the CPU is unable to perform only a specific interrupt process; It was necessary to perform time-sharing processing on the target. Therefore, the user must always be aware of time-sharing processing, which increases the burden on the CPU.
そこで本発明の目的は、割込処理を要求している対象に
ついてだけ処理を行うことのできるCPU割込調停回路
を提供することにある。SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a CPU interrupt arbitration circuit that can process only those objects that request interrupt processing.
本発明のCPU割込調停回路は、(i)CPUに割り込
みを要求する第1から第Nの割込信号をそれぞれ入力し
、互いに同一周期のクロック信号でリタイミングして出
力する第1から第Nのフリップフロップ回路と、(ii
)第2から第Nのフリップフロップ回路のそれぞれに対
し、第1から第(n−1)のフリップフロップ回路(n
は2からNの値)の出力をリセット信号として入力する
リセット手段と、(iii )第1から第Nのフリップ
フロップ回路の出力の論理和を割込信号としてCPUに
入力する入力手段とを具備している。The CPU interrupt arbitration circuit of the present invention has the following advantages: (i) The first to Nth interrupt signals that request an interrupt to the CPU are respectively inputted, and the first to Nth interrupt signals are retimed and outputted using clock signals having the same cycle. N flip-flop circuits, (ii
) for each of the second to Nth flip-flop circuits, the first to (n-1)th flip-flop circuits (n
(iii) input means for inputting the logical sum of the outputs of the first to Nth flip-flop circuits to the CPU as an interrupt signal. are doing.
すなわち本発明のCPU割込調停回路は、1つの割込信
号に基づく処理が終了するまで次の割込信号の出力を保
持するようにしたものである。That is, the CPU interrupt arbitration circuit of the present invention is configured to hold the output of the next interrupt signal until processing based on one interrupt signal is completed.
以下、実施例につき本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail with reference to Examples.
第1図は本発明の一実施例におけるCPU割込調停回路
の回路構成を表わしたものである。FIG. 1 shows the circuit configuration of a CPU interrupt arbitration circuit in one embodiment of the present invention.
CPU割込調停回路は、第1から第N (Nは整数)の
Dフリップフロップ11−1.11−2.11−3、・
・・・・・、l 1−Nを備えている。これらN個のD
フリップフロップ11の各クロック端子CKには、図示
しないCPUのクロックと同期した同一周期のクロック
信号12が入力されている。The CPU interrupt arbitration circuit includes first to Nth (N is an integer) D flip-flops 11-1.11-2.11-3, .
..., l 1-N is provided. These N D
A clock signal 12 having the same cycle and synchronized with the clock of a CPU (not shown) is input to each clock terminal CK of the flip-flop 11.
また、Dフリップフロップ11の他のデータ入力端子り
には、それぞれ第1から第Nの割込信号13−1.13
−2.13−3、・・・・・・ 13−Nが入力される
ようになっている。In addition, the other data input terminals of the D flip-flop 11 are provided with first to Nth interrupt signals 13-1, 13, respectively.
-2.13-3, . . . 13-N are input.
N個のDフリップフロップ11のそれぞれから出力され
る、第1から第Nの出力信号14−1.14−2.14
−3、・・・・・・、14−Nは、N入力端子のN入力
オア回路16の各入力端子に入力される。N入力オア回
路16の出力信号は、割込調停信号17として図示しな
いCPUに入力されるようになっている。First to Nth output signals 14-1.14-2.14 output from each of the N D flip-flops 11
-3, . . . , 14-N are input to each input terminal of the N-input OR circuit 16 of N-input terminals. The output signal of the N-input OR circuit 16 is input as an interrupt arbitration signal 17 to a CPU (not shown).
第1のDフリップフロップ11−1のリセット端子PR
には、ロウレベルの信号(LOW>が入力されるように
なっている。第2のDフリップフロップ11−2のリセ
ット端子PRには、第1のDフリップフロップ11−1
の出力信号14−1が第2のリセット信号19として入
力される。第3のDフリップフロップ11−3のリセッ
トi子PRには、2入力オア回路21の出力信号が第3
のリセット信号22として入力される。2入力オア回路
21の2つの入力端子には、第1および第2のDフリッ
プフロップ11−1.11−2の出力信号14−1.1
4−2がそれぞれ入力されるようになっている。Reset terminal PR of the first D flip-flop 11-1
A low level signal (LOW>) is input to the reset terminal PR of the second D flip-flop 11-2.
The output signal 14-1 of is input as the second reset signal 19. The output signal of the two-input OR circuit 21 is input to the reset i-chip PR of the third D flip-flop 11-3.
The reset signal 22 is inputted as the reset signal 22. The two input terminals of the two-input OR circuit 21 receive the output signals 14-1.1 of the first and second D flip-flops 11-1.11-2.
4-2 are respectively input.
第NのDフリップフロップ11−Nのリセット端子PR
には、(N−1)入力オア回路23の出力信号が第Nの
リセット信号24として入力される。この(N−1)入
力オア回路23の各入力端子には、第1から第(N−1
)のDフリップフロップ11−1.11−2、・・・・
・・ 1l−(N−1)のそれぞれの出力信号14−1
.14−2、・・・・・・、14−(N−1)が入力さ
れるようになっている。Reset terminal PR of the Nth D flip-flop 11-N
, the output signal of the (N-1) input OR circuit 23 is input as the Nth reset signal 24. Each input terminal of this (N-1) input OR circuit 23 is connected to the first to (N-1) input terminals.
) D flip-flop 11-1.11-2,...
... 1l-(N-1) respective output signals 14-1
.. 14-2, . . . , 14-(N-1) are input.
このように構成されたCPtJ割込調停回路の動作につ
いて次に説明する。The operation of the CPtJ interrupt arbitration circuit configured as described above will be described next.
第2図は、CPU割込調停回路の各部における信号を示
したものである。FIG. 2 shows signals in each part of the CPU interrupt arbitration circuit.
第2図aからdは、それぞれ第1から第No)Dフリッ
プフロップ11−1.11−2、・・・・・・11Nの
各データ入力端子りに供給される割込信号13−11:
3−2、・・・・・・13−Nを表わしたものである。FIG. 2 a to d show interrupt signals 13-11 supplied to each data input terminal of the first to No. D flip-flops 11-1, 11-2, . . . 11N, respectively:
3-2, . . . 13-N.
また第2図eは、第1から第NのDフリップフロップ1
1のそれぞれのクロック入力端子CKに入力されるクロ
ック信号を表わしたものである。In addition, FIG. 2e shows the first to Nth D flip-flops 1
1 represents a clock signal input to each clock input terminal CK of 1.
割込信号13−1が時刻t1 の後に入力されると第1
のDフリップフロップ11−1は、クロック信号12
(第2図e)の立ち上がり時刻t2 から第1の出力信
号14−1(同図f)を出力する。When the interrupt signal 13-1 is input after time t1, the first
The D flip-flop 11-1 receives the clock signal 12.
The first output signal 14-1 (FIG. 2f) is output from the rising time t2 (FIG. 2e).
第1の出力信号14−1はN入力オア回路16に入力さ
れ、割込調停信号17 (第2図J)として図示しない
CPUに供給される。CPUは、割込調停信号17に従
って割込処理を行い、この割込処理の終了により第1の
割込信号13−1の入力が終了する。第1のDフリップ
フロップ11−1は、第1の割込信号−13−1の入力
終了後に入力されるクロック信号12の立ち上がり時刻
t、に第1の出力信号14−1の出力を終了する。The first output signal 14-1 is input to the N-input OR circuit 16, and is supplied to the CPU (not shown) as an interrupt arbitration signal 17 (FIG. 2J). The CPU performs interrupt processing in accordance with the interrupt arbitration signal 17, and upon completion of this interrupt processing, the input of the first interrupt signal 13-1 ends. The first D flip-flop 11-1 finishes outputting the first output signal 14-1 at the rising time t of the clock signal 12 input after the input of the first interrupt signal -13-1 ends. .
第1の出力信号14−1は、第2のリセット信号19と
して時刻t2からt4 まで第2のDフリップフロップ
11−2のリセット端子PRに供給されている。従って
、この間に第2の割込信号13−2が供給されても、第
2のDフリップフロップ11−2は第2の出力信号14
−2を出力しない。第2のDフリップフロップ11−2
は、第2のリセット信号19の入力が終了した後に入力
されるクロック信号12の立ち上がり時刻t。The first output signal 14-1 is supplied as the second reset signal 19 to the reset terminal PR of the second D flip-flop 11-2 from time t2 to t4. Therefore, even if the second interrupt signal 13-2 is supplied during this period, the second D flip-flop 11-2 will not output the second output signal 14.
-2 is not output. Second D flip-flop 11-2
is the rising time t of the clock signal 12 that is input after the input of the second reset signal 19 ends.
から第2の出力信号14−2 (第2図g)を出力する
。第2の出力信号14−2はN入力オア回路16を介し
て割込調停信号17 (同図J)として図示しないCP
Uに供給され、割込処理が実行される。割込処理が終了
すると第2の割込信号132の入力が終了する。これに
より第2のDフリップフロップ11−2は、その後入力
されるクロック信号12の立ち上がり時刻t、に、第2
の出力信号14−2の出力を終了する。outputs a second output signal 14-2 (Fig. 2g). The second output signal 14-2 is output as an interrupt arbitration signal 17 (J in the figure) via an N-input OR circuit 16 to a CP (not shown).
The signal is supplied to U, and interrupt processing is executed. When the interrupt processing ends, input of the second interrupt signal 132 ends. As a result, the second D flip-flop 11-2 outputs the second
The output of the output signal 14-2 is ended.
第1および第2の出力信号14−1.14−2は2入力
オア回路21に入力される。これにより2入力オア回路
21からは、時刻t、からt、の開および時刻t、から
t、の間、第3のリセット信号22が第3のDフリップ
フロップ11−3のリセット端子PRに入力される。従
って、この間に第3の割込信号13−3(第2図C)が
入力されても、第3のDフリップフロップ11−3は第
3の出力信号14−3 (同図h)を出力しない。The first and second output signals 14-1, 14-2 are input to a two-input OR circuit 21. As a result, the third reset signal 22 is input from the two-input OR circuit 21 to the reset terminal PR of the third D flip-flop 11-3 during the period from time t to time t and from time t to time t. be done. Therefore, even if the third interrupt signal 13-3 (FIG. 2C) is input during this period, the third D flip-flop 11-3 outputs the third output signal 14-3 (FIG. 2H). do not.
また、時刻t、と時刻t5 の間にはクロック信号12
が入力されないので、やはり第3のDフリップフロップ
11−3は第3の出力信号14−3を出力しない。Moreover, between time t and time t5, the clock signal 12
is not input, the third D flip-flop 11-3 also does not output the third output signal 14-3.
第3のDフリップフロップ11−3は、第3のリセット
信号22の入力が終了する時刻t7 の後に入力される
クロック信号12の立ち上がり時刻t、から第3の出力
信号14−3 (第2図h)を出力する。第3の出力信
号14−3はN入力オア回路16を介して割込調停信号
17として図示しないCPUに供給される。CPUで割
込処理が終了すると第3の割込信号13−3の入力が終
了する。これにより第3のDフリップフロップ11−3
は、その後入力されるクロック信号12の立ち上がり時
刻tlGに、第3の出力信号14−3の出力を終了する
。The third D flip-flop 11-3 outputs a third output signal 14-3 (see FIG. h) is output. The third output signal 14-3 is supplied to a CPU (not shown) as an interrupt arbitration signal 17 via an N-input OR circuit 16. When the CPU finishes the interrupt processing, the input of the third interrupt signal 13-3 ends. As a result, the third D flip-flop 11-3
stops outputting the third output signal 14-3 at the rising edge time tlG of the clock signal 12 inputted thereafter.
同様に、第1〜第(N−1)の出力信号141〜14−
(N−1)は、(N−1)入力オア回路23にそれぞれ
入力される。これにより(N−1〉入力オア回路23か
ら各出力信号14に対応して第Nのリセット信号24が
、第NのDフリップフロップ11−Nのリセット端子P
Rに入力される。この第Nのリセット信号24が入力さ
れている間第NのDフリップフロップ11−Nは、第N
の出力信号14−Nを出力しない(第2図1)。Similarly, the first to (N-1)th output signals 141 to 14-
(N-1) are respectively input to the (N-1) input OR circuit 23. As a result, (N-1) the Nth reset signal 24 corresponding to each output signal 14 from the input OR circuit 23 is sent to the reset terminal P of the Nth D flip-flop 11-N.
input to R. While this N-th reset signal 24 is input, the N-th D flip-flop 11-N
does not output the output signal 14-N (FIG. 2, 1).
第NのDフリップフロップ11−Nは、第Nのリセット
信号24−Nの入力が出力した後に第Nの出力信号をN
入力オア回路16を介して図示しないCPUに供給する
。CPUで割込処理が終了すると第Nの割込信号13−
Nの入力が終了する。The N-th D flip-flop 11-N outputs the N-th output signal after the input of the N-th reset signal 24-N is output.
The signal is supplied to a CPU (not shown) via an input OR circuit 16. When the CPU finishes interrupt processing, the Nth interrupt signal 13-
The input of N is completed.
このように本発明によれば、1つの割込信号に基づく処
理が終了した後に次の割込信号を出力するように複数の
割込信号を調停する構成としたので、CPUの負荷を減
少させることが可能となる。As described above, according to the present invention, since the configuration is such that multiple interrupt signals are arbitrated so that the next interrupt signal is output after the processing based on one interrupt signal is completed, the load on the CPU is reduced. becomes possible.
図面は本発明の一実施例を説明するためのもので、この
うち第1図はCPU割込調停回路の回路図、第2図はC
PU割込調停回路の各部における信号の出力タイミング
を示したタイミング図である。
11−1.11−2〜11−N・・・・・・第1〜第N
のDフリップフロップ、
12・・・・・・クロック信号、
13−1〜13−N・・・・・・第1〜第Nの割込信号
、16・・・・・・N入力オア回路、
21・・・・・・2入力オア回路、
23・・・・・・(N−1)入力オア回路。The drawings are for explaining one embodiment of the present invention, of which Fig. 1 is a circuit diagram of a CPU interrupt arbitration circuit, and Fig. 2 is a circuit diagram of a CPU interrupt arbitration circuit.
FIG. 3 is a timing diagram showing the output timing of signals in each part of the PU interrupt arbitration circuit. 11-1.11-2 to 11-N...1st to Nth
D flip-flop, 12... clock signal, 13-1 to 13-N... first to Nth interrupt signals, 16... N input OR circuit, 21... 2-input OR circuit, 23... (N-1) input OR circuit.
Claims (1)
それぞれ入力し、互いに同一周期のクロック信号でリタ
イミングして出力する第1から第Nのフリップフロップ
回路と、 前記第2から第Nのフリップフロップ回路のそれぞれに
対し、前記第1から第(n−1)のフリップフロップ回
路(nは2からNの値)の出力をリセット信号として入
力するリセット手段と、前記第1から第Nのフリップフ
ロップ回路の出力の論理和を割込信号として前記CPU
に入力する入力手段 とを具備することを特徴とするCPU割込調停回路。[Scope of Claims] First to Nth flip-flop circuits each inputting first to Nth interrupt signals requesting an interrupt to a CPU, retiming them with clock signals having the same cycle, and outputting the retiming signals; Resetting means for inputting the output of the first to (n-1)th flip-flop circuits (n is a value from 2 to N) as a reset signal to each of the second to N-th flip-flop circuits; The CPU uses the logical sum of the outputs of the first to Nth flip-flop circuits as an interrupt signal.
1. A CPU interrupt arbitration circuit comprising: input means for inputting an input to a CPU interrupt arbitration circuit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7206690A JPH0476631A (en) | 1990-03-23 | 1990-03-23 | Cpu interruption arbitration circuit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7206690A JPH0476631A (en) | 1990-03-23 | 1990-03-23 | Cpu interruption arbitration circuit |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0476631A true JPH0476631A (en) | 1992-03-11 |
Family
ID=13478654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7206690A Pending JPH0476631A (en) | 1990-03-23 | 1990-03-23 | Cpu interruption arbitration circuit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0476631A (en) |
-
1990
- 1990-03-23 JP JP7206690A patent/JPH0476631A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4016539A (en) | Asynchronous arbiter | |
CN114997087B (en) | Clock tree optimization method, optimization device and related equipment | |
US4604685A (en) | Two stage selection based on time of arrival and predetermined priority in a bus priority resolver | |
JPH01134558A (en) | Arbiter circuit | |
US5713025A (en) | Asynchronous arbiter using multiple arbiter elements to enhance speed | |
GB2227343A (en) | Interrupt circuit and interrupt processing method for a microcomputer | |
JPH0476631A (en) | Cpu interruption arbitration circuit | |
US3576542A (en) | Priority circuit | |
US4321669A (en) | Microcomputer network having several microcomputer modules which are coupled onto at least one system bus | |
JPH10228491A (en) | Logic verification device | |
JPH0546535A (en) | Data transfer interface device | |
CN115688642A (en) | Design method for single-channel data cross transmission circuit | |
JP2635863B2 (en) | Central processing unit | |
JPH06187065A (en) | Clock switching circuit | |
JPS60168240A (en) | Interrupt processing circuit | |
JP2699873B2 (en) | Bus control circuit | |
JPH0651870A (en) | Reset circuit | |
JP2615504B2 (en) | Microcontroller | |
JPH0443302B2 (en) | ||
JPS58178468A (en) | Interruption system of data processing system | |
JP2000322370A (en) | Data outputting circuit | |
JPH06282353A (en) | Timer device having time shortening function | |
JP2911180B2 (en) | Synchronous control device | |
KR910008418B1 (en) | Bus arbitration circuit in round-robin selecting method | |
US20020147935A1 (en) | Timer circuit |