JPS63174132A - Interruption controller - Google Patents

Interruption controller

Info

Publication number
JPS63174132A
JPS63174132A JP635187A JP635187A JPS63174132A JP S63174132 A JPS63174132 A JP S63174132A JP 635187 A JP635187 A JP 635187A JP 635187 A JP635187 A JP 635187A JP S63174132 A JPS63174132 A JP S63174132A
Authority
JP
Japan
Prior art keywords
interrupt
vectoring
signal line
level
vector number
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
JP635187A
Other languages
Japanese (ja)
Inventor
Makoto Sato
誠 佐藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP635187A priority Critical patent/JPS63174132A/en
Publication of JPS63174132A publication Critical patent/JPS63174132A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt

Abstract

PURPOSE:To improve universal applicability for complicated interruption control, by providing a control circuit which performs an interruption control operation independently based on a memory which stores information required for the interruption control and the information outputted from the memory. CONSTITUTION:In a ROM14, the information with respect to a vector number, a vectoring method (automatic or external), the presence/absence of the output function of the vector number, and a physical position are et on a prescribed number of address inputs. Also, an interruption control circuit (bus control circuit) 21 performs bus control based on the detection of interruption acknowledge at every level and the information of the output of the ROM14. In other words, the circuit 21, when an automatic vectoring system being indicated by a signal line 16 which represents the system of vectoring, activates a signal line 26, and when an external vectoring system being indicated, is operated by the level of a signal line 17. Thus, by performing the interruption control operation independently based on the information obtained from the ROM14, it is possible to improve the universal applicability for the complicated interruption control.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は外部装置からのマイクロプロセッサへの割込み
要求に対応する割込み制御装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an interrupt control device that responds to interrupt requests from external devices to a microprocessor.

〔従来技術〕[Prior art]

割込みアクノリッジ・サイクル中に外部デバイスからベ
クタ番号をフェッチし、その割込みルーチンの先頭アド
レスをフェッチしたベクタ番号をもとに、メモリ上のテ
ーブルから読み出して決定し、マイクロ・プロセッサ(
CPU)に対し割込み動作を行う方式がある。
A vector number is fetched from an external device during the interrupt acknowledge cycle, the start address of the interrupt routine is determined by reading it from a table in memory based on the fetched vector number, and the microprocessor (
There is a method of interrupting the CPU (CPU).

しかしながら、ベクタ番号を出力する機能を持たないI
10デバイスあるいは割込み発生回路(以後割込み発生
回路も含めてI10デバイスと称する。)の複数に対し
て、特に同一割込みレベルを割り当てる場合、外部にベ
クタ番号を発生させる目的で専用のROM等を設けてい
た。
However, I do not have the function to output vector numbers.
In particular, when assigning the same interrupt level to multiple I10 devices or interrupt generation circuits (hereinafter referred to as I10 devices including interrupt generation circuits), a dedicated ROM or the like is provided externally for the purpose of generating vector numbers. Ta.

このベクタ番号発生ROM等からはまさにベクタ番号が
送出されるだけであって、自動ベクタリング(CPU内
部で自動的にベクタ番号を発行するもの)と外部ベクタ
リング(CPUが外部デバイスによって出力されたベク
タ番号をフェッチするもの)で処理するI10デバイス
が特に同一割込みレベルに共存する場合、また同じ外部
ベクタリングを行うI10デバイスでも、ベクタ番号を
出力する機能を有するものと、ベクタ番号発生ROM等
に出力させるものとが、特に同一割込みレベルに共存す
る場合、さらに同じベクタリング方式のI10デバイス
でもCPUと同じ基板内に実装されているものと、外部
の基板に実装されているものとが特に同−割込みレベル
に共存する場合といったように複雑な割込み制御を行う
ためには、このベクタ番号を発生させるROM以外にI
10デバイスのベクタリング方式を決定するための回路
、あるいはデータ・バスの制御等の回路を更に設け、そ
のシステムに即した割込み制御を行っていた。
This vector number generation ROM etc. only sends out vector numbers, and includes automatic vectoring (which automatically issues vector numbers within the CPU) and external vectoring (which automatically issues vector numbers within the CPU). Especially when I10 devices that process with the same interrupt level (one that fetches vector numbers) coexist at the same interrupt level, and even I10 devices that perform the same external vectoring, one with the function of outputting vector numbers and one with vector number generation ROM, etc. Especially if the outputs coexist at the same interrupt level, and even if the I10 device uses the same vectoring method, the one mounted on the same board as the CPU and the one mounted on an external board are especially the same. - In order to perform complex interrupt control such as coexistence at the interrupt level, an I
A circuit for determining the vectoring method of the 10 devices or a circuit for controlling the data bus was further provided to perform interrupt control in accordance with the system.

そのため、割込みを発生するI10デバイスのベクタリ
ング方式等の変更があった場合、割込み制御回路自体を
変更せねばならず、このような構成は割込み制御に対す
る汎用性に乏しかった。
Therefore, if there is a change in the vectoring method of the I10 device that generates an interrupt, the interrupt control circuit itself must be changed, and such a configuration lacks versatility for interrupt control.

〔目 的〕〔the purpose〕

本発明は上述従来例の欠点を除去し、上述のような複雑
な割込み制御を汎用性に富む単純な構成の割込み制御回
路によって実現可能にするものである。
The present invention eliminates the drawbacks of the above-mentioned conventional example and makes it possible to implement the above-mentioned complicated interrupt control using a versatile and simple-configured interrupt control circuit.

〔実施例〕〔Example〕

以下、本発明を好ましい実施例に基づいて説明する。 The present invention will be explained below based on preferred embodiments.

第1図は本発明の実施例の構成図である。FIG. 1 is a block diagram of an embodiment of the present invention.

1はCPU、2はレベルAに並ぶi個のI10デバイス
から入力する割込みに対する優先席順エンコーダ、3は
レベルBに並ぶj個のI10デバイスから入力する割込
みに対する優先席順エンコーダである。4は優先席順エ
ンコーダ2から出力されるところのレベルAの共通割込
み線、5は割込みレベルAに並ぶi個のI10デバイス
の区別を示すコード信号、6も同様に優先席順エンコー
ダ3から出力されるところのレベルBの共通割込み線、
7は割込みレベルBに並ぶj個の°I10デバイスの区
別を示すコード信号である。
1 is a CPU, 2 is a priority seat order encoder for interrupts input from i I10 devices lined up at level A, and 3 is a priority seat order encoder for interrupts input from j I10 devices lined up at level B. 4 is a level A common interrupt line output from the priority seat order encoder 2, 5 is a code signal indicating the distinction of i I10 devices lined up at interrupt level A, and 6 is similarly output from the priority seat order encoder 3. However, the level B common interrupt line,
7 is a code signal indicating the distinction between j °I10 devices lined up at interrupt level B.

8は優先席順エンコーダ、9はラッチ、lOはスリース
テート出力のバッファ、llはAND回路、12はi出
力のデコーダ、13はj出力のデコーダである。
8 is a priority seat order encoder, 9 is a latch, IO is a three-state output buffer, 11 is an AND circuit, 12 is an i output decoder, and 13 is a j output decoder.

・14はすでに所定のアドレス入力に対して、ベクタ番
号、ベクタリングの方法(自動あるいは外部)、ベクタ
番号出力機能の有無、物理的位置(基板内あるいは基板
外)のそれぞれの情報がセットされているROMである
。ROM14からは信号線15〜18が出力され、15
はROM14から出力されたベクタ番号、16はベクタ
リングの方式(自動あるいは外部)を表わす信号線、1
7は外部ベクタリングで行う場合そのI10デバイスに
ベクタ番号出力機能が有るのかあるいはROM14に代
わってベクタ番号を送出してもらうのかを表わす信号線
、18はベクタ番号出力機能が有るI10デバイスの場
合それがCPU1と同じ基板内にあるのか、それとも基
板外にあるのかを表わす信号線である。
・For 14, the vector number, vectoring method (automatic or external), presence or absence of vector number output function, and physical location (inside or outside the board) have already been set for the specified address input. This is a ROM. Signal lines 15 to 18 are output from the ROM 14,
is the vector number output from the ROM 14, 16 is a signal line indicating the vectoring method (automatic or external), 1
7 is a signal line indicating whether the I10 device has a vector number output function or whether the vector number is sent instead of the ROM 14 when using external vectoring, and 18 is a signal line indicating whether the I10 device has a vector number output function. This is a signal line indicating whether the CPU 1 is on the same board as the CPU 1 or outside the board.

19はCPU1が現在受は付けた割込みのレベルを表わ
しているアドレス・バスの下位数ビット、20はCPU
Iの動作を表すファンクション・コードである。21は
レベル別の割込みアクノリッジの検出およびROM14
からの情報に従ってのバス制御を行うバス制御回路であ
り、22は回路21から得られるところのベクタ番号を
出力する機能を有するI10デバイスに対する共通イネ
ーブル信号線、23はレベル別の割込みアクノリッジ信
号線、24はROM14から出力されたベクタ番号をデ
ータ・バスに乗せるためのイネーブル線、25は基板外
のI10デバイスが出力したベクタ番号を基板内のデー
タバスに乗せるためのイネーブル線である。、26はC
PUIに対し、現在の割込みアクノリッジ・サイクルの
対象となっている割込みを自動ベクタリングで行うこと
を示す信号線、27はこれに対し外部ベクタリングで行
うことを示す信号線である。
19 is the lower several bits of the address bus that represents the level of the interrupt currently accepted by CPU1, and 20 is the CPU
This is a function code representing the operation of I. 21 is the detection of interrupt acknowledge by level and ROM14
22 is a common enable signal line for the I10 device which has the function of outputting the vector number obtained from the circuit 21; 23 is an interrupt acknowledge signal line for each level; 24 is an enable line for putting the vector number output from the ROM 14 on the data bus, and 25 is an enable line for putting the vector number output by the I10 device outside the board on the data bus inside the board. , 26 is C
A signal line 27 indicates to the PUI that the interrupt targeted by the current interrupt acknowledge cycle is to be executed by automatic vectoring, and a signal line 27 indicates that it is to be executed by external vectoring.

以下、第1図示回路の動作例を説明する。An example of the operation of the first illustrated circuit will be described below.

割込みレベルAのi個のうちひとつのI10デバイスが
割込みを発生したとする。この割込み線は優先席順エン
コーダ2に入力し、エンコーダ2からはレベルAの共通
割込み線4とともにこのI10デバイスに対するコード
情報5が送出される。レベルAの共通割込み線4は優先
席順エンコーダ8に入力し、コード化された後CPUI
に与えられる。
Assume that one I10 device among i devices with interrupt level A generates an interrupt. This interrupt line is input to the priority seat order encoder 2, and the encoder 2 sends out the code information 5 for this I10 device along with the level A common interrupt line 4. The level A common interrupt line 4 is input to the priority seat order encoder 8, and after being encoded, the CPU
given to.

エンコーダ8からの出力に基づいてCPUIでは割込み
処理が可能になるとファンクション・コード20を通じ
て割込みアクノリッジサイクル中であることを示し、ま
た、アドレス・バスの下位数ビット19を用いて現在受
は付けたところの割込みレベルを示す。バス制御回路2
1ではこのファンクション・コード20およびアドレス
争バスの一部19を用いて割込みレベル別の割込みアク
ノリッジ信号23を出力する。
Based on the output from the encoder 8, when the CPUI becomes able to handle an interrupt, it indicates through the function code 20 that the interrupt acknowledge cycle is in progress, and also uses the lower few bits 19 of the address bus to indicate where the current acceptance is. Indicates the interrupt level. Bus control circuit 2
1, this function code 20 and part 19 of the address contention bus are used to output an interrupt acknowledge signal 23 for each interrupt level.

CPUIが現在受は付けた割込みのレベルがAであった
とすると、割込みレベル別の割込みアクノリッジ信号2
3のうちレベルAに対する割込みアクノリッジ線のみが
アクティブになる。これによってI10デバイスに対す
るコード情報5がラッチ9においてその値が保持され、
スリーステート出力バッファ10を通じてROM14に
入力される。
Assuming that the level of the interrupt currently accepted by the CPUI is A, the interrupt acknowledge signal 2 for each interrupt level
3, only the interrupt acknowledge line for level A becomes active. As a result, the code information 5 for the I10 device is held at its value in the latch 9,
The signal is input to the ROM 14 through the three-state output buffer 10.

ROM14にはバス制御回路21に入力したのと同じ様
に、CPUIが現在受は付けた割込みのレベルを表わし
ているアドレス・バスの下位数ビット19が入力され、
スリーステート出力バッファ10からのI10デバイス
に対するコード情報と合わせてROM14をアドレスす
ることによりこの■/○デバイスの割込みに関する情報
15. 16. 17および18が出力される。
The lower number bits 19 of the address bus representing the level of the interrupt currently accepted by the CPUI are input to the ROM 14 in the same way as input to the bus control circuit 21.
By addressing the ROM 14 together with the code information for the I10 device from the three-state output buffer 10, information regarding the interrupt of this ■/○ device 15. 16. 17 and 18 are output.

ここで、バス制御回路21はベクタリングの方式を表わ
す信号線16により自動ベクタリング方式で行うことが
示されている場合は、CPUIに自動ベクタリングであ
ることを示す信号線26をアクティブにする。一方、外
部ベクタリング方式で行うことが示されている場合は、
このI10デバイスがベクタ番号の送出機能を有するの
か、そうでないのかを表わす信号線17のレベルによっ
て以下の動作をする。
Here, if the signal line 16 representing the vectoring method indicates that automatic vectoring is to be used, the bus control circuit 21 activates the signal line 26 indicating automatic vectoring to the CPU. . On the other hand, if it is indicated to do it with external vectoring method, then
The following operation is performed depending on the level of the signal line 17 indicating whether this I10 device has a vector number sending function or not.

即ち、外部ベクタリング方式で行う場合にI10デバイ
スがベクタ番号の送出機能を有する場合は、ベクタ番号
を出力する機能を有するI10デバイスに対する共通イ
ネーブル信号線22をアクティブにする。これによって
AND回路11の出力はアクティブになり、デコーダ1
2をイネーブルにする。
That is, when using the external vectoring method, if the I10 device has a vector number sending function, the common enable signal line 22 for the I10 device having the vector number output function is activated. As a result, the output of the AND circuit 11 becomes active, and the output of the decoder 1 becomes active.
Enable 2.

デコーダ12はラッチ9によってラッチされたところの
I10デバイスに対するコード信号をデコードし、割込
みを発行したI10デバイスに対して割込みアクノリッ
ジ信号を与え、ベクタ番号のデータ・バスへの送出を許
可する。なおCPUIに対して外部ベクタリングである
ことを示す信号線27はこのI10デバイスによってア
クティヴ状態にされる。
Decoder 12 decodes the code signal for the I10 device latched by latch 9, provides an interrupt acknowledge signal to the I10 device that issued the interrupt, and permits transmission of the vector number onto the data bus. Note that the signal line 27 indicating external vectoring to the CPUI is activated by this I10 device.

一方、外部ベクタリングを行う場合にI10デバイスに
ベクタ番号の送出機能が無い場合は、ROM14から出
力されたベクタ番号15をデータ・バスに送出すべ(、
スリーステートバッファ10へのイネーブル信号線24
をアクティブにする。同時にCPUIに対して外部ベク
タリングであることを示す信号線27をアクティブにす
る。
On the other hand, when performing external vectoring, if the I10 device does not have a vector number sending function, vector number 15 output from the ROM 14 should be sent to the data bus (
Enable signal line 24 to three-state buffer 10
Activate. At the same time, the signal line 27 indicating external vectoring to the CPU is activated.

ベクタ番号を送出する機能を有するI10デバイスにつ
いて、この■/○がCPU1と同じ基板内にあるのか、
基板外にあるのかを示す信号線18により、基板内にあ
ることが示されている場合はベクタ番号を出力する機能
を有するI10デバイスに対する共通イネーブル信号線
22をアクティブにし、前述のとおりの動作を実行する
。一方、基板外にあることが示されている場合は、基板
内にある場合の動作と同時にスリーステートバッファ1
0へのイネーブル信号線25をアクティブにする。これ
によって基板外のI/’Oデバイスが送出したベクタ番
号が、CPUIの基板内のデータ・バスに現われる。
Regarding the I10 device that has the function of sending vector numbers, are these ■/○ located on the same board as CPU1?
The common enable signal line 22 for the I10 device, which has the function of outputting a vector number when it is indicated that it is inside the board, is activated by the signal line 18 indicating whether it is outside the board, and the operation as described above is performed. Execute. On the other hand, if it is indicated that it is outside the board, the three-state buffer 1 operates simultaneously with the operation when it is inside the board.
Activate the enable signal line 25 to 0. This causes the vector number sent by the off-board I/'O device to appear on the data bus within the CPUI board.

以上のように、ある特定の割込み要因に対する割込みア
クノリッジサイクルの制御はすべてROM14から得ら
れる情報16.17および18によって決定される。
As described above, the control of the interrupt acknowledge cycle for a particular interrupt factor is entirely determined by the information 16, 17 and 18 obtained from the ROM 14.

従って、割込み制御の中心的存在である回路21は、デ
コーダと単純なゲート回路で構成されハード的負荷は小
さい。
Therefore, the circuit 21, which is the central entity in interrupt control, is composed of a decoder and a simple gate circuit, and has a small hardware load.

尚、前記実施例においてROM14はRA Mでも良く
、こうすることによってベクタ番号、ベクタリングの方
式等をシステムの動作状況(例えば電源投入時初期診断
動作、定常動作、異常検出動作等々・・・)に応じてダ
イナミックに変えることが可能になり、さらに汎用性に
富む割込み制御が可能になる。
In the above embodiment, the ROM 14 may be a RAM, and by doing so, the vector number, vectoring method, etc. can be stored in the operating status of the system (for example, initial diagnosis operation at power-on, steady operation, abnormality detection operation, etc.). It becomes possible to dynamically change the value depending on the situation, and more versatile interrupt control becomes possible.

〔効 果〕〔effect〕

以上のように、割込みを発生する各■/○デバイスにつ
いてそのベクタリングの方式等、割込み制御に必要な情
報を格納したメモリを有し、メモリからの情報によって
独立に割込み制御動作をするために、I10デバイスに
ついてのベクタリング方式の変更等はメモリの内容を書
き変えるだけで対、応可能になる。これは割込みを発生
するI10デバイスが多種多様になるにつれて、非常に
有効で汎用件に富んだ回路構成を達成するものである。
As mentioned above, each ■/○ device that generates an interrupt has a memory that stores information necessary for interrupt control, such as its vectoring method, and in order to perform interrupt control operations independently based on the information from the memory. , changes in the vectoring method for I10 devices can be handled simply by rewriting the contents of the memory. This achieves a highly effective and versatile circuit configuration as the variety of I10 devices that generate interrupts increases.

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

第1図は本発明を適用した割込み制御装置の構成を示す
ブロック図であり、1はCPU、2.3および8は優先
席順エンコーダ、9はラッチ、lOはスリーステート出
力のバッファ、llはAND回路、12および13はデ
コーダ、14はROM、21は割込み制御回路である。
FIG. 1 is a block diagram showing the configuration of an interrupt control device to which the present invention is applied, in which 1 is a CPU, 2, 3 and 8 are priority seat order encoders, 9 is a latch, IO is a three-state output buffer, 11 is an AND The circuits 12 and 13 are decoders, 14 is a ROM, and 21 is an interrupt control circuit.

Claims (1)

【特許請求の範囲】[Claims] ベクタ番号と同時に、ベクタリング方式等の情報を出力
するメモリと、上記メモリから出力された情報をもとに
独立にマイクロプロセッサに対し割込み制御動作する制
御回路を有することを特徴とする割込み制御装置。
An interrupt control device characterized by having a memory that outputs information such as a vectoring method as well as a vector number, and a control circuit that independently controls interrupts for a microprocessor based on the information output from the memory. .
JP635187A 1987-01-14 1987-01-14 Interruption controller Pending JPS63174132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP635187A JPS63174132A (en) 1987-01-14 1987-01-14 Interruption controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP635187A JPS63174132A (en) 1987-01-14 1987-01-14 Interruption controller

Publications (1)

Publication Number Publication Date
JPS63174132A true JPS63174132A (en) 1988-07-18

Family

ID=11635946

Family Applications (1)

Application Number Title Priority Date Filing Date
JP635187A Pending JPS63174132A (en) 1987-01-14 1987-01-14 Interruption controller

Country Status (1)

Country Link
JP (1) JPS63174132A (en)

Similar Documents

Publication Publication Date Title
JPH05233318A (en) Microprocessor
JPH05265517A (en) Programmable controller with operator message transmitting function
JPH02284258A (en) Writable logic controller comrising function block processor and bit processor
JPH05108548A (en) Dma controller
JPS63174132A (en) Interruption controller
JPH03225546A (en) Method for confirming whether option board is mounted or not
JPS59123933A (en) Address comparison system
KR920006970B1 (en) Programmable logic controller
JPS63174133A (en) Interruption controller
JPS5854462A (en) Shared memory device
JPS5846448A (en) Interruption control circuit
JPH02271456A (en) Response signal return circuit
JPS63174134A (en) Interruption controller
JPH01200438A (en) Interruption control circuit
JPH0520203A (en) Memory access control device
JPH03225551A (en) Input and output device access control system
JPH0545978B2 (en)
KR970049174A (en) PLC (PLC)
JPH05257860A (en) Information processor
JPS63165929A (en) Information processing system
JPH09160786A (en) Microprocessor
JPH0469904B2 (en)
JPH04337806A (en) Numerical controller
JPH0635846A (en) Semiconductor integrated circuit device containing dma function
JPS61282936A (en) Vector interruption system for microprocessor