JPH04142624A - Interruptive circuit of processor - Google Patents

Interruptive circuit of processor

Info

Publication number
JPH04142624A
JPH04142624A JP26674390A JP26674390A JPH04142624A JP H04142624 A JPH04142624 A JP H04142624A JP 26674390 A JP26674390 A JP 26674390A JP 26674390 A JP26674390 A JP 26674390A JP H04142624 A JPH04142624 A JP H04142624A
Authority
JP
Japan
Prior art keywords
interrupt
processor
interrupt level
microprogram
count
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
JP26674390A
Other languages
Japanese (ja)
Inventor
Seiki Sakai
清貴 酒井
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 JP26674390A priority Critical patent/JPH04142624A/en
Publication of JPH04142624A publication Critical patent/JPH04142624A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make a processor possible to effectively evaluate a microprogram by providing the processor with an interruptive control circuit for generating an interrupt at an interrupt level indicated by an interrupt level register when outputting a count zero signal from the counter section of the processor. CONSTITUTION:The processor consists of a counter section 4 for outputting a count zero signal when a counting result counted every time a microprogram instruction is executed becomes zero, an interrupt level register 5 for specifying an interrupt level, and an interrupt control section 3 for generating an interrupt at the interrupt level specified by the interrupt level register 5 when the counter section 4 outputs the count zero signal. Accordingly, when a result of the execution of a microinstruction becomes zero, an interrupt can be executed at an arbitrary point of time when an interrupt level is specified. With this, a microprogram can be effectively evaluated.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はプロセッサの割込回路に関し、特にマイクロ命
令を実行するプロセッサに割り込みを発生させるマイク
ロプロセッサの割込回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a processor interrupt circuit, and more particularly to a microprocessor interrupt circuit that generates an interrupt to a processor executing microinstructions.

〔従来の技術〕[Conventional technology]

従来のプロセッサの割込回路は、プロセッサがマイクロ
プログラム実行中に、マイクロプログラムの任意の場所
で割り込みを発生させる手段は設けられていない。
Conventional processor interrupt circuits are not provided with means for generating an interrupt at any location in a microprogram while the processor is executing the microprogram.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のプロセッサの割込回路は、マイクロプロ
グラム実行中に、マイクロプログラムの任意の場所で割
り込みを発生させる手段が設けられていないため、タイ
ムリーに割り込みを発生させることができずマイクロプ
ログラムの評価が十分に行えなかった。
The conventional processor interrupt circuit described above does not have a means to generate an interrupt at any point in the microprogram during the execution of the microprogram, so it is not possible to generate an interrupt in a timely manner and the microprogram is interrupted. The evaluation could not be carried out sufficiently.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のプロセッサの割込回路は、マイクロ命令を実行
するプロセッサにおいて、前記マイクロ命令が実行され
る度に計数したカウント結果が0となったときカウント
ゼロ信号を出力するカウンタ部と、割り込みレベルを指
示する割込レベルレジスタと、前記カウンタ部がカウン
トゼロ信号を出力したとき前記割込レベルレジスタに示
された割り込みレベルに割り込みを発生させる割込制御
部とを有する。
The interrupt circuit of the processor of the present invention includes, in a processor that executes a microinstruction, a counter section that outputs a count zero signal when the count result counted every time the microinstruction is executed becomes zero, and an interrupt level that outputs a count zero signal. and an interrupt control unit that generates an interrupt at the interrupt level indicated in the interrupt level register when the counter unit outputs a count zero signal.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を用いて説明する。 Next, embodiments of the present invention will be described using the drawings.

第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

マイクロプログラムはマイクロ命令格納部1に格納され
、マイクロ命令実行部2は、アドレス制御信号6によっ
てマイクロ命令格納部1に格納されたマイクロプログラ
ムを読みだし実行する。また、マイクロ命令実行部2は
、マイクロ命令を実行したことをカウント信号7をアク
ティブにすることによってカウンタ部4へ通知する。カ
ウンタ部4はカウント信号7がアクティブになることに
よってマイクロ命令の実行を認識し、カウンタを1する
。また、カウンタ部4はカウンタを−1することによっ
てカウント値が0となってカウントが尽きたときカウン
トゼロ信号8をアクティブにして割込制御部3へ通知す
る、割込制御部3は通常は割込信号9による割り込みを
制御しているが、カウントゼロ信号8がアクティブにな
ったときは、割込レベルレジスタ5に示された割り込み
レベルにしたがって割り込みを発生させ、マイクロ命令
実行部2へ割り込み発生を通知する。
The microprogram is stored in the microinstruction storage section 1, and the microinstruction execution section 2 reads and executes the microprogram stored in the microinstruction storage section 1 in response to the address control signal 6. Further, the microinstruction execution unit 2 notifies the counter unit 4 that the microinstruction has been executed by activating the count signal 7. The counter unit 4 recognizes the execution of the microinstruction when the count signal 7 becomes active, and sets the counter to 1. Further, the counter section 4 increments the counter by -1 so that the count value becomes 0, and when the count is exhausted, the counter section 4 activates the count zero signal 8 and notifies the interrupt control section 3. Interrupts by interrupt signal 9 are controlled, and when count zero signal 8 becomes active, an interrupt is generated according to the interrupt level indicated in interrupt level register 5, and the interrupt is sent to microinstruction execution unit 2. Notify of occurrence.

このようにすると、割込レベルレジスタ部5に発生させ
たい割り込みレベル値例えば7Aを設定し、カウンタ部
4にマイクロプログラム中割り込みを発生させたいアド
レスまでのマイクロ命令のステップ数例えば10を設定
して、マイクロプログラムを実行させる。マイクロ命令
実行部2は、マイクロ命令格納部1からマイクロ命令を
読みだし実行すると共に、カウンタ部4ヘカウント信号
7を出力する。カウンタ部4はカウント信号7によって
はじめに設定されたカウント値10から−1ずつの減算
を行う。カウンタ部4は減算した結果0となったとき、
つまりマイクロ命令実行部2が10ステツプマイクロ命
令を実行したときに、割込制御部3にカウントゼロ信号
8によって割り込み発生を要求する。割込制御部3は、
カウント0信号によって、割込レベルレジスタ5に設定
されているレベル7Aの割り込みを発生させる。
In this way, the interrupt level value to be generated, for example, 7A, is set in the interrupt level register section 5, and the number of microinstruction steps up to the address at which the interrupt is to be generated during the microprogram, for example, 10, is set in the counter section 4. , execute the microprogram. The microinstruction execution unit 2 reads out and executes microinstructions from the microinstruction storage unit 1, and outputs a count signal 7 to the counter unit 4. The counter section 4 subtracts -1 from the count value 10 initially set by the count signal 7. When the counter unit 4 becomes 0 as a result of subtraction,
That is, when the microinstruction execution unit 2 executes a 10-step microinstruction, it requests the interrupt control unit 3 to generate an interrupt using the count zero signal 8. The interrupt control unit 3 is
The count 0 signal causes an interrupt of level 7A set in the interrupt level register 5 to be generated.

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

以上説明したように本発明は、マイクロ命令の実行結果
が0となり、割り込みレベルが指示されたとき割り込み
を発生させることにより、マイクロプログラム中の任意
の時点で割り込みができ、マイクロプログラムの有効な
評価を行うことができる。
As explained above, the present invention generates an interrupt when the execution result of a microinstruction becomes 0 and an interrupt level is specified, so that an interrupt can be generated at any point in a microprogram, and the microprogram can be effectively evaluated. It can be performed.

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

第1図は本発明の一実施例のブロック図である。 FIG. 1 is a block diagram of one embodiment of the present invention.

Claims (1)

【特許請求の範囲】[Claims] マイクロ命令を実行するプロセッサにおいて、前記マイ
クロ命令が実行される度に計数したカウント結果が0と
なったときカウントゼロ信号を出力するカウンタ部と、
割り込みレベルを指示する割込レベルレジスタと、前記
カウンタ部がカウントゼロ信号を出力したとき前記割込
レベルレジスタに示された割り込みレベルに割り込みを
発生させる割込制御部とを有することを特徴とするプロ
セッサの割込回路。
In a processor that executes a microinstruction, a counter section that outputs a count zero signal when a count result counted every time the microinstruction is executed becomes 0;
The present invention is characterized by comprising an interrupt level register that indicates an interrupt level, and an interrupt control unit that generates an interrupt at the interrupt level indicated in the interrupt level register when the counter unit outputs a count zero signal. Processor interrupt circuit.
JP26674390A 1990-10-04 1990-10-04 Interruptive circuit of processor Pending JPH04142624A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26674390A JPH04142624A (en) 1990-10-04 1990-10-04 Interruptive circuit of processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26674390A JPH04142624A (en) 1990-10-04 1990-10-04 Interruptive circuit of processor

Publications (1)

Publication Number Publication Date
JPH04142624A true JPH04142624A (en) 1992-05-15

Family

ID=17435091

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26674390A Pending JPH04142624A (en) 1990-10-04 1990-10-04 Interruptive circuit of processor

Country Status (1)

Country Link
JP (1) JPH04142624A (en)

Similar Documents

Publication Publication Date Title
JPS54114687A (en) Sequence controller
JPH04142624A (en) Interruptive circuit of processor
JP2907958B2 (en) Time mechanism control method
KR930005650B1 (en) Time delay method using timer
JPH0683652A (en) Microcomputer system
JP2998299B2 (en) Processor control unit
JP2021097896A5 (en)
JPH0520099A (en) Interruption control circuit
JPS5475242A (en) Interrupt processing system
JPS5696339A (en) Data processing system
JPS633328B2 (en)
JPS57161934A (en) Microprogram controlling system
JPH0764802A (en) Simulation device for real-time system
JPS61241843A (en) Information processor
JPH0353322A (en) Information processor
JPS5453843A (en) Microprogram control-system data processing unit
JPS6428730A (en) Fault detection system
JPH03156647A (en) Watchdog timer
JPS57153342A (en) Pipeline computer
JPS57121745A (en) Microprogram control device
JPS5667459A (en) Diagnostic system of electronic computer system
JPS54124650A (en) Computer
JPS6043729A (en) Timer controller
JPH0553842A (en) Microcomputer
JPS6214235A (en) Information processor