JPH0319974B2 - - Google Patents
Info
- Publication number
- JPH0319974B2 JPH0319974B2 JP14804083A JP14804083A JPH0319974B2 JP H0319974 B2 JPH0319974 B2 JP H0319974B2 JP 14804083 A JP14804083 A JP 14804083A JP 14804083 A JP14804083 A JP 14804083A JP H0319974 B2 JPH0319974 B2 JP H0319974B2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- level
- signal
- register
- output
- 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
- 238000000034 method Methods 0.000 claims description 20
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
- G06F9/4818—Priority circuits therefor
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
Description
【発明の詳細な説明】
発明の属する技術分野
本発明は、データ処理装置における割込み制御
装置に関し、特に、最高優先の割込み要求から順
に割込み処理するデータ処理装置に対する割込み
を決定する制御方式に関する。DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to an interrupt control device for a data processing device, and more particularly to a control method for determining interrupts for a data processing device that processes interrupts in order starting from the highest priority interrupt request.
従来技術
複数の実行プロセスレベルを有し、最高優先割
込みレベルに対応した処理を順次実行するデータ
処理装置への割込み制御は、従来、以下に示す手
順で行なつている。Prior Art Conventionally, interrupt control for a data processing device that has a plurality of execution process levels and sequentially executes processes corresponding to the highest priority interrupt level has been performed using the following procedure.
先ず、複数のポートから入力した複数の割込み
レベル信号をそれぞれデコードし、デコードした
レベル信号をレベルごとに集め優先順位回路を通
して最高優先レベルを決定する。次に、最高優先
レベルに対応する割込みレベルのポートを選択す
る。該ポートが複数個あるときは、選択したポー
トをさらに優先順位回路を通して最高優先ポート
を決定する。次に、上記最高優先ポートに対応す
る割込みアドレス情報を選択する。そして、前記
最高優先レベルと現在実行レベルとを比較して、
割込みレベルの方が高いとき上位処理装置に割込
む。 First, a plurality of interrupt level signals input from a plurality of ports are respectively decoded, the decoded level signals are collected for each level, and the highest priority level is determined through a priority circuit. Next, select the port with the interrupt level corresponding to the highest priority level. When there are a plurality of such ports, the selected port is further passed through a priority circuit to determine the highest priority port. Next, interrupt address information corresponding to the highest priority port is selected. Then, comparing the highest priority level and the current execution level,
Interrupts the higher-level processing unit when the interrupt level is higher.
上述の手順を実行する従来の割込み制御装置
は、制御が複雑であり、ハードウエア量が大きく
なるという欠点がある。 Conventional interrupt control devices that perform the above-described procedure have the drawbacks of complex control and large hardware requirements.
発明の目的
本発明の目的は、上述の従来の欠点を解決し、
処理手順が簡単でハードウエア量の小さい割込み
制御装置を提供することにある。OBJECT OF THE INVENTION The object of the invention is to solve the above-mentioned conventional drawbacks and
An object of the present invention is to provide an interrupt control device that has a simple processing procedure and a small amount of hardware.
発明の構成
本発明の割込み制御装置は、複数の割込み要求
に対して割込みレベル信号および割込みアドレス
信号を入力し、最高優先順位から順に割込み処理
するデータ処理装置に対する割込み要求を制御す
る割込み制御装置において、現在実行中のプロセ
スレベルを保持する現在処理レベルレジスタと、
複数のポートから入力した割込みレベル信号をそ
れぞれ前記現在処理レベルレジスタの出力と比較
して現在処理レベルより高い優先順位を有する割
込みレベル信号に対して割込み有効信号を出力す
る複数のレベル比較器と、該複数のレベル比較器
の出力を入力して前記割込み有効信号を出力して
いるレベル比較器のうちから任意の1つを選択し
対応するポート番号を出力するポート指定回路
と、該ポート指定回路の出力によつて対応するポ
ートに入力した割込みレベル信号を選択出力する
レベル信号選択回路と、前記ポート指定回路の出
力によつて対応するポートに入力した前記割込み
アドレス情報を選択出力する割込みアドレス情報
選択回路と、前記割込み有効信号が少なくとも1
つあることを検出すると割込み信号を発生する手
段とを備えて、現在実行中のプロセスレベルより
高レベルの割込みが発生したポートのうち任意の
1つを選択して該ポートに入力した割込みレベル
信号と割込みアドレス情報によつて前記データ処
理装置に割込むことを特徴とする。Composition of the Invention The interrupt control device of the present invention is an interrupt control device that inputs an interrupt level signal and an interrupt address signal for a plurality of interrupt requests, and controls interrupt requests to a data processing device that processes interrupts in order starting from the highest priority. , a current processing level register holding the currently executing process level;
a plurality of level comparators that respectively compare interrupt level signals input from a plurality of ports with the output of the current processing level register and output an interrupt enable signal for an interrupt level signal having a higher priority than the current processing level; a port designation circuit that selects any one of the level comparators inputting the outputs of the plurality of level comparators and outputs the interrupt enable signal and outputs the corresponding port number; and the port designation circuit. a level signal selection circuit that selects and outputs the interrupt level signal input to the corresponding port by the output of the port designation circuit; and interrupt address information that selectively outputs the interrupt address information input to the corresponding port by the output of the port designation circuit. a selection circuit, and the interrupt enable signal is at least one
means for generating an interrupt signal when detecting that an interrupt exists, and selects any one of the ports in which an interrupt of a higher level than the currently executing process level has occurred, and inputs the interrupt level signal to the port. The data processing apparatus is characterized in that the data processing apparatus is interrupted by interrupt address information.
発明の実施例
次に、本発明について、図面を参照して詳細に
説明する。Embodiments of the Invention Next, the present invention will be described in detail with reference to the drawings.
第1図は、本発明が適用されるデータ処理装置
の一例を示すブロツク図である。すなわち、処理
装置2は、レベル0〜7の実行プロセスレベルを
持つた処理装置である。入出力チヤネル装置3〜
8は、図示されない各種の周辺装置を接続して、
主記憶装置9とのデータ転送を制御する。主記憶
装置9は、処理すべきプログラムやデータを記憶
させるためのメモリである。システム制御装置1
は、処理装置2と出力チヤネル装置3〜8からの
主記憶装置9へのアクセス制御を行なうと共に、
入出力チヤネル装置3〜8からの割込み信号(割
込みレベル信号と割込みアドレス情報とを含む)
を受信して処理装置2への割込ませるための本発
明の割込み制御装置を含んでいる。上記割込み信
号は、例えば3ビツトでコード化された割込みレ
ベル信号と、8ビツトの割込みアドレス情報とを
含んでいる。割込みレベルは、割込み事象対応
に、予め固定的に定められたレベルであつて、周
辺装置の転送速度や処理要求の種類によつて決ま
る。割込みアドレスは、システムのイニシヤリゼ
ーシヨン時に処理装置2からプログラムにより各
入出力チヤネル装置3〜8に設定されるもので、
割込み事象対応に異つた値が設定される。割込み
アドレス情報は、処理装置2でのプロセス移行制
御時に、割込みベクタのベースアドレスに加算さ
れて割込み事象に対応した割込みベクタを得るた
めに使用される。割込みベクタは、命令カウンタ
IC、プロセス制御レジスタPSR、ページベース
レジスタPTBR等から構成され、割込み処理プ
ログラムの開始アドレスとモード類を規定してい
る。 FIG. 1 is a block diagram showing an example of a data processing device to which the present invention is applied. That is, the processing device 2 is a processing device having execution process levels of levels 0 to 7. Input/output channel device 3~
8 connects various peripheral devices (not shown);
Controls data transfer with the main storage device 9. The main storage device 9 is a memory for storing programs and data to be processed. System control device 1
controls access to the main storage device 9 from the processing device 2 and output channel devices 3 to 8, and
Interrupt signals from input/output channel devices 3 to 8 (including interrupt level signals and interrupt address information)
It includes an interrupt control device of the present invention for receiving and interrupting the processing device 2. The above-mentioned interrupt signal includes, for example, an interrupt level signal coded in 3 bits and 8-bit interrupt address information. The interrupt level is a level that is fixedly determined in advance in response to an interrupt event, and is determined by the transfer speed of the peripheral device and the type of processing request. The interrupt address is set to each input/output channel device 3 to 8 by a program from the processing device 2 at the time of system initialization.
Different values are set for interrupt events. The interrupt address information is added to the base address of the interrupt vector during process transition control in the processing device 2 and used to obtain an interrupt vector corresponding to an interrupt event. Interrupt vector is instruction counter
It consists of an IC, process control register PSR, page base register PTBR, etc., and defines the start address and mode of the interrupt processing program.
第2図は、本発明の一実施例を示す回路図であ
り、本割込み制御装置は、前記システム制御装置
1に内臓して使用される。システム制御装置1の
ポートA〜Gから入力した割込みレベル信号LA
〜LGおよび割込みアドレス情報AA〜AGは、そ
れぞれレベル信号選択回路111および割込みア
ドレス情報選択回路112に入力させ、また、レ
ベル比較回路102〜108において、後述する
現在処理レベルレジスタ110の出力する現在実
行中のプロセスレベルと比較される。割込みレベ
ルは、レベル0が一番優先順位が高く、レベル7
が最低順位と定義されているものとする。 FIG. 2 is a circuit diagram showing an embodiment of the present invention, and the present interrupt control device is used as a built-in part of the system control device 1. As shown in FIG. Interrupt level signal LA input from ports A to G of system control device 1
~LG and interrupt address information AA~AG are input to the level signal selection circuit 111 and interrupt address information selection circuit 112, respectively, and in the level comparison circuits 102 to 108, the current execution output from the current processing level register 110, which will be described later, is compared to the internal process level. As for interrupt levels, level 0 has the highest priority, and level 7
is defined as the lowest rank.
現在処理レベルレジスタ110は、イニシヤラ
イズ信号によつて最低優先順位のレベル7に初期
設定され、図示されない処理装置から与えられる
割込み受付信号によつて、次に割込むべき新しい
高位のレベルがセツトされる。また、処理装置か
らの処理プロセスのリリース信号によつて、レベ
ル7にリセツトされる。処理プロセスのリリース
信号は、割込み処理プログラムの最後にプログラ
ムによつて発行されるものであり、当該割込み処
理プログラムの完了を意味する。 The current processing level register 110 is initially set to the lowest priority level 7 by an initialize signal, and a new higher level to be interrupted next is set by an interrupt acceptance signal given from a processing device (not shown). . Further, it is reset to level 7 by a release signal of the processing process from the processing device. The release signal of the processing process is issued by the program at the end of the interrupt processing program, and signifies the completion of the interrupt processing program.
現在処理レベルレジスタ110の出力はレベル
比較器101〜108の一方の入力に接続し、比
較回路102〜108においては、前述のように
それぞれ各ポートからの割込みレベル信号LA〜
LGと現在処理レベルレジスタ110の出力のレ
ベルを比較し、割込みレベル信号のレベルの方が
高いときは、割込み有効信号を発生してポート指
定回路109に入力させる。レベル比較器101
は、現在処理レベルレジスタ110の出力と後述
するオールドレジスタエンコード回路116の出
力とを比較して、オールドレジスタエンコード回
路116の出力の方が高レベルのとき割込み有効
信号を出力するオールドレベル比較器である。 The output of the current processing level register 110 is connected to one input of the level comparators 101 to 108, and the comparison circuits 102 to 108 receive interrupt level signals LA to 1 from each port, respectively, as described above.
The level of LG and the output of the current processing level register 110 are compared, and if the level of the interrupt level signal is higher, an interrupt enable signal is generated and input to the port designation circuit 109. Level comparator 101
is an old level comparator that compares the output of the current processing level register 110 and the output of an old register encode circuit 116, which will be described later, and outputs an interrupt enable signal when the output of the old register encode circuit 116 is at a higher level. be.
また、レベル信号選択回路111は、後述する
ように、ポート指定回路109の出力によつて次
に処理されるべきレベル信号503を出力して現
在処理レベルレジスタ110に入力させると共に
セツト用デコーダ回路113にも供給し、セツト
用デコーダ回路113は、処理装置からの割込み
受付け信号によつて、該信号をデコードしてオー
ルドレベルレジスタ115の対応するビツトを
“1”にセツトする。そして、現在処理レベルが
リリースされるとき、現在処理レベルレジスタ1
10の出力がリセツト用デコーダ回路114によ
つてデコードされ、オールドレベルレジスタ11
5の対応するビツトが“0”にリセツトされる。
オールドレベルレジスタ115は、レベル0〜7
に対応させた8ビツト構成のレジスタであり、イ
ニシヤライズでレベル7に対応するビツトが
“1”に、レベル0〜6に対応するビツトが“0”
に初期設定されている。このオールドレベルレジ
スタ115は、現在処理中のレベルおよび後述す
る新たな高位の割込みによつて保留されてしまつ
たプロセスレベルに対応するビツトを“1”にセ
ツトしておいて、保留されたプロセスの再開の制
御に使用されるレジスタである。オールドレジス
タエンコード回路116は、オールドレベルレジ
スタ115に保留されている割込みレベルのうち
の最高位のレベルに対応する(コード化された)
割込みレベル信号を出力して前記比較回路101の
一方の入力に入力させる。すなわち、保留されて
いるプロセスレベルの最高位に対応する割込みレ
ベル信号がオールドレベル比較器101において
現在処理中のレベルと比較される。 Furthermore, as will be described later, the level signal selection circuit 111 outputs a level signal 503 to be processed next based on the output of the port designation circuit 109 and inputs it to the currently processed level register 110, and also outputs a level signal 503 to be processed next, and inputs the level signal 503 to the current processing level register 110. The setting decoder circuit 113 decodes the interrupt acceptance signal from the processing device and sets the corresponding bit of the old level register 115 to "1". Then, when the current processing level is released, the current processing level register 1
The output of 10 is decoded by the reset decoder circuit 114 and output to the old level register 11.
The corresponding bit of 5 is reset to "0".
The old level register 115 has levels 0 to 7.
This is an 8-bit register that corresponds to
is initially set to . This old level register 115 sets bits to "1" corresponding to the level currently being processed and the process level that has been suspended due to a new higher-level interrupt, which will be described later. This is a register used to control restart. The old register encode circuit 116 corresponds to (encoded) the highest level of the interrupt levels pending in the old level register 115.
An interrupt level signal is output and inputted to one input of the comparison circuit 101. That is, the interrupt level signal corresponding to the highest pending process level is compared in the old level comparator 101 with the level currently being processed.
レベル比較器101〜108の出力する割込み
有効信号は、それぞれポート指定回路109の特
定の1つのポートOおよびポートA〜Gに入力さ
せる。ポート指定回路109は、ポートOを最高
位に、以下ポートA〜Gの順にレベル付けしてい
る。従つてポート指定回路109の出力501
は、最高位のポート番号(オールドレベルはコー
ド“0”ポートGはコード“7”)を示す信号と
なる。この信号によつて、レベル信号選択回路1
11および割込みアドレス情報選択回路112の
選択動作が制御され、レベル信号選択回路111
は、指定されたポート番号に対応する割込みレベ
ル信号を選択出力し、割込みアドレス情報選択回
路112は、指定されたポート番号に対応するア
ドレス情報を選択出力する。また、ポート指定回
路109は、レベル比較器101〜108の出力
する割込み有効信号の論理和によつて割込み信号
502を発生して処理装置2へ送る。処理装置2が、
割込み信号502を受信し、割込み受付信号が現
在処理レベルレジスタ110に与えられるとレベ
ル選択回路111の出力503が現在処理レベル
レジスタ110にセツトされ、該レジスタの出力
および前記アドレス情報選択回路112の出力す
るアドレス情報504が処理装置2へ送出され
る。これにより処理装置2は上記情報をレベル別
のレジスタに一旦格納したのち、割込み処理を行
なう。 The interrupt valid signals output from the level comparators 101 to 108 are inputted to one specific port O and ports A to G of the port designation circuit 109, respectively. The port designation circuit 109 assigns levels to ports A to G in order, with port O being the highest level. Therefore, the output 501 of the port designation circuit 109
is a signal indicating the highest port number (code "0" for old level, code "7" for port G). By this signal, the level signal selection circuit 1
11 and the interrupt address information selection circuit 112 are controlled, and the level signal selection circuit 111
selectively outputs the interrupt level signal corresponding to the designated port number, and the interrupt address information selection circuit 112 selectively outputs the address information corresponding to the designated port number. Further, the port designation circuit 109 outputs an interrupt signal based on the logical sum of the interrupt valid signals output from the level comparators 101 to 108.
502 and sends it to the processing device 2. The processing device 2
When the interrupt signal 502 is received and the interrupt acceptance signal is given to the current processing level register 110, the output 503 of the level selection circuit 111 is set to the current processing level register 110, and the output of this register and the output of the address information selection circuit 112 are set. address information 504 is sent to the processing device 2. As a result, the processing device 2 temporarily stores the above information in the registers for each level, and then performs interrupt processing.
一方、前記割込み受付信号により、レベル選択
回路111の出力がセツト用デコーダ回路113
でデコードされ、オールドレベルレジスタ115
の対応するビツトが“1”にセツトされる。この
ビツトは、当該割込み処理の完了時に、処理装置
2からのリリース信号によつて、リセツト用デコ
ーダ回路114を介してリセツトされる。しか
し、後述するように、高位割込みレベルの発生に
よつて、当該割込み処理が保留されたときは、当
該割込みレベルは、オールドレベルレジスタ11
5に保持されていて、高位割込みの完了後に割込
み処理されることになる。 On the other hand, due to the interrupt acceptance signal, the output of the level selection circuit 111 is transferred to the set decoder circuit 113.
decoded by old level register 115
The corresponding bit of is set to "1". This bit is reset via the reset decoder circuit 114 by a release signal from the processing device 2 when the interrupt processing is completed. However, as will be described later, when the interrupt processing is suspended due to the occurrence of a higher interrupt level, the interrupt level is stored in the old level register 11.
5, and the interrupt will be processed after the high-level interrupt is completed.
次に、本実施例の動作について説明する。今、
例えば、第1図の入出力チヤネル装置7から優先
レベル4の割込みが発生し、入出力チヤネル装置
6から優先レベル3の割込みが発生したものとす
る。入出力チヤネル装置7からの割込みレベル信
号LBおよび割込みアドレス情報ABは、システ
ム制御回路1のポートBに入力され、割込みレベ
ル信号LBは、第2図のレベル比較器103によ
つて現在処理レベルレジスタ110の出力と比較
される。今、現在処理レベルレジスタ110の出
力は、レベル7であるから、レベル比較器103
は、割込み有効信号を発生して、ポート指定回路
109のポートBに入力される。同様にレベル比
較器104も割込み有効信号を発生してポート指
定回路109のポートCに入力させる。しかし、
ポート指定回路109は、ポートBの入力を優先
選択し、ポート番号2をポート指定信号501と
して出力する。これにより、レベル信号選択回路
111および割込みアドレス情報選択回路112
は、それぞれ前記割込みレベル信号LB(レベル
4)および割込みアドレス情報ABを選択出力す
る。同時に、割込み有効信号の論理和信号が処理
装置2への割込み信号502として出力される。
処理装置2からの割込み受付信号が現在処理レベ
ルレジスタ110に与えられると、レベル信号選
択回路111の出力503が現在処理レベルレジ
スタ110にセツトされ、現在処理レベルレジス
タ110の出力(レベル4)および割込みアドレ
ス情報選択回路112の出力(割込みアドレス情
報AB)が処理装置2に送出され、処理装置2
は、該割込みアドレス情報ABをレベル4のレジ
スタにセツトして、割込み処理を開始しようとす
る。 Next, the operation of this embodiment will be explained. now,
For example, assume that an interrupt of priority level 4 occurs from the input/output channel device 7 in FIG. 1, and an interrupt of priority level 3 occurs from the input/output channel device 6. The interrupt level signal LB and interrupt address information AB from the input/output channel device 7 are input to port B of the system control circuit 1, and the interrupt level signal LB is sent to the current processing level register by the level comparator 103 in FIG. 110 output. Now, since the output of the current processing level register 110 is level 7, the level comparator 103
generates an interrupt enable signal, which is input to port B of port designation circuit 109. Similarly, level comparator 104 also generates an interrupt enable signal and inputs it to port C of port designation circuit 109. but,
The port designation circuit 109 selects the input of port B with priority and outputs port number 2 as the port designation signal 501. As a result, the level signal selection circuit 111 and the interrupt address information selection circuit 112
selectively output the interrupt level signal LB (level 4) and interrupt address information AB, respectively. At the same time, a logical sum signal of the interrupt enable signals is output as an interrupt signal 502 to the processing device 2.
When the interrupt acceptance signal from the processing device 2 is given to the current processing level register 110, the output 503 of the level signal selection circuit 111 is set to the current processing level register 110, and the output (level 4) of the current processing level register 110 and the interrupt are set. The output of the address information selection circuit 112 (interrupt address information AB) is sent to the processing device 2.
attempts to set the interrupt address information AB in the level 4 register and start interrupt processing.
一方、前記割込み受付信号によつて、セツト用
デコーダ回路113がレベル信号選択回路111
の出力503(レベル4)をデコードしてオール
ドレベルレジスタ115のレベル4に対応するビ
ツトを“1”とする。オールドレジスタエンコー
ド回路116は、オールドレベルレジスタ115
の最高レベル(今、レベル4である)に対応する
割込みレベル信号を出力する。該信号は、オール
ドレベル比較器101において現在処理レベルレ
ジスタ110の出力(レベル4)と比較される。
オールドレベル比較器101の両入力は同レベル
であるから、レベル比較器101の出力は“0”
である。また、レベル比較器103には、現在処
理レベルレジスタ110の出力(レベル4)が入
力し、レベル比較器103の出力も“0”とな
る。レベル比較器104は、現在処理レベルレジ
スタ110の出力(レベル4)と前記割込みレベ
ル信号LC(レベル3)とを比較することにより、
“1”を出力している。従つて、ポート指定回路
109は、今やレベル比較器104の出力を優先
選択するようになる。そして、ポートCに対応す
るポート番号3をポート指定信号501として出
力し、また、割込み有効信号の論理和信号によつ
て再び割込み信号502を発生する。処理装置2
からの割込み受付信号により現在処理レベルレジ
スタ110にレベル3がセツトされて処理装置2
に送出され、処理装置2は、割込みアドレス情報
選択回路112の出力する割込みアドレス情報
ACによつて割込み処理を開始する。従つて、先
に発生した割込みレベル4の割込み処理は、一時
保留され後回しとされる。 On the other hand, in response to the interrupt acceptance signal, the set decoder circuit 113 selects the level signal selection circuit 111.
The bit corresponding to level 4 of the old level register 115 is set to "1" by decoding the output 503 (level 4) of the old level register 115. The old register encode circuit 116 encodes the old level register 115.
The interrupt level signal corresponding to the highest level (currently level 4) is output. This signal is compared in the old level comparator 101 with the output of the current processing level register 110 (level 4).
Since both inputs of the old level comparator 101 are at the same level, the output of the level comparator 101 is “0”.
It is. Further, the output (level 4) of the current processing level register 110 is input to the level comparator 103, and the output of the level comparator 103 also becomes "0". The level comparator 104 compares the output of the current processing level register 110 (level 4) with the interrupt level signal LC (level 3), thereby
“1” is output. Therefore, the port designation circuit 109 now preferentially selects the output of the level comparator 104. Then, port number 3 corresponding to port C is output as a port designation signal 501, and an interrupt signal 502 is generated again based on the OR signal of the interrupt enable signal. Processing device 2
Level 3 is set in the current processing level register 110 by the interrupt acceptance signal from the processing device 2.
The processing device 2 receives the interrupt address information output from the interrupt address information selection circuit 112.
Interrupt processing is started by AC. Therefore, the interrupt processing of interrupt level 4 that occurred earlier is temporarily suspended and postponed.
上記割込みレベル3の割込み処理が完了する
と、処理装置2からのリリース信号によつて現在
処理レベルレジスタ110がレベル7にリセツト
される。一方、オールドレベルレジスタ115の
レベル3に対応するビツトもリセツト用デコーダ
回路114を介して“0”にリセツトされる。従
つて、今やオールドレベルレジスタ115は、レ
ベル4に対応するビツトのみが“1”である。そ
して、オールドレジスタエンコード回路116の
出力は、レベル4を示す割込みレベル信号を出力
している。このため、オールドレベル比較器10
1はレベル7とレベル4の比較によつて割込み有
効信号を発生してポート指定回路109のポート
Oに入力させる。レベル比較器103も割込み有
効信号をポートBに入力させているが、ポート指
定回路109は、ポートOを選択してポート番号
0をポート指定信号501として出力し、同時に割
込み有効信号の論理和信号によつて割込み信号5
02を処理装置2に送出する。レベル信号選択回
路111には、オールドレジスタエンコード回路
116の出力する割込みレベル信号も入力されて
いて、該割込みレベル信号がポート指定信号50
1によつて選択され、現在処理レベルレジスタ1
10を介して処理装置2へ送出される。また、割
込みアドレス情報選択回路112には、保留中の
割込み要求に対する割込みであることを示す特定
の符号AOも入力されていて、該符号AOが前記
信号ポート指定信号501によつて選択出力され
る。処理装置2は、上記割込みレベル信号および
特定の符号AOによつて、この割込み要求が前に
格納したアドレス情報に対するものであること知
り、保留中の割込み処理を再開する。該割込み処
理中に高レベルの割込みが発生すれば、前記同様
に再び処理が保留され、高レベルの割込み処理が
優先処理されることは勿論である。 When the interrupt processing at interrupt level 3 is completed, the current processing level register 110 is reset to level 7 by a release signal from the processing device 2. On the other hand, the bit corresponding to level 3 of the old level register 115 is also reset to "0" via the reset decoder circuit 114. Therefore, in the old level register 115, only the bit corresponding to level 4 is now "1". The output of the old register encode circuit 116 is an interrupt level signal indicating level 4. For this reason, the old level comparator 10
1 generates an interrupt enable signal by comparing level 7 and level 4 and inputs it to port O of port designation circuit 109. The level comparator 103 also inputs the interrupt enable signal to port B, but the port designation circuit 109 selects port O and outputs port number 0 as the port designation signal 501, and at the same time outputs the OR signal of the interrupt enable signal. Interrupt signal 5 by
02 to the processing device 2. The level signal selection circuit 111 also receives an interrupt level signal output from the old register encoder circuit 116, and the interrupt level signal is used as the port designation signal 50.
1 and the current processing level register 1
10 to the processing device 2. Further, a specific code AO indicating that the interrupt is for a pending interrupt request is also input to the interrupt address information selection circuit 112, and the code AO is selected and output by the signal port designation signal 501. . The processing device 2 learns from the interrupt level signal and the specific code AO that this interrupt request is for previously stored address information, and resumes the pending interrupt processing. Of course, if a high-level interrupt occurs during the interrupt processing, the processing is suspended again as described above, and the high-level interrupt processing is processed with priority.
処理装置2の構成如何によつては、前記オール
ドレベルレジスタ115、オールドレジスタエン
コード回路116およびオールドレベル比較回路
101等は不等である。従つて、これらは、本発
明の必須の構成要件ではない。しかし、これらを
設けることにより、処理装置の動作を上述のよう
に簡易にすることができる。 Depending on the configuration of the processing device 2, the old level register 115, old register encode circuit 116, old level comparison circuit 101, etc. are unequal. Therefore, these are not essential components of the present invention. However, by providing these, the operation of the processing device can be simplified as described above.
発明の効果
以上のように、本発明においては、現在処理中
のプロセスレベルと割込みレベル信号との比較を
とつた後に、現在処理レベルより高レベルの割込
み要求の発生しているポートのうちから、任意の
1つを選択し、該ポートに対応する割込みレベル
信号および割込みアドレス情報によつてデータ処
理装置に割込むように構成したから、割込み制御
装置のハードウエア量を減少し、安価に割込み制
御が実現できるという効果がある。Effects of the Invention As described above, in the present invention, after comparing the process level currently being processed and the interrupt level signal, select the ports from which an interrupt request of a higher level than the current processing level is generated. Since any one port is selected and the data processing device is configured to be interrupted by the interrupt level signal and interrupt address information corresponding to the selected port, the amount of hardware of the interrupt control device can be reduced and interrupt control can be performed at low cost. The effect is that it can be realized.
第1図は本発明が適用されるデータ処理装置の
一例を示すブロツク図、第2図は本発明の一実施
例を示す回路図である。
図において、1:システム制御装置、2:処理
装置、3〜8:入出力チヤネル装置、9:主記憶
装置、101:オールドレベル比較器、102〜
108:レベル比較器、109:ポート指定回
路、110:現在処理レベルレジスタ、111:
レベル信号選択回路、112:割込みアドレス情
報選択回路、113:セツト用デコーダ回路、1
14:リセツト用デコーダ回路、115:オール
ドレジスタ、116:オールドレジスタエンコー
ド回路。
FIG. 1 is a block diagram showing an example of a data processing device to which the present invention is applied, and FIG. 2 is a circuit diagram showing an embodiment of the present invention. In the figure, 1: system control device, 2: processing device, 3-8: input/output channel device, 9: main storage device, 101: old level comparator, 102-
108: Level comparator, 109: Port designation circuit, 110: Current processing level register, 111:
Level signal selection circuit, 112: Interrupt address information selection circuit, 113: Set decoder circuit, 1
14: Reset decoder circuit, 115: Old register, 116: Old register encode circuit.
Claims (1)
および割込みアドレス信号を入力し、最高優先順
位から順に割込み処理するデータ処理制御装置に
対する割込み要求を制御する割込み制御装置にお
いて、 現在実行中のプロセスレベルを保持する現在処
理レベルレジスタと、 複数のボートから入力した割込みレベル信号を
それぞれ前記現在処理レベルレジスタの出力と比
較して現在処理レベルより高い優先順位を有する
割込みレベル信号に対して割込み有効信号を出力
する複数のレベル比較器と、 該複数のレベル比較器の出力を入力して前記割
込み有効信号を出力しているレベル比較器のうち
から任意の1つを選択し対応するポート番号を出
力するポート指定回路と、 該ポート指定回路の出力によつて対応するポー
トに入力した割込みレベル信号を選択出力するレ
ベル信号選択回路と、 前記ポート指定回路の出力によつて対応するポ
ートに入力した前記割込みアドレス情報を選択出
力する割込みアドレス情報選択回路と、 前記割込み有効信号が少なくとも1つあること
を検出すると割込み信号を発生する手段と、 現在実行中のプロセスレベルより高いレベルの
割込みが発生したポートのうち任意の1つを選択
して該ポートに入力した割込みレベル信号および
割込みアドレス情報を前記データ処理装置に与え
る制御手段と を備えたことを特徴とする割込み制御装置。 2 特許請求の範囲第1項記載の割込み制御装置
において、現在処理中のプロセスレベルおよび保
留中の割込みレベル信号を保持するオールドレベ
ルレジスタと、該オールドレベルレジスタの保持
する最高のレベル信号を出力するオールドレジス
タエンコード回路と、該オールドレジスタエンコ
ード回路の出力と、前記現在処理レベルレジスタ
の出力とを比較して割込み有効信号を前記ポート
指定回路の特定の1つのポートに入力させるオー
ルドレベル比較器とを備えて、前記ポート選択回
路は、該オールドレベル比較器がレベル有効信号
を出力しているときは、前記特定のポート番号を
出力し、前記レベル信号選択回路は、前記オール
ドレジスタエンコード回路の出力を選択する手段
を含み、前記割込みアドレス情報選択回路は、保
留中の割込み要求に対する割込み要求であること
を示す特定の符号を選択出力する手段を含むこと
を特徴とするもの。[Claims] 1. In an interrupt control device that controls interrupt requests to a data processing control device that inputs interrupt level signals and interrupt address signals for a plurality of interrupt requests and processes interrupts in order from the highest priority, a current processing level register that holds the current processing level; and an interrupt level signal input from a plurality of ports is compared with the output of the current processing level register to determine whether the interrupt level signal has a higher priority than the current processing level. A plurality of level comparators that output interrupt enable signals, and a level comparator that inputs the outputs of the plurality of level comparators and outputs the interrupt enable signal, select any one and connect the corresponding port. a port designation circuit that outputs a number; a level signal selection circuit that selects and outputs an interrupt level signal input to a corresponding port according to the output of the port designation circuit; an interrupt address information selection circuit for selectively outputting the input interrupt address information; means for generating an interrupt signal when detecting that there is at least one interrupt enable signal; An interrupt control device comprising control means for selecting any one of the generated ports and providing the data processing device with an interrupt level signal and interrupt address information input to the selected port. 2. The interrupt control device according to claim 1, which includes an old level register that holds process level signals currently being processed and pending interrupt level signals, and outputs the highest level signal held by the old level register. an old register encoding circuit; and an old level comparator that compares the output of the old register encoding circuit with the output of the current processing level register and inputs an interrupt enable signal to a specific port of the port designation circuit. The port selection circuit outputs the specific port number when the old level comparator outputs a level valid signal, and the level signal selection circuit outputs the output of the old register encoding circuit. The interrupt address information selection circuit includes means for selecting and outputting a specific code indicating that the interrupt request is an interrupt request for a pending interrupt request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP14804083A JPS6041138A (en) | 1983-08-15 | 1983-08-15 | Interruption control device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP14804083A JPS6041138A (en) | 1983-08-15 | 1983-08-15 | Interruption control device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPS6041138A JPS6041138A (en) | 1985-03-04 |
JPH0319974B2 true JPH0319974B2 (en) | 1991-03-18 |
Family
ID=15443777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP14804083A Granted JPS6041138A (en) | 1983-08-15 | 1983-08-15 | Interruption control device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS6041138A (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5317733A (en) * | 1990-01-26 | 1994-05-31 | Cisgem Technologies, Inc. | Office automation system for data base management and forms generation |
US9063932B2 (en) | 2009-12-18 | 2015-06-23 | Vertafore, Inc. | Apparatus, method and article to manage electronic or digital documents in a networked environment |
US9384198B2 (en) | 2010-12-10 | 2016-07-05 | Vertafore, Inc. | Agency management system and content management system integration |
US9507814B2 (en) | 2013-12-10 | 2016-11-29 | Vertafore, Inc. | Bit level comparator systems and methods |
US9367435B2 (en) | 2013-12-12 | 2016-06-14 | Vertafore, Inc. | Integration testing method and system for web services |
US9747556B2 (en) | 2014-08-20 | 2017-08-29 | Vertafore, Inc. | Automated customized web portal template generation systems and methods |
US9600400B1 (en) | 2015-10-29 | 2017-03-21 | Vertafore, Inc. | Performance testing of web application components using image differentiation |
-
1983
- 1983-08-15 JP JP14804083A patent/JPS6041138A/en active Granted
Also Published As
Publication number | Publication date |
---|---|
JPS6041138A (en) | 1985-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4181938A (en) | Processor device | |
US4654785A (en) | Information processing system | |
JPH0430053B2 (en) | ||
US4747045A (en) | Information processing apparatus having an instruction prefetch circuit | |
US4103330A (en) | Task handling in a data processing apparatus | |
JPH03109644A (en) | Microcomputer | |
JPH04140880A (en) | Vector processor | |
JPH0319974B2 (en) | ||
EP0240606B1 (en) | Pipe-line processing system and microprocessor using the system | |
US4967339A (en) | Operation control apparatus for a processor having a plurality of arithmetic devices | |
EP0385136B1 (en) | Microprocessor cooperating with a coprocessor | |
JP2677719B2 (en) | Information processing device | |
US6304964B1 (en) | Apparatus and method for controlling initialization of a processor system | |
JP3186214B2 (en) | Iterative operation method and apparatus | |
JPH0128965B2 (en) | ||
JPH10115664A (en) | Ic test system | |
JPH05158872A (en) | Data processor | |
JPH0347536B2 (en) | ||
JPS6223892B2 (en) | ||
JPH036758A (en) | Microprocessor | |
JPS6351294B2 (en) | ||
JPS62259158A (en) | Interruption request circuit | |
JPS5896346A (en) | Hierarchical calculation method | |
JPH0467229A (en) | Microprocessor and memory system | |
JPH0133852B2 (en) |