JP2591211B2 - High-speed interrupt processing device - Google Patents

High-speed interrupt processing device

Info

Publication number
JP2591211B2
JP2591211B2 JP2013853A JP1385390A JP2591211B2 JP 2591211 B2 JP2591211 B2 JP 2591211B2 JP 2013853 A JP2013853 A JP 2013853A JP 1385390 A JP1385390 A JP 1385390A JP 2591211 B2 JP2591211 B2 JP 2591211B2
Authority
JP
Japan
Prior art keywords
instruction
interrupt
acceptance permission
information
executed
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 - Fee Related
Application number
JP2013853A
Other languages
Japanese (ja)
Other versions
JPH03218530A (en
Inventor
幹雄 荻須
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2013853A priority Critical patent/JP2591211B2/en
Publication of JPH03218530A publication Critical patent/JPH03218530A/en
Application granted granted Critical
Publication of JP2591211B2 publication Critical patent/JP2591211B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、割込み発生時に現在実行中の命令を中断し
て、割込み処理を即座に実行することにより、割込み応
答性を向上させることができる高速割込み処理装置に関
するものである。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a high-speed interrupt that can improve interrupt responsiveness by interrupting a currently executing instruction when an interrupt occurs and immediately executing an interrupt process. The present invention relates to a processing device.

従来の技術 従来、割込み発生時に実行中の命令があると、その命
令を最後まで実行した後に、割込み処理のプログラムを
実行するのが一般的であった。
2. Description of the Related Art Conventionally, if there is an instruction being executed when an interrupt occurs, it has been general to execute an interrupt processing program after executing the instruction to the end.

発明が解決しようとする課題 これによると、割込み発生時に実行中の命令が、デー
タの読み出し状態であっても、書き込み状態であって
も、一律に命令を最後まで実行するという方法であり、
演算部のシーケンスに時間を要する乗除算命令では、割
込みが発生しても、最後まで命令を実行するため、割込
み処理プログラムの起動に時間を要していた。更に、シ
ステム設計を行なう場合、割込み応答性はシステムのス
ループットを左右する要因であり、乗除算命令等、演算
処理に時間がかかる命令実行中に割込みが発生したとき
の応答時間が、ワーストケースとなる為、その応答時間
でシステム設計を行なっており、割込み応答時間を縮め
ることが重要となっていた。
According to this, according to this method, even if the instruction being executed at the time of the occurrence of the interrupt is in a data reading state or a writing state, the instruction is executed to the end uniformly.
In the case of a multiplication / division instruction requiring a long time for the sequence of the operation unit, even if an interrupt occurs, the instruction is executed to the end, so that it takes time to activate the interrupt processing program. Furthermore, when designing a system, interrupt responsiveness is a factor that affects the throughput of the system, and the response time when an interrupt occurs during execution of an instruction such as a multiplication / division instruction that takes a long time to perform an arithmetic operation is the worst case. Therefore, the system was designed based on the response time, and it was important to shorten the interrupt response time.

本発明は上記従来の課題を解決するもので、割込み受
理時点での実行中の命令を即座に停止することにより、
高速割込み応答性を実現する高速割込み処理装置を提供
することを目的としている。
The present invention solves the above-mentioned conventional problems, and by immediately stopping an instruction being executed at the time of receiving an interrupt,
It is an object of the present invention to provide a high-speed interrupt processing device that realizes a high-speed interrupt response.

課題を解決するための手段 この課題を解決するために、本発明の高速割込み処理
装置は、 (a) 割込み発生時に実行中の命令が、書き込みサイ
クルでないならば即座に命令を止める。
Means for Solving the Problems In order to solve the problems, the high-speed interrupt processing apparatus of the present invention: (a) If an instruction being executed when an interrupt occurs is not a write cycle, the instruction is immediately stopped.

(b) レジスタファイルの内容のバックアップを常に
持ち、命令を即座に止めて割込みを受理する。
(B) Always keep a backup of the contents of the register file, immediately stop the instruction and accept the interrupt.

(c) 割込み発生時に、実行中の命令がレジスタアク
セスであれば命令を即座に止め、RAM等のデータエリア
をアクセスしていれば命令を最後まで実行する。
(C) When an interrupt occurs, if the instruction being executed is a register access, the instruction is immediately stopped. If the data area such as the RAM is being accessed, the instruction is executed to the end.

ように構成されている。It is configured as follows.

作用 この構成により、ハードウェアの負担を最小限にして
割込み発生時に実行中の命令を停止でき、高速割込み応
答性を実現することができる。
Operation With this configuration, the instruction being executed can be stopped when an interrupt occurs while minimizing the load on the hardware, and high-speed interrupt responsiveness can be realized.

実施例 以下本発明の実施例について説明する。Examples Hereinafter, examples of the present invention will be described.

第1図は本発明の一実施例であって、割込み発生時
に、現在実行中の命令が書き込みサイクルでないなら実
行中命令を即座に中断し割込み処理を行なう高速割込み
処理装置の構成を示したブロック図である。割込み受理
許可判断部1は書き込みサイクルであるか否かを示す書
き込みサイクルラッチ2(以下ライトサイクルラッチ)
と命令終了を示す命令終了信号ラッチ3を入力とするゲ
ート回路4とから成り、ライトサイクルでない場合と命
令終了時にアクティブ信号として割込み受理許可信号5
を出力する。各命令が、ライトサイクルか否か、或いは
命令の最後のサイクルであるか否かは、マイクロROM7か
ら情報が出力され、各命令毎に情報は更新されて、割込
み受理許可判断部1に伝送される。割込み部6は割込み
受理許可信号5を受けて、割込み処理を開始できるか否
かを判断する。マイクロプロセッサ或いはマイクロコン
ピュータにおいて、その命令セットが、読み出しと書き
込み動作を繰り返す命令を含んでいなければ、また、ソ
フトウェアで、その様な命令を使用しなければ、簡単な
ゲート構成により、例えば乗除算命令の様に演算サイク
ルが非常に長くなる命令を実行中に命令を即座に停止す
ることができ、割込み応答性が向上する。
FIG. 1 is a block diagram showing a configuration of a high-speed interrupt processing apparatus according to an embodiment of the present invention, in which, when an interrupt occurs, if the currently executed instruction is not in a write cycle, the currently executing instruction is immediately interrupted and interrupt processing is performed. FIG. The interrupt acceptance permission determining unit 1 is a write cycle latch 2 (hereinafter, write cycle latch) indicating whether or not a write cycle is present.
And a gate circuit 4 to which an instruction end signal latch 3 indicating the end of the instruction is input.
Is output. Whether each instruction is a write cycle or the last cycle of an instruction is determined by outputting information from the micro ROM 7, updating the information for each instruction, and transmitting the updated information to the interrupt acceptance permission determining unit 1. You. The interrupt unit 6 receives the interrupt acceptance permission signal 5 and determines whether or not interrupt processing can be started. In a microprocessor or microcomputer, if the instruction set does not include instructions that repeat read and write operations, and if such instructions are not used in software, a simple gate configuration can be used, such as multiplication and division. The instruction can be immediately stopped while executing the instruction whose operation cycle is very long like the instruction, and the interrupt responsiveness is improved.

第2図は現在実行中の命令を止める動作を示したシー
ケンス図である。命令実行中において、割込みが発生し
た場合、その命令がライトサイクルでない実行サイクル
(リードサイクルを含む)であれば、命令実行を中断
し、割込み処理を実行する。従って命令の実行サイクル
のうち、中断後のサイクルとライトサイクル分早く、割
込み処理は実行され割込み応答性は良くなる。
FIG. 2 is a sequence diagram showing an operation of stopping the instruction currently being executed. If an interrupt occurs during the execution of an instruction and the instruction is an execution cycle (including a read cycle) other than a write cycle, execution of the instruction is interrupted and interrupt processing is performed. Therefore, in the instruction execution cycle, the interrupt process is executed earlier by the write cycle and the interrupted cycle, and the interrupt responsiveness is improved.

第3図は本発明の他の実施例で、1命令実行毎に、レ
ジスタファイルのバックアップをとり、割込み発生時に
おいて実行中の命令を即座に中断し、割込み処理を行な
うものの構成を示すブロック図である。レジスタファイ
ル8のデータは各命令のラストサイクル信号9が発生す
るたびに、すなわち各命令の最終ステート毎にバックア
ップ制御部10によりバックアップファイル11に転送され
る、各命令毎にレジスタファイルのバックアップをとる
ことにより、割込み発生時に実行中の命令がライトサイ
クルでなければ現在実行中の命令を中断して割込み処理
を即座に実行できるととも、中断した命令の再実行の
際、リードデータも割込み処理前と同じデータを使うこ
とができ、演算データが保障され、また、割込み受理時
に必要なレジスタ退避処理が不必要となるので、割込み
応答性が向上し、ソフトウェアの負担が軽減する。
FIG. 3 is a block diagram showing a configuration of another embodiment of the present invention in which a register file is backed up every time one instruction is executed, an instruction being executed is immediately interrupted when an interrupt occurs, and interrupt processing is performed. It is. The data of the register file 8 is transferred to the backup file 11 by the backup control unit 10 every time the last cycle signal 9 of each instruction is generated, that is, for each final state of each instruction. The register file is backed up for each instruction. Therefore, if the instruction being executed at the time of the interrupt is not a write cycle, the currently executing instruction can be interrupted and the interrupt processing can be executed immediately. Since the same data as described above can be used, the operation data is guaranteed, and the register save processing required at the time of accepting the interrupt is not required, so that the interrupt responsiveness is improved and the load on the software is reduced.

第4図はさらに他の実施例であって、レジスタファイ
ルアクセスのみが行なわれた場合、割込み発生時に実行
中の命令を中断して割込みを受理し、レジスタファイル
以外のRAMであれば実行中の命令を最後まで実行して割
込みを受理するものの構成を示すブロック図である。割
込み受理許可判断部12はライトサイクル信号ラッタ2と
命令終了信号ラッチ3とRAMアクセス信号ラッチ14を受
けて、ゲート回路により割込み受理許可信号5を発生す
る。ライトサイクル信号ラッチ2は命令実行においてラ
イトサイクルがあったか否かを示す信号のラッチで、命
令終了信号ラッチ3は命令の最終サイクルであるか否か
を示す信号のラッチ、RAMアクセス信号ラッチ14は、命
令中にレジスタ以外のRAMアクセスがあったか否かを示
す信号のラッチである。レジスタ以外のRAMアクセスが
なく、ライトアクセスがない場合に割込み受理許可信号
5がアクティブとなり、RAMアクセスがあるかあるいは
ライトアクセスがあった場合は命令が最終サイクルにな
ったとき、割込み受理許可信号5がアクティブとなる。
割込み受理許可信号5は割込み部6に入力され、割込み
処理が可能な否かが判断される。ライトサイクル信号ラ
ッチ2,命令終了信号ラッチ3,RAMアクセス信号ラッチ14
にはマイクロROM部7より命令がどのようなサイクルに
あるかが判断され、それぞれ入力される。基本演算がレ
ジスタ演算で行なわれるマイクロプロセッサ,マイクロ
コンピュータにおいて、割込み発生時に実行中命令を中
断して割込み受理ができ、また、データ管理をレジスタ
内データだけに絞れるため、ハードウェア及びソフトウ
ェアの負担が軽減される。また、RAMデータはタスク間
のデータ通信に使用される場合が多く、リードデータで
あっても、そのデータが変更になる場合があり、RAMデ
ータアクセスがあった場合、命令の最後まで実行して、
割込み受理するようにすることにより、ソフトウェアの
負担が軽減されるとともに、レジスタ演算を中心にソフ
トウェアを容易に組めることから、実質上割込み応答は
高速にできる。
FIG. 4 shows still another embodiment, in which, when only a register file access is performed, an instruction being executed is interrupted when an interrupt occurs and the interrupt is accepted. FIG. 4 is a block diagram showing a configuration of a device that executes an instruction to the end and receives an interrupt. The interrupt acceptance permission judging section 12 receives the write cycle signal latter 2, the instruction end signal latch 3, and the RAM access signal latch 14, and generates an interrupt acceptance permission signal 5 by a gate circuit. The write cycle signal latch 2 is a signal latch indicating whether or not there is a write cycle in the instruction execution. The instruction end signal latch 3 is a signal latch indicating whether or not the last cycle of the instruction. The RAM access signal latch 14 is This is a signal latch indicating whether or not a RAM access other than the register has been made during the instruction. When there is no RAM access other than the register and there is no write access, the interrupt acceptance permission signal 5 becomes active. When there is RAM access or write access, the interrupt acceptance permission signal 5 becomes active when the instruction reaches the last cycle. Becomes active.
The interrupt acceptance permission signal 5 is input to the interrupt unit 6, and it is determined whether or not interrupt processing is possible. Write cycle signal latch 2, instruction end signal latch 3, RAM access signal latch 14
Is determined by the micro ROM unit 7 in what cycle the instruction is in, and each is input. In microprocessors and microcomputers in which basic operations are performed by register operations, when an interrupt occurs, the instruction being executed can be interrupted to receive the interrupt, and the data management can be limited to the data in the register. It is reduced. In addition, RAM data is often used for data communication between tasks, and even if it is read data, the data may be changed.If there is RAM data access, execute until the end of the instruction. ,
By accepting the interrupt, the load on the software is reduced, and the software can be easily assembled mainly on the register operation. Therefore, the interrupt response can be performed at substantially high speed.

発明の効果 以上のように本発明によれば、割込み処理を高速に行
なうことができ、高速応答性を実現できるとともに、再
実行が困難な、ライトアクセス途中の命令中断や、RAM
データのアクセス後の命令中断を命令実行後にすること
により、ハードウェアやソフトウェアの負担を最小限に
して、割込み受理スピードを上げることができる。
Effects of the Invention As described above, according to the present invention, interrupt processing can be performed at high speed, high-speed response can be realized, and it is difficult to execute again.
By interrupting the instruction after accessing the data after executing the instruction, the load on hardware and software can be minimized, and the speed of interrupt reception can be increased.

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

第1図は本発明の一実施例の高速割込み処理装置の構成
を示すブロック図、第2図は現在実行中の命令を止める
シーケンス図、第3図は本発明の他の実施例の構成を示
すブロック図、第4図はさらに別の実施例の構成を示す
ブロック図である。 1,12……割込み受理許可判断部、2……ライトサイクル
信号ラッチ、3……命令終了信号ラッチ、4,13……ゲー
ト回路、5……割込み受理許可信号、6……割込み部、
7……マイクロROM、8……レジスタファイル、9……
各命令ライトサイクル信号、10……バックアップ制御
部、11……バックアップファイル、14……RAMアクセス
信号ラッチ。
FIG. 1 is a block diagram showing a configuration of a high-speed interrupt processing apparatus according to one embodiment of the present invention, FIG. 2 is a sequence diagram for stopping a currently executing instruction, and FIG. 3 is a configuration of another embodiment of the present invention. FIG. 4 is a block diagram showing the configuration of still another embodiment. 1, 12 ... interrupt acceptance permission judgment section, 2 ... write cycle signal latch, 3 ... instruction end signal latch, 4, 13 ... gate circuit, 5 ... interrupt acceptance permission signal, 6 ... interrupt section,
7: Micro ROM, 8: Register file, 9:
Each instruction write cycle signal, 10 ... backup controller, 11 ... backup file, 14 ... RAM access signal latch.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】1命令でデータ空間に対し、読み出し・書
き込みの一連動作を2回以上繰り返す命令やレジスタ群
の連続転送命令等を含まない命令セットを持つマイクロ
コンピュータ或いはマイクロプロセッサに於いて、マイ
クロROMと割込み受理許可判断部と割込み部とを備え、
前記割込み受理許可判断部が前記マイクロROMからの入
力情報として、実行中の命令が書き込みサイクルである
か否かの情報と、命令終了サイクルであるか否かの情報
とを入力とし、割込み処理発生時に、実行中の命令が書
き込みサイクルでない場合と命令終了時には前記割込み
部に割込み受理許可信号を出力して、該命令を即中断,
停止して前記割込み処理を受理することを特徴とする高
速割込み処理装置。
1. A microcomputer or a microprocessor having an instruction set that does not include an instruction for repeating a series of read / write operations twice or more in a data space or a continuous transfer instruction for a register group with one instruction. A ROM, an interrupt acceptance permission determination unit, and an interrupt unit,
The interrupt acceptance permission determination unit receives, as input information from the micro ROM, information as to whether or not the instruction being executed is a write cycle and information as to whether or not the instruction is in an instruction end cycle. Sometimes, when the instruction being executed is not in a write cycle and when the instruction is completed, an interrupt acceptance permission signal is output to the interrupt unit to immediately suspend the instruction.
A high-speed interrupt processing device which stops and accepts the interrupt processing.
【請求項2】レジスタ演算方式で構成されたマイクロコ
ンピュータ或いはマイクロプロセッサに於いて、マイク
ロROMと割込み受理許可判断部と割込み部とを備え、前
記割込み受理許可判断部が前記マイクロROMからの入力
情報として、実行中の命令に書き込みサイクルがあった
か否かの情報と、命令の最終サイクルであるか否かの情
報と、RAMアクセスがあったか否かの情報とを入力と
し、割込み処理発生時に、1命令実行中にレジスタ以外
のRAMアクセスがなく、且つ、書き込みサイクルがない
場合には、前記割込み部に割込み受理許可信号を出力し
て該命令を即中断,停止して前記割込み処理を受理し、
1命令実行中にRAMアクセスあるいは書き込みサイクル
がある場合には、命令終了時に前記割込み部に割込み受
理許可信号を出力して前記割込み処理を受理することを
特徴とする高速割込み処理装置。
2. A microcomputer or microprocessor constructed by a register operation method, comprising: a micro ROM, an interrupt acceptance permission judging section, and an interrupt section, wherein the interrupt acceptance permission judging section receives input information from the micro ROM. As an input, information as to whether or not the instruction being executed has a write cycle, information as to whether or not it is the last cycle of the instruction, and information as to whether or not there is a RAM access are input. If there is no RAM access other than the register during execution and there is no write cycle, an interrupt acceptance permission signal is output to the interrupt unit to immediately suspend and stop the instruction to accept the interrupt processing;
If there is a RAM access or write cycle during execution of one instruction, an interrupt acceptance permission signal is output to the interrupt section at the end of the instruction to accept the interrupt processing.
JP2013853A 1990-01-24 1990-01-24 High-speed interrupt processing device Expired - Fee Related JP2591211B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013853A JP2591211B2 (en) 1990-01-24 1990-01-24 High-speed interrupt processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013853A JP2591211B2 (en) 1990-01-24 1990-01-24 High-speed interrupt processing device

Publications (2)

Publication Number Publication Date
JPH03218530A JPH03218530A (en) 1991-09-26
JP2591211B2 true JP2591211B2 (en) 1997-03-19

Family

ID=11844837

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013853A Expired - Fee Related JP2591211B2 (en) 1990-01-24 1990-01-24 High-speed interrupt processing device

Country Status (1)

Country Link
JP (1) JP2591211B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59144955A (en) * 1983-02-08 1984-08-20 Nec Corp Information processor
JPS61188633A (en) * 1985-02-16 1986-08-22 Nec Corp Memory device
JPS6252900A (en) * 1985-08-30 1987-03-07 関西電力株式会社 Low impedance ground lightning conductor

Also Published As

Publication number Publication date
JPH03218530A (en) 1991-09-26

Similar Documents

Publication Publication Date Title
JPS5841538B2 (en) Multiprocessor system instructions
JP3201786B2 (en) Control method of digital signal processing system
US5003468A (en) Guest machine execution control system for virutal machine system
EP0298418B1 (en) Virtual computer system
JP2591211B2 (en) High-speed interrupt processing device
JP2568017B2 (en) Microprocessor and data processing system using the same
JP2697254B2 (en) Real-time processing device
JPH0414376B2 (en)
JP3328867B2 (en) Multiprocessor arithmetic device and programmable controller having the device
JPH06324861A (en) System and method for controlling cpu
JPH059815B2 (en)
KR950004227B1 (en) Information processing system
JPH03204004A (en) Programmable controller
JPH05250161A (en) Microcomputer device
JPS6236576B2 (en)
JPH04162135A (en) Data processor
JPH03167633A (en) Control method for interruption program
JPS61166631A (en) Microprogram control processor
JPH03179532A (en) Computer device
JPH02252047A (en) Microprocessor
JPH07325750A (en) Shared memory access system
JPH0553831A (en) Computer unit with interrupting function
JPH04169953A (en) Computer system
JPH1091431A (en) Data processor
JPS62196755A (en) Data processing method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees