JPH01128140A - Interruption request control circuit - Google Patents

Interruption request control circuit

Info

Publication number
JPH01128140A
JPH01128140A JP62285210A JP28521087A JPH01128140A JP H01128140 A JPH01128140 A JP H01128140A JP 62285210 A JP62285210 A JP 62285210A JP 28521087 A JP28521087 A JP 28521087A JP H01128140 A JPH01128140 A JP H01128140A
Authority
JP
Japan
Prior art keywords
interrupt request
signal
interrupt
request signal
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.)
Pending
Application number
JP62285210A
Other languages
Japanese (ja)
Inventor
Kazuyoshi Kameyama
亀山 一好
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
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP62285210A priority Critical patent/JPH01128140A/en
Publication of JPH01128140A publication Critical patent/JPH01128140A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To average the acceptance of requests to stabilize the overall working of a system and also to improve the throughput by excluding the already accepted ones out of plural interruption requests and selecting the unprocessed requests with preference. CONSTITUTION:An input register 31 receives an interruption sample signal from the host side and fetches plural interruption request signals 33 supplied from outside to hold them as the input interruption signals 34. An unaccepted request-priority output circuit 35 supplies the signals 34 and an accepted interruption request signal 36 received from an accepted request generating circuit 45 and delivers an unaccepted interruption request signal 37 to show that the interruption request is not accepted yet at the host side. A priority encoder 41 supplies the signal 37 to encode it according to the priority order set internally and delivers an unaccepted interruption request code 42. A decoder 43 decodes the code 42 and delivers an interruption request signal 44. An output register 52 supplies the signal 44 and receives an interruption strobe signal 53 from the host side to deliver it to the host side as an output interruption request signal 54.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はリアルタイム処理システム等において用いられ
る割込制御回路に係わり、特に未処理の要求を優先的に
選択する割込処理制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an interrupt control circuit used in a real-time processing system, and more particularly to an interrupt processing control circuit that preferentially selects unprocessed requests.

〔従来の技術〕[Conventional technology]

コンピュータを高度に利用する方法の一つとして独立し
た複数の処理要求を実時間で実行処理するリアルタイム
処理システムがある。このリアルタイム処理システムで
はこれら独立した複数の処理要求を割込信号によって検
知し、割込処理として実行する場合が多い。一般にこれ
らの複数の処理要求は互いに非同期に発生するので複数
の処理要求が同時に発生することが起こりうる。従って
この場合どの処理要求を先に実行するかを決定する手段
が必要となる。
One of the methods for making advanced use of computers is a real-time processing system that executes multiple independent processing requests in real time. In this real-time processing system, these independent processing requests are often detected by interrupt signals and executed as interrupt processing. Generally, these multiple processing requests occur asynchronously with each other, so it is possible that multiple processing requests occur simultaneously. Therefore, in this case, a means for determining which processing request to execute first is required.

従来これを行うものとして割込制御回路があった。この
割込制御回路では個々の処理要求に対して一定の優先順
位を与え、この優先順位に従って実行すべき処理を決定
するものが多かった。また一部にはこの優先順位をシス
テムの動作中に一定のサイクルで入れ換えるものもみら
れた。
Conventionally, there has been an interrupt control circuit that does this. In many of these interrupt control circuits, a fixed priority is given to each processing request, and the processing to be executed is determined according to this priority. In some cases, this priority order was changed at regular intervals during system operation.

第4図は割込チャンネル数を4チヤンネルとした場合の
従来の割込制御回路の一例を示したブロック図である。
FIG. 4 is a block diagram showing an example of a conventional interrupt control circuit when the number of interrupt channels is four.

まず図における各構成部について簡単に説明する。入力
レジスタ11はホストシステムから割込サンプリング信
号12を受けることにより周辺I10デバイス等から供
給される4本の周辺割込要求信号13を取り込みこれを
入力割込要求信号14として保持する4ビツトのラッチ
回路である。プライオリティエンコーダ15は入力割込
要求信号14を入力してこれを内部で設定された優先順
位に従ってエンコードし割込要求コード16を出力する
4ビツトのエンコーダである。
First, each component in the figure will be briefly explained. The input register 11 is a 4-bit latch that receives the interrupt sampling signal 12 from the host system, receives four peripheral interrupt request signals 13 supplied from peripheral I10 devices, etc., and holds them as input interrupt request signals 14. It is a circuit. The priority encoder 15 is a 4-bit encoder that inputs the input interrupt request signal 14, encodes it according to an internally set priority order, and outputs an interrupt request code 16.

デコーダ17は割込要求コード16を入力してこれをデ
コードし割込要求信号18を出力する4ビツトのデコー
ダである。出力レジスタ19は割込要求信号18を入力
しホストシステムから割込ストローブ信号20を受ける
ことによりこれを出力割込要求信号21としてホストシ
ステムに対し出力する4ビツトのラッチ回路である。
The decoder 17 is a 4-bit decoder that inputs the interrupt request code 16, decodes it, and outputs an interrupt request signal 18. The output register 19 is a 4-bit latch circuit that inputs the interrupt request signal 18 and receives an interrupt strobe signal 20 from the host system to output it as an output interrupt request signal 21 to the host system.

次にこの図を基にして従来の割り込み制御回路の動作を
説明する。まずホストシステムが割込ザンプリング信号
12を出力すると、入力レジスタ11はこれを受けて周
辺の■/○デバイス等から供給される4本の周辺割込要
求信号13を取り込みこれを入力割込要求信号14とし
て出力保持する。プライオリティエンコーダ15はこの
入力割込要求信号14を受けるとこれらを内部的に設定
された優先順位に従ってエンコードし割込要求コード1
6を出力する。続いてデコーダ17はこの割込要求コー
ド16を受けてこれをデコードし許可すべき割り込みの
チャンネル番号を示した割込要求信号18を出力する。
Next, the operation of the conventional interrupt control circuit will be explained based on this diagram. First, when the host system outputs the interrupt sampling signal 12, the input register 11 receives this and takes in the four peripheral interrupt request signals 13 supplied from peripheral ■/○ devices, etc. The output is held as 14. When the priority encoder 15 receives this input interrupt request signal 14, it encodes the input interrupt request signal 14 according to an internally set priority order and generates an interrupt request code 1.
Outputs 6. Subsequently, the decoder 17 receives the interrupt request code 16, decodes it, and outputs an interrupt request signal 18 indicating the channel number of the interrupt to be permitted.

第5図はプライオリティエンコーダ15においてチャン
ネル番号の大きい順に割込要求の優先順位を大きくした
場合において、いくつかの入力割込要求信号13と割込
要求コード16および割込要求信号18間の関係を表わ
したものである。この図では4つのチャンネルに対して
同時に2つ以上の割込要求が発生した場合、常にチャン
ネル番号の大きい方の要求が出力結果に現われている。
FIG. 5 shows the relationship between several input interrupt request signals 13, interrupt request codes 16, and interrupt request signals 18 when the priorities of interrupt requests are increased in order of channel number in the priority encoder 15. It is expressed. In this figure, when two or more interrupt requests occur simultaneously for four channels, the request with the larger channel number always appears in the output result.

次に出力レジスタ19はこの割込要求信号18を入力す
るとホストシステムから供給されるストローブ信号20
を受けて出力割込要求信号21をホストシステムに対し
与える。これによって一定の優先順位の基に割込要求を
ホストシステムに対し配給することができる。
Next, when the output register 19 receives this interrupt request signal 18, the strobe signal 20 is supplied from the host system.
In response, an output interrupt request signal 21 is given to the host system. This allows interrupt requests to be distributed to host systems based on a fixed priority order.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで上述した従来の割込要求制御回路では個々の処
理要求に対する優先順位が固定されていたので、高位の
要求が受け付けられる頻度は高いが低位の要求が受け付
けられる頻度は低く抑えられ、その結果低位の処理に対
するスループットが低下した。特に同じ転送速度の処理
要求が複数ある場合には同等に扱われるべきものの間に
格差が生じることになりシステム全体の動作が不安定に
なった。このようにして低位側のスループットが大きく
低下するとこれらが制御する周辺機器においてデータの
取りこぼしが発生する等致命的なエラーを起こす原因と
なった。また優先順位をシステムの動作中に一定のサイ
クルで入れ換える場合でも、■サイクルの期間について
みた場合は上に述べた問題が解決されるわけではなく不
十分である。
By the way, in the conventional interrupt request control circuit described above, the priority order for individual processing requests is fixed, so high-level requests are accepted frequently, but low-level requests are accepted less frequently, and as a result, lower-level requests are accepted less frequently. Throughput for processing has decreased. Particularly when there are multiple processing requests with the same transfer speed, a disparity arises between requests that should be treated equally, and the operation of the entire system becomes unstable. In this way, when the throughput on the low-order side is greatly reduced, it causes fatal errors such as data loss in the peripheral devices controlled by these devices. Furthermore, even if the priorities are exchanged at regular cycles during system operation, the above-mentioned problem is not solved when looking at the cycle period (2), which is insufficient.

そこで本発明の目的は複数の処理要求の中から実行すべ
き1つを決定するに際し、この決定をこれら処理要求に
対する固定された優先順位に基づいて行うのでなく未処
理の要求を優先的に選択することにより、全体として要
求の受付を平均化する割込要求制御回路を提供すること
にある。
Therefore, an object of the present invention is to select an unprocessed request preferentially when deciding which processing request to execute from among a plurality of processing requests, instead of making this decision based on a fixed priority order for these processing requests. By doing so, it is an object of the present invention to provide an interrupt request control circuit that averages out the acceptance of requests as a whole.

〔問題点を解決するための手段〕[Means for solving problems]

本発明の割込要求制御回路では割込サンプリング信号に
よって登録された複数の割込処理信号の中で前回までの
割込受付により既に受け付けられたものを保持する割込
受付済しジスクを設けた。
In the interrupt request control circuit of the present invention, an interrupt accepted disk is provided to hold the interrupt processing signals that have already been accepted by the previous interrupt acceptance among the plurality of interrupt processing signals registered by the interrupt sampling signal. .

そして登録された複数の割込処理信号からこの割込受付
済しジスクに保持されたものを排除し、残った割込処理
信号の中から新たに実行すべき1つを決定するようにし
た。
Then, from the plurality of registered interrupt processing signals, those that have been accepted and held in the disk are excluded, and one of the remaining interrupt processing signals to be newly executed is determined.

これにより割込要求の受付を平均化することができ、シ
ステム全体の動作を安定させると同時にそのスループッ
トを上げることができる。
This allows the acceptance of interrupt requests to be averaged, making it possible to stabilize the operation of the entire system and at the same time increase its throughput.

〔実施例〕〔Example〕

以下、実施例につき本発明の詳細な説明する。 Hereinafter, the present invention will be described in detail with reference to Examples.

本実施例では説明を簡単にするため割込チャンネル数を
4チヤンネルとした場合の割込要求制御回路について説
明する。4チャンネル以上の複数チャンネルについても
その基本的動作は同じである。
In this embodiment, in order to simplify the explanation, an interrupt request control circuit will be described when the number of interrupt channels is four. The basic operation is the same for multiple channels of four or more channels.

第1図は4チヤンネルの割込要求制御回路の一例を示し
たブロック図である。まず図における各構成部について
簡単に説明する。入力レジスタ31はホストシステムか
ら割込サンプリング信号32を受けることにより周辺I
10デバイス等から供給される4本の周辺割込要求信号
33を取り込みこれを入力割込要求信号34として保持
する4ビツトのラッチ回路である。未受付要求優先出力
回路35は入力レジスタ31から出力される入力割込要
求信号34とこの入力割込要求信号34のうちホストシ
ステムによって既に受付済であるものを示す受信済割込
要求信号36を入力し、入力割込要求信号34の中でホ
ストシステムがまだ受け付けていないことを示す未受付
割込要求信号37を出力する回路である。この未受付要
求優先出力回路35は第1のアンド回路38と第1のオ
ア回路39および第1の切換器40から構成される。
FIG. 1 is a block diagram showing an example of a four-channel interrupt request control circuit. First, each component in the figure will be briefly explained. The input register 31 receives an interrupt sampling signal 32 from the host system to
This is a 4-bit latch circuit that takes in four peripheral interrupt request signals 33 supplied from 10 devices and holds them as input interrupt request signals 34. The unaccepted request priority output circuit 35 outputs an input interrupt request signal 34 output from the input register 31 and a received interrupt request signal 36 indicating which of the input interrupt request signals 34 has already been accepted by the host system. This circuit outputs an unaccepted interrupt request signal 37 indicating that the host system has not accepted the input interrupt request signal 34 yet. This unaccepted request priority output circuit 35 is composed of a first AND circuit 38, a first OR circuit 39, and a first switch 40.

プライオリティエンコーダ41は未受付割込要求信号3
7を入力してこれを内部で設定された優先順位に従って
エンコードし未受付割込要求コード42を出力する4ビ
ツトのエンコーダである。デコーダ43は未受付割込要
求コード42を入力してこれをデコードし割込要求信号
44を出力する4ビツトのデコーダである。受付済要求
信号生成回路45はこの割込要求信号44を入力しこれ
を基に受信済割込要求信号36を生成する回路であり、
第2のアンド回路46とエクスクリユーシブオア回路4
7とインバータ48と第2のオア回路49と第2の切換
器50およびレジスタ51から構成される。出力レジス
タ52は割込要求信号44を入力しホストシステムから
割込ストローブ信号53を受けることによりこれを出力
割込要求信号54としてホストシステムに対し出力する
4ビツトのラッチ回路である。
The priority encoder 41 receives the unaccepted interrupt request signal 3.
This is a 4-bit encoder that inputs a code 42, encodes it according to an internally set priority order, and outputs an unaccepted interrupt request code 42. The decoder 43 is a 4-bit decoder that inputs the unaccepted interrupt request code 42, decodes it, and outputs an interrupt request signal 44. The accepted request signal generation circuit 45 is a circuit that receives this interrupt request signal 44 and generates the received interrupt request signal 36 based on it.
Second AND circuit 46 and exclusive OR circuit 4
7, an inverter 48, a second OR circuit 49, a second switch 50, and a register 51. The output register 52 is a 4-bit latch circuit that receives an interrupt request signal 44 and receives an interrupt strobe signal 53 from the host system, and outputs this as an output interrupt request signal 54 to the host system.

以下、周辺割込要求信号として’ 1001 ”(すな
わち、チャンネル4とチャンネル1に割込要求がありチ
ャンネル3とチャンネル2に割込要求がない)が供給さ
れた場合を例にとり説明を行う。
The following will explain the case where '1001' (that is, there are interrupt requests on channels 4 and 1 and there are no interrupt requests on channels 3 and 2) is supplied as the peripheral interrupt request signal.

第2図はこのときの割込要求制御回路の内部動作の進行
に伴って変化する各信号間の関係を表わした図である。
FIG. 2 is a diagram showing the relationship between each signal that changes as the internal operation of the interrupt request control circuit progresses at this time.

そこで第1図と第2図を基にして割込要求制御回路の動
作を説明する。まず割込要求制御回路は電源の投入によ
ってリセット信号61がアクティブとなりこれによって
レジスタ51がリセットされる。このときレジスタ51
は受信済割込要求信号36としてその初期値“’111
1”を出力する(ステップ■)。続いてホストシステム
が割込サンプリング信号32を出力すると、入力レジス
タ31はこれを受けて周辺のI10デバイス等から供給
される4本の周辺割込要求信号33を取り込みこれを入
力割込要求信号34として出力保持する。このとき入力
割込要求信号34の値は’1001”である(ステップ
■)。第1のアンド回路38はこの入力割込要求信号3
4と受信済割込要求信号36を入力して入力割込要求信
号34のうちホストシステムによって既に受付済のもの
にマスクをかけこれを取り除いたものを未受付信号62
として出力するものである。このとき未受付信号62の
値は“1001”である(ステップ■)。第1のオア回
路39は未受付信号62を入力してこの中に未受付の信
号がある場合は第1の切換信号63として“1″を出力
し、それ以外は0″を出力するものである。この場合、
未受付信号62は未受付の信号を含んでいるので第1の
切換信号63として1″が出力される。
Therefore, the operation of the interrupt request control circuit will be explained based on FIGS. 1 and 2. First, in the interrupt request control circuit, when the power is turned on, the reset signal 61 becomes active, thereby resetting the register 51. At this time, register 51
is the received interrupt request signal 36 with its initial value "'111".
1" (step ■). Next, when the host system outputs the interrupt sampling signal 32, the input register 31 receives this and outputs four peripheral interrupt request signals 33 supplied from peripheral I10 devices, etc. is fetched and output and held as the input interrupt request signal 34. At this time, the value of the input interrupt request signal 34 is '1001' (step ■). The first AND circuit 38 receives this input interrupt request signal 3.
4 and the received interrupt request signal 36 are input, masking those that have already been accepted by the host system among the input interrupt request signals 34, and removing these signals as the unaccepted signal 62.
This is what is output as. At this time, the value of the unaccepted signal 62 is "1001" (step ■). The first OR circuit 39 inputs the unreceived signal 62 and outputs "1" as the first switching signal 63 if there is an unreceived signal among them, and otherwise outputs "0". Yes. In this case,
Since the unreceived signal 62 includes an unreceived signal, 1'' is output as the first switching signal 63.

第1の切換器40は第1の切換信号63を入力してこれ
が1″の場合は入力割込要求信号34と未受付信号62
の中から未受付信号62を選択し、” o ”の場合は
入力割込要求信号34を選択し、またホストシステムか
らストローブ信号53を受けることによりこの選択結果
を未受付割込要求信号37として出力する。このとき第
1の切換器40は未受付信号62を選択する。続いてホ
ストシステムがストローブ信号53を出力すると第1の
切換器40は未受付割込要求信号37を出力する。
The first switching device 40 inputs the first switching signal 63, and if this is 1'', the input interrupt request signal 34 and the unaccepted signal 62 are input.
Select the unaccepted signal 62 from among them, select the input interrupt request signal 34 if "o", and receive the strobe signal 53 from the host system to output this selection result as the unaccepted interrupt request signal 37. Output. At this time, the first switch 40 selects the unreceived signal 62. Subsequently, when the host system outputs the strobe signal 53, the first switch 40 outputs the unaccepted interrupt request signal 37.

このとき未受付割込要求信号37の値は’1001″で
ある(ステップ■)。プライオリティエンコーダ41は
この未受付割込要求信号37を受けるとこれを内部的に
設定された優先順位に従ってエンコードし割込要求コー
ド42を出力する。この場合プライオリティエンコーダ
41はチャンネル番号の大きい順に割込要求の優先順位
を大きくしている。従ってこのとき割込要求コード42
の値は4″′(チャンネル4)である(ステップ■)。
At this time, the value of the unacknowledged interrupt request signal 37 is '1001'' (step ■).When the priority encoder 41 receives this unacknowledged interrupt request signal 37, it encodes it according to the priority set internally. The interrupt request code 42 is output. In this case, the priority encoder 41 increases the priority of the interrupt requests in descending order of channel number. Therefore, at this time, the interrupt request code 42 is output.
The value of is 4''' (channel 4) (step ■).

続いてデコーダ43はこの割込要求コード42を受けて
これをデコードし許可すべき割り込みのチャンネル番号
を示した割込要求信号44を出力する。こ′のとき割込
要求信号44の値は’ 1000 ”である(ステップ
■)。次に出力レジスタ52はこの割込要求信号44を
入力するとストローブ信号53を受けて出力割込要求信
号54をホストシステムに出力する。このとき出力割込
要求信号54の値は’ 1000 ”である(ステップ
■)。ホストシステムはこれを受けると対応する割込処
理を実行することになる。
Subsequently, the decoder 43 receives and decodes the interrupt request code 42, and outputs an interrupt request signal 44 indicating the channel number of the interrupt to be permitted. At this time, the value of the interrupt request signal 44 is '1000' (step ■).Next, when the output register 52 receives this interrupt request signal 44, it receives the strobe signal 53 and outputs the output interrupt request signal 54. The output is output to the host system. At this time, the value of the output interrupt request signal 54 is '1000' (step ■). When the host system receives this, it will execute the corresponding interrupt processing.

一方第2のアンド回路45は割込要求信号44と受付済
割込要求信号36を入力してこれらの論理和をとる。こ
のとき第2のアンド回路46の出力は’ 1000 ”
である。またエクスクリユーシブオア回路47は第2の
アンド回路46の出力と受付済割込要求信号36を入力
してこれらの排他的論理和をとる。このときエクスクリ
ユーシブ第子回路47の出力は” 0111”である。
On the other hand, the second AND circuit 45 inputs the interrupt request signal 44 and the accepted interrupt request signal 36 and calculates the logical sum thereof. At this time, the output of the second AND circuit 46 is '1000'
It is. Further, the exclusive OR circuit 47 inputs the output of the second AND circuit 46 and the accepted interrupt request signal 36, and calculates the exclusive OR of these. At this time, the output of the exclusive child circuit 47 is "0111".

インバータ48はエクスクリユーシブオア回路47の出
力を入力してこれを論理反転する。このときインバータ
48の出力は’ 1000 ”である。また第2のオア
回路49はエクスクリユーシブオア回路47の出力を入
力してこれらの論理和をとって第2の切換信号64を出
力する。このとき第2の切換信号64の値は“1′″で
ある。第2の切換器50は第2の切換信号64を入力し
てこれが” o ”の場合はエクスクリユーシブオア回
路47の出力とインパーク48の出力の中からインバー
タ48の出力を選択し、” 1 ”の場合はエクスクリ
ユーシブオア回路47の出力を選択し、またホストシス
テムからストローブ信号53を受けることによりこの選
択結果を出力する。このとき第2の切換器50はエクス
クリユーシブオア回路47の出力を選択するのでその出
力は’ 0111 ”である。
The inverter 48 inputs the output of the exclusive OR circuit 47 and inverts the logic thereof. At this time, the output of the inverter 48 is '1000'.The second OR circuit 49 inputs the output of the exclusive OR circuit 47, calculates the logical sum of these, and outputs the second switching signal 64. At this time, the value of the second switching signal 64 is "1'".The second switching device 50 inputs the second switching signal 64, and if it is "o", the exclusive OR circuit 47 The output of the inverter 48 is selected from among the output of The selection result is output.At this time, the second switch 50 selects the output of the exclusive OR circuit 47, so the output is '0111'.

レジスタ51は第2の切換器50の出力を入力し、また
ホストシステムからストローブ信号53を受けることに
よりこれを受付済割込要求信号36として出力する。こ
のとき受付済割込要求信号36の出力は” 0111 
”である(ステップ■)。これにより割込要求制御回路
はチャンネル4に対する要求受付のサイクルを終了し、
続くチャンネル1に対する要求受付のサイクルを開始す
る。
The register 51 inputs the output of the second switch 50, and upon receiving the strobe signal 53 from the host system, outputs it as an accepted interrupt request signal 36. At this time, the output of the accepted interrupt request signal 36 is "0111"
” (step ■). As a result, the interrupt request control circuit completes the cycle of accepting requests for channel 4, and
Then, a cycle of request reception for channel 1 is started.

チャンネル1に対する要求受付のサイクルにおいて入力
割込要求信号34の値は’ 1001 ”である(ステ
ップ■)。第1のアンド回路38はこの入力割込要求信
号34と受付済割込要求信号36を入力して未受付信号
62として” 0001 ”を出力する(ステップC)
。第1のオア回路39は未受付信号62を入力し第1の
切換信号63としてパ1′”を出力する。第1の切換器
40は第1の切換信号63を入力して入力割込要求信号
34と未受付信号62の中から未受付信号62を選択す
る。続いてホストシステムがストローブ信号53を出力
すると第1の切換器40は未受付割込要求信号37とし
て’ 0001 ”を出力する(ステップ■)。プライ
オリティエンコーダ41はこの未受付割込要求信号37
を受けるとこれをエンコ−ドし割込要求コード42とし
て’ 1 ” (チャンネル1)を出力する(ステップ
0)。続いてデコーダ43はこの割込要求コード42を
受けてこれをデコードし割込要求信号44として’00
01’”を出力する(ステップ0)。次に出力レジスタ
52はこの割込要求信号44を入力するとストローブ信
号53を受けて出力割込要求信号54として” OO0
1”をホストシステムに出力する(ステップ■)。ホス
トシステムはこれを受けると対応する割込処理を実行す
ることになる。
In the cycle of request acceptance for channel 1, the value of the input interrupt request signal 34 is '1001'' (step ■).The first AND circuit 38 inputs this input interrupt request signal 34 and the accepted interrupt request signal 36. input and output “0001” as the unreceived signal 62 (step C)
. The first OR circuit 39 inputs the unreceived signal 62 and outputs the signal ``P1''' as the first switching signal 63.The first switch 40 inputs the first switching signal 63 and outputs the input interrupt request. The unaccepted signal 62 is selected from the signal 34 and the unaccepted signal 62. Then, when the host system outputs the strobe signal 53, the first switch 40 outputs '0001' as the unaccepted interrupt request signal 37. (Step ■). The priority encoder 41 receives this unaccepted interrupt request signal 37.
When received, the decoder 43 encodes this and outputs '1' (channel 1) as the interrupt request code 42 (step 0).Next, the decoder 43 receives this interrupt request code 42, decodes it, and issues an interrupt. '00 as request signal 44
01'" (step 0). Next, when the output register 52 receives this interrupt request signal 44, it receives the strobe signal 53 and outputs "OO0" as the output interrupt request signal 54.
1'' to the host system (step ■). Upon receiving this, the host system executes the corresponding interrupt process.

一方策2のアンド回路46は割込要求信号44と受信済
割込要求信号36を入力してこれらの論理和” OO0
1”を出力する。またレジスタIJ ニーシブオア回路
47は第2のアンド回路46の出力と受信済割込要求信
号36を入力してこれらの排他的論理和” 0110 
”を出力する。インバータ48はエクスクリユーシブオ
ア回路47の出力を入力してこれの論理反転値” 10
01″′を出力する。また第2のオア回路49はエクス
クリユーシブオア回路47の出力を入力してこの論理和
をとり第2の切換信号64として1”を出力する。
On the other hand, the AND circuit 46 of the second option inputs the interrupt request signal 44 and the received interrupt request signal 36, and performs the logical sum of these "OO0".
The register IJ logical OR circuit 47 inputs the output of the second AND circuit 46 and the received interrupt request signal 36, and performs an exclusive OR of these signals.
The inverter 48 inputs the output of the exclusive OR circuit 47 and outputs the logical inversion value of this.
The second OR circuit 49 inputs the output of the exclusive OR circuit 47, takes the logical sum, and outputs 1'' as the second switching signal 64.

第2の切換器50は第2の切換信号64を入力してエク
スクリユーシブオア回路47の出力とインパーク48の
出力の中からエクスクリユーシブオア回路47の出力を
選択する。続いてホストシステムがストローブ信号53
を出力すると第2の切換器50は選択値として” 01
10 ”を出力する(ステップ■)。レジスタ51は第
2の切換器50の出力を入力し、またホストシステムか
らストローブ信号53を受けることにより受信済割込要
求信号36として’ Ol 10 ”を出力する(ステ
ップ■)。これにより割込要求制御回路はチャンネル1
に対する要求受付のサイクルを終了する。
The second switch 50 receives the second switching signal 64 and selects the output of the exclusive OR circuit 47 from among the output of the exclusive OR circuit 47 and the output of the impark 48 . Then the host system sends the strobe signal 53
, the second switch 50 outputs "01" as the selection value.
10" (step ■). The register 51 inputs the output of the second switch 50, and also receives the strobe signal 53 from the host system, and outputs 'Ol 10' as the received interrupt request signal 36. (Step ■). This causes the interrupt request control circuit to
The cycle of accepting requests for is completed.

以上説明した例では周辺割込要求信号33がチャンネル
4とチャンネル1に対する割込要求を含んでいたので全
ての要求を受け付けるのに2回のサイクルを必要とした
。周辺割込要求信号33がこれ以外の場合でもその基本
的な動作は要求受付のサイクル数が異なるだけであり上
で説明したものと変わるところがないのは当然である。
In the example described above, since the peripheral interrupt request signal 33 included interrupt requests for channels 4 and 1, two cycles were required to accept all requests. Naturally, even if the peripheral interrupt request signal 33 is other than this, its basic operation is the same as that described above, except that the number of cycles for request acceptance is different.

第3図は周辺割込要求信号33として上の説明で用いた
’ 1001 ”以外のいくつかのものを用いた場合に
おける各信号間の関係を表わした説明図である。ただし
、この図に示された各々の結果は上の説明文中にある周
辺割込要求信号33の値を該当するものに置き換えるこ
とにより容易に導きだせるのでその説明は省略する。
FIG. 3 is an explanatory diagram showing the relationship between each signal when some signals other than '1001' used in the above explanation are used as the peripheral interrupt request signal 33. The respective results obtained can be easily derived by replacing the value of the peripheral interrupt request signal 33 in the above explanatory text with the corresponding value, so the explanation thereof will be omitted.

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

以上説明したように本発明の割込要求制御回路では受付
済要求信号発生回路を用いて割込サンプリング信号によ
って登録された複数の割込要求信号の中で前回までの割
込受付により既に受け付けられたものを保持するように
した。そして未受付要求優先出力回路により登録された
複数の割込要求信号からこの受付済要求信号発生回路に
保持されたものを排除し、残った割込処理信号の中から
新たに実行すべき1つを決定するようにした。
As explained above, in the interrupt request control circuit of the present invention, the accepted request signal generation circuit uses the accepted request signal generation circuit to detect which interrupt request signals have already been accepted by the previous interrupt reception among the plurality of interrupt request signals registered by the interrupt sampling signal. It is now possible to keep the same items. Then, from among the multiple interrupt request signals registered by the unaccepted request priority output circuit, those held in this accepted request signal generation circuit are eliminated, and one of the remaining interrupt processing signals to be newly executed is selected. I tried to decide.

これにより割込要求の受付を平均化しシステム全体の動
作を安定させると同時にそのスループットを上げる効果
がある。
This has the effect of averaging the acceptance of interrupt requests, stabilizing the operation of the entire system, and increasing its throughput.

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

第1図と第2図は本発明の一実施例を説明するためのも
のであり、このうち第1図は割込要求制御回路の一例を
示したブロック図、第2図は周辺割込要求信号において
チャンネル4とチャンネル1に割込要求があった場合に
ついて各信号間の関係を表わした説明図、第3図はいく
つかの周辺割込要求信号に対する各信号間の関係を表わ
した説明図、第4図と第5図は従来の割込要求制御回路
を説明するためのものであり、このうち第4図は従来の
割込要求制御回路の一例を示したブロック図、第5図は
従来の割込要求制御回路における各信号間の関係を表わ
した説明図である。 31・・・・・・入力レジスタ、 34・・・・・・入力割込要求信号、 35・・・・・・未受付要求優先出力回路、36・・・
・・・受信済割込要求信号、37・・・・・・未受付割
込要求信号、38・・・・・・第1のアンド回路、 39・・・・・・第1のオア回路、 40・・・・・・第1の切換器、 41・・・・・・プライオリティエンコーダ、42・・
・・・・未受付割込要求コード、43・・・・・・デコ
ーダ、 44・・・・・・割込要求信号、 45・・・・・・受付済要求生成回路、46・・・・・
・第2のアンド回路、 47・・・・・・エクスクリユーシブオア回路、48・
・・・・・インバータ、 49・・・・・・第2のオア回路、 50・・・・・・第2の切換器、 51・・・・・・レジスタ、 52・・・・・・出力レジスタ、 54・・・・・・出力割込要求信号。
1 and 2 are for explaining one embodiment of the present invention. Of these, FIG. 1 is a block diagram showing an example of an interrupt request control circuit, and FIG. 2 is a block diagram showing an example of an interrupt request control circuit. An explanatory diagram showing the relationship between each signal when there is an interrupt request on channel 4 and channel 1. FIG. 3 is an explanatory diagram showing the relationship between each signal for several peripheral interrupt request signals. , FIG. 4 and FIG. 5 are for explaining the conventional interrupt request control circuit, of which FIG. 4 is a block diagram showing an example of the conventional interrupt request control circuit, and FIG. 5 is a block diagram showing an example of the conventional interrupt request control circuit. FIG. 2 is an explanatory diagram showing the relationship between signals in a conventional interrupt request control circuit. 31...Input register, 34...Input interrupt request signal, 35...Unaccepted request priority output circuit, 36...
... Received interrupt request signal, 37 ... Unaccepted interrupt request signal, 38 ... First AND circuit, 39 ... First OR circuit, 40...First switch, 41...Priority encoder, 42...
...Unaccepted interrupt request code, 43...Decoder, 44...Interrupt request signal, 45...Accepted request generation circuit, 46...・
・Second AND circuit, 47...Exclusive OR circuit, 48.
... Inverter, 49 ... Second OR circuit, 50 ... Second switch, 51 ... Register, 52 ... Output Register, 54...Output interrupt request signal.

Claims (1)

【特許請求の範囲】 割込サンプリング信号を受けることにより外部から供給
される複数の割込要求信号を取り込みこれを入力割込要
求信号として保持する入力レジスタと、 前記入力レジスタから出力される前記入力割込要求信号
とこの入力割込要求信号の内ホストシステムによって既
に受付済であるものを示す受付済割込要求信号を入力し
、前記入力割込要求信号の中でホストシステムがまだ受
け付けていないことを示す未受付割込要求信号を出力す
る未受付要求優先出力回路と、 前記未受付割込要求信号を入力してこれを内部で設定さ
れた優先順位に従ってエンコードし未受付割込要求コー
ドを出力するエンコーダと、前記未受付割込要求コード
を入力してこれをデコードし割込要求信号を出力するデ
コーダと、前記割込要求信号を入力しこれを基に前記受
付済割込要求信号を生成する受付済要求信号生成回路と
、 前記割込要求信号を入力し割込ストローブ信号を受ける
ことによりこれを出力割込要求信号としてホストシステ
ムに対し出力する出力レジスタとを具備することを特徴
とする割込要求制御回路。
[Scope of Claims] An input register that receives a plurality of interrupt request signals supplied from the outside by receiving an interrupt sampling signal, and holds the signals as input interrupt request signals; and the input register that is output from the input register. Inputs an interrupt request signal and an accepted interrupt request signal indicating which input interrupt request signals have already been accepted by the host system, and inputs an accepted interrupt request signal indicating which input interrupt request signals have not yet been accepted by the host system. an unaccepted request priority output circuit that outputs an unaccepted interrupt request signal indicating that the unaccepted interrupt request has occurred; an encoder that outputs the unacknowledged interrupt request code; a decoder that inputs the unacknowledged interrupt request code, decodes it, and outputs an interrupt request signal; and a decoder that inputs the interrupt request signal and generates the accepted interrupt request signal based on it; and an output register that inputs the interrupt request signal and receives an interrupt strobe signal to output the received request signal to the host system as an output interrupt request signal. interrupt request control circuit.
JP62285210A 1987-11-13 1987-11-13 Interruption request control circuit Pending JPH01128140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62285210A JPH01128140A (en) 1987-11-13 1987-11-13 Interruption request control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62285210A JPH01128140A (en) 1987-11-13 1987-11-13 Interruption request control circuit

Publications (1)

Publication Number Publication Date
JPH01128140A true JPH01128140A (en) 1989-05-19

Family

ID=17688528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62285210A Pending JPH01128140A (en) 1987-11-13 1987-11-13 Interruption request control circuit

Country Status (1)

Country Link
JP (1) JPH01128140A (en)

Similar Documents

Publication Publication Date Title
US4630041A (en) Enhanced reliability interrupt control apparatus
JP4885422B2 (en) Galois extension field linear converter
JPH0650493B2 (en) Data processing device
US5822595A (en) Method and apparatus for providing an interrupt handler employing a token window scheme
US4103330A (en) Task handling in a data processing apparatus
JPH07152586A (en) Cyclic priority-level encoder
JPS5999553A (en) Interruption control system
US6629118B1 (en) Zero result prediction
JPH04273537A (en) Finite-state machine for highly-reliable computing and adjusting system
JPH01128140A (en) Interruption request control circuit
JPH0312742A (en) Central processing unit
JPS62126440A (en) Information processor
JPH04333141A (en) Information processor
US20030023799A1 (en) Interrupt processing apparatus
JP2990800B2 (en) Interrupt processing device
JP2538874B2 (en) Common bus arbitration method
CN117873756B (en) Method, device, equipment, medium and heterogeneous acceleration equipment for processing kernel interrupt
US8078657B2 (en) Multi-source dual-port linked list purger
JPS63211438A (en) Interruption control circuit
JP2582414B2 (en) Interrupt processing device
KR960016407B1 (en) Interrupt generating circuit in mcu
JPH10207718A (en) Interruption processor and processing method
RU2101759C1 (en) Computing unit with alternating processing of several instruction flows
JPH0241552A (en) Interrupt control system
JPH04282704A (en) Sequence controller