JPH07230419A - Interruption control system - Google Patents

Interruption control system

Info

Publication number
JPH07230419A
JPH07230419A JP2239194A JP2239194A JPH07230419A JP H07230419 A JPH07230419 A JP H07230419A JP 2239194 A JP2239194 A JP 2239194A JP 2239194 A JP2239194 A JP 2239194A JP H07230419 A JPH07230419 A JP H07230419A
Authority
JP
Japan
Prior art keywords
interrupt
bit
bit string
main processing
priority
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
JP2239194A
Other languages
Japanese (ja)
Inventor
Kyosuke Kuno
恭輔 久野
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2239194A priority Critical patent/JPH07230419A/en
Publication of JPH07230419A publication Critical patent/JPH07230419A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To efficiently arbitrate many interruption requests from plural peripheral devices by easily specifying the interruption factor of a peripheral device which makes the interruption request. CONSTITUTION:Interruption lines between the respective peripheral devices 2-4 and a main processor 1 are cascaded so that the main processor 1 is on the most upstream side; and the respective peripheral devices 2-4 are provided with shift register circuits 17, 21, and 25 which register the interruption priority levels of their own devices and bit sequences showing whether or not interruption requests are made in their own devices, and output the bits in the order of the priority in synchronism with the peripheral devices and shift control circuits 16, 20, and 24 which compare the bit sequences of their own devices with bit sequences from downstream peripheral devices, bit by bit, in order to detect a bit indicating a difference in priority, and sending the bit sequences of their devices up to the detected bit and the bit sequences of the higher- priority side from the detected bit to upstream sides; and the main processor 1 is provided with an interruption specification part 13 which discriminates whether or not an interruption request is made based on the bit sequences from the peripheral devices 2-4.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサが
実行中の処理を一時的に中止させ、他の処理を行わせる
割込み処理に係わり、特に、多数の割込み要求の調停を
効率良く行うのに好適な割込み制御システムに関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt process for temporarily stopping a process being executed by a microprocessor and performing another process, and particularly to efficiently arbitrate a large number of interrupt requests. It relates to a preferred interrupt control system.

【0002】[0002]

【従来の技術】従来の割込み処理に係わる技術には、例
えば、特開平5−20234号公報に記載のものがあ
る。この技術では、シリアル回線の送受信による割込み
に対し、割込み制御回路で、送信と受信の各々の割込み
要求を調停して、マイクロプロセッサに割込み要求を出
力する。マイクロプロセッサは、割込み要求によるアク
ノリッジサイクルで割込みベクタを入力するが、この
時、割込み要求を出した通信回線制御回路は、割込み制
御回路のリード指示により、割込み要求に対する各キャ
ラクタのベクタをバス上に出力し、マイクロプロセッサ
は、このベクタと、割込み制御回路により生成されるベ
クタとを、割込みベクタとして入力し割込み要因を認識
する。このようにして、マイクロプロセッサの割込みア
クノリッジサイクルで、送受信する各キャラクタと割込
み制御回路で生成されるベクタとを一緒にして、1つの
ベクタとしてマイクロプロセッサが入力できるようにし
ている。しかし、この従来技術では、割込み本数の削
減、および、割込み要因が多数の場合の調停回路の複雑
化に対処することが考慮されていない。
2. Description of the Related Art A conventional technique relating to interrupt processing is disclosed in Japanese Patent Laid-Open No. 5-20234, for example. In this technique, an interrupt control circuit arbitrates each interrupt request for transmission and reception for an interrupt due to transmission / reception of a serial line, and outputs the interrupt request to a microprocessor. The microprocessor inputs the interrupt vector in the acknowledge cycle by the interrupt request.At this time, the communication line control circuit that issued the interrupt request sends the vector of each character for the interrupt request to the bus by the read instruction of the interrupt control circuit. Then, the microprocessor outputs this vector and the vector generated by the interrupt control circuit as an interrupt vector, and recognizes the interrupt factor. In this way, in the interrupt acknowledge cycle of the microprocessor, each character to be transmitted / received and the vector generated by the interrupt control circuit are put together so that the microprocessor can input as one vector. However, this conventional technique does not consider reducing the number of interrupts and dealing with complication of the arbitration circuit when there are many interrupt factors.

【0003】[0003]

【発明が解決しようとする課題】解決しようとする問題
点は、従来の技術では、割込み本数の削減、および、割
込み要因が多数の場合の調停回路の複雑化に対処するこ
とができない点である。本発明の目的は、これら従来技
術の課題を解決し、割込み要求している周辺装置と割込
み要因の特定を容易とし、複数の周辺装置からの多数の
割込み要求の調停を効率良く行うことを可能とする割込
み制御システムを提供することである。
The problem to be solved is that the conventional technique cannot deal with the reduction of the number of interrupts and the complication of the arbitration circuit when there are many interrupt factors. . An object of the present invention is to solve these problems of the prior art, facilitate identification of a peripheral device requesting an interrupt and an interrupt factor, and efficiently arbitrate a large number of interrupt requests from a plurality of peripheral devices. To provide an interrupt control system.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、本発明の割込み制御システムは、(1)各周辺装置
2〜4と主処理装置1との割込みラインを、主処理装置
1を最上流としてシリアル信号線でカスケード接続し、
各周辺装置2〜4には、自装置に付与された割込みの優
先度を示す上位ビット列と、自装置内の各割込み要求の
有/無を予め対応付けられた位置のビット(「1」、
「0」)で示す下位ビット列とを登録して、上位ビット
から順に各周辺装置2〜4間で同期して1ビットずつ出
力するシフトレジスタ回路17、21、25と、自装置
のシフトレジスタ回路からのビット列とシリアル信号線
を介して下流の周辺装置から送られてくるビット列とを
上位ビットからビット毎に順次に比較して、両装置の優
先度の相違を示す最初のビットを検出し、この検出ビッ
ト前までは自装置側のシフトレジスタ回路からのビット
列を、また、検出ビットからは優先度の高い装置側のビ
ット列を、シリアル信号線を介して上流に送出するシフ
ト制御回路16、20、24とを設け、主処理装置1に
は、シリアル信号線を介して隣接する周辺装置から送ら
れてくるビット列に基づき、割込み要求を受け付ける周
辺装置と割込み要求内容の判別を行う割込み特定部13
を設けることを特徴とする。また、(2)上記(1)に
記載の割込み制御システムにおいて、各周辺装置2〜4
に、自装置内で発生した各割込み要求の優先度を調停し
て主処理装置1および自装置のシフトレジスタ回路1
7、21、25とシフト制御回路に通知する割込み要求
調停回路15、19、23を設け、シフト制御回路1
6、20、24は、割込み要求調停回路15、19、2
3からの割込み要求通知がない場合には、下流の周辺装
置からのビット列を、シフトレジスタ回路のビット列と
比較することなく上流の周辺装置へ直接送出することを
特徴とする。また、(3)上記(2)に記載の割込み制
御システムにおいて、主処理装置1に、各周辺装置2〜
4の割込み要求調停回路15、19、23からの割込み
発生通知をワイヤードOR接続して受信すると、各周辺
装置の各割込み要求調停回路15、19、23から各シ
フトレジスタ回路17、21、25への割込み要求登録
を同時に許可するラッチ信号を発生させるラッチ信号発
生回路11を設けることを特徴とする。また、(4)上
記(1)に記載の割込み制御システムにおいて、各周辺
装置2〜4は、上流から受信した自装置の優先度を示す
ビット列をシフトレジスタ回路に送出すると共に、自装
置の優先度の次の優先度を示すビット列を生成して、下
流に送出するアダー回路14、18、22を具備し、主
処理装置1に隣接する周辺装置2のアダー回路14は、
最も高い優先度を示すビット列を、主処理装置の起動時
にこの主処理装置から受信することを特徴とする。ま
た、(5)上記(1)に記載の割込み制御システムにお
いて、主処理装置に、各周辺装置の各シフトレジスタ回
路からのビット列の送出の同期および各シフト制御回路
の比較動作の同期に用いるクロックを生成して、各周辺
装置に送出するシフトクロック生成回路12を設けるこ
とを特徴とする。
In order to achieve the above object, the interrupt control system of the present invention comprises: (1) the interrupt line between each of the peripheral devices 2 to 4 and the main processing device 1 to Cascade connection with serial signal line as upstream,
Each of the peripheral devices 2 to 4 has a bit (“1”, a position at which a higher-order bit string indicating the priority of an interrupt given to the device itself and the presence / absence of each interrupt request in the device itself are associated with each other).
A shift register circuit 17, 21, 25 for registering a lower bit string indicated by "0") and sequentially outputting one bit at a time from the upper bits in synchronization with the peripheral devices 2 to 4, and the shift register circuit of the own device. The bit string from the and the bit string sent from the peripheral device downstream via the serial signal line are sequentially compared bit by bit from the upper bit, and the first bit indicating the difference in priority of both devices is detected, The shift control circuits 16 and 20 for sending the bit string from the shift register circuit on the device side up to this detection bit and the bit string on the device side having a higher priority from the detection bit upstream through the serial signal line. , 24 are provided, and the main processing unit 1 is provided with a peripheral device that receives an interrupt request and an interrupt request based on a bit string sent from an adjacent peripheral device via a serial signal line. The interrupt identification unit 13 for discriminating the contents
Is provided. (2) In the interrupt control system described in (1) above, each peripheral device 2 to 4
In addition, the priority of each interrupt request generated in the own device is arbitrated and the main processing device 1 and the shift register circuit 1 of the own device are arbitrated.
7, 21, 25 and interrupt request arbitration circuits 15, 19, 23 for notifying the shift control circuit are provided, and the shift control circuit 1
6, 20, and 24 are interrupt request arbitration circuits 15, 19, and 2.
When there is no interrupt request notification from 3, the bit string from the downstream peripheral device is directly sent to the upstream peripheral device without comparing with the bit string of the shift register circuit. (3) In the interrupt control system described in (2) above, each of the peripheral devices 2 to 2 is provided in the main processing unit 1.
4 receives the interrupt occurrence notifications from the interrupt request arbitration circuits 15, 19, and 23 in a wired-OR connection, and then receives the interrupt request arbitration circuits 15, 19, and 23 of each peripheral device to the shift register circuits 17, 21, and 25. It is characterized in that a latch signal generation circuit 11 for generating a latch signal for simultaneously permitting the interrupt request registration is provided. (4) In the interrupt control system described in (1) above, each of the peripheral devices 2 to 4 sends a bit string indicating the priority of its own device received from the upstream to the shift register circuit, and also gives priority to its own device. Of the peripheral device 2 adjacent to the main processing unit 1 is provided with the adder circuits 14, 18 and 22 for generating a bit string indicating the next priority of
It is characterized in that the bit string indicating the highest priority is received from the main processing device when the main processing device is activated. (5) In the interrupt control system described in (1) above, a clock used by the main processing device to synchronize the transmission of a bit string from each shift register circuit of each peripheral device and the comparison operation of each shift control circuit. Is provided, and a shift clock generation circuit 12 for generating and transmitting the signal to each peripheral device is provided.

【0005】[0005]

【作用】本発明においては、主処理装置を最上流として
カスケード接続された各周辺装置は、自装置に割り当て
られた優先度と下流の周辺装置の優先度とを1ビットず
つシフトさせながら照合する。そして、両装置の優先度
の相違を示す最初のビットを検出するまでは自装置側の
ビット列を上流に送出し、また、相違を示す最初のビッ
トを検出してからは優先度の高い側のビット列を上流に
送出する。主処理装置は、隣接する周辺装置から1ビッ
トずつ順次に送られてくるビット列を解読して、割込み
要求を受け付ける周辺装置と割込み要求内容の判別を行
う。また、各周辺装置は、自装置内で発生した各割込み
要求の優先度を調停して主処理装置や自装置のシフト制
御回路に通知し、主処理装置では、電源断等の特に急を
要する割込み要求に対処し、また、各周辺装置では、割
込み要求調停回路からの割込み要求通知がない場合に
は、シフト制御回路により、下流の周辺装置からのビッ
ト列を上流の周辺装置へ直接送出する。また、ラッチ信
号発生回路からのラッチ信号により、各周辺装置の各シ
フトレジスタ回路への割込み要求登録を同時に行う。ま
た、各周辺装置は、アダー回路により、上流から受信し
た自装置の優先度を示すビット列に例えば「1」加算し
て下流に送出することにより、主処理装置に隣接する周
辺装置を最も高い優先度として、各周辺装置の優先度を
設定する。また、シフトクロック生成回路により、主処
理装置から、各周辺装置のシフトレジスタ回路のビット
列の送出の同期制御と、シフト制御回路の比較動作の同
期制御を行う。
According to the present invention, the peripheral devices cascade-connected with the main processing device as the most upstream device collate while shifting the priority assigned to the own device and the priority of the downstream peripheral device by 1 bit. . Then, until the first bit indicating the difference in priority between the two devices is detected, the bit string on the device side is sent upstream, and after the first bit indicating the difference is detected, the bit on the higher priority side is detected. Send the bit string upstream. The main processing unit decodes the bit string sequentially sent bit by bit from the adjacent peripheral device, and determines the peripheral device that accepts the interrupt request and the interrupt request content. In addition, each peripheral device arbitrates the priority of each interrupt request that occurs in its own device and notifies the main processing device and the shift control circuit of its own device, and in the main processing device, it is particularly urgent to turn off the power. In response to the interrupt request, and in each peripheral device, when there is no interrupt request notification from the interrupt request arbitration circuit, the shift control circuit directly sends the bit string from the downstream peripheral device to the upstream peripheral device. Also, an interrupt request is simultaneously registered in each shift register circuit of each peripheral device by a latch signal from the latch signal generation circuit. In addition, each peripheral device adds, for example, “1” to the bit string indicating the priority of the own device received from the upstream by the adder circuit, and sends the bit string to the downstream so that the peripheral device adjacent to the main processing device has the highest priority. As the degree, the priority of each peripheral device is set. In addition, the shift clock generation circuit performs synchronous control of the transmission of the bit string of the shift register circuit of each peripheral device and synchronous control of the comparison operation of the shift control circuit from the main processing device.

【0006】[0006]

【実施例】以下、本発明の実施例を、図面により詳細に
説明する。図1は、本発明の割込み制御システムの本発
明に係わる構成の一実施例を示すブロック図である。本
図1において、1はマイクロプロセッサを具備してシス
テム全体を制御する主処理装置、2〜4は主処理装置1
により制御される周辺装置、10は主処理装置1内の割
込み要因による割込み要求および周辺装置2〜4からの
割込み要求を調停し、マイクロプロセッサ(CPU:C
entral ProcessingUnit)への割
込み要求を生成する主割込み要求調停回路、11は各周
辺装置2〜4の割込み要求に対し、各周辺装置2〜4の
割込み要求を、各々の周辺装置2〜4にラッチさせるた
めのラッチ信号を生成するラッチ信号生成回路、12は
各周辺装置2〜4にラッチされた割込みステータスと、
各周辺装置2〜4の割込み優先レベルのシリアルデータ
をシフトするためのシフトクロックを生成するシフトク
ロック生成回路、13は周辺装置2から送られてくるビ
ット列に基づきプライオリティ(優先度)判定された割
込み要因と割込み優先レベルを判別する割込み特定部、
14、18、22は主処理装置1にカスケード接続され
各周辺装置2〜4における割込み優先レベルに「1」を
加算して下流に送出するアダー回路、15、19、23
は各周辺装置2〜4内における各割込み要求の調停をし
て主処理装置1に通知する割込み要求調停回路、17、
21、25は各周辺装置2〜4内の割込み要因および各
周辺装置2〜4の割込み優先レベルを、主処理装置1の
ラッチ信号発生回路11によるラッチクロック(LUT
CHCK)でラッチし、また、シフトクロック(SHI
FTCK)でシフト制御回路に、シフトアウトするシフ
トレジスタ回路、16、20、24は、各シフトレジス
タ回路17、21、25よりシフトアウトされたデータ
を、シリアル信号線でシリーズに接続された他の周辺装
置のシフトデータと逐次比較し、優先度の高い周辺装置
のシフトデータを排出するシフト制御回路である。この
シフト制御回路16、20、24を介して、各周辺装置
2〜4と主処理装置1との割込みラインが、主処理装置
1を最上流としてカスケード接続されている。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a configuration relating to the present invention of an interrupt control system of the present invention. In FIG. 1, reference numeral 1 is a main processing unit that includes a microprocessor and controls the entire system, and 2 to 4 are main processing units 1.
A peripheral device 10 controlled by the CPU arbitrates an interrupt request due to an interrupt factor in the main processing unit 1 and an interrupt request from the peripheral devices 2 to 4, and a microprocessor (CPU: C
A main interrupt request arbitration circuit that generates an interrupt request to the central processing unit), and 11 latches the interrupt request of each peripheral device 2-4 with respect to the interrupt request of each peripheral device 2-4. A latch signal generation circuit for generating a latch signal for causing the interrupt status latched by each of the peripheral devices 2 to 4;
A shift clock generation circuit that generates a shift clock for shifting serial data of the interrupt priority level of each of the peripheral devices 2 to 4, and 13 is an interrupt whose priority (priority) is determined based on the bit string sent from the peripheral device 2. Interrupt identification unit that determines the cause and interrupt priority level,
Reference numerals 14, 18, 22 are adder circuits which are cascade-connected to the main processing unit 1 and which add "1" to the interrupt priority level in each of the peripheral devices 2 to 4 and send it out downstream, 15, 19, 23.
Is an interrupt request arbitration circuit that arbitrates each interrupt request in each peripheral device 2 to 4 and notifies the main processing device 1 of this.
Reference numerals 21 and 25 indicate the interrupt factor in each peripheral device 2 to 4 and the interrupt priority level of each peripheral device 2 to 4 by the latch clock (LUT) by the latch signal generation circuit 11 of the main processing unit 1.
CHCK) and shift clock (SHI
FTCK) shifts the shift register circuit to the shift control circuit, 16, 20, 24 shifts out the data from each shift register circuit 17, 21, 25 to another series connected by a serial signal line. The shift control circuit sequentially compares the shift data of the peripheral device with the shift data of the peripheral device having a high priority. Via the shift control circuits 16, 20, and 24, the interrupt lines between the peripheral devices 2 to 4 and the main processing device 1 are cascade-connected with the main processing device 1 being the most upstream.

【0007】以下、このような構成による割込み制御シ
ステムの本実施例に係わる動作説明を行う。まず、電源
投入時、主処理装置1よりGND(グラウンド)レベル
の信号が、周辺装置2のアダー回路14に入力され、周
辺装置2の割込み優先レベル(INTLEV1=00)
が決定する。次に、周辺装置2のアダー回路14で、周
辺装置2の割込み優先レベル「00」に「+1」加算さ
れたデータ「01」は、周辺装置3のアダー回路18に
入力され、周辺装置3の割込み優先レベル(INTLE
V2=01)が決定する。同様にして、周辺装置3のア
ダー回路18で、周辺装置3の割込み優先レベル「0
1」に「+1」加算されたデータ「10」は、周辺装置
4のアダー回路22に入力され、周辺装置4の割込み優
先レベル(INTLEV3=10)が決定する。このよ
うに、電源投入時、アダー回路14、18、22を通し
てシリーズ接続された各周辺装置2〜4の割込み優先レ
ベルが、上流をより高い優先レベルとして決定される。
The operation of the present embodiment of the interrupt control system having such a configuration will be described below. First, when the power is turned on, a signal of GND (ground) level is input from the main processing unit 1 to the adder circuit 14 of the peripheral unit 2 and the interrupt priority level of the peripheral unit 2 (INTLEV1 = 00).
Will be decided. Next, in the adder circuit 14 of the peripheral device 2, the data “01” obtained by adding “+1” to the interrupt priority level “00” of the peripheral device 2 is input to the adder circuit 18 of the peripheral device 3 and Interrupt priority level (INTLE
V2 = 01) is determined. Similarly, in the adder circuit 18 of the peripheral device 3, the interrupt priority level “0
The data "10" obtained by adding "+1" to "1" is input to the adder circuit 22 of the peripheral device 4, and the interrupt priority level (INTLEV3 = 10) of the peripheral device 4 is determined. In this way, when the power is turned on, the interrupt priority level of each peripheral device 2 to 4 connected in series through the adder circuits 14, 18, and 22 is determined as a higher priority level upstream.

【0008】次に、各周辺装置2〜4に割込み要求(I
NTREQ11〜18、21〜28、31〜38)が発
生した場合、各周辺装置2〜4では、各々の割込み要求
調停回路15、19、23より、主処理装置1に、割込
み要求信号(INTRQ)を出力する。尚、各割込み要
求信号は、ワイアードORされ、主処理装置1の割込み
要求調停回路10およびラッチ信号発生回路11に入力
される。主処理装置1では、周辺装置2〜4からの割込
み要求信号(INTRQ)を、割込み要求調停回路10
で、主処理装置1内の割込み要求(IREQ1〜n)と
OR演算して、CPUに割込み要求を出力する。また、
ラッチ信号発生回路11で、割込み要求(INTRQ)
に対する割込み要因のラッチ信号を発生し、この信号に
より各周辺装置2〜4毎にシフトレジスタ回路17、2
1、25に、各周辺装置2〜4内の割込み要因、およ
び、各周辺装置2〜4の割込み優先レベル(「00」、
「01」、「10」)をラッチする。そして、主処理装
置1のシフトクロック生成回路12により、各周辺装置
2〜4のシフトレジスタ回路17、21、25にシフト
クロックを与え、シフト制御回路16、20、24で、
各周辺装置2〜4毎に、シリーズに接続されたシフトデ
ータ(SHIFTDT1〜3)を逐次比較する。このシ
フト制御回路16、20、24による処理動作の詳細
を、図2を用いて説明する。
Next, an interrupt request (I
NTREQ 11-18, 21-28, 31-38), in each peripheral device 2-4, the interrupt request arbitration circuit 15, 19, 23 sends an interrupt request signal (INTRQ) to the main processing unit 1. Is output. The interrupt request signals are wired-ORed and input to the interrupt request arbitration circuit 10 and the latch signal generation circuit 11 of the main processing unit 1. In the main processing unit 1, the interrupt request arbitration circuit 10 receives the interrupt request signal (INTRQ) from the peripheral devices 2 to 4.
Then, an OR operation is performed with the interrupt request (IREQ1 to n) in the main processing unit 1 to output the interrupt request to the CPU. Also,
Interrupt request (INTRQ) in the latch signal generation circuit 11
Generates a latch signal of an interrupt factor to the shift register circuits 17 and 2 for each of the peripheral devices 2 to 4.
1 and 25 are interrupt factors in the peripheral devices 2 to 4 and interrupt priority levels (“00”,
"01", "10") are latched. Then, the shift clock generation circuit 12 of the main processing unit 1 gives a shift clock to the shift register circuits 17, 21, and 25 of the peripheral devices 2 to 4, and the shift control circuits 16, 20, and 24
The shift data (SHIFTDT1 to 3) connected in series are sequentially compared for each of the peripheral devices 2 to 4. Details of the processing operation by the shift control circuits 16, 20, and 24 will be described with reference to FIG.

【0009】図2は、図1の割込み制御システムにおけ
る周辺装置の本発明に係わる動作例を示す説明図であ
る。本図2に示すように、各周辺装置2〜4のシフトレ
ジスタ回路17、21、25には、割込み優先レベル、
割込み要因の順にラッチされている。本例では、シフト
レジスタ回路17には、割込み優先レベルを示すビット
列として「00」が、割込み要因を示すビット列として
「01010001」が、また、シフトレジスタ回路2
1には、割込み優先レベル「01」と割込み要因「10
111010」が、シフトレジスタ回路25には、割込
み優先レベル「10」と割込み要因「0110110
1」がラッチされている。シフトレジスタ回路17の割
込み優先レベル「00」は、最も高い優先度を示し、割
込み要因を示すビット列「01010001」は、周辺
装置2に、図1における割込み要求「INTREQ1
2、14、18」が発生していることを示す。また、シ
フトレジスタ回路21の割込み優先レベル「01」は、
周辺装置2に次ぐ優先度を示し、割込み要因を示すビッ
ト列「10111010」は、周辺装置3に、図1にお
ける割込み要求「INTREQ21、23〜25、2
7」が発生していることを示す。同様に、シフトレジス
タ回路25の割込み優先レベル「10」は、周辺装置3
に次ぐ優先度を示し、割込み要因を示すビット列「01
101101」は、周辺装置4に、図1における割込み
要求「INTREQ32、33、35、36、38」が
発生していることを示す。
FIG. 2 is an explanatory diagram showing an operation example of the peripheral device in the interrupt control system of FIG. 1 according to the present invention. As shown in FIG. 2, the shift register circuits 17, 21 and 25 of the peripheral devices 2 to 4 have interrupt priority levels,
Latched in the order of interrupt factors. In the present example, the shift register circuit 17 includes “00” as a bit string indicating the interrupt priority level, “0101010001” as a bit string indicating the interrupt factor, and the shift register circuit 2
1 includes interrupt priority level “01” and interrupt factor “10”.
11110 ”, but the shift register circuit 25 stores the interrupt priority level“ 10 ”and the interrupt factor“ 0110110 ”.
1 ”is latched. The interrupt priority level “00” of the shift register circuit 17 indicates the highest priority, and the bit string “0101010001” indicating the interrupt factor indicates to the peripheral device 2 the interrupt request “INTREQ1 in FIG.
2, 14, 18 ”have occurred. Further, the interrupt priority level “01” of the shift register circuit 21 is
The bit string “10111010” indicating the second highest priority next to the peripheral device 2 and indicating the interrupt factor is sent to the peripheral device 3 by the interrupt request “INTREQ 21, 23 to 25, 2 in FIG.
7 ”has occurred. Similarly, the interrupt priority level “10” of the shift register circuit 25 is set to the peripheral device 3
The bit string “01
101101 ”indicates that the interrupt request“ INTREQ 32, 33, 35, 36, 38 ”in FIG. 1 is generated in the peripheral device 4.

【0010】この状態で、まず、各周辺装置2〜4の割
込み優先レベル(「00」、「01」、「10」)が、
図1の主処理装置1におけるシフトクロック生成回路1
2からのシフトクロック毎に、シフト制御回路16、2
0、24に、シフトデータとして送り出される。このシ
フトデータは、各周辺装置2〜4のシフト制御回路1
6、20、24を介してシリーズに接続されており、そ
れぞれシフト制御回路16、20、24で、入力される
シフトデータと、自周辺装置のシフトデータを逐次比較
する。もし、自周辺装置の割込み優先度が高ければ、シ
フト制御回路16、20、24は、入力されるシフトデ
ータをインヒビット(出力禁止)し、また、自周辺装置
の割込み優先度が低くければ、自周辺装置内のシフトレ
ジスタ回路のシフトデータをインヒビットする。
In this state, first, the interrupt priority levels ("00", "01", "10") of the peripheral devices 2 to 4 are
The shift clock generation circuit 1 in the main processing unit 1 of FIG.
For each shift clock from 2, shift control circuits 16 and 2
It is sent as shift data to 0 and 24. This shift data is stored in the shift control circuit 1 of each peripheral device 2-4.
6, 20, and 24 are connected in series, and the shift control circuits 16, 20, and 24 sequentially compare the input shift data with the shift data of the peripheral device. If the interrupt priority of its own peripheral device is high, the shift control circuits 16, 20, 24 inhibit the input shift data (output prohibited), and if the interrupt priority of its own peripheral device is low, Inhibit the shift data of the shift register circuit in the peripheral device.

【0011】このように、各周辺装置2〜4のシフトデ
ータをシフトすることにより割込み優先度が比較され、
優先度の高い周辺装置のシフトデータのみが有効とな
る。そして、最終的に、周辺装置2から、最も優先度の
高いシフトデータが、本例では、周辺装置2のシフトレ
ジスタ回路17からのシフトデータが、主処理装置1の
割込み特定部13に入力されることになる。そして、割
込み特定部13は、受信したシフトデータから、割込み
を実行させる周辺装置および処理内容を判別し、CPU
に通知する。
In this way, by shifting the shift data of each peripheral device 2-4, the interrupt priorities are compared,
Only the shift data of the peripheral device with high priority is valid. Then, finally, the shift data having the highest priority, that is, the shift data from the shift register circuit 17 of the peripheral device 2 in this example, is input from the peripheral device 2 to the interrupt identifying unit 13 of the main processing device 1. Will be. Then, the interrupt identifying unit 13 determines the peripheral device that executes the interrupt and the processing content from the received shift data, and the CPU
To notify.

【0012】以上、図1、および、図2を用いて説明し
たように、本実施例の割込み制御システムでは、主処理
装置と複数の周辺装置との間をシリアルI/F(インタ
フェース)で接続し、主処理装置は、1本の割込み要求
で、どの周辺装置の、どのような要因の割込みが発生し
ているかを、1度に把握することができる。このことに
より、主処理装置と周辺装置間の信号線の削減と、周辺
装置で発生した割込み要求に対する割込み処理時間の短
縮を図ることができる。また、各周辺装置は、自装置内
で発生した各割込み要求の優先度を調停して主処理装置
や自装置のシフト制御回路に通知する。このことによ
り、主処理装置では、電源断等の特に急を要する割込み
要求に対処することができる。さらに、各周辺装置で
は、シフト制御回路は、割込み要求調停回路からの割込
み要求通知がない場合には下流の周辺装置からのビット
列を上流の周辺装置へ直接送出するので、処理の高速化
が図れる。また、各周辺装置は、アダー回路により、上
流から受信した自装置の優先度を示すビット列に「1」
加算して下流に送出する。このことにより、主処理装置
に隣接する周辺装置を最も高い優先度として、各周辺装
置の優先度を容易に設定することができる。
As described above with reference to FIGS. 1 and 2, in the interrupt control system of this embodiment, the main processing unit and a plurality of peripheral units are connected by a serial I / F (interface). However, the main processing unit can grasp, at one time, which peripheral device and what kind of factor the interrupt has occurred with one interrupt request. As a result, it is possible to reduce the number of signal lines between the main processing device and the peripheral device and shorten the interrupt processing time for the interrupt request generated in the peripheral device. In addition, each peripheral device arbitrates the priority of each interrupt request generated in its own device and notifies the main processing device and the shift control circuit of its own device. As a result, the main processing unit can deal with an interrupt request that is particularly urgent, such as power-off. Further, in each peripheral device, the shift control circuit directly sends the bit string from the downstream peripheral device to the upstream peripheral device when there is no interrupt request notification from the interrupt request arbitration circuit, so that the processing speed can be increased. . In addition, each peripheral device causes the adder circuit to add “1” to the bit string indicating the priority of the device itself received from the upstream.
Add and send downstream. This makes it possible to easily set the priority of each peripheral device by setting the peripheral device adjacent to the main processing device as the highest priority.

【0013】尚、本発明は、図1、および、図2を用い
て説明した実施例に限定されるものではなく、その要旨
を逸脱しない範囲において種々変更可能である。例え
ば、本実施例では、主処理装置1に近い周辺装置順(周
辺装置2=「00」、周辺装置3=「01」、周辺装置
4=「10」)に、高い優先度が割り当てられている
が、周辺装置3を「10」、周辺装置4を「01」とし
ても、周辺装置3から周辺装置2には、周辺装置4から
のシフトデータが送出されるので、最終的に主処理装置
1に送出されるシフトデータに変化はない。すなわち、
本発明では、常に優先度の高い周辺装置の割込み要因デ
ータが主処理装置に入力されるので、シフトデータのシ
リーズ接続と、割込み優先レベルのシリーズ接続を自由
に組み合わせることができる。
The present invention is not limited to the embodiment described with reference to FIGS. 1 and 2, and various modifications can be made without departing from the scope of the invention. For example, in the present embodiment, a high priority is assigned in the order of the peripheral devices closest to the main processing device 1 (peripheral device 2 = “00”, peripheral device 3 = “01”, peripheral device 4 = “10”). However, even if the peripheral device 3 is set to “10” and the peripheral device 4 is set to “01”, since the shift data from the peripheral device 4 is sent from the peripheral device 3 to the peripheral device 2, finally the main processing device There is no change in the shift data sent to 1. That is,
In the present invention, since the interrupt factor data of the peripheral device having a high priority is always input to the main processing device, the series connection of shift data and the series connection of the interrupt priority level can be freely combined.

【0014】[0014]

【発明の効果】本発明によれば、割込み要求している周
辺装置と割込み要因の特定が容易となり、割込み本数の
削減でき、かつ、割込み要因が多数の場合の調停回路の
複雑化に対処することができ、複数の周辺装置からの多
数の割込み要求の調停を効率良く行うことが可能とな
る。
According to the present invention, it is easy to identify the peripheral device that is requesting an interrupt and the interrupt factor, the number of interrupts can be reduced, and the arbitration circuit becomes complicated when the number of interrupt factors is large. Therefore, it is possible to efficiently arbitrate a large number of interrupt requests from a plurality of peripheral devices.

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

【図1】本発明の割込み制御システムの本発明に係わる
構成の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a configuration according to the present invention of an interrupt control system of the present invention.

【図2】図1の割込み制御システムにおける周辺装置の
本発明に係わる動作例を示す説明図である。
FIG. 2 is an explanatory diagram showing an operation example according to the present invention of a peripheral device in the interrupt control system of FIG.

【符号の説明】[Explanation of symbols]

1 主処理装置 2〜4 周辺装置 10 主割込み要求調停回路 11 ラッチ信号生成回路 12 シフトクロック生成回路 13 割込み特定部 14、18、22 アダー回路 15、19、23 割込み要求調停回路 17、21、25 シフトレジスタ回路 16、20、24 シフト制御回路 1 Main Processing Units 2 to 4 Peripheral Devices 10 Main Interrupt Request Arbitration Circuit 11 Latch Signal Generation Circuit 12 Shift Clock Generation Circuit 13 Interrupt Identification Unit 14, 18, 22 Adder Circuits 15, 19, 23 Interrupt Request Arbitration Circuits 17, 21, 25 Shift register circuit 16, 20, 24 Shift control circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 マイクロプロセッサによるシステムの全
体制御を行なう主処理装置と、該主処理装置に割込要求
を出力する複数の周辺装置とにより構成される情報処理
装置において、上記各周辺装置と上記主処理装置との割
込みラインを上記主処理装置を最上流としてシリアル信
号線でカスケード接続し、上記各周辺装置には、自装置
に付与された上記割込みの優先度を示す上位ビット列
と、自装置内の各割込み要求の有/無を予め対応付けら
れた位置のビット(「1」、「0」)で示す下位ビット
列とを登録して、上記上位ビットから順に各周辺装置間
で同期して1ビットずつ出力するシフトレジスタ手段
と、自装置の上記シフトレジスタ手段からのビット列
と、上記シリアル信号線を介して下流の周辺装置から送
られてくるビット列とを上位ビットからビット毎に順次
に比較して、両装置の優先度の相違を示す最初のビット
を検出し、該検出ビット前までは自装置側の上記シフト
レジスタ手段からのビット列を、上記検出ビットからは
優先度の高い装置側のビット列を、上記シリアル信号線
を介して上流に送出するシフト制御手段とを設け、上記
主処理装置には、上記シリアル信号線を介して隣接する
周辺装置から送られてくる上記ビット列に基づき、割込
み要求を受け付ける周辺装置と割込み要求内容の判別を
行う割込み特定手段を設けることを特徴とする割込み制
御システム。
1. An information processing apparatus comprising a main processing unit for controlling the entire system by a microprocessor and a plurality of peripheral units for outputting an interrupt request to the main processing unit, wherein each of the peripheral units and the peripheral unit are connected to each other. An interrupt line with the main processing device is cascade-connected with the main processing device as the uppermost stream by a serial signal line, and each peripheral device has an upper bit string indicating the priority of the interrupt given to the own device and the own device. The presence / absence of each interrupt request in the above is registered with the lower bit string indicated by the bit ("1", "0") at the position associated in advance, and the peripheral devices are synchronized with each other in order from the upper bit. The shift register means for outputting one bit at a time, the bit string from the shift register means of its own device, and the bit string sent from the peripheral device downstream via the serial signal line are set up. The first bit indicating the difference in priority between the two devices is detected by sequentially comparing each bit from the most significant bit, and the bit string from the shift register means of the own device is detected up to the detection bit before the detection bit. Is provided with shift control means for sending the high-priority device-side bit string to the upstream through the serial signal line, and the main processing device is sent from the adjacent peripheral device through the serial signal line. An interrupt control system comprising: a peripheral device that receives an interrupt request and an interrupt specifying unit that determines an interrupt request content based on the received bit string.
【請求項2】 請求項1に記載の割込み制御システムに
おいて、上記各周辺装置に、自装置内で発生した各割込
み要求の優先度を調停して上記主処理装置および自装置
の上記シフトレジスタ手段とシフト制御手段に通知する
割込み要求調停手段を設け、上記シフト制御手段は、上
記割込み要求調停手段からの割込み要求通知がない場合
には、下流の周辺装置からのビット列を、上記シフトレ
ジスタ手段のビット列と比較することなく上流の周辺装
置へ直接送出することを特徴とする割込み制御システ
ム。
2. The interrupt control system according to claim 1, wherein each peripheral device arbitrates the priority of each interrupt request generated in its own device and the shift register means of the main processing device and its own device. And an interrupt request arbitration means for notifying the shift control means, and the shift control means, when there is no interrupt request notification from the interrupt request arbitration means, transfers the bit string from the downstream peripheral device to the shift register means. An interrupt control system characterized by sending directly to an upstream peripheral device without comparing with a bit string.
【請求項3】 請求項2に記載の割込み制御システムに
おいて、上記主処理装置に、上記各周辺装置の割込み要
求調停手段からの割込み発生通知をワイヤードOR接続
して受信すると、上記各周辺装置の各割込み要求調停手
段から各シフトレジスタ手段への割込み要求登録を同時
に許可するラッチ信号を発生させるラッチ信号発生手段
を設けることを特徴とする割込み制御システム。
3. The interrupt control system according to claim 2, wherein when the main processing device receives an interrupt occurrence notification from the interrupt request arbitration means of each of the peripheral devices by wired-OR connection and receives the interrupt occurrence notification of each of the peripheral devices. An interrupt control system characterized by comprising latch signal generating means for generating a latch signal for simultaneously permitting registration of an interrupt request from each interrupt request arbitration means to each shift register means.
【請求項4】 請求項1に記載の割込み制御システムに
おいて、上記各周辺装置は、上流から受信した自装置の
優先度を示すビット列を上記シフトレジスタ手段に送出
すると共に、自装置の優先度の次の優先度を示すビット
列を生成して、下流に送出するアダー手段を具備し、上
記主処理装置に隣接する周辺装置のアダー手段は、最も
高い優先度を示すビット列を、上記主処理装置の起動時
に該主処理装置から受信することを特徴とする割込み制
御システム。
4. The interrupt control system according to claim 1, wherein each of the peripheral devices sends a bit string indicating the priority of the own device received from the upstream to the shift register means, and the priority of the own device. The adder means for generating a bit string indicating the next priority and sending the bit string to the downstream side is provided, and the adder means of the peripheral device adjacent to the main processing device assigns the bit string indicating the highest priority to the main processing device. An interrupt control system characterized by receiving from the main processing unit at the time of starting.
【請求項5】 請求項1に記載の割込み制御システムに
おいて、上記主処理装置に、上記各周辺装置の各シフト
レジスタ手段からのビット列の送出の同期および各シフ
ト制御手段の比較動作の同期に用いるクロックを生成し
て、各周辺装置に送出するシフトクロック生成手段を設
けることを特徴とする割込み制御システム。
5. The interrupt control system according to claim 1, wherein the main processing unit is used for synchronization of transmission of a bit string from each shift register means of each peripheral device and synchronization of a comparison operation of each shift control means. An interrupt control system comprising shift clock generation means for generating a clock and sending it to each peripheral device.
JP2239194A 1994-02-21 1994-02-21 Interruption control system Pending JPH07230419A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2239194A JPH07230419A (en) 1994-02-21 1994-02-21 Interruption control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2239194A JPH07230419A (en) 1994-02-21 1994-02-21 Interruption control system

Publications (1)

Publication Number Publication Date
JPH07230419A true JPH07230419A (en) 1995-08-29

Family

ID=12081366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2239194A Pending JPH07230419A (en) 1994-02-21 1994-02-21 Interruption control system

Country Status (1)

Country Link
JP (1) JPH07230419A (en)

Similar Documents

Publication Publication Date Title
AU604330B2 (en) Node for servicing interrupt request messages on a pended bus
EP0329776A1 (en) Method and apparatus for interconnecting busses in a multibus computer system
JPS6357822B2 (en)
JPH07230419A (en) Interruption control system
JP2947195B2 (en) Interrupt mask control method
KR100309862B1 (en) Method and apparatus for servicing interrupts
JPH10320349A (en) Processor and data transfer system using the processor
JPH07219887A (en) Dma transfer controller
JPH04369064A (en) Method and device for controlling interruption processing
JP3050131B2 (en) Arbitration method
JPH0916411A (en) Interruption control system
JPH11184805A (en) Bus system
JPH05158708A (en) Interruption control circuit
JP2003296265A (en) Data transfer circuit
JPS60168240A (en) Interrupt processing circuit
JPS6197777A (en) Interruption processing circuit
JPH0318958A (en) Multiprocessor system
US6735713B1 (en) System for suspending current bus cycle of microprocessor upon receiving external bus retry signal for executing other process and re-staring the suspended bus cycle thereafter
JPS63193254A (en) Common input/output bus
JPH05108460A (en) Memory control method
JPH0773136A (en) Operation method for computer system
JPH09204409A (en) Lock transfer control system
JPS59105124A (en) Controlling method of priority for use of bus
JPH06161793A (en) Coping device in parity error occurrence
JPH02222059A (en) Multiprocessor system