JPS5935453B2 - Interrupt priority determination circuit - Google Patents

Interrupt priority determination circuit

Info

Publication number
JPS5935453B2
JPS5935453B2 JP14422176A JP14422176A JPS5935453B2 JP S5935453 B2 JPS5935453 B2 JP S5935453B2 JP 14422176 A JP14422176 A JP 14422176A JP 14422176 A JP14422176 A JP 14422176A JP S5935453 B2 JPS5935453 B2 JP S5935453B2
Authority
JP
Japan
Prior art keywords
interrupt request
priority
interrupt
circuit
circuits
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
Application number
JP14422176A
Other languages
Japanese (ja)
Other versions
JPS5368138A (en
Inventor
已三夫 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP14422176A priority Critical patent/JPS5935453B2/en
Publication of JPS5368138A publication Critical patent/JPS5368138A/en
Publication of JPS5935453B2 publication Critical patent/JPS5935453B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は情報処理装置システムに於る割込処理の優先順
位決定回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a priority determining circuit for interrupt processing in an information processing system.

従来この種の割込優先順位決定回路は第1図に示すよう
に、複数個の割込み要求信号EventA〜Event
Hをクロックφ1にて一旦D−FLIPF一LOPに貯
えこのD−FLIPFLOPの出力を、あらかじめ定め
られた優先順位に従う論理積回路に入力し、その結果を
クロックφ2によりD−FLIPFLOPに貯える論理
回路により実現されている。
Conventionally, this type of interrupt priority determination circuit has a plurality of interrupt request signals EventA to EventA, as shown in FIG.
H is temporarily stored in D-FLIPFLOP by clock φ1, the output of this D-FLIPFLOP is input to an AND circuit according to a predetermined priority order, and the result is stored in D-FLIPFLOP by clock φ2. It has been realized.

したがつて優先順位は論理積回路により決定されてしま
う為、システムにより優先順位を変更したいとき、この
要求を実現できないという欠点があつた。例えば8個の
端末装置のうち、少なくとも1個を変更して別の端末装
置を接続したために優先順位が変更される場合があり、
この場合論理回路を組み変えなければならなかつた。本
発明は、優先順位を決定する論理積回路のかわりに、命
令によつて与えられる優先順位情報をJ 貯える記憶回
路を用意し、割込み要求信号と記憶回路の出力を論理演
算し、この結果にて、優先順位を決定することにより任
意に優先順位を変更できる割込優先順位決定回路を提供
することにある。本発明は、n(n≧2)個の割込要求
信号のそれぞれに対応して設けられたn個のフィールド
を有し、さらにこのn個のフィールドのそれぞれは、前
記n個の割込要求信号のそれぞれに対応して設けられた
nビツトの優先順位指示ビツトからなる優先順位情報を
格納し、かつ当該フイールドに対応する割込要求信号の
優先順位より低い順位をつけた割込要求信号に対応する
ビツトには、二値状態のうちの一方の値を付したn個の
優先順位情報を格納するn個の記憶回路と、前記n個の
優先順位情報の任意の前記フイールド毎に対応した割込
要求信号と、この割込要求信号に対応した優先順位指示
ビツトとの論理積を前記割込要求信号ごとにとるn個の
第1の論理積回路と、前記任意のフイールド毎に対応し
た割込要求信号を除く他の全ての割込要求信号のそれぞ
れと、これらの割込要求信号のそれぞれに対応した優先
順位指示ビツトとがこれらの割込要求信号ごとに否定論
理積がとられるn(n−1)個の否定論理積回路と、任
意のフイールド毎に前記第1の論理積回路の出力と、前
記n−1個の否定論理積回路の出力との論齢積をとり各
1つの割込信号を出力するn個の第2の論理積回路とを
含み、前記n個の割込要求信号求信号に対し前記n個の
第2の論理積回路から出力されるn個の優先順位が設定
された割込信号を出力することを特徴とする割込優先順
位決定回路である。
Therefore, since the priority order is determined by the AND circuit, there is a drawback that when it is desired to change the priority order by the system, this request cannot be realized. For example, the priority order may be changed because at least one of the eight terminal devices is changed and another terminal device is connected.
In this case, the logic circuit had to be rearranged. The present invention provides a memory circuit for storing priority information given by an instruction instead of an AND circuit that determines priorities, performs a logical operation on an interrupt request signal and the output of the memory circuit, and uses this result as a memory circuit. Therefore, it is an object of the present invention to provide an interrupt priority order determining circuit that can arbitrarily change the priority order by determining the priority order. The present invention has n fields provided corresponding to each of the n (n≧2) interrupt request signals, and each of the n fields corresponds to the n interrupt request signals. Priority information consisting of n bits of priority indication bits provided corresponding to each signal is stored, and the interrupt request signal is assigned a priority lower than the priority of the interrupt request signal corresponding to the field. The corresponding bits include n memory circuits for storing n pieces of priority information assigned one of the binary states, and a memory circuit corresponding to each arbitrary field of the n pieces of priority information. n first AND circuits for calculating an AND of an interrupt request signal and a priority instruction bit corresponding to the interrupt request signal for each of the interrupt request signals; Each of all other interrupt request signals except for the interrupt request signal and the priority instruction bit corresponding to each of these interrupt request signals are NANDed for each of these interrupt request signals. (n-1) NAND circuits, the output of the first AND circuit for each arbitrary field, and the output of the n-1 NAND circuits. and n second AND circuits that output two interrupt signals, and the n priority AND circuits output from the n second AND circuits in response to the n interrupt request signals. This is an interrupt priority determining circuit characterized in that it outputs an interrupt signal with a set priority.

次に本発明の一実施例について、図面を参照して説明す
る。
Next, one embodiment of the present invention will be described with reference to the drawings.

第2図を参照すると、本発明の第一の実施例は8本の割
込要求信号EventA−EventHを入力とし、ク
ロツクφ1にてEventA〜EventHの状態を貯
え出力としてE−Eを与AHえるバツフアレジスタFA
lOと、8ビツトの優先順位情報PIA−PIHを入力
とし、セツト信号SA−SHにて、それぞれPIA−P
IHの状態を記憶する記憶回路MAll、記憶回路MB
l2、記憶.回路MCl3、記憶回路MDl4、記憶回
路MEl5、記憶回路MFl6、記憶回路MGl7、記
憶回路MHl8の8個の本発明の特徴となる記憶回路と
、各記憶回路の出力及びバツフアレジスタFAlOの出
力EA−EHとを入力とし、論理演・算を行う、8個の
本発明の特徴となる論理演算回路GAl9、GB2O,
GC2l,GD22,GGE23,GF24,GG25
,GH26と、各論理演算回路の出力GA−GHを入力
とし、クロツクφ2にてGA−GHの状態を貯えるバツ
フアレジスタFB27とで構成される。
Referring to FIG. 2, the first embodiment of the present invention inputs eight interrupt request signals EventA to EventH, stores the states of EventA to EventH at clock φ1, and provides E-E as the output. Buffer register FA
IO and 8-bit priority information PIA-PIH are input, and PIA-PI is set by the set signal SA-SH.
Memory circuit MAll and memory circuit MB that store the state of IH
l2, memory. The eight memory circuits that characterize the present invention, the circuit MCl3, the memory circuit MDl4, the memory circuit MEl5, the memory circuit MFl6, the memory circuit MGl7, and the memory circuit MHl8, the output of each memory circuit, and the output of the buffer register FAlO EA- Eight logical operation circuits GAl9, GB2O,
GC2l, GD22, GGE23, GF24, GG25
, GH26, and a buffer register FB27 which inputs the output GA-GH of each logic operation circuit and stores the state of GA-GH at clock φ2.

第3図を参照すると、バツフアレジスタFAlOは8個
のD−フリツプフロツプ回路101〜108で構成され
、割込要求信号と出力の関係はそれぞれEventA−
EA,EventB−EB,・・・・・・EventH
−EHとなつている。第4図を参照すると記憶回路MA
llは8個のD−フリツプフロツプ回路109〜116
で構成され、優先順位情報と出力関係はそれぞれPA MA,PI−MA,・・・・・・PI−MAとなつてA
′ BB′ HHいる。
Referring to FIG. 3, the buffer register FAlO is composed of eight D-flip-flop circuits 101 to 108, and the relationship between the interrupt request signal and the output is EventA-108.
EA, EventB-EB, ...EventH
-EH. Referring to FIG. 4, the memory circuit MA
ll is eight D-flip-flop circuits 109 to 116.
The priority information and output relationship are PA MA, PI-MA, ... PI-MA, respectively, and A
'BB' HH is here.

又、論理演算回路GAl9は、EAとMAAを入力する
アンドゲート回路117と、EB(5MAB,E0とM
AO,EOとMAO,EEとMA,E(!−MA,Eと
MA,E(!l:MAE′ FF′ GO′ HHゝ
それぞれを入力とするナンドゲ゛一ト回路118〜12
4及び各ゲート回路の出力を入力とした8入力のアンド
ゲート回路125で構成される。
In addition, the logic operation circuit GAl9 includes an AND gate circuit 117 inputting EA and MAA, and EB (5MAB, E0 and M
Nandgate circuits 118 to 12 whose inputs are AO, EO and MAO, EE and MA, E (!-MA, E and MA, E (!l: MAE'FF'GO' HH)
4 and an 8-input AND gate circuit 125 which receives the outputs of each gate circuit as inputs.

第5図を参照すると、バツフアレジスタFB27は8個
のD−フリツプフロツプ回路126〜133で構成さへ
8個の論理演算回路GAl9〜GH26の各出力GA
−GHを入力とし、対応する出力すなわち割込信号Ev
enta−Eventhを与える。
Referring to FIG. 5, the buffer register FB27 is composed of eight D-flip-flop circuits 126 to 133.Each output GA of the eight logic operation circuits GAl9 to GH26 is shown in FIG.
-GH as input and corresponding output, that is, interrupt signal Ev
Give enta-Eventh.

論理演算回路GB2O〜GH26に関してもGAl9と
同様である。但し、バツフアレジスタFAlOの出力E
A−EHとそれぞれ対応する記憶回路の出力MXY(X
及びYはB−Hを示す)を入力すろとゲート回路はMX
OI)X(5−Yが同一文Y字の場合は、アンドゲート
回路、異なればナンドゲート回路が適用される。
The logic operation circuits GB2O to GH26 are also similar to GAl9. However, the output E of buffer register FAlO
The outputs MXY(X
and Y indicates B-H), the gate circuit will be MX
If OI)

記憶回路MAll〜MHl8には、あらかじめ情報処理
装置の命令によりMAllへはEventAに対する優
先順位情報を、MBl2にはEventBに対する優先
順位情報をそれぞれ貯えておく。
In the memory circuits MAll to MHl8, priority information for Event A is stored in MAll and priority information for Event B is stored in MBl2 in advance according to a command from the information processing device.

同様にMCl3〜MHl8にもそれぞれ割込要求信号E
ventC−EventHに対する優先順位情報を貯え
ておく。第6図は割込要求信号EventA−Even
tHの優先順位を仮定した場合の記憶回路MAll〜M
Hl8と、貯える優先順位情報との対応を示したもので
ある。
Similarly, interrupt request signals E are also sent to MCl3 to MHL8 respectively.
Priority information for eventC-EventH is stored. Figure 6 shows the interrupt request signal EventA-Even.
Memory circuits MAll to M when assuming the priority order of tH
This shows the correspondence between Hl8 and stored priority information.

第4図を参照すると、MAAが論理値ゝゝ0″にあると
、EA−EH(ハ)??びびMA3〜MAの状態に関係
なくGは論理値10′5とH ″Aなる。
Referring to FIG. 4, when MAA is at the logic value ``0'', G becomes the logic value 10'5 and H''A regardless of the states of EA-EH(c)?? and MA3-MA.

従つて、MAAを出力しているD−フリツプフロツプ回
路116は割込要求信号EventAの受付け許可又は
禁止を規定する制御を行う。MAが論理値11″でEが
論理値11′2のとAAきGが論理値01″をとる為に
はナンドゲートA回路118〜ナンドゲート回路124
の全てのナンドゲート回路の出力が論理値11″となら
なければならない。
Therefore, the D-flip-flop circuit 116 outputting MAA performs control to specify whether or not to permit or disable acceptance of the interrupt request signal EventA. In order for MA to have a logical value of 11'' and E to have a logical value of 11'2, and AA and G to have a logical value of 01'', NAND gate A circuit 118 to NAND gate circuit 124 are required.
The outputs of all NAND gate circuits must have a logic value of 11''.

ナンドゲート回路出力が論理値11′2となる為には、
入力である、D−フリツプフロツプの出力が論理値Tt
O″の状態にあるかもしくは対応するE−Eが論理値゛
0″になつてAHなければならない。
In order for the NAND gate circuit output to have a logical value of 11'2,
The output of the D-flip-flop, which is the input, is the logical value Tt.
It must be in the state of ``O'' or the corresponding E-E must be in the logical value ``0'' and become AH.

従つてたとえばMAが論理0B値10′2であればEが
論理値Ttl゛2でもナンドBゲート回路118は出力
として論理値Ttl”5を与えることができる。
Therefore, for example, if MA has a logic 0B value of 10'2, even if E has a logic value of Ttl'2, the NAND B gate circuit 118 can provide a logic value of Ttl'5 as an output.

逆に論理値01″のときは、EBが論理値゛0”でなけ
れば、ナンドゲート回路118の出力の論理値Ttl″
を得ることができない。このことからD−フリツプフロ
ツプ回路115は割込要求信号EventBに対し割込
要求信号EventAが高い優先順位にあるか、低い優
先順位にあるかを指定制御する。同様にして、Dフリツ
プフロツプ回路114は割込要求信号EventCに対
するD−フリツプフロツプ回路113は割込要求信号E
ventDに対する、D−フリツプフロツプ回路112
は割込要求信号EventEに対する、D−フリツプフ
ロツプ回路111は割込要求信号EventFに対する
、D−フリツプフロツプ回路110は割込要求信号Ev
entGに対する、D−フリツプフロツプ回路109は
割込要求信号EventHに対する、それぞれ割込要求
信号EventAとの優先順位の高低を指定制御する。
同様にして、記憶回路MBl2は割込要求信号Even
tBと他の割込要求信号Eventとの優先順位の高低
及び割込要求信号EventBの受付け許可又は禁止の
指定制御を行う。以下、他の記憶回路についても対応す
る割込要求信号Eventに対し、他の割込要求信号E
ventとの優先順位の高低及び受付け許可又は禁止の
指定制御を行う。この様にして、あらかじめ記憶回路に
優先順位情報を貯えた状態で割込要求信号EventA
−EventHが入力されると、許可された割込信号で
且つ、論理値゛1”の信号のうち、最も優先順位の高い
割込信号が、バツフアレジスタ27の出力に論理値゛1
゛2として得る事が可能となり、記憶回路に貯える優先
順位情報を変更することにより割込み信号の優先順位を
任意に定めることができる。
Conversely, when the logical value is 01'', if EB is not the logical value 0, the logical value Ttl'' of the output of the NAND gate circuit 118
can't get it. From this, the D-flip-flop circuit 115 specifies and controls whether the interrupt request signal EventA has a high priority or a low priority with respect to the interrupt request signal EventB. Similarly, the D-flip-flop circuit 114 receives the interrupt request signal EventC, and the D-flip-flop circuit 113 receives the interrupt request signal E.
D-flip-flop circuit 112 for ventD
is for the interrupt request signal EventE, the D-flip-flop circuit 111 is for the interrupt request signal EventF, and the D-flip-flop circuit 110 is for the interrupt request signal Ev.
The D-flip-flop circuit 109 for entG specifies and controls the priority level of the interrupt request signal EventH relative to the interrupt request signal EventA.
Similarly, the memory circuit MBl2 receives the interrupt request signal Even.
Controls the priority levels of tB and other interrupt request signals Event and designates whether to permit or prohibit acceptance of the interrupt request signal EventB. Hereinafter, for other storage circuits, other interrupt request signals E will be
It controls the priority level with respect to the event and designates whether to allow or prohibit reception. In this way, the interrupt request signal EventA is generated with the priority information stored in the memory circuit in advance.
- When EventH is input, the interrupt signal with the highest priority among the enabled interrupt signals and the signals with a logic value of "1" is sent to the output of the buffer register 27 with a logic value of "1".
By changing the priority information stored in the memory circuit, the priority order of the interrupt signal can be arbitrarily determined.

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

第1図は従来の割込み優先順位決定回路、第2図は、本
発明の第一の実施例の概略図、第3図は第2図に図示さ
れたバツフアレジスタFAlOの詳細図、第4図は第2
図に図示された記憶回路MAllと、論理演算回路GA
l9の詳細図、第5図は第2図に図示された、バツフア
レジスタFB27の詳細図である。 EventA−EventH・・・・・・割込要求信号
、Eventa−Eventh・・・・・・割込信号、
PIA−PIH・・・・・・優先順位情報、10・・・
・・・バツフアレジスタ、11〜18・・・・・・記憶
回路、19〜26・・・・・・論理演算回路、27・・
・・・・バツフアレジスタ。
FIG. 1 is a conventional interrupt priority determining circuit, FIG. 2 is a schematic diagram of a first embodiment of the present invention, FIG. 3 is a detailed diagram of buffer register FAlO shown in FIG. 2, and FIG. The figure is the second
The memory circuit MAll and the logic operation circuit GA illustrated in the figure
FIG. 5 is a detailed diagram of the buffer register FB27 shown in FIG. 2. EventA-EventH...Interrupt request signal, Eventa-Eventh...Interrupt signal,
PIA-PIH...Priority information, 10...
...Buffer register, 11-18...Memory circuit, 19-26...Logic operation circuit, 27...
・・・Basshua register.

Claims (1)

【特許請求の範囲】[Claims] 1 n(n≧2)個の割込要求信号のそれぞれに対応し
て設けられたn個のフィールドを有し、さらにこのn個
のフィールドのそれぞれは、前記n個の割込要求信号の
それぞれに対応して設けられたnビットの優先順位指示
ビットからなる優先順位情報を格納し、かつ当該フィー
ルドに対応する割込要求信号の優先順位より低い順位を
つけた割込要求信号に対応するビットには、二値状態の
うちの一方の値を付したn個の優先順位情報を格納する
n個の記憶回路と、前記n個の優先順位情報の任意の前
記フィールド毎に対応した割込要求信号と、この割込要
求信号に対応した優先順位指示ビットとの論理積を前記
割込要求信号ごとにとるn個の第1の論理積回路と、前
記任意のフィールド毎に対応した割込要求信号を除く他
の全ての割込要求信号のそれぞれと、これらの割込要求
信号のそれぞれに対応した優先順位指示ビットとがこれ
らの割込要求信号ごとに否定論理積がとられるn(n−
1)個の否定論理積回路と、任意のフィールド毎に前記
第1の論理積回路の出力と、前記n−1個の否定論理積
回路の出力との論理積をとり各1つの割込信号を出力す
るn個の第2の論理積回路とを含み、前記n個の割込要
求信号に対し前記n個の第2の論理積回路から出力され
るn個の優先順位が設定された割込信号を出力すること
を特徴とする割込優先順位決定回路。
1 has n fields provided corresponding to each of the n (n≧2) interrupt request signals, and each of the n fields corresponds to each of the n interrupt request signals. A bit corresponding to an interrupt request signal that stores priority information consisting of n-bit priority instruction bits provided corresponding to the field, and is given a lower priority than the priority of the interrupt request signal corresponding to the field. includes n memory circuits that store n pieces of priority information assigned one of the binary states, and an interrupt request corresponding to each arbitrary field of the n pieces of priority information. n first logical product circuits that calculate a logical product of a signal and a priority instruction bit corresponding to the interrupt request signal for each of the interrupt request signals; and an interrupt request corresponding to each of the arbitrary fields. n(n−
1) AND the output of the first AND circuit and the output of the n-1 NAND circuits for each arbitrary field, and generate one interrupt signal for each field. n second AND circuits that output n interrupt request signals; An interrupt priority determination circuit characterized in that it outputs an interrupt signal.
JP14422176A 1976-11-30 1976-11-30 Interrupt priority determination circuit Expired JPS5935453B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14422176A JPS5935453B2 (en) 1976-11-30 1976-11-30 Interrupt priority determination circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14422176A JPS5935453B2 (en) 1976-11-30 1976-11-30 Interrupt priority determination circuit

Publications (2)

Publication Number Publication Date
JPS5368138A JPS5368138A (en) 1978-06-17
JPS5935453B2 true JPS5935453B2 (en) 1984-08-29

Family

ID=15357052

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14422176A Expired JPS5935453B2 (en) 1976-11-30 1976-11-30 Interrupt priority determination circuit

Country Status (1)

Country Link
JP (1) JPS5935453B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6278623A (en) * 1985-10-02 1987-04-10 Toshiba Corp Magnetic disk device
JPH0827725B2 (en) * 1987-03-17 1996-03-21 富士通株式会社 Register circuit

Also Published As

Publication number Publication date
JPS5368138A (en) 1978-06-17

Similar Documents

Publication Publication Date Title
JPS61239327A (en) Overflow detecting system
US6342792B1 (en) Logic module circuitry for programmable logic devices
US6961741B2 (en) Look-up table apparatus to perform two-bit arithmetic operation including carry generation
JPH07152586A (en) Cyclic priority-level encoder
JPS5935453B2 (en) Interrupt priority determination circuit
US5426766A (en) Microprocessor which holds selected data for continuous operation
US5357235A (en) Parallelized magnitude comparator
US5146479A (en) Up/down counter for counting binary data stored in flip flops
US5018092A (en) Stack-type arithmetic circuit
JP3166193B2 (en) Semiconductor integrated circuit
JP2882617B2 (en) Programmable logic cell
EP1081590A1 (en) An incrementer/decrementer having a reduced fan-out architecture
JP3310482B2 (en) Microcomputer
US3729711A (en) Shift apparatus for small computer
JP2635863B2 (en) Central processing unit
JPH08179998A (en) Multi-stage hardware timer
JP3057749B2 (en) I / O port
KR100199190B1 (en) Data acquisition logic
JPH0528746A (en) Fifo memory circuit
JPH0325527A (en) Digital signal processor
JPH05298068A (en) Comparator
JPH0575414A (en) Data selection circuit
JPH0514138A (en) Latch circuit with temporary latch function
JPH02128251A (en) Drawing address operation system
JPH0285909A (en) Digital function generator