JPS6240567A - Interruption managing device - Google Patents

Interruption managing device

Info

Publication number
JPS6240567A
JPS6240567A JP17993585A JP17993585A JPS6240567A JP S6240567 A JPS6240567 A JP S6240567A JP 17993585 A JP17993585 A JP 17993585A JP 17993585 A JP17993585 A JP 17993585A JP S6240567 A JPS6240567 A JP S6240567A
Authority
JP
Japan
Prior art keywords
interrupt
interruption
signal
setting register
interrupt level
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
JP17993585A
Other languages
Japanese (ja)
Inventor
Hiroshi Ikeda
浩 池田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP17993585A priority Critical patent/JPS6240567A/en
Publication of JPS6240567A publication Critical patent/JPS6240567A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To manage efficiently an interruption by setting again an interruption level given to a peripheral device, to an optimum state by a software, in accordance with each system or its occasional state of the system. CONSTITUTION:To the tip of an interruption request line L, a peripheral device is connected. An interruption level setting register 5 is provided so as to correspond to the interruption request line L by one-to-one. The contents of the interruption level setting register 5 can be changed freely by changing the value of a setting register, for instance, so that it becomes a value which is different from an initial value, by a software, and also, setting an interruption level change flag. When a signal on the interruption request line L becomes on, the contents of the corresponding interruption level setting register 5 are outputted, and inputted to the corresponding code converting part 6. The output of each code converting part 6 is inputted to a priority encoder 2. The priority encoder 2 selects that of the largest value in output signals from plural code converting parts 6, and outputs a signal for showing the selected value as an interrupting signal. The interrupting signal is inputted to an M processor.

Description

【発明の詳細な説明】 〔概要〕 各種のシステム及びその時々のシステムの状態に合わせ
て周辺装置の割込みレベルを任意にソフトウェアによっ
て設定し、管理するものである。
DETAILED DESCRIPTION OF THE INVENTION [Summary] The interrupt level of a peripheral device is arbitrarily set and managed by software in accordance with various systems and the state of the system at the time.

〔産業上の利用分野〕[Industrial application field]

本発明は、周辺装置に割当てられる割込みレベルをソフ
トウェアによって可変に出来るようにした割込み管理装
置に関するものである。
The present invention relates to an interrupt management device in which the interrupt level assigned to a peripheral device can be varied by software.

〔従来技術と問題点〕[Prior art and problems]

従来の計算機システムにおいては、周辺装置対応にラッ
チが設けられ、各ラッチの割込み要求がプライオリティ
・エンコーダに入力され、プライオリティ・エンコーダ
が最も高い割込みレベルを持つ割込み要求を選択し、選
択した割込み要求に対応する値を持つ割込み信号を出力
している。従来方式では、各周辺装置に割当てられてい
る割込みレベルは固定であり、システムの状態に合わせ
て変更することが出来なかった。
In conventional computer systems, latches are provided for peripheral devices, and the interrupt requests from each latch are input to a priority encoder, which selects the interrupt request with the highest interrupt level and processes the selected interrupt request. It outputs an interrupt signal with a corresponding value. In the conventional system, the interrupt level assigned to each peripheral device is fixed and cannot be changed according to the system state.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであって、周辺装置
に対する割込みレベルをソフトウェアによって自由に変
更できるようになった割込み管理装置を提供することを
目的とじている。
The present invention is based on the above consideration, and an object of the present invention is to provide an interrupt management device in which the interrupt level for a peripheral device can be freely changed by software.

〔目的を達成するための手段〕[Means to achieve the purpose]

そしてそのため、本発明の割込み管理装置は、複数の割
込み要求ラインの一端にそれぞれ接続された割込みレベ
ル出力部と、各割込み要求ラインに1対工対応で設けら
れた複数の割込みレベル設定レジスタと、各割込みレベ
ル出力部に1対1対応で設けられ且つ対応する割込みレ
ベル出力部から出力されるmビットのコード信号をnビ
ットのコード信号に変換する複数のコード変換部と、n
ビットの信号線を有し且つ第i番目(但し、iは1.2
、…、n)の信号線上に上記複数のコード変換部の第i
番目の信号を論理和した信号を流す出力手段と、マイク
ロプロセッサによって指定された割込みレベル設定レジ
スタにマイクロプロセッサで指定された値を書き込む手
段とを具備し、更に上記割込みレベル出力部が、対応す
る割込み要求ライン上の信号がオンのときに対応する割
込みレベル設定レジスタの内容を出力するように構成さ
れていることを特徴とするものである。
Therefore, the interrupt management device of the present invention includes: an interrupt level output unit connected to one end of a plurality of interrupt request lines, and a plurality of interrupt level setting registers provided in one-to-one correspondence with each interrupt request line; a plurality of code conversion units provided in one-to-one correspondence to each interrupt level output unit and converting an m-bit code signal output from the corresponding interrupt level output unit into an n-bit code signal;
It has a bit signal line and the i-th signal line (where, i is 1.2
, ..., n) of the plurality of code converters.
output means for outputting a signal obtained by ORing the th signal, and means for writing a value specified by the microprocessor into an interrupt level setting register specified by the microprocessor; This device is characterized in that it is configured to output the contents of a corresponding interrupt level setting register when a signal on an interrupt request line is on.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を図面を参照しつつ説明する。第1図は本
発明の1実施例のブロック図である。第1図において、
工は割込み管理装置、2はプライオリティ・エンコーダ
、3は割込みレベル出力部、4はレジスタ、5は割込み
レベル設定レジスタ、6はコード変換部、Lは割込み要
求ラインをそれぞれ示している。割込み要求ラインLの
先には周辺装置が接続される。割込み要求ラインLに1
対1に対応して割込みレベル設定レジスタ5が設けられ
ている。割込みレベル設定レジスタ5の内容はソフトウ
ェアによって自由に変更することが出来る。割込み要求
う・tンL上の信号がオン(論理1)になると、対応す
る割込みレベル設定レジスタ5の内容が出力され、対応
・するコード変換部6に入力される。コード変換部6は
、例えば3ビット符号を8ビット符号に変換するもので
ある。各コード変換部6の出力はプライオリティ・エン
コーダ2に入力される。プライオリティ・エンコーダ2
は、複数のコード変換部6からの出力信号の中の最も値
の大きいものを選択し、選択された値を示す信号を割込
み信号として出力する。割込み信号はマイクロプロセッ
サに人力される。マイクロプロセッサは例えば6800
0 (モトローラ社)である。
Hereinafter, the present invention will be explained with reference to the drawings. FIG. 1 is a block diagram of one embodiment of the present invention. In Figure 1,
2 is an interrupt management device, 2 is a priority encoder, 3 is an interrupt level output section, 4 is a register, 5 is an interrupt level setting register, 6 is a code conversion section, and L is an interrupt request line. A peripheral device is connected to the end of the interrupt request line L. 1 on interrupt request line L
An interrupt level setting register 5 is provided corresponding to pair 1. The contents of the interrupt level setting register 5 can be freely changed by software. When the signal on the interrupt request register 5 turns on (logical 1), the contents of the corresponding interrupt level setting register 5 are output and input to the corresponding code converter 6. The code converter 6 converts, for example, a 3-bit code into an 8-bit code. The output of each code converter 6 is input to the priority encoder 2. Priority encoder 2
selects the one with the largest value among the output signals from the plurality of code converters 6, and outputs a signal indicating the selected value as an interrupt signal. Interrupt signals are input to the microprocessor. For example, the microprocessor is 6800
0 (Motorola).

第2図は割込みが発生したときの信号の流れを示す図で
ある。図示の例では、割込みレベル設定レジスタ5−1
の値が3.5−2の値が2.5−3の値が6.5−4の
値が1に設定されている。
FIG. 2 is a diagram showing the flow of signals when an interrupt occurs. In the illustrated example, interrupt level setting register 5-1
The value of 3.5-2 is set to 2.5-3, and the value of 6.5-4 is set to 1.

図示の例では、割込み要求ラインLl上の信号がオンで
あるので、割込みレベル出力部3−1は「011」を出
力し、また割込み要求信号ラインL3の信号がオンであ
るので、割込みレベル出力部3−3はrllOJを出力
する。その他の割込みレベル出力部3−2及び3−4は
ro 00Jを出力する。コード変換部6−1はro 
11Jを「00001000Jに変換し、またコード変
換部6−3はrl 10Jをro 1000000Jに
変換する。コード変換部6−2と6−4はro o o
 。
In the illustrated example, the signal on the interrupt request line Ll is on, so the interrupt level output section 3-1 outputs "011", and the signal on the interrupt request signal line L3 is on, so the interrupt level output section 3-1 outputs "011". The unit 3-3 outputs rllOJ. The other interrupt level output units 3-2 and 3-4 output ro 00J. The code converter 6-1 is ro
11J to "00001000J, and the code converter 6-3 converts rl 10J to ro 1000000J. The code converters 6-2 and 6-4 convert ro o o
.

0000Jを出力する。コード変換部6−1ないし6−
4の第1桁(iは0,1、…、7)の出力信号はORさ
れており、ORされた第0桁ないし第7桁の信号がプラ
イオリティ・エンコーダ2に入力される。図示の例では
、プライオリティ・エンコーダ2の入力信号の内の第3
桁と第6桁が「1」となっており、従ってプライオリテ
ィ・エンコーダ2は数値6を表すrllOJを出力する
Outputs 0000J. Code converter 6-1 to 6-
The output signals of the first digit (i is 0, 1, . . . , 7) of 4 are ORed, and the ORed signals of the 0th to 7th digits are input to the priority encoder 2. In the illustrated example, the third of the input signals of the priority encoder 2
The digit and the sixth digit are "1", so the priority encoder 2 outputs rllOJ representing the numerical value 6.

この割込み信号は上述のようにマイクロプロセッサに送
られる。マイクロプロセッサは割込みレベル6の割込み
があることが通知されると、対応する割込み処理プログ
ラムを実行する。
This interrupt signal is sent to the microprocessor as described above. When the microprocessor is notified that there is an interrupt of interrupt level 6, it executes the corresponding interrupt processing program.

第3図は割込みレベル設定レジスタへのアクセスを行う
だめの回路の1例を示す図である。第3図において、7
はデータバス・バッファ、8はリード/ライト制御部を
それぞれ示している。各別込みレベル設定レジスタには
固有のアドレスが割付けられている。例えば、割込みレ
ベル設定レジスタ5−1に所望の値をセットしたい場合
、所望の値ヲデータパス上にのせ、固有のアドレスをア
ドレス・バス上にのせ、ライト信号WRを低レベルにす
る。そうすると、割込みレベル設定レジスタ5−1に所
望の値がセットされる。マイクロプロセッサが所望の割
込みレベル設定レジスタの値を読み取り得ることは言う
までもない。
FIG. 3 is a diagram showing an example of a circuit for accessing the interrupt level setting register. In Figure 3, 7
8 indicates a data bus buffer, and 8 indicates a read/write control section. A unique address is assigned to each separate level setting register. For example, if a desired value is to be set in the interrupt level setting register 5-1, the desired value is placed on the data path, a unique address is placed on the address bus, and the write signal WR is set to a low level. Then, a desired value is set in the interrupt level setting register 5-1. It goes without saying that the microprocessor can read the value of the desired interrupt level setting register.

第4図は割込みレベル設定レジスタの値を初期値と異な
るものに設定し直す場合の処理を示すものである。この
処理はプログラムによって行われる。
FIG. 4 shows the process for resetting the value of the interrupt level setting register to something different from the initial value. This process is performed by a program.

■ 割込みレベル設定レジスタの値を変更する。■ Change the value of the interrupt level setting register.

■ 割込みレベル変更フラグをオンにする。■ Turn on the interrupt level change flag.

第5図は割込み信号を受は取った時のマイクロプロセッ
サの処理を示す図である。
FIG. 5 is a diagram showing the processing of the microprocessor when it receives an interrupt signal.

■ 割込みレベル変更フラグがオンか否かを調べる。オ
フであれば■の処理を行い、オンであれば■の処理を行
う。
■ Check whether the interrupt level change flag is on. If it is off, process ``■'' is performed, and if it is on, process ``■'' is performed.

■ 通常通りの処理を行う。■ Perform processing as usual.

■ 変更に伴なう処理を行う。例えば周辺装置Aに最初
は割込みレベル4が割当てられており、次に割り込みレ
ベル5に変更されたとする。この状態の下でマイクロプ
ロセッサはレベル5の割込み信号を受は取ると、周辺装
置Aからの割込みか否かを処理するためのプログラムを
実行する。
■ Perform processing associated with changes. For example, suppose that interrupt level 4 is initially assigned to peripheral device A, and then it is changed to interrupt level 5. Under this state, when the microprocessor receives a level 5 interrupt signal, it executes a program for processing whether the interrupt is from peripheral device A or not.

第6図は本発明の割込み管理装置の使用例を示す図であ
る。第6図において、AないしHは周辺装置を示してい
る。第6図(a)は初期設定時の割込みレベルでの使用
例を示し、第6図(blはシステム構成変更時の割込み
レベルでの使用例を示している。
FIG. 6 is a diagram showing an example of use of the interrupt management device of the present invention. In FIG. 6, A to H indicate peripheral devices. FIG. 6(a) shows an example of use at the interrupt level during initial setting, and FIG. 6(bl) shows an example of use at the interrupt level when changing the system configuration.

本発明の割込み管理装置を複数接続することにより、更
に柔軟なシステムの制御を行うことが出来る。例として
第7図に本発明の割込み管理装置を木構造に配置した場
合の使用例を示す。第7図において、9ないし11はO
R回路を示している。
By connecting a plurality of interrupt management devices of the present invention, more flexible system control can be achieved. As an example, FIG. 7 shows a usage example in which the interrupt management device of the present invention is arranged in a tree structure. In Figure 7, 9 to 11 are O
An R circuit is shown.

図示の例では、割込み管理装置1−1の配下にある周辺
装置はすべて、割込み管理装置1−3により最終的に割
込みレベル4が与えられている。割込み管理装置1−2
は、2分割して使われており、一方の1−2−1の配下
にある周辺装置は割込み管理装置1−3により最終的に
割込みレベル3が与えられ、もう一方の1−2−2の配
下にある周辺装置は割込み管理装置1−3により最終的
に割込みレベル1が与えられている。割込み管理装置1
−3に直接接続されている周辺装置に対しては割込み管
理装置1−3により割込みレベル5が与えられている。
In the illustrated example, all peripheral devices under the interrupt management device 1-1 are finally given interrupt level 4 by the interrupt management device 1-3. Interrupt management device 1-2
is used by dividing it into two parts, and the peripheral devices under one 1-2-1 are finally given interrupt level 3 by the interrupt management device 1-3, and the peripheral devices under one 1-2-1 are given interrupt level 3, The peripheral devices under the control are finally given interrupt level 1 by the interrupt management device 1-3. Interrupt management device 1
-3 is given interrupt level 5 by the interrupt management device 1-3.

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

以上の説明から明らかなように、本発明によれば、各シ
ステム又はその時々のシステムの状態に応じて、周辺装
置に対する割込みレベルを最適な状態に設定し直すこと
が出来る。
As is clear from the above description, according to the present invention, the interrupt level for peripheral devices can be reset to an optimal state depending on each system or the state of the system at the time.

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

第1図は本発明の1実施例のブロック図、第2図は割込
みが発生したときの信号の流れを示す図、第3図は割込
みレベル設定レジスタへのアクセスを行うための回路の
1例を示す図、第4図は割込みレベル設定レジスタの値
を初期値と異なるものに設定し直す場合の処理を示す図
、第5図は割込み信号を受は取った時のマイクロプロセ
ッサの処理を示す図、第6図は本発明の割込み管理装置
の使用例を示す図、第7図は本発明の割込み管理装置を
木構造に配置した場合の使用例を示す図である。 l・・・割込み管理装置、2・・・プライオリティ・エ
ンコーダ、3・・・割込みレベル出力部、4・・・レジ
スタ、5・・・割込みレベル設定レジスタ、6・・・コ
ード変換部、L・・・割込み要求ライン。
Figure 1 is a block diagram of one embodiment of the present invention, Figure 2 is a diagram showing the flow of signals when an interrupt occurs, and Figure 3 is an example of a circuit for accessing the interrupt level setting register. Figure 4 is a diagram showing the processing when resetting the value of the interrupt level setting register to something different from the initial value, and Figure 5 is a diagram showing the processing of the microprocessor when an interrupt signal is received. 6 is a diagram showing an example of use of the interrupt management device of the present invention, and FIG. 7 is a diagram showing an example of use when the interrupt management device of the present invention is arranged in a tree structure. l...Interrupt management device, 2...Priority encoder, 3...Interrupt level output unit, 4...Register, 5...Interrupt level setting register, 6...Code conversion unit, L. ...Interrupt request line.

Claims (1)

【特許請求の範囲】[Claims] 複数の割込み要求ラインの一端にそれぞれ接続された割
込みレベル出力部と、各割込み要求ラインに1対1対応
で設けられた複数の割込みレベル設定レジスタと、各割
込みレベル出力部に1対1対応で設けられ且つ対応する
割込みレベル出力部から出力されるmビットのコード信
号をnビットのコード信号に変換する複数のコード変換
部と、nビットの信号線を有し且つ第i番目(但し、i
は1、2、…、n)の信号線上に上記複数のコード変換
部の第i番目の信号を論理和した信号を流す出力手段と
、マイクロプロセッサによって指定された割込みレベル
設定レジスタにマイクロプロセッサで指定された値を書
き込む手段とを具備し、更に上記割込みレベル出力部が
、対応する割込み要求ライン上の信号がオンのときに対
応する割込みレベル設定レジスタの内容を出力するよう
に構成されていることを特徴とする割込み管理装置。
An interrupt level output section connected to one end of each of the plurality of interrupt request lines, a plurality of interrupt level setting registers provided in one-to-one correspondence to each interrupt request line, and one-to-one correspondence provided to each interrupt level output section. a plurality of code converters configured to convert m-bit code signals outputted from corresponding interrupt level output units into n-bit code signals; and an n-bit signal line;
1, 2, ..., n), and an output means that outputs a signal obtained by ORing the i-th signals of the plurality of code converters, and an interrupt level setting register specified by the microprocessor. and means for writing a specified value, and the interrupt level output section is further configured to output the contents of the corresponding interrupt level setting register when the signal on the corresponding interrupt request line is on. An interrupt management device characterized by:
JP17993585A 1985-08-15 1985-08-15 Interruption managing device Pending JPS6240567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17993585A JPS6240567A (en) 1985-08-15 1985-08-15 Interruption managing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17993585A JPS6240567A (en) 1985-08-15 1985-08-15 Interruption managing device

Publications (1)

Publication Number Publication Date
JPS6240567A true JPS6240567A (en) 1987-02-21

Family

ID=16074507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17993585A Pending JPS6240567A (en) 1985-08-15 1985-08-15 Interruption managing device

Country Status (1)

Country Link
JP (1) JPS6240567A (en)

Similar Documents

Publication Publication Date Title
EP0169565B1 (en) Microprocessor compatible with any software represented by different types of instruction formats
US6192442B1 (en) Interrupt controller
JPH039492B2 (en)
US5432943A (en) Data processing apparatus having interruption control unit
JPH08305585A (en) Interruption controller
JPS62226257A (en) Arithmetic processor
US3328767A (en) Compact data lookup tables
US5119487A (en) Dma controller having programmable logic array for outputting control information required during a next transfer cycle during one transfer cycle
JP2002236658A (en) Arbitration device
JPS6240567A (en) Interruption managing device
JPH10336032A (en) A/d converter
JPS6111873A (en) Accessing method to 8-bit and 16-bit peripheral devices by 16-bit microprocessor
SU1001102A1 (en) Priority device
JP3611049B2 (en) Internal register circuit
SU1434446A1 (en) Information output device
JPS63142434A (en) Interrupt control system
SU840871A1 (en) Information exchange device
JPH08147262A (en) Microprocessor
JPS6111493B2 (en)
JPH0381180B2 (en)
SU693364A1 (en) Device for interfacing with main
JPS617754A (en) Digital code signal input device
JPS6240747B2 (en)
JPH04111183A (en) One chip microcomputer
JPH01126756A (en) Bus interface circuit