JPS6148742B2 - - Google Patents

Info

Publication number
JPS6148742B2
JPS6148742B2 JP53128711A JP12871178A JPS6148742B2 JP S6148742 B2 JPS6148742 B2 JP S6148742B2 JP 53128711 A JP53128711 A JP 53128711A JP 12871178 A JP12871178 A JP 12871178A JP S6148742 B2 JPS6148742 B2 JP S6148742B2
Authority
JP
Japan
Prior art keywords
interrupt
address
rom
interrupt processing
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP53128711A
Other languages
Japanese (ja)
Other versions
JPS5556258A (en
Inventor
Shinji Nishibe
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP12871178A priority Critical patent/JPS5556258A/en
Publication of JPS5556258A publication Critical patent/JPS5556258A/en
Publication of JPS6148742B2 publication Critical patent/JPS6148742B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 この発明はマイクロプログラム制御方式を採用
した情報処理装置に用いられる優先度決定方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a priority determination method used in an information processing apparatus employing a microprogram control method.

一般にこの種情報処理装置に於いては複数種の
割込み信号が存在し、種々の割込み信号が発生す
ると、その中から最も優先度の高いものに対して
割込み処理を実行する構成としている。
Generally, in this type of information processing apparatus, there are a plurality of types of interrupt signals, and when various types of interrupt signals are generated, the interrupt processing is executed for the one with the highest priority among them.

従来ではこの際の割込み処理に対する優先度の
決定をすべてハードウエアにより行なつており、
従つて従来ではハードウエア構成が複雑化すると
いう欠点があつた。
Conventionally, the priority for interrupt processing at this time was all determined by hardware.
Therefore, the conventional method has had the disadvantage of complicating the hardware configuration.

この発明は上記実情に鑑みなされたもので、複
数種の割込み処理要求に対する優先度の決定をフ
アームウエアを有効に用いて行なうようにして、
ハードウエアにかかる負担の軽減を計つた優先度
決定方式を提供することを目的とする。
The present invention has been made in view of the above-mentioned circumstances, and is made by effectively using firmware to determine priorities for multiple types of interrupt processing requests.
The purpose of this paper is to provide a priority determination method that reduces the burden on hardware.

以下図面を参照してこの発明の一実施例を説明
する。第1図に於いて、101は各種のマイクロ
プログラムが格納された制御記憶部(以下P−
ROMと呼称する)、102は通常のマイクロ命令
における第2ステツプのマイクロアドレスが格納
された補助制御記憶部(以下E−ROMと呼称す
る)、103はこのE−ROM102より読出され
たマイクロアドレス若しくは後述するタイプ別に
分類された割込み信号(TYPEA,B,C)によ
つて生成される分岐マイクロ命令指定アドレスを
一時貯えるレジスタ(以下E−REGと呼称す
る)、104は次に実行すべきマイクロステツプ
のアドレスを指定するROMアドレスレジスタ
(以下RAと呼称する)、105はE−REG103
に貯えられたアドレス、P−ROM101より読
出された分岐先アドレス(RD)、OPコード(オ
ペレーシヨンコード)、RA103に貯えられたア
ドレスのうちの一つを選択し出力するセレクタ、
106はP−ROM101より読出された制御デ
ータをデコードするデコーダである。
An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, reference numeral 101 denotes a control storage unit (hereinafter P-
102 is an auxiliary control storage section (hereinafter referred to as E-ROM) in which the microaddress of the second step in a normal microinstruction is stored; 103 is the microaddress or microaddress read from this E-ROM 102; A register (hereinafter referred to as E-REG) 104 temporarily stores branch microinstruction designation addresses generated by interrupt signals ( TYPE A, B, C) classified by type (TYPE A, B, C), which will be described later. ROM address register (hereinafter referred to as RA) that specifies the address of the microstep, 105 is E-REG103
a selector that selects and outputs one of the addresses stored in the RA 103, the branch destination address (RD) read from the P-ROM 101, the OP code (operation code), and the address stored in the RA 103;
A decoder 106 decodes control data read from the P-ROM 101.

第2図は上記第1図の一点破線で囲まれた部分
に相当するところのこの発明の要部構成を示すも
ので、図中、AL0〜AL11は上記第1図に示したE
−ROM102の出力ライン、E/Iは割込みが
発生した際に、割込みチエツクタイミングに基づ
き割込み処理が終了するまでE−ROM102の
出力を禁止し、これに代つて後述するゲートの出
力を有効にするための割込み制御信号、TYPE
A,B,Cは多数の割込み信号を優先度に従つて
3つのグループに分類した際の割込み信号であ
り、ここでは各グループ単位の割込み信号レベル
すなわち優先度をTYPEA>TYPEB>TYPECと
する。G1,G2,G3はこの割込み信号TYPEA,
B,Cを別個に入力するとともに上記割込み制御
信号E/Iを共通に入力し、割込み制御信号E/
Iが割込みのあることを示した際に、自己に固有
の割込み信号TYPEA……があると信号“1”を
出力するゲートであり、このゲートG1,G2,G3
の出力は上記E−ROM102の出力ラインAL0
〜AL11のうちの所定の下位ビツトライン(図で
はG1がAL9,G2がAL10,G3がAL11)にそれぞれワ
イヤードオア接続される。
FIG . 2 shows the main structure of the present invention, which corresponds to the part surrounded by the dotted line in FIG .
- When an interrupt occurs, the output line of the ROM 102, E/I, prohibits the output of the E-ROM 102 until the interrupt processing is completed based on the interrupt check timing, and instead enables the output of the gate described later. Interrupt control signal for T YPE
A, B, and C are interrupt signals obtained when a large number of interrupt signals are classified into three groups according to priority, and here, the interrupt signal level or priority for each group is expressed as T YPE A>T YPE B> TYPEC . G 1 , G 2 , G 3 are the interrupt signals TYPE A,
B and C are input separately, and the above interrupt control signal E/I is input in common.
This is a gate that outputs a signal "1" when there is an interrupt signal TYPE A that is unique to itself when I indicates that there is an interrupt, and this gate G 1 , G 2 , G 3
The output is the output line AL 0 of the E-ROM102 above.
~ AL 11 (in the figure, G 1 is connected to AL 9 , G 2 is connected to AL 10 , and G 3 is connected to AL 11 ) by wire OR.

第3図は上記P−ROM101内におけるこの
発明の要旨とするところの記憶部分を示すもの
で、1〜7番地には各種割込み処理ルーチンのス
タートアドレスを示す分岐マイクロ命令(Bu−
C,Bu−B,Bu−A)が格納され(以下この格
納部分Zを分岐マイクロ命令テーブルと呼ぶ)、
また、A〜An番地には上記テーブルZの4〜7
番地に格納された分岐マイクロ命令Bu−Aによ
つて指定されるTYPEAの割込み処理ルーチン、
B〜Bn番地には同じくテーブルZの2,3番地
に格納された分岐マイクロ命令Bu−Bによつて
指定されるTYPEBの割込み処理ルーチン、C〜
Cn番地には同じくテーブルZの1番地に格納さ
れた分岐マイクロ命令Bu−Cによつて指定され
るTYPECの割込み処理ルーチンが格納される。
FIG. 3 shows the storage part in the P-ROM 101, which is the gist of the present invention. At addresses 1 to 7, there are branch microinstructions (Bu-
C, Bu-B, Bu-A) are stored (hereinafter this storage part Z will be referred to as the branch microinstruction table),
In addition, addresses 4 to 7 of the table Z above are placed at addresses A to An.
an interrupt processing routine of TYPE A specified by the branch microinstruction Bu-A stored at the address;
Addresses B to Bn contain interrupt processing routines of TYPE B specified by the branch microinstruction Bu-B stored in addresses 2 and 3 of table Z, and interrupt processing routines C to Bn.
At address Cn, an interrupt processing routine of TYPE C specified by the branch microinstruction Bu-C stored at address 1 of table Z is stored.

ここで第4図に示すタイムチヤートを参照しな
がら作用を述べると、或る命令処理の最終マイク
ロステツプXでは、次の命令のOPコードがセレ
クタ105より出力され、このOPコードに基づ
くP−ROM101のアクセスにより命令の初ス
テツプにおける制御データの読出しが行なわれ、
更に割込みチエツクタイミング(IRCT)が発生
するとともにE−REG103の入力ストローブ
信号が発生する。次に、命令処理の最初のマイク
ロステツプYではE−REG103の内容(命令
の第2ステツプマイクロアドレス)がセレクタ1
05により選択されて、そのE−REG103の
内容がP−ROM101のソースアドレスとな
り、これに基づいてP−ROM101がアクセス
される。またその他のステツプでは、+1された
RA103の内容若しくはP−ROM101より読
出された分岐命令における分岐先アドレス
(RD)がP−ROM101のソースアドレスとな
る。
To describe the operation with reference to the time chart shown in FIG. 4, in the final microstep X of a certain instruction processing, the OP code of the next instruction is output from the selector 105, and the P-ROM 101 access reads the control data in the first step of the instruction,
Further, an interrupt check timing (IRCT) is generated and an input strobe signal of the E-REG 103 is generated. Next, in the first microstep Y of instruction processing, the contents of E-REG103 (the second step microaddress of the instruction) are transferred to the selector 1.
05, the contents of the E-REG 103 become the source address of the P-ROM 101, and the P-ROM 101 is accessed based on this. Also, in other steps, +1 was added.
The content of RA 103 or the branch destination address (RD) in the branch instruction read from P-ROM 101 becomes the source address of P-ROM 101.

ここで命令の最終ステツプにおける動作を詳述
すると、この最終ステツプ(X)では、既に述べ
た如く割込みチエツクタイミング(IRCT)並び
にE−REG103の入力ストローブ信号が発生
するが、この際割込み制御信号E/Iが割込みの
ないことを示していればE−ROM102の出力
が有効となり、E−ROM102より読出された
マイクロアドレス(命令の第2ステツプマイクロ
アドレス)がE−REG103にストローブされ
る。また割込み制御信号E/Iが割込みのあるこ
とを示している際は、E−ROM102の出力が
禁止され、これに代つてタイプ別の割込み信号T
YPEA,B,Cを受けたゲートG1,G2,G3より出
力される論理信号がP−ROM101のアドレス
としてE−REG103にストローブされる。す
なわち、例えば割込み信号TYPECが発生してい
るとゲートG3より“1”が出力されてE−ROM
102の出力ラインAL9,AL10,AL11における
信号内容は1番地を示す“0,0,1”となり、
また、割込み信号TYPEB,Cが発生していると
ゲートG2,G3より“1”が出力されて出力ライ
ンAL9,AL10,AL11における信号内容は3番地
を示す“0,1,1”となり、また、割込み信号
YPEA,B,Cが共に発生しているとゲート
G1,G2,G3より“1”が出力されて出力ライン
AL9,AL10,AL11における信号内容は7番地を
示す“1,1,1”となり、このようなタイプ別
割込み信号の発生状態に応じた信号内容(アドレ
ス)がE−REG103にストローブされる。こ
の時点では未だ優先度処理はなされていない。而
して命令の最初のステツプ(Y)では、E−
REG103の内容がセレクタ105より出力さ
れ、この内容に基づいてP−ROM101がアク
セスされるが、割込みがあつた際は、上記した如
くE−ROM102の出力が禁止され、これに代
つてタイプ別割込み信号の発生状態に応じた信号
内容(アドレス)がE−REG103に貯えられ
ているため、P−REG101のアクセスは1〜
7番地の分岐マイクロ命令テーブル(Z部分)に
対して行なわれる。例えば割込み信号TYPEA,
Bが発生していればP−ROM101の6番地が
アクセスされ、6番地には分岐マイクロ命令Bu
−Aが格納されているため、TYPEAの割込み処
理ルーチンにジヤンプし、TYPEAの割込み信号
より優先度の低いTYPEBの割込み信号は無視さ
れる。また割込み信号TYPEB,Cが発生してい
ればP−ROM101の3番地がアクセスされ、
3番地には分岐マイクロ命令(Bu−B)が格納
されているため、TYPEBの割込み処理ルーチン
にジヤンプし、TYPEBの割込み信号より優先度
の低いTYPECの割込み信号は無視される。この
ように割込みが発生した場合は、その際のタイプ
別割込み信号(TYPEA,B,C)の状態がその
ままP−ROM101内における分岐マイクロ命
令テーブルのアドレスとなり、このアドレスに基
づいて取出された分岐マイクロ命令により、発生
した割込み信号のうちの最も優先度の高い割込み
信号に対する割込み処理ルーチンが指定される。
従つて各種の割込み処理要求に対する優先度決定
のためのハードウエアは著しく簡素化される。
Now, to explain in detail the operation in the final step of the instruction, in this final step (X), as mentioned above, the interrupt check timing (IRCT) and the input strobe signal of the E-REG 103 are generated, but at this time, the interrupt control signal E If /I indicates that there is no interrupt, the output of the E-ROM 102 becomes valid, and the microaddress read from the E-ROM 102 (second step microaddress of the instruction) is strobed into the E-REG 103. Furthermore, when the interrupt control signal E/I indicates that there is an interrupt, the output of the E-ROM 102 is prohibited, and instead of this, the interrupt signal T
Logic signals output from gates G 1 , G 2 , and G 3 receiving YPEs A, B, and C are strobed to E-REG 103 as addresses of P-ROM 101 . That is, for example, when the interrupt signal TYPEC is generated, "1" is output from the gate G3 and the E-ROM
The signal contents on the output lines AL 9 , AL 10 , AL 11 of 102 are “0, 0, 1” indicating address 1,
Furthermore, when the interrupt signals TYPE B and C are generated, "1" is output from the gates G 2 and G 3 , and the signal contents on the output lines AL 9 , AL 10 and AL 11 are "0" and "1" indicating the address 3, respectively. 1, 1”, and if interrupt signals TYPE A, B, and C are occurring together, the gate
“1” is output from G 1 , G 2 , G 3 and the output line
The signal contents at AL 9 , AL 10 , and AL 11 are "1, 1, 1" indicating address 7, and the signal contents (address) according to the generation status of such type-specific interrupt signals are strobed to the E-REG 103. Ru. At this point, priority processing has not yet been performed. Therefore, in the first step (Y) of the command, E-
The contents of REG 103 are output from the selector 105, and the P-ROM 101 is accessed based on this contents. However, when an interrupt occurs, the output of the E-ROM 102 is prohibited as described above, and instead, a type-specific interrupt is Since the signal content (address) corresponding to the signal generation state is stored in the E-REG 103, access to the P-REG 101 is from 1 to
This is performed for the branch microinstruction table (Z portion) at address 7. For example, interrupt signal TYPE A,
If B has occurred, address 6 of the P-ROM 101 is accessed, and the branch microinstruction Bu is stored at address 6.
-A is stored, the program jumps to the TYPE A interrupt processing routine, and the TYPE B interrupt signal, which has a lower priority than the TYPE A interrupt signal, is ignored. Also, if interrupt signals TYPE B and C are generated, address 3 of P-ROM 101 is accessed,
Since the branch microinstruction (Bu-B) is stored at address 3, the program jumps to the TYPE B interrupt processing routine, and the TYPE C interrupt signal, which has a lower priority than the TYPE B interrupt signal, is ignored. Ru. When an interrupt occurs in this way, the state of the type-specific interrupt signal (T YPE A, B, C) at that time becomes the address of the branch microinstruction table in the P-ROM 101, and it is retrieved based on this address. The branch microinstruction specifies an interrupt processing routine for the interrupt signal with the highest priority among the generated interrupt signals.
Therefore, the hardware for determining priorities for various interrupt processing requests is significantly simplified.

以上詳記したようにこの発明によれば、複数種
の割込み処理要求に対する優先度の決定を簡単な
ハードウエア構成で実現することのできる優先度
決定式が提供できる。
As described in detail above, according to the present invention, it is possible to provide a priority determination formula that can realize priority determination for a plurality of types of interrupt processing requests with a simple hardware configuration.

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

第1図はこの発明の一実施例を示すブロツク
図、第2図は第1図の要部構成を詳細に示すブロ
ツク図、第3図は上記実施例における制御記憶部
に格納された分岐マイクロ命令テーブルとこれに
伴う割込み処理ルーチンとを示す図、第4図は上
記実施例における動作を説明するためのタイムチ
ヤートである。 101……制御記憶部(P−ROM)、102…
…補助制御記憶部(E−ROM)、103…レジス
タ(E−REG)、104……ROMアドレスレジス
タ(RA)、105……デコーダ、AL0〜AL11……
出力ライン、G1,G2,G3……ゲート。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing the main structure of FIG. 1 in detail, and FIG. FIG. 4 is a diagram showing an instruction table and an accompanying interrupt processing routine, and is a time chart for explaining the operation in the above embodiment. 101... Control storage unit (P-ROM), 102...
... Auxiliary control storage unit (E-ROM), 103 ... Register (E-REG), 104 ... ROM address register (RA), 105 ... Decoder, AL 0 to AL 11 ...
Output line, G 1 , G 2 , G 3 ... gate.

Claims (1)

【特許請求の範囲】[Claims] 1 制御記憶部内の所定領域に複数種の割込み処
理用分岐命令を格納するとともに、各分岐命令に
よつて指定される番地をスタートとして割込み信
号の入力状態に基づいて得られる最優先度の割込
み処理ルーチンを格納する手段と、複数種の割込
み信号を上記制御記憶部のアドレス線の一部に予
め定められた優先度に従つて導く手段と、この手
段により導かれた上記割込み信号の入力状態に基
づいて得られる上記制御記憶部の番地から対応す
る割込み処理用分岐命令を読出し、その読出した
分岐命令に基づき対応する最優先度の割込み処理
ルーチンを読出す手段とを有してなることを特徴
とした優先度決定方式。
1. Store multiple types of interrupt processing branch instructions in a predetermined area in the control storage unit, and perform interrupt processing with the highest priority based on the input state of the interrupt signal, starting from the address specified by each branch instruction. means for storing a routine; means for directing a plurality of types of interrupt signals to a portion of the address lines of the control storage section according to a predetermined priority; and input states of the interrupt signals guided by the means; and means for reading a corresponding interrupt processing branch instruction from the address of the control storage section obtained based on the above, and reading a corresponding highest priority interrupt processing routine based on the read branch instruction. Priority determination method.
JP12871178A 1978-10-19 1978-10-19 Priority decision system Granted JPS5556258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12871178A JPS5556258A (en) 1978-10-19 1978-10-19 Priority decision system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12871178A JPS5556258A (en) 1978-10-19 1978-10-19 Priority decision system

Publications (2)

Publication Number Publication Date
JPS5556258A JPS5556258A (en) 1980-04-24
JPS6148742B2 true JPS6148742B2 (en) 1986-10-25

Family

ID=14991531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12871178A Granted JPS5556258A (en) 1978-10-19 1978-10-19 Priority decision system

Country Status (1)

Country Link
JP (1) JPS5556258A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2725287B1 (en) * 1994-09-30 1996-12-20 Sgs Thomson Microelectronics PROCESSOR FOR CONTROLLING A MOVING IMAGE COMPRESSION CIRCUIT

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49111561A (en) * 1973-02-22 1974-10-24
JPS5366337A (en) * 1976-11-26 1978-06-13 Nec Corp Interrupt channel analyzer
JPS54152939A (en) * 1978-05-24 1979-12-01 Fujitsu Ltd Microprogram interruption control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49111561A (en) * 1973-02-22 1974-10-24
JPS5366337A (en) * 1976-11-26 1978-06-13 Nec Corp Interrupt channel analyzer
JPS54152939A (en) * 1978-05-24 1979-12-01 Fujitsu Ltd Microprogram interruption control system

Also Published As

Publication number Publication date
JPS5556258A (en) 1980-04-24

Similar Documents

Publication Publication Date Title
US5155853A (en) Data processor operating in a vector interrupt mode and register bank switching mode with selected bank for interrupt processing
EP0054243A2 (en) Memory controlling apparatus
JPS6259822B2 (en)
US5146581A (en) Subprogram executing data processing system having bank switching control storing in the same address area in each of memory banks
US4446517A (en) Microprogram memory with page addressing and address decode in memory
US4974143A (en) Information processing apparatus wherein address path is used for continuous data transfer
US4550369A (en) Apparatus and method for processing macroinstructions and microinstructions
US4314332A (en) Memory control system
KR920004279B1 (en) Microprocessor with pointer register
JPH10171665A (en) Jump code generator, interrupt program selection device and system, and computer
JPS6148742B2 (en)
US4089051A (en) Alternative direct and indirect addressing
JPS6161413B2 (en)
US4125879A (en) Double ended stack computer store
JPH056208A (en) Controller and control method therefor
JP2847863B2 (en) Microprocessor interrupt control method
JPS586970B2 (en) ROM address sequence control method
JPS59186048A (en) Microprogram control system
JP2547329B2 (en) Lock data setting device
JPH08328995A (en) System and method for dma transfer
JPH1027153A (en) Bus transfer device
JPS6158042A (en) Microprogram control system
JPS5854414B2 (en) Data conversion control method in data processing equipment
JPS58186846A (en) Microprogram controller
JPH039438A (en) Diagnostic circuit