Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2697254B2 - Real-time processing device - Google Patents
[go: Go Back, main page]

JP2697254B2 - Real-time processing device - Google Patents

Real-time processing device

Info

Publication number
JP2697254B2
JP2697254B2 JP2147811A JP14781190A JP2697254B2 JP 2697254 B2 JP2697254 B2 JP 2697254B2 JP 2147811 A JP2147811 A JP 2147811A JP 14781190 A JP14781190 A JP 14781190A JP 2697254 B2 JP2697254 B2 JP 2697254B2
Authority
JP
Japan
Prior art keywords
interrupt
instruction
register
real
memory area
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 - Lifetime
Application number
JP2147811A
Other languages
Japanese (ja)
Other versions
JPH0440532A (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 JP2147811A priority Critical patent/JP2697254B2/en
Publication of JPH0440532A publication Critical patent/JPH0440532A/en
Application granted granted Critical
Publication of JP2697254B2 publication Critical patent/JP2697254B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は割込み要求高速受理機を持つリアルタイム処
理装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to a real-time processing device having a high-speed interrupt request receiver.

従来の技術 従来、割込み発生時において実行中の命令があるとき
はその命令終了後において割込みを受理していた。
2. Description of the Related Art Conventionally, when there is an instruction being executed at the time of occurrence of an interrupt, the interrupt is accepted after the instruction is completed.

発明が解決しようとする課題 しかしながら命令サイクル数が比較的短い命令の場
合、割込み受理時間が短かったため、割込み応答性は良
かったが、命令サイクル数が長い命令の場合、割込み応
答性が極端に悪くなっていた。システム設計において
は、たとえ命令サイクル数が長い命令の頻度が低い場合
でも、ワーストケースで設計するのが一般的である。こ
のため、CISCマシンであってもソフト開発時にはRISC的
発想から、命令サイクル数の長い命令を比較的サイクル
数の短い命令に置き換えていた。これにより確かに命令
受理までの時間は短くなるが、サイクル数の長い命令で
実行していた動作内容のスループットは悪くなり、シス
テム設計がしにくくなるという欠点を持っていた。
Problems to be Solved by the Invention However, in the case of an instruction having a relatively short instruction cycle, the interrupt response time was short because the interrupt acceptance time was short, but in the case of an instruction having a long instruction cycle, the interrupt responsiveness was extremely poor. Had become. In system design, even if the frequency of an instruction having a long instruction cycle is low, the design is generally performed in a worst case. For this reason, even in a CISC machine, an instruction with a long instruction cycle was replaced with an instruction with a relatively short cycle number from the RISC perspective during software development. Although this certainly shortens the time until the instruction is accepted, the throughput of the operation content executed by the instruction having a long cycle number is deteriorated, and the system design is difficult.

本発明は上記従来の課題を解決するもので、割り込み
発生時において実行中の命令の終了を待つ必要がある場
合は命令終了後に割込みを受け付け、実行中の命令の終
了を待つ必要がない場合は命令を停止して即座に割込み
を受け付けることにより、高速応答性を実現するリアル
タイム処理装置を提供することを目的とする。
The present invention solves the above-mentioned conventional problem. When it is necessary to wait for the end of an instruction being executed at the time of occurrence of an interrupt, the interrupt is accepted after the instruction is completed, and when it is not necessary to wait for the end of the instruction being executed. It is an object of the present invention to provide a real-time processing device that realizes high-speed response by stopping an instruction and immediately accepting an interrupt.

課題を解決するための手段 この目的を達成するために本発明のリアルタイム処理
装置は、現在実行中の命令終了後に割込みを受け付ける
かをフラグにより選択可能とした装置、命令コードの付
加ビットにより選択可能とした装置、命令の実行サイク
ルに応じて選択可能とした装置、割込み発生要因により
選択可能とした装置、メモリ領域により指定可能とした
装置、特定のレジスタファイル実行を指定可能とした装
置である。
Means for Solving the Problems In order to achieve this object, a real-time processing device according to the present invention is a device in which whether or not to accept an interrupt after completion of a currently executing instruction can be selected by a flag, and can be selected by an additional bit of an instruction code. A device that can be selected according to the instruction execution cycle, a device that can be selected by an interrupt occurrence factor, a device that can be specified by a memory area, and a device that can specify execution of a specific register file.

作用 この構成により割込み発生時に高速割込み処理する必
要がある場合、高速応答性を実現することができる。
Operation With this configuration, when it is necessary to perform high-speed interrupt processing when an interrupt occurs, high-speed response can be realized.

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

第1図は本発明の一実施例のブロック図である。割込
み部3の割込み信号を受けて、割込み受理動作判断部2
はμROM4からの現在実行中の命令の動作が最終ステート
であるか、そうでないか等の命令ステート情報と、割込
み受理動作判断部2内の割込みを受け付けるかどうかの
フラグ(図示せず)により、現在実行中の命令を停止し
て即座に割込みを受け付けるか、終了まで待つかを判断
する。割込みが受理された時点で命令実行ユニット1と
割込み部3に割込み受理信号が発生され、CPUは割込み
動作に入る。本実施例では、割込みを受け付けるかどう
かのフラグは命令によりセット,リセットされる。高速
な割込み処理が必要な場合、本機能により即座に割込み
を受け付けることでリアルタイム処理を実現することが
できる。
FIG. 1 is a block diagram of one embodiment of the present invention. Upon receiving the interrupt signal from the interrupt unit 3, the interrupt receiving operation determining unit 2
Is determined by instruction state information such as whether the operation of the currently executing instruction from the μROM 4 is in the final state or not, and a flag (not shown) indicating whether or not to accept an interrupt in the interrupt accepting operation judging unit 2. It is determined whether to stop the currently executing instruction and immediately accept the interrupt or wait until the end. When the interrupt is received, an interrupt reception signal is generated in the instruction execution unit 1 and the interrupt unit 3, and the CPU starts an interrupt operation. In this embodiment, the flag for determining whether to accept an interrupt is set and reset by an instruction. When high-speed interrupt processing is required, real-time processing can be realized by accepting an interrupt immediately with this function.

第2図は割込みを受け付けるかどうかのフラグを命令
コードの付加ビットによりセット,リセットする命令フ
ォーマットについて示した図である。命令フォーマット
は命令コード5、命令コード付加ビット6、オペランド
7,8から成り、本実施例では2オペランド形式とした3
オペランド形式,特殊フォーマットでも差しつかえな
い。割込み発生時により、命令を停止してもよい場合は
付加ビット6に1をセット、そうでない場合は0にして
おくことで割込み発生時の処理を制御する。高速な割込
み処理が必要な場合、本機能により即座に割込みを受け
付けることでリアルタイム処理を実現できる。
FIG. 2 is a diagram showing an instruction format for setting and resetting a flag as to whether or not to accept an interrupt by an additional bit of an instruction code. The instruction format is instruction code 5, instruction code additional bit 6, operand
7, 8 in this embodiment, and 3
Operand format and special format can be used. If the instruction can be stopped due to the occurrence of an interrupt, the additional bit 6 is set to 1 if not, otherwise it is set to 0 to control the processing when the interrupt occurs. When high-speed interrupt processing is required, real-time processing can be realized by accepting an interrupt immediately with this function.

第3図は割込み発生時に (a) メモリに対する読み出し動作を実行中で、命令
実行時に書き込み動作がなかった場合は即座に割込み受
理 (b) メモリに対する書き込み動作を実行中、または
命令実行中に一度でも書き込み動作があった場合には命
令実行後に割込みを受理 (c) メモリアクセスがない場合には、命令サイクル
の半分或いは一定量以内であれば即座に割込み受理 の3通りの処理をする場合の一実施例について示した図
である。μROM4のリードサイクル,ライトサイクルを制
御するシーケンス制御部12からは現在のサイクルモード
情報と過去においてライトサイクルが存在していたかど
うかの情報が割込み受理動作判断部2に入力される。一
方、比較器11はμROM4内のステートカウンタを構成する
命令実行サイクル数を示すカウンタ10と命令の全サイク
ル数9の値を比較する。シーケンス制御部12と比較器11
の判断比較結果により前述の3通りの場合による割込み
受理動作の対応を可能としている。割込み発生時におい
て、命令を停止して、割込みを即座に受理する条件は、 (命令全サイクル数)−(実行サイクル数) <(命令全サイクル数)/2 かつ ライトモードが過去においてなかった かつ 現在ライトモードでない である。さらに実行サイクル数9とある一定の命令実行
サイクル(図示せず)を比較器11で比較することにより
命令固有のサイクル数に依存しない、ある一定のサイク
ル数で割込みを受理することができる。これらの処理に
より割込み受理動作を高速化できリアルタイム処理を実
現することができる。
FIG. 3 shows that when an interrupt occurs, (a) the read operation to the memory is being executed, and if there is no write operation at the time of the instruction execution, the interrupt is immediately received. (B) The write operation to the memory is being executed or once during the instruction execution. However, if there is a write operation, an interrupt is accepted after execution of the instruction. (C) In the case where there is no memory access, three kinds of processing of interrupt acceptance are performed immediately if the instruction cycle is half or within a certain amount. FIG. 4 is a diagram illustrating an example. The current cycle mode information and information as to whether or not a write cycle has existed in the past are input from the sequence control unit 12 for controlling the read cycle and the write cycle of the μROM 4 to the interrupt receiving operation determining unit 2. On the other hand, the comparator 11 compares the value of the counter 10 indicating the number of instruction execution cycles constituting the state counter in the μROM 4 with the total number of instruction cycles 9. Sequence controller 12 and comparator 11
According to the result of the judgment and comparison, it is possible to cope with the interrupt receiving operation in the above three cases. When an interrupt occurs, the conditions for stopping the instruction and immediately accepting the interrupt are (total number of instruction cycles)-(number of execution cycles) <(total number of instruction cycles) / 2, and the write mode has not been in the past and Not in write mode at present. Further, by comparing the execution cycle number 9 with a certain instruction execution cycle (not shown) by the comparator 11, an interrupt can be received with a certain number of cycles independent of the number of cycles inherent to the instruction. These processes can speed up the interrupt receiving operation and realize real-time processing.

第4図は割込み要因により、割込み発生時に実行中の
命令を停止して即座に割込みを受け付けるか、命令終了
後に割込みを受け付ける実施例について示す図である。
レジスタ13は割込み要因が発生したときに命令を停止さ
せるかどうかを指定するもので、割込み要因に各々対応
している。アンドゲート回路群14はレジスタ13の値と割
込み要因毎の割込み発生信号を入力とし、割込み受理動
作判断部2に出力されている。レジスタ13の設定と割込
み発生要因が一致した場合、すなわち命令を停止して割
込みを受理する場合、シーケンス制御部12からのライト
モードが過去においてなかったか、現在のモードは何で
あるかの情報を総合的に判断し、ライトモードが過去,
現在とも存在しない場合、即座に命令を停止して、割込
みを受理する。割込み発生要因によって、優先的に処理
をする必要があるものは、本発明の構成によりリアルタ
イム処理が可能となる。
FIG. 4 is a diagram showing an embodiment in which an instruction being executed is stopped when an interrupt occurs and an interrupt is immediately accepted or an interrupt is accepted after the instruction is completed, depending on an interrupt factor.
The register 13 specifies whether or not to stop the instruction when an interrupt factor occurs, and corresponds to each interrupt factor. The AND gate circuit group 14 receives as input the value of the register 13 and an interrupt generation signal for each interrupt factor, and outputs it to the interrupt receiving operation determining unit 2. When the setting of the register 13 matches the interrupt generation factor, that is, when the instruction is stopped and the interrupt is accepted, information on whether the write mode from the sequence control unit 12 was in the past or what the current mode is is integrated. Judgment, the light mode is past,
If not present, stop the instruction immediately and accept the interrupt. Those which need to be processed preferentially depending on the cause of the interruption can be processed in real time by the configuration of the present invention.

第5図は特定のメモリ領域をアクセス中に割込みが発
生した場合、実行中の命令を停止して、即座に割込みを
受理し、それ以外の領域では命令終了後割込みを受理す
る実施例について示す図である。レジスタ15によりメモ
リ空間16内の領域17においてアクセスがあるときに、割
込みが発生した場合、命令終了後に割込みを受理し、領
域17以外をアクセス中に割込みが発生した場合、命令を
即座に停止して割込みを受理する。領域17には、ポーリ
ングプログラムや、高速処理を要求されるデータ(複雑
な演算結果等)を配置することにより、命令実行のスル
ープットを上げることができ、またスピードを要求され
ない処理を領域17以外に配置することにより、割込み処
理を高速化することができ、より高いリアルタイム性を
実現することができる。
FIG. 5 shows an embodiment in which, when an interrupt occurs while accessing a specific memory area, the instruction being executed is stopped, the interrupt is immediately accepted, and in the other areas, the interrupt is accepted after the instruction is completed. FIG. If an interrupt occurs when there is an access to the area 17 in the memory space 16 by the register 15, the interrupt is accepted after the instruction is completed.If an interrupt occurs while accessing other than the area 17, the instruction is immediately stopped. To accept the interrupt. By arranging a polling program and data requiring high-speed processing (complex operation results, etc.) in the area 17, the instruction execution throughput can be increased. By arranging, interrupt processing can be sped up and higher real-time properties can be realized.

第6図は、実行レジスタファイル毎に、割込みが発生
した場合、即座に割込みを受理するか、命令実行後に受
理するかを指定できる実施例について示す図である。レ
ジスタ22より、レジスタファイル18〜21のうちどのレジ
スタファイルを実行中に高速割込み処理が必要かを指定
する。レジスタ22の各ビットはレジスタファイル18〜21
に対応しており、高速割込み処理、すなわち、割込み発
生時に命令を停止し、即座に割込みを受理するレジスタ
ファイルを指定することで、比較的優先度,スループッ
トの低いプログラム,データよりも割込みを優先でき、
重要度の高い割込み処理をリアルタイムに処理できる。
FIG. 6 is a diagram showing an embodiment in which, when an interrupt occurs, for each execution register file, whether to accept the interrupt immediately or after the execution of the instruction can be designated. The register 22 specifies which register file among the register files 18 to 21 requires high-speed interrupt processing during execution. Each bit of register 22 is a register file 18-21
High-speed interrupt processing, that is, by stopping the instruction when an interrupt occurs and specifying the register file that immediately receives the interrupt, gives priority to interrupts over programs and data with relatively low priority and low throughput. Can,
Interrupt processing with high importance can be processed in real time.

発明の効果 以上のように本発明によれば、高速な割込み処理が必
要とする割込み要因に対しては、割込み発生時に即座に
割込みを受理でき、高速応答性を実現することができ
る。また、通常のプログラム処理を割込み要因よりも優
先度を上げることが可能であり、通常プログラムのスル
ープットを上げることが可能である。
Effects of the Invention As described above, according to the present invention, for an interrupt factor requiring high-speed interrupt processing, an interrupt can be immediately received when an interrupt occurs, and high-speed response can be realized. Further, it is possible to raise the priority of the normal program processing over the cause of the interrupt, and it is possible to increase the throughput of the normal program.

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

第1図は本発明の一実施例であるリアルタイム処理装置
のブロック図、第2図は本発明の命令フォーマットを示
す図、第3図,第4図,第5図および第6図はそれぞれ
本発明の他の実施例のブロック図である。 1……命令実行ユニット、2……割込み受理動作判断
部、3……割込み部、4……μROM、5……命令コー
ド、6……命令コード付加ビット、7,8……オペラン
ド、9……命令サイクル数、10……実行サイクル数、11
……比較器、12……シーケンス制御部、13……割込み要
因指定レジスタ、14……AND回路部、15……メモリ領域
指定レジスタ、16……メモリ、17……割込み高速処理指
定領域、18〜21……レジスタファイル、22……レジスタ
ファイル指定レジスタ。
FIG. 1 is a block diagram of a real-time processing apparatus according to one embodiment of the present invention, FIG. 2 is a diagram showing an instruction format of the present invention, and FIGS. FIG. 6 is a block diagram of another embodiment of the present invention. 1 ... instruction execution unit, 2 ... interrupt acceptance operation determination unit, 3 ... interrupt unit, 4 ... μROM, 5 ... instruction code, 6 ... instruction code additional bit, 7, 8 ... operand, 9 ... ... Number of instruction cycles, 10 ... Number of execution cycles, 11
...... Comparator, 12 ... Sequence control unit, 13 ... Interrupt cause designation register, 14 ... AND circuit unit, 15 ... Memory area designation register, 16 ... Memory, 17 ... Interrupt high-speed processing designation area, 18 ~ 21 ... register file, 22 ... register file designation register.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】特定のメモリ領域を指定するレジスタと、 前記レジスタにより指定されたメモリ領域をアクセス中
に割り込みが発生した場合は即座に割り込みを受理し、
一方前記レジスタにより指定されたメモリ領域以外をア
クセス中に割り込みが発生した場合は実行中の命令が実
行終了後に割り込みを受理する割り込み受理部とを有す
ることを特徴とするリアルタイム処理装置。
A register for designating a specific memory area; and an interrupt immediately received when an interrupt occurs while accessing the memory area specified by the register;
On the other hand, a real-time processing device comprising: an interrupt receiving unit that receives an interrupt after an execution of an instruction being executed is completed when an interrupt occurs while accessing a memory area other than the memory area specified by the register.
【請求項2】レジスタファイルを切り換えることにより
複数のタスクを実行可能なリアルタイム処理装置におい
て、 前記レジスタファイル毎に特定のメモリ領域を指定する
レジスタと、 前記レジスタにより指定されたメモリ領域をアクセス中
に割り込みが発生した場合は即座に割り込みを受理し、
一方前記レジスタにより指定されたメモリ領域以外をア
クセス中に割り込みが発生した場合は実行中の命令が実
行終了後に割り込みを受理する割り込み受理部とを有す
ることを特徴とするリアルタイム処理装置。
2. A real-time processing device capable of executing a plurality of tasks by switching a register file, comprising: a register for designating a specific memory area for each of said register files; and a memory area designated by said register being accessed. When an interrupt occurs, the interrupt is immediately accepted,
On the other hand, a real-time processing device comprising: an interrupt receiving unit that receives an interrupt after an execution of an instruction being executed is completed when an interrupt occurs while accessing a memory area other than the memory area specified by the register.
JP2147811A 1990-06-06 1990-06-06 Real-time processing device Expired - Lifetime JP2697254B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2147811A JP2697254B2 (en) 1990-06-06 1990-06-06 Real-time processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2147811A JP2697254B2 (en) 1990-06-06 1990-06-06 Real-time processing device

Publications (2)

Publication Number Publication Date
JPH0440532A JPH0440532A (en) 1992-02-10
JP2697254B2 true JP2697254B2 (en) 1998-01-14

Family

ID=15438753

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2147811A Expired - Lifetime JP2697254B2 (en) 1990-06-06 1990-06-06 Real-time processing device

Country Status (1)

Country Link
JP (1) JP2697254B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05233320A (en) * 1992-02-19 1993-09-10 Mitsubishi Electric Corp Microcomputer
FR2765361B1 (en) * 1997-06-26 2001-09-21 Bull Cp8 UNPREDICTABLE MICROPROCESSOR OR MICROCALCULATOR
JP4935392B2 (en) * 2007-02-07 2012-05-23 富士通株式会社 Output arbitration program and device
CN121455646B (en) * 2026-01-04 2026-04-21 深圳市中兴微电子技术有限公司 Interrupt handling methods, chips, electronic devices, media and products

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5474338A (en) * 1977-11-25 1979-06-14 Nec Corp Information processor
JPS5533230A (en) * 1978-08-30 1980-03-08 Nippon Signal Co Ltd:The Microinstruction generator
US4734248A (en) * 1986-07-14 1988-03-29 Rockwell International Corporation Conduit assembly for use in a nuclear reactor

Also Published As

Publication number Publication date
JPH0440532A (en) 1992-02-10

Similar Documents

Publication Publication Date Title
US5701493A (en) Exception handling method and apparatus in data processing systems
JP4883824B2 (en) Method and apparatus for influencing subsequent instruction processing in a data processor
US4715013A (en) Coprocessor instruction format
EP1062578B1 (en) Method and apparatus for handling multiple level-triggered and edge-triggered interrupts
US5361375A (en) Virtual computer system having input/output interrupt control of virtual machines
US4729094A (en) Method and apparatus for coordinating execution of an instruction by a coprocessor
US4731736A (en) Method and apparatus for coordinating execution of an instruction by a selected coprocessor
US4750110A (en) Method and apparatus for executing an instruction contingent upon a condition present in another data processor
US5021991A (en) Coprocessor instruction format
EP0166431B1 (en) An information processing apparatus having an instruction prefetch circuit
US5065313A (en) Digital computer system having circuit for regulation of I/O command recovery time
EP0523758B1 (en) A method and apparatus for coordinating execution of an instruction by a coprocessor
US4758950A (en) Method and apparatus for selectively delaying an interrupt of a coprocessor
US4914578A (en) Method and apparatus for interrupting a coprocessor
US4821231A (en) Method and apparatus for selectively evaluating an effective address for a coprocessor
JP2697254B2 (en) Real-time processing device
JPS63279328A (en) Control system for guest execution of virtual computer system
EP0240606A2 (en) Pipe-line processing system and microprocessor using the system
EP0385136B1 (en) Microprocessor cooperating with a coprocessor
EP0669582A2 (en) Immediate system management interrupt source with associated reason register
JPH08255476A (en) Apparatus and method for memory extended stack in data-processing system
US4758978A (en) Method and apparatus for selectively evaluating an effective address for a coprocessor
JPH03278135A (en) Stack tracing device
JP2591211B2 (en) High-speed interrupt processing device
JPH0377137A (en) Information processor