JPS63201729A - Interruption control circuit - Google Patents

Interruption control circuit

Info

Publication number
JPS63201729A
JPS63201729A JP3422687A JP3422687A JPS63201729A JP S63201729 A JPS63201729 A JP S63201729A JP 3422687 A JP3422687 A JP 3422687A JP 3422687 A JP3422687 A JP 3422687A JP S63201729 A JPS63201729 A JP S63201729A
Authority
JP
Japan
Prior art keywords
interrupt
factor
processing
information
interrupting information
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
JP3422687A
Other languages
Japanese (ja)
Inventor
Tooru Asatsu
朝津 徹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP3422687A priority Critical patent/JPS63201729A/en
Publication of JPS63201729A publication Critical patent/JPS63201729A/en
Pending legal-status Critical Current

Links

Classifications

    • G—PHYSICS
    • G06—COMPUTING OR CALCULATING; COUNTING
    • G06F—ELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00—Arrangements for program control, e.g. control units
    • G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46—Multiprogramming arrangements
    • G06F9/48—Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806—Task transfer initiation or dispatching
    • G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To collect a bit of interrupting information at the time of generation of an interruption factor, even when an interruption processing is inhibited, by providing an interrupting information storing means for storing the interrupting information, and an interrupting information storage control means for storing the interrupting information in the interrupting information storing means in response to the generation of the interruption factor. CONSTITUTION:The titled circuit is provided with an interrupting information store control part 1 for executing the detection of an interruption factor, a store and the storage control of interrupting information, an interrupting information storing part 2 for storing the interrupting information of a CC (central processing unit) status, etc., a sequencer 3 for controlling an execution of a micro-instruction, and a micro- memory part (mu-memory part) 4 for storing a microprogram. Also, an executing circuit 5 for decoding and executing the micro-instruction is contained, and an interruption control circuit is constituted of the interrupting information storage control part 1 and the interrupting information storing part 2, and a program executing part is constituted of the sequencer 3 and the micro-memory part 4. In such a way, even when the interruption factor is generated in the case of inhibiting an interruption processing, the interruption information can be stored without exerting an influence on the processing of the program executing part.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置の割込制御回路に関する。[Detailed description of the invention] [Industrial application field] The present invention relates to an interrupt control circuit for an information processing device.

〔従来の技jネテ〕[Traditional technique j nete]

一般に、割込機能を有する情報処理装置に於いては、プ
ログラム実行部に通常の処理を行なうプログラムとは別
に割込処理を行なうプログラムが予め組み込まれており
、割込制御回路から割込要因が加えられることにより、
プログラム実行部に於ける通常の処理を中断し、割込要
因対応の割込処理プログラムを実行して装置各部の状態
等の収集を行なうように構成されている。
Generally, in an information processing device that has an interrupt function, a program that performs interrupt processing is installed in the program execution section in addition to a program that performs normal processing, and the interrupt cause is transmitted from the interrupt control circuit. By adding
It is configured to suspend normal processing in the program execution section, execute an interrupt processing program corresponding to the interrupt factor, and collect the status of each section of the device.

ところで、割込要因が発生すれば必ず割込処理が実行さ
れるとすると、割込要因が発生する毎に通常の処理が中
断されることになるので、中断されると困る処理の最中
は、割込要因が発生してもプログラム実行部には通知し
ない制御手段を割込制御回路に設けることも行なわれて
いる。
By the way, if we assume that interrupt processing is executed whenever an interrupt factor occurs, normal processing will be interrupted every time an interrupt factor occurs, so if you are in the middle of a process that would be troublesome if it were interrupted, In some cases, the interrupt control circuit is provided with a control means that does not notify the program execution unit even if an interrupt factor occurs.

このような割込制御回路では、従来、前記制御手段で割
込処理を禁止している間に発生した割込要因を割込要因
格納手段に格納しておき、割込処理の禁止が解除された
時点でプログラム実行部に通知するようにしている。
Conventionally, in such an interrupt control circuit, an interrupt factor that occurs while interrupt processing is prohibited by the control means is stored in an interrupt factor storage means, and when the prohibition of interrupt processing is canceled. The program execution unit is notified when the process is completed.

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

しかし、上述したような従来の割込制御回路によれば、
例えば、第4図に示すように、割込処理を禁止している
間に装置異常等の割込要因が発生した場合、割込要因は
記憶されるが、その時点では装置各部の状態等の割込情
報が格納されず、後に割込処理が許可されたプログラム
実行部が割込処理を行なった時点で初めて割込情報の格
納が行なわれることになり、割込要因が発生した瞬間の
装置各部の状態等の本来必要とする割込情報を採取でき
ない問題点があった。
However, according to the conventional interrupt control circuit as described above,
For example, as shown in Figure 4, if an interrupt factor such as a device error occurs while interrupt processing is prohibited, the interrupt factor will be memorized, but at that point the state of each part of the device etc. Interrupt information is not stored, and the interrupt information is only stored when the program execution unit that is later allowed to handle interrupts handles the interrupt. There was a problem in that it was not possible to collect originally required interrupt information such as the status of each part.

尚、割込処理を許可しておけば割込要因発生時に直ちに
割込処理が開始され、得たい時点の情報を採取すること
は可能であるが、このようにすると、前述したように、
プログラム実行部に於ける通常の処理が中断されること
になる。
Note that if interrupt processing is enabled, the interrupt processing will start immediately when an interrupt factor occurs, and it will be possible to collect information at the desired point in time, but if you do this, as mentioned above,
Normal processing in the program execution section will be interrupted.

本発明は前述の如き問題点を解決したものであり、その
目的はプログラム実行部に於ける通常処理に影響を与え
ることなく、即ち割込処理を禁止している場合に於いて
も、割込要因発生時点に於ける割込情報の採取を可能に
することにある。
The present invention solves the above-mentioned problems, and its purpose is to eliminate interrupt processing without affecting normal processing in the program execution section, that is, even when interrupt processing is prohibited. The object is to enable collection of interrupt information at the time when a factor occurs.

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

本発明は前述の如き問題点を解決するため、複数の割込
要因を格納する割込要因格納手段と、該割込要因格納手
段に格納された割込要因対応の割込処理をプログラム実
行部に行なわせるが否かを制御する制御手段とを備えた
割込制御回路に於いて、 割込情報を格納する割込情報格納手段と、割込要因の発
生に応答して前記割込情報格納手段に割込情報を格納す
る割込情報格納制御手段とを設けたものである。
In order to solve the above-mentioned problems, the present invention includes an interrupt factor storage means for storing a plurality of interrupt factors, and a program execution unit that executes interrupt processing corresponding to the interrupt factors stored in the interrupt factor storage means. An interrupt control circuit comprising: a control means for controlling whether or not to cause an interrupt to be performed; and an interrupt information storage means for storing interrupt information; The interrupt information storage control means stores interrupt information in the means.

〔作 用〕[For production]

割込処理を禁止している時に割込要因が発生した場合、
割込情報はプログラム実行部とは別に設けられた割込情
報格納制御手段によって割込情報格納手段に格納される
。従って、割込処理を禁止している場合に於いても、プ
ログラム実行部の通常の処理に影響を与えずに、割込要
因発生時の割込情報を格納しておくことが可能となる。
If an interrupt factor occurs while interrupt processing is disabled,
The interrupt information is stored in the interrupt information storage means by an interrupt information storage control means provided separately from the program execution section. Therefore, even when interrupt processing is prohibited, it is possible to store interrupt information when an interrupt factor occurs without affecting the normal processing of the program execution section.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の実施例のブロック図であり、割込要因
の検出、格納及び割込情報の格納制御を行なう割込情報
格納制御部1と、CC’(中実処理装置)ステータス辱
の割込情報を格納す颯割込情報格納部2と、マイクロ命
令の実行を制御す4シーケンサ3と、マイクロプログラ
ムを格納するマイクロメモリ部(μmメモリ部)4と、
マイクロ命令を解読し、実行する実行回路5とを含んで
おり、割込情報格納制御部Iと割込情報格納部2とによ
り割込制御回路が構成され、シーケンサ3とマイクロメ
モリ部4と実行回路5とによりプログラム実行部が構成
される。
FIG. 1 is a block diagram of an embodiment of the present invention, which includes an interrupt information storage control unit 1 that detects and stores interrupt factors, and controls the storage of interrupt information, and a CC' (solid processing unit) status indicator. an interrupt information storage section 2 that stores interrupt information, a sequencer 3 that controls the execution of microinstructions, and a micromemory section (μm memory section) 4 that stores microprograms.
It includes an execution circuit 5 that decodes and executes microinstructions, and an interrupt control circuit is configured by an interrupt information storage control section I and an interrupt information storage section 2, and a sequencer 3, a micromemory section 4, and an execution circuit 5. The circuit 5 constitutes a program execution section.

第2図は第1図に示した各部の構成例を示すブロック図
である。
FIG. 2 is a block diagram showing an example of the configuration of each part shown in FIG. 1.

割込情報格納制御部1は、旧割込要因レジスタ101 
と、新割込要因レジスタ102と、EX−ORゲー目0
3と、インヒビントゲート104と、最古ビット検出回
路105と、ゲート回路106とから構成され、割込情
報格納部2は割込情報メモリアドレスレジスタ201と
、割込情報を一時格納するためのハソファ回路202と
、割込情報を格納する割込情報メモリ203と、割込情
報メモリ制御回路204とから構成され、シーケンサ3
は割込アドレスを発生する割込アドレス発生回路301
と、通常処理。
The interrupt information storage control unit 1 stores the old interrupt factor register 101
, new interrupt factor register 102, and EX-OR game 0
3, an inhibit gate 104, an oldest bit detection circuit 105, and a gate circuit 106, and the interrupt information storage unit 2 includes an interrupt information memory address register 201 and a register for temporarily storing interrupt information. It is composed of a hasher circuit 202, an interrupt information memory 203 that stores interrupt information, and an interrupt information memory control circuit 204, and the sequencer 3
is an interrupt address generation circuit 301 that generates an interrupt address.
And normal processing.

割込処理のアドレスを選択する選択回路302とから構
成され、マイクロメモリ部4はマイクロプログラムメモ
リアドレスレジスタ401と、マイクロプログラムを格
納するマイクロプログラムメモリ402とから構成され
ている。また、実行回路5はマイクロ命令デコーダ50
1を含んでいる。
The micromemory unit 4 includes a selection circuit 302 that selects an address for interrupt processing, and a microprogram memory address register 401 and a microprogram memory 402 that stores a microprogram. The execution circuit 5 also includes a microinstruction decoder 50.
Contains 1.

割込情報格納制御部1内の旧割込要因レジスタ101と
新割込要因レジスタ102とは同一のビット構成を有し
ており、各ビットはそれぞれ異なる割込要因に対応し、
右側のビット程レベルの高い割込要因に対応している。
The old interrupt factor register 101 and the new interrupt factor register 102 in the interrupt information storage control unit 1 have the same bit configuration, and each bit corresponds to a different interrupt factor.
The bits on the right side correspond to higher level interrupt factors.

また、新割込要因レジスタ102の各ビットは一度“1
″がセットされると、リセットされるまでその内容を保
持するものである。また、旧割込要因レジスタ101と
新割込要因レジスタ102との間に設けられているゲー
ト回路106は、新割込要因レジスタ102の出力信号
の内の最古ビット検出回路105からの制御信号にょっ
て指定されたビット位置の信号を旧割込要因レジスタ1
01の対応するビットに加えるものである。
Also, each bit of the new interrupt factor register 102 is set to “1” once.
'' is set, its contents are retained until it is reset.Furthermore, the gate circuit 106 provided between the old interrupt cause register 101 and the new interrupt cause register 102 The signal at the bit position specified by the control signal from the oldest bit detection circuit 105 of the output signal of the interrupt factor register 102 is sent to the old interrupt factor register 1.
It is added to the corresponding bit of 01.

例えば、新割込要因レジスタ102の出力信号の内のN
ビット目が指定された場合は、その信号を旧割込要因レ
ジスタ101ONビット目に加えるものである。
For example, N of the output signals of the new interrupt factor register 102
If the bit is specified, that signal is added to the ON bit of the old interrupt factor register 101.

第2図に於いて、旧割込要因レジスタ101と新割込要
因レジスタ102とがリセットされた後の最初の割込要
因発生時には、次のような処理が行なわれる。最初の割
込要因発生時に単一の割込要因或いは同時に複数の割込
要因が発生すると、新割込要因レジスタ102の上記割
込要因に対応するビットに“1″がセットされる。そし
て、新割込要因レジスタ102の出力信号と旧割込要因
レジスタ101の出力信号との排他的論理和がEX−O
Rゲート103でとられる。この場合、旧割込要因レジ
スタ101の出力信号は全ビット“θ″であるので、E
X−ORゲート103の出力信号は新割込要因レジスタ
102の出力信号と同一のものとなる。そして、EX−
ORゲート103の出力信号は最右ビット検出回路10
5に加えられ、最右ビット検出回路105はEX−OR
ゲート103の出力信号の“1”となっているビットの
内の最も右側のビットのビット位置を検出し、検出結果
を割込情報メモリアドレスレジスタ201にセットする
と共に割込情報メモリ制御回路204に書込指示を加え
る。即ち、最右ビット検出回路105は最初の割込要因
発生時に発生した割込要因の内の最高レベルのものを検
出し、検出した割込要因に対応した値を割込情報メモリ
アドレスレジスタ201にセットすることになる。
In FIG. 2, when the first interrupt factor occurs after the old interrupt factor register 101 and the new interrupt factor register 102 are reset, the following processing is performed. When a single interrupt factor or a plurality of interrupt factors occur simultaneously when an interrupt factor occurs for the first time, "1" is set in the bit corresponding to the above-mentioned interrupt factor in the new interrupt factor register 102. Then, the exclusive OR of the output signal of the new interrupt factor register 102 and the output signal of the old interrupt factor register 101 is EX-O.
It is taken at R gate 103. In this case, the output signal of the old interrupt factor register 101 is all bits "θ", so E
The output signal of the X-OR gate 103 is the same as the output signal of the new interrupt cause register 102. And EX-
The output signal of the OR gate 103 is sent to the rightmost bit detection circuit 10.
5, and the rightmost bit detection circuit 105 is added to EX-OR
The bit position of the rightmost bit of the bits that are “1” in the output signal of the gate 103 is detected, and the detection result is set in the interrupt information memory address register 201 and is also sent to the interrupt information memory control circuit 204. Add writing instructions. That is, the rightmost bit detection circuit 105 detects the highest level of the interrupt factors that occurred when the first interrupt factor occurred, and stores the value corresponding to the detected interrupt factor in the interrupt information memory address register 201. It will be set.

また、バッファ回路202には、上記割込要因の発生と
同時にその時の割込情報が、割込処理が許可されている
か否かにかかわらず、格納されており、割込情報メモリ
制御回路204は最右ビット検出回路105から書込指
示が加えられると、割込情報メモリ203の割込情報メ
モリアドレスレジスタ201にセットされている値に対
応した領域にバッファ回路202に格納されている割込
情報を一度に或いは複数回に分けて書込む。ここで、割
込情報メモリアドレスレジスタ201にセントされてい
るのは、最初の割込要因発生時に発生した割込要因の内
の最高レベルの割込要因に対応した値であるので、バッ
ファ回路202に格納されている割込情報は割込情報メ
モリ203の同時に発生した割込要因の内の最高レベル
の割込要因対応の領域に書込まれることになる。
In addition, the buffer circuit 202 stores the interrupt information at the same time as the above-mentioned interrupt factor occurs, regardless of whether interrupt processing is permitted or not, and the interrupt information memory control circuit 204 When a write instruction is applied from the rightmost bit detection circuit 105, the interrupt information stored in the buffer circuit 202 is stored in the area corresponding to the value set in the interrupt information memory address register 201 of the interrupt information memory 203. Write at once or in multiple parts. Here, the value stored in the interrupt information memory address register 201 is the value corresponding to the highest level interrupt factor among the interrupt factors that occurred when the first interrupt factor occurred. The interrupt information stored in is written to the area of the interrupt information memory 203 corresponding to the highest level interrupt factor among the interrupt factors that occurred simultaneously.

また、最右ビット検出回路105は割込情報メモリ制御
回路204に書込み指示を加えた後、ゲート回路106
に制御信号を加え、新割込要因レジスタ102の出力信
号の内の特定ビワ) (EX−ORゲート103の出力
信号の1″となっているビットの内の最も右側のビット
と同一のビット)の信号を旧割込要因レジスタ101の
対応するビットにセントする。最初の割込要因発生時に
発生した割込要因□が単一の場合は、上記した処理を行
なうことにより、旧割込要因レジスタ101の内容と新
割込要因レジスタ102の内容とが同一になり、EX−
ORゲート103の出力信号が全て“0”となるので、
最初の割込要因発生時に於ける割込情報の格納処理は終
了するが、最初の割込要因発生時に発生した割込要因が
複数ある場合は、旧割込要因レジスタ101の内容と新
割込要因レジスタ102の内容とは同一にならず、EX
−ORゲート103の出力信号が全て“0″とならない
ので、前述したと同様の処理が行なわれる。この場合、
EX−ORゲート103の出力信号の“1”となってい
るビットの内の最も右側のビットは最初の割込発生時に
発生した割込要因の内の二番目にレベルの高い割込要因
に対応したビットであるので、バッファ回路202に格
納されている割込情報は割込情報メモリ203の上記二
番目にレベルの高い割込要因対応の領域に格納される。
Further, after the rightmost bit detection circuit 105 applies a write instruction to the interrupt information memory control circuit 204, the gate circuit 106
A control signal is added to the output signal of the new interrupt factor register 102 (the same bit as the rightmost bit of the bits that are 1" in the output signal of the EX-OR gate 103) The signal is sent to the corresponding bit of the old interrupt factor register 101.If there is only one interrupt factor □ that occurred when the first interrupt factor occurred, by performing the above processing, the old interrupt factor register The contents of 101 and the contents of new interrupt factor register 102 become the same, and EX-
Since the output signals of the OR gate 103 are all “0”,
The storage process of interrupt information when the first interrupt factor occurs is completed, but if there are multiple interrupt factors that occurred when the first interrupt factor occurred, the contents of the old interrupt factor register 101 and the new interrupt The contents of the cause register 102 are not the same, and EX
Since the output signals of the -OR gate 103 do not all become "0", the same processing as described above is performed. in this case,
The rightmost bit of the bits that are "1" in the output signal of the EX-OR gate 103 corresponds to the second highest level interrupt factor among the interrupt factors that occurred when the first interrupt occurred. Therefore, the interrupt information stored in the buffer circuit 202 is stored in the area of the interrupt information memory 203 corresponding to the interrupt factor with the second highest level.

そして、旧割込要因レジスタ101及び新割込要因レジ
スタ102をリセットした後に最初に発生した一回目の
割込要因に対する上記した処理が終了した後に、二回目
の割込要因が発生すると、次のような処理が行なわれる
。
Then, when the second interrupt factor occurs after the above processing for the first interrupt factor that occurred after resetting the old interrupt factor register 101 and the new interrupt factor register 102 is completed, the next interrupt factor occurs. Such processing is performed.

新割込要因レジスタ102の各ビットは前述したように
、一旦″1″がセットされるとりセントされるまでその
内容を保持するものであるから、二回目の割込要因が発
生すると、新割込要因レジスタ102の各ビットの内の
一回目及び二回目の割込要因に対応したビットが“1”
となる。また、この時、旧割込要因レジスタ101は一
回目の割込要因に対応したビットのみが“1″となって
いる。
As mentioned above, each bit of the new interrupt factor register 102 retains its contents until it is set to "1", so when the second interrupt factor occurs, a new interrupt The bits in the interrupt factor register 102 corresponding to the first and second interrupt factors are “1”.
becomes. Also, at this time, only the bit in the old interrupt factor register 101 corresponding to the first interrupt factor is set to "1".

従って、二回目の割込要因発生時に発生した割込要因が
一回目の割込要因発生時に発生した割込要因以外の割込
要因を含んでいる場合は、EX−ORゲート103の出
力信号の内、二回目の割込要因発生時に新たに発生した
割込要因対応のビットのみが“1”となって張布ビット
検出回路105に加えられ、前述したと同様の処理が行
なわれ、割込情報メモリ203の所定の領域(二回目の
割込要因発生時に発生した割込要因の内の最もレベルの
高い割込要因に対応した領域)にバッファ回路202に
格納されていた割込情報が書込まれる。これに、対して
、二回目の割込要因発生時に発生した割込要因が一回目
の割込要因発生時に発生した割込要因に全て含まれる場
合は、EX−ORゲート103の出力信号は全ビット“
0″となるので、張布ビット検出回路105は何等処理
を行なわない。即ち、−回目の割込要因発生時に発生し
た割込要因と二回目の割込要因発生時に発生した割込要
因が同種のものである場合は、−回目の割込要因発生時
に於いてのみ割込情報を割込情報メモリ203に書込む
処理が行なわれ、二回目の割込要因発生時に於いて割込
情報が上塗りされることはなく、−回目の割込要因発生
時に於いて書込まれた割込情報が保存される。これは、
割込処理に於ける情報解析等では最初に割込要因が発生
した時点の割込情報が有益である点に着目し、メモリの
使用量を少なくできるようにしたものである。
Therefore, if the interrupt factor that occurred when the second interrupt factor occurred includes an interrupt factor other than the interrupt factor that occurred when the first interrupt factor occurred, the output signal of the EX-OR gate 103 Among them, when the second interrupt factor occurs, only the bit corresponding to the newly generated interrupt factor becomes "1" and is added to the tension bit detection circuit 105, and the same processing as described above is performed, and the interrupt The interrupt information stored in the buffer circuit 202 is written to a predetermined area of the information memory 203 (an area corresponding to the interrupt factor with the highest level among the interrupt factors that occurred when the second interrupt factor occurred). be included. On the other hand, if the interrupt factors that occurred when the second interrupt factor occurred are all included in the interrupt factors that occurred when the first interrupt factor occurred, all the output signals of the EX-OR gate 103 are bit"
0'', the tension bit detection circuit 105 does not perform any processing. In other words, the interrupt factor that occurred when the -th interrupt factor occurred and the interrupt factor that occurred when the second interrupt factor occurred are of the same type. In this case, the process of writing the interrupt information to the interrupt information memory 203 is performed only when the -th interrupt factor occurs, and the interrupt information is overwritten when the second interrupt factor occurs. The interrupt information written when the -th interrupt factor occurs is saved.
This system focuses on the fact that interrupt information at the time when an interrupt factor first occurs is useful for information analysis in interrupt processing, and the amount of memory used can be reduced.

三回目以降の割込要因発生に対しても同様の処理が行な
われる。ここまで、説明してきた一割込情報の格納は、
割込処理を禁止するか許可するかに関係なく、ハードウ
ェアで実行されるものであり、マイクロプログラムの流
れに影響を与えるものではない。
Similar processing is performed for the third and subsequent occurrences of interrupt factors. The storage of the interrupt information that has been explained so far is
Regardless of whether interrupt processing is disabled or enabled, it is executed by the hardware and does not affect the flow of the microprogram.

また、割込処理が許可されている状態、即ち、インヒビ
ソトゲート104に加える割込処理禁止信号を“0”に
している状態で割込要因が発生すると、その時点でマイ
クロプログラムの流れが変わる。即ち、発生した割込要
因の内の最高レベルの割込要因対応のアドレスが、新割
込要因レジスタ102の出力信号を受ける割込アドレス
発生回路301で生成され、このアドレスがインヒビ・
ノドゲート104の出力信号で割込アドレス発生回路3
01側に切換ねる選択回路302で選択され、マイクロ
プログラムメモリアドレスレジスタ401に設定される
。
Furthermore, if an interrupt factor occurs when interrupt processing is enabled, that is, when the interrupt processing disable signal applied to the inhibit gate 104 is set to "0", the flow of the microprogram will change at that point. change. That is, the address corresponding to the highest level interrupt factor among the generated interrupt factors is generated by the interrupt address generation circuit 301 that receives the output signal of the new interrupt factor register 102, and this address is used as the inhibit address.
The interrupt address generation circuit 3 uses the output signal of the node gate 104.
It is selected by the selection circuit 302 that switches to the 01 side, and is set in the microprogram memory address register 401.

このため、割込処理のためのマイクロ命令がマイクロプ
ログラムメモ1J402から読出され、マイクロ命令デ
コーダ501で解読され、割込処理が実行される。
Therefore, the microinstruction for interrupt processing is read from the microprogram memo 1J402, decoded by the microinstruction decoder 501, and the interrupt processing is executed.

これに対して、割込処理が禁止されている状態、即ち、
インヒビットゲート104に加える割込処理禁止信号を
“ビにしそいる状態で割込要因が発生した場合は、選択
回路302が割込アドレス発生回路301側に切換わら
ないため、その時点では割込処理は実行されず、従って
、マイクロプログラムの流れも変わらず、割込要因と割
込情報の格納のみが行なわれる。そして、割込処理が許
可された時点で、選択回路302が切換わり、新割込要
因レジスタ102に格納されていたレベルの高い割込要
因から順に対応するアドレスが割込アドレス発生回路3
01より発生され、各割込要因対応の割込処理がレベル
の高いものから順次実行される。この時、割込要因発生
時点に於いて、割込情報メモ1J203に格納しておい
た割込情報が使用される。
On the other hand, the state where interrupt processing is prohibited, that is,
If an interrupt factor occurs while the interrupt processing prohibition signal applied to the inhibit gate 104 is on the verge of being turned off, the selection circuit 302 will not switch to the interrupt address generation circuit 301 side, so the interrupt processing will not be processed at that point. is not executed, therefore, the flow of the microprogram remains the same, and only the interrupt cause and interrupt information are stored.Then, when interrupt processing is permitted, the selection circuit 302 is switched and a new interrupt is selected. The addresses stored in the interrupt factor register 102 are assigned to the interrupt address generation circuit 3 in order of the interrupt factors with the highest level.
01, and interrupt processing corresponding to each interrupt factor is executed sequentially from the highest level. At this time, the interrupt information stored in the interrupt information memo 1J203 at the time when the interrupt factor occurs is used.

尚、旧割込要因しジスク101.新割込要因レジスタ1
02のリセットは例えば割込処理が許可され、新割込要
因レジスタ102に格納されている割込要因対応の割込
処理を全て実行した後に行なわれる。
Note that the old interrupt cause disk 101. New interrupt factor register 1
The reset of 02 is performed, for example, after interrupt processing is enabled and all interrupt processing corresponding to the interrupt factors stored in the new interrupt factor register 102 is executed.

第3図は割込処理を禁止している時に割込要因が発生し
た場合の本発明に於ける処理を示したものであり、割込
処理が禁止されていても割込要因発生時の割込情報をマ
イクロプログラムによる通常処理と並行して直ちに格納
できることを示している。
Figure 3 shows the processing in the present invention when an interrupt factor occurs when interrupt processing is disabled. This shows that the embedded information can be stored immediately in parallel with the normal processing by the microprogram.

尚、上述した実施例に於いては、割込情報メモlJ’2
03に各割込要因対応の領域を持たせるようにしたが、
各割込要因対応のレジスタを設けるようにしても良いこ
とは勿論である。
Incidentally, in the embodiment described above, the interrupt information memory lJ'2
03 has an area corresponding to each interrupt factor, but
Of course, registers corresponding to each interrupt factor may be provided.

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

以上説明したように、本発明は、割込要因が発生した時
、割込情報メモリ203等の割込情報格納手段に、割込
情報格納制御部1等のプログラム実行部とは独立な割込
情報格納制御手段がその時点の装置各部の状態等を示す
割込情報を格納するようにしたので、割込処理を禁止し
ている時に割込要因が発生した場合であっても、プログ
ラム実行部の処理に影響を与えずに、割込要因が発生し
た時点に於ける割込情報を格納することができ、後で割
込処理が許可された時の割込処理に於いて割込要因発生
時点の正確な割込情報を使用することができる効果があ
る。
As explained above, in the present invention, when an interrupt factor occurs, an interrupt information storage unit such as the interrupt information memory 203 is configured to store an interrupt that is independent of a program execution unit such as the interrupt information storage control unit 1. Since the information storage control means stores interrupt information indicating the status of each part of the device at that time, even if an interrupt factor occurs while interrupt processing is prohibited, the program execution unit It is possible to store interrupt information at the time when an interrupt factor occurs without affecting the processing of the interrupt factor, and when the interrupt factor occurs later in interrupt processing when interrupt processing is enabled. This has the advantage of being able to use interrupt information that is accurate at the time.

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

第1図は本発明の実施例のブロック図、第2図は第1図
に示した各部の構成を詳細に示したブロック図、 第3図は本発明による処理内容を示す図及び、第4図は
従来例の処理内容を示す図である。 図に於いて、1・・・割込情報格納制御部、2・・・割
込情報格納部、3・・・シーケンサ、4・・・マイクロ
メモリ部、5・・・実行回路、101・・・旧割込要因
レジスタ、102・・・新割込要因レジスタ、103・
・・EX−ORゲート、104・・・インヒビソトゲー
ト、105・・・張布ビット検出回路、106・・・ゲ
ート回路、201・・・割込情報メモリアドレスレジス
タ、202・・・バッファ回路、203・・・割込情報
メモリ、204・・・割込情報メモリ制御回路、301
・・・割込アドレス発生回路、302・・・選択回路、
401・・・マイクロプログラムメモリアドレスレジス
タ、402・・・マイクロプログラムメモリ、501・
・・マイクロ命令デコーダ。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a block diagram showing in detail the configuration of each part shown in FIG. 1, FIG. 3 is a diagram showing processing contents according to the invention, and FIG. The figure is a diagram showing the processing contents of a conventional example. In the figure, 1... Interrupt information storage control unit, 2... Interrupt information storage unit, 3... Sequencer, 4... Micro memory unit, 5... Execution circuit, 101...・Old interrupt factor register, 102...New interrupt factor register, 103・
...EX-OR gate, 104...Inhibitor gate, 105...Paper bit detection circuit, 106...Gate circuit, 201...Interrupt information memory address register, 202...Buffer circuit , 203... Interrupt information memory, 204... Interrupt information memory control circuit, 301
...Interrupt address generation circuit, 302...Selection circuit,
401... Micro program memory address register, 402... Micro program memory, 501...
...Microinstruction decoder.

Claims (1)

【特許請求の範囲】 複数の割込要因を格納する割込要因格納手段と、該割込
要因格納手段に格納された割込要因対応の割込処理をプ
ログラム実行部に行なわせるか否かを制御する制御手段
とを備えた割込制御回路に於いて、 割込情報を格納する割込情報格納手段と、 割込要因の発生に応答して前記割込情報格納手段に割込
情報を格納する割込情報格納制御手段とを含むことを特
徴とする割込制御回路。
[Scope of Claims] Interrupt factor storage means for storing a plurality of interrupt factors, and a program execution unit that determines whether or not to perform interrupt processing corresponding to the interrupt factors stored in the interrupt factor storage means. An interrupt control circuit comprising: a control means for controlling an interrupt; an interrupt information storage means for storing interrupt information; and an interrupt information storage means for storing interrupt information in the interrupt information storage means in response to occurrence of an interrupt factor. 1. An interrupt control circuit comprising: interrupt information storage control means.
JP3422687A 1987-02-17 1987-02-17 Interruption control circuit Pending JPS63201729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3422687A JPS63201729A (en) 1987-02-17 1987-02-17 Interruption control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3422687A JPS63201729A (en) 1987-02-17 1987-02-17 Interruption control circuit

Publications (1)

Publication Number Publication Date
JPS63201729A true JPS63201729A (en) 1988-08-19

Family

ID=12408233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3422687A Pending JPS63201729A (en) 1987-02-17 1987-02-17 Interruption control circuit

Country Status (1)

Country Link
JP (1) JPS63201729A (en)

Similar Documents

Publication Publication Date Title
EP2273377B1 (en) Interrupt control apparatuses and methods
JPH0193837A (en) Microprocessor for debug
KR940011669B1 (en) Information processing device
JP3202497B2 (en) Information processing device
JP4703718B2 (en) Selective subroutine return structure
TW201734821A (en) Register access control
US4124892A (en) Data processing systems
US12014181B2 (en) Instruction execution method and instruction execution device
JPH031231A (en) Microprogram controller
JP2004348627A (en) Microcomputer system
JP2001154877A (en) Interrupt control apparatus and method
JP2562838B2 (en) Processor and store buffer control method
JP2005275703A (en) Processor and context switching method
JPS6074059A (en) Access control system for storage device
JPS63120336A (en) Switching system for memory access mode
TWI822685B (en) Context data management
JPS60193046A (en) Instruction exception detection method
JP3585940B2 (en) calculator
JPS5834856B2 (en) Kiokuseigiyosouchi
JPS6020769B2 (en) Microprogram control method
JP2689894B2 (en) Micro program control type information processing device
JP2504151B2 (en) Data processing device
JPH07225681A (en) Interrupt control device
JPH04319729A (en) Microcomputer
JPH0331932A (en) Data processor