JPH05204685A - Electronic computer - Google Patents

Electronic computer

Info

Publication number
JPH05204685A
JPH05204685A JP4015476A JP1547692A JPH05204685A JP H05204685 A JPH05204685 A JP H05204685A JP 4015476 A JP4015476 A JP 4015476A JP 1547692 A JP1547692 A JP 1547692A JP H05204685 A JPH05204685 A JP H05204685A
Authority
JP
Japan
Prior art keywords
instruction
signal
reset
interrupt
parity error
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
JP4015476A
Other languages
Japanese (ja)
Inventor
Toshio Mitsusaka
敏夫 三坂
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 JP4015476A priority Critical patent/JPH05204685A/en
Publication of JPH05204685A publication Critical patent/JPH05204685A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain re-execution at the time of generation of a parity error in instruction fetching. CONSTITUTION:At the time of generation of a parity error, a sequencer 18 allows an interruption control means 21 to reload an instruction part generating the parity error by a parity error signal 17. When no parity error is generated at the time of detecting that an instruction reloaded based upon a coincidence result from a comparator 20 coincides with an instruction address generating the preceding parity error, the instruction is continued, and if a parity error is generated, a double parity error signal 16 is generated from an AND gate 15 and the means 21 is allowed to abort the instruction.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、電子計算機の制御装置
に利用する。特に、フェッチした命令にパリティエラー
が発生した場合でも再実行することができる制御装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is used in a control device for an electronic computer. In particular, the present invention relates to a control device that can re-execute a fetched instruction even if a parity error occurs.

【0002】[0002]

【従来の技術】従来、電子計算機は、命令フェッチでパ
リティエラーが発生すると割込みを発生し、そのタスク
をアボートさせていた。
2. Description of the Related Art Conventionally, when a parity error occurs in an instruction fetch, an electronic computer generates an interrupt and aborts the task.

【0003】[0003]

【発明が解決しようとする課題】しかし、このような従
来の電子計算機では、命令フェッチでパリティエラーが
発生した場合に、その箇所から再実行しても再度パリテ
ィエラーが発生し、さらに再実行する無限ループに入る
危険があるために、そのタスクをアボートさせ再実行で
きない問題点があった。
However, in such a conventional electronic computer, when a parity error occurs in the instruction fetch, even if the parity error is reexecuted from that location, the parity error occurs again, and the instruction is reexecuted. There was a problem that the task could not be aborted and re-executed because of the danger of entering an infinite loop.

【0004】本発明は上記の欠点を解決するもので、命
令フェッチでパリティエラーが発生した場合に再実行で
きる電子計算機を提供することを目的とする。
The present invention solves the above-mentioned drawbacks, and an object of the present invention is to provide an electronic computer which can be re-executed when a parity error occurs in instruction fetch.

【0005】[0005]

【課題を解決するための手段】本発明は、入力する命令
のパリティエラーを検出したときに検出信号を出力する
パリティチェック手段を備えた電子計算機において、上
記検出信号に基づき第一の割込信号を出力する割込手段
と、この第一の割込信号に基づき上記パリティエラーを
発生した命令部分を再ロードする制御を行う割込制御手
段と、上記検出信号に基づきセットされ入力するリセッ
ト信号または命令終了信号に基づきリセットする第一の
記憶手段と、上記検出信号に基づき上記パリティエラー
を発生したときの命令アドレスを記憶する第二の記憶手
段と、再ロードが実行されこの第二の記憶手段の内容と
この再ロードされた命令部分の命令アドレスとが一致し
たときに上記リセット信号を出力するリセット手段と、
上記第一の記憶手段がセット状態で上記再ロードされた
命令に対する検出信号を入力したときに再検出信号を出
力する再検出手段とを備え、上記割込手段は上記再検出
信号を入力したときに上記命令終了信号および第二の割
込信号を出力する手段を含み、上記割込制御手段は上記
第二の割込信号に基づき実行中の命令をアボートする制
御を行う手段を含むことを特徴とする。
SUMMARY OF THE INVENTION The present invention is an electronic computer equipped with a parity check means for outputting a detection signal when a parity error in an input instruction is detected, and a first interrupt signal based on the detection signal. An interrupt means for outputting, an interrupt control means for controlling the reloading of the instruction part in which the parity error has occurred based on the first interrupt signal, and a reset signal set and input based on the detection signal or First storage means for resetting based on an instruction end signal, second storage means for storing an instruction address when the parity error occurs based on the detection signal, and reloading executed second storage means Reset means for outputting the reset signal when the contents of the above and the instruction address of the reloaded instruction portion match,
Re-detection means for outputting a re-detection signal when the detection signal corresponding to the reloaded instruction is input in the first storage means in the set state, and the interrupt means when the re-detection signal is input To output the instruction end signal and the second interrupt signal, and the interrupt control means includes means for performing control to abort the instruction being executed based on the second interrupt signal. And

【0006】また、本発明は、上記パリティチェック手
段は、上記命令のパリティチェックを1バイトごとに行
うパリティチエッカと、上記命令の1バイトごとにこの
パリティチェッカの検出結果を付加して格納するプリフ
ェッチバッファと、このプリフェッチバッファの内容を
デコードし命令長を出力するデコーダと、このデコーダ
の出力に基づき上記命令である部分を示す信号を出力す
る命令長デコーダと、上記プリフェッチパッファに格納
された各検出結果とこの命令長デコーダの出力信号との
論理積をとる第一のアンドゲートと、この各第一のアン
ドゲートの出力の論理和をとり上記検出信号を出力する
オアゲートとを含み、上記第二の記憶手段は、入力する
加算結果に基づき実行中の命令の命令アドレスをカウン
トし上記割込制御手段の制御により再ロード時にリセッ
トされるプログラムカウンタと、上記デコーダからの命
令長とこのプログラムカウンタの出力とを加算してその
加算結果をこのプログラムカウンタに与える加算器と、
上記検出信号に基づき上記プログラムカウンタの出力を
記憶するエラープログラムカウンタとを含み、上記リセ
ット手段は、上記プログラムカウンタの出力と上記エラ
ープログラムカウンタとの出力とを比較し一致したとき
に一致結果を出力する比較器と、上記割込制御手段の制
御により再ロード時にセットされ上記リセット信号に基
づきリセットされるバリッドフラグと、このバリッドフ
ラグの出力と上記一致結果との論理積をとり上記リセッ
ト信号を出力する第二のアンドゲートとを含むことがで
きる。
Further, according to the present invention, the parity check means adds and stores a parity checker for performing a parity check of the instruction for each byte and a detection result of the parity checker for each byte of the instruction. A prefetch buffer, a decoder that decodes the contents of the prefetch buffer and outputs an instruction length, an instruction length decoder that outputs a signal indicating a portion that is the above instruction based on the output of this decoder, and each of the prefetch buffers stored in the prefetch buffer. A first AND gate for taking a logical product of a detection result and an output signal of the instruction length decoder; and an OR gate for taking a logical sum of outputs of the first and gates and outputting the detection signal, The second storage means counts the instruction address of the instruction being executed based on the input addition result and controls the interrupt. A program counter which is reset upon reloading the control of the stage, an adder providing the addition result by adding the instruction length from the decoder and the output of the program counter to the program counter,
An error program counter that stores the output of the program counter based on the detection signal, and the reset means compares the output of the program counter with the output of the error program counter and outputs a match result when they match. And a valid flag which is set at the time of reloading under the control of the interrupt control means and reset based on the reset signal, and the output of the valid flag and the coincidence result are ANDed to output the reset signal. And a second AND gate to perform.

【0007】[0007]

【作用】割込手段は検出信号に基づき第一の割込信号を
出力する。割込制御手段は第一の割込信号に基づきパリ
ティエラーを発生した命令部分を再ロードする制御を行
う。第一の記憶手段は検出信号に基づきセットされ入力
するリセット信号または命令終了信号に基づきリセット
する。第二の記憶手段は検出信号に基づきパリティエラ
ーを発生したときの命令アドレスを記憶する。リセット
手段は再ロードが実行され第二の記憶手段の内容と再ロ
ードされた命令部分の命令アドレスとが一致したときに
上記リセット信号を出力する。再検出手段は第一の記憶
手段がセット状態で再ロードされた命令に対する検出信
号を入力したときに再検出信号を出力する。割込手段は
再検出信号を入力したときに上記命令終了信号および第
二の割込信号を出力する。割込制御手段は第二の割込信
号に基づき実行中の命令をアボートする制御を行う。
The interrupt means outputs the first interrupt signal based on the detection signal. The interrupt control means controls to reload the instruction part in which the parity error has occurred, based on the first interrupt signal. The first storage means is reset based on a reset signal or a command end signal that is set and input based on the detection signal. The second storage means stores the instruction address when the parity error occurs based on the detection signal. The reset means outputs the reset signal when reloading is executed and the contents of the second storage means and the instruction address of the reloaded instruction portion match. The re-detection means outputs the re-detection signal when the detection signal for the instruction reloaded in the set state of the first storage means is input. The interrupt means outputs the command end signal and the second interrupt signal when the re-detection signal is input. The interrupt control means controls to abort the instruction being executed based on the second interrupt signal.

【0008】以上により命令フェッチでパリティエラー
が発生した場合に再実行できる。
As described above, if a parity error occurs in the instruction fetch, it can be re-executed.

【0009】[0009]

【実施例】本発明の実施例について図面を参照して説明
する。図1は本発明一実施例電子計算機のブロック構成
図である。
Embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a computer according to an embodiment of the present invention.

【0010】図1において、電子計算機は、入力する命
令のパリティエラーを検出したときに検出信号としてパ
リティエラー信号を出力するパリティチェック手段を備
える。
In FIG. 1, the electronic computer comprises a parity check means for outputting a parity error signal as a detection signal when a parity error of an input instruction is detected.

【0011】ここで本発明の特徴とするところは、パリ
ティエラー信号に基づき第一の割込信号を出力する割込
手段としてシーケンサ18と、第一の割込信号に基づき
パリティエラーを発生した命令部分を再ロードする制御
を行う割込制御手段21と、パリティエラー信号17に
基づきセットされ入力するリセット信号または命令終了
信号19に基づきリセットする第一の記憶手段としてエ
ラーフリップフロップ14と、パリティエラー信号17
に基づきパリティエラーを発生したときの命令アドレス
を記憶する第二の記憶手段と、再ロードが実行されこの
第二の記憶手段の内容と再ロードされた命令部分の命令
アドレスとが一致したときに上記リセット信号を出力す
るリセット手段と、エラーフリップフロップ14がセッ
ト状態で再ロードされた命令に対するパリティエラー信
号17を入力したときに再検出信号としてダブルパリテ
ィエラー信号16を出力する再検出手段としてアンドゲ
ート15とを備え、シーケンサ18はダブルパリティエ
ラー信号16を入力したときに命令終了信号19および
第二の割込信号を出力する手段を含み、割込制御手段2
1は第二の割込信号に基づき実行中の命令をアボートす
る制御を行う手段を含むことにある。
A feature of the present invention is that the sequencer 18 serves as an interrupt means for outputting the first interrupt signal based on the parity error signal, and the instruction that has generated the parity error based on the first interrupt signal. An interrupt control means 21 for controlling the reloading of the part, an error flip-flop 14 as a first storage means for resetting based on a reset signal or an instruction end signal 19 which is set based on the parity error signal 17 or is input, and a parity error. Signal 17
A second storage means for storing an instruction address when a parity error occurs based on the above, and when the contents of the second storage means and the instruction address of the reloaded instruction portion match with each other when a reload is executed. The reset means for outputting the reset signal and the re-detection means for outputting the double parity error signal 16 as the re-detection signal when the parity error signal 17 for the instruction reloaded in the set state in the error flip-flop 14 is input. The sequencer 18 includes a gate 15, and the sequencer 18 includes means for outputting an instruction end signal 19 and a second interrupt signal when the double parity error signal 16 is input.
1 is to include means for controlling to abort the instruction being executed based on the second interrupt signal.

【0012】また、上記パリティチェック手段は、命令
のパリティチェックを1バイトごとに行うパリティチエ
ッカ2と、命令の1バイトごとにこのパリティチェッカ
2の検出結果を付加して格納するプリフェッチバッファ
1と、プリフェッチバッファ1の内容をデコードし命令
長を出力するデコーダ3と、デコーダ3の出力に基づき
命令である部分を示す信号を出力する命令長デコーダ4
と、プリフェッチバッファ1に格納された各検出結果と
命令長デコーダ4の出力信号との論理積をとる第一のア
ンドゲートとしてアンドゲート5と、この各アンドゲー
ト5の出力の論理和をとりパリティエラー信号を出力す
るオアゲート6とを含み、上記第二の記憶手段は、入力
する加算結果に基づき実行中の命令の命令アドレスをカ
ウントし割込制御手段21の制御により再ロード時にリ
セットされるプログラムカウンタ10と、デコーダ3か
らの命令長信号7とプログラムカウンタ10の出力とを
加算してその加算結果をプログラムカウンタ10に与え
る加算器9と、パリティエラー信号17に基づきプログ
ラムカウンタ10の出力を記憶するエラープログラムカ
ウンタ11とを含み、上記リセット手段は、プログラム
カウンタ10の出力とエラープログラムカウンタ11と
の出力とを比較し一致したときに一致結果を出力する比
較器20と、割込制御手段21の制御により再ロード時
にセットされ上記リセット信号に基づきリセットされる
バリッドフラグ12と、バリッドフラグ12の出力と上
記一致結果との論理積をとり上記リセット信号を出力す
る第二のアンドゲートとしてアンドゲート13とを含
む。
The parity check means includes a parity checker 2 that performs a parity check of an instruction for each byte, and a prefetch buffer 1 that stores the detection result of the parity checker 2 for each byte of the instruction. , A decoder 3 that decodes the contents of the prefetch buffer 1 and outputs an instruction length, and an instruction length decoder 4 that outputs a signal indicating a portion that is an instruction based on the output of the decoder 3.
And a AND gate 5 as a first AND gate for taking the logical product of each detection result stored in the prefetch buffer 1 and the output signal of the instruction length decoder 4, and the logical sum of the outputs of these AND gates 5 is taken as the parity. A program including an OR gate 6 for outputting an error signal, wherein the second storage means counts the instruction address of the instruction being executed based on the input addition result and is reset at the time of reloading under the control of the interrupt control means 21. The counter 10, the instruction length signal 7 from the decoder 3 and the output of the program counter 10 are added, the adder 9 which gives the addition result to the program counter 10, and the output of the program counter 10 based on the parity error signal 17 are stored. Error program counter 11 for resetting, and the reset means outputs the program counter 10. And the output of the error program counter 11 are compared with each other and a coincidence result is output when they coincide with each other, and a valid flag 12 which is set at the time of reloading and reset based on the reset signal by the control of the interrupt control means 21. And a AND gate 13 as a second AND gate that outputs a logical product of the output of the valid flag 12 and the coincidence result and outputs the reset signal.

【0013】このような構成の電子計算機の動作につい
て説明する。図2は本発明の電子計算機の命令長デコー
ダの入出力真理値表を示す図である。図3は本発明の電
子計算機のパリティエラーが発生した処理を示すフロー
チャートである。図3(a)はパリティエラーが発生し
た場合の処理を示し、図3(b)はダブルパリティエラ
ーが発生した場合の処理を示す。
The operation of the electronic computer having such a configuration will be described. FIG. 2 is a diagram showing an input / output truth table of the instruction length decoder of the electronic computer of the present invention. FIG. 3 is a flow chart showing a process in which a parity error has occurred in the electronic computer of the present invention. FIG. 3A shows a process when a parity error occurs, and FIG. 3B shows a process when a double parity error occurs.

【0014】図1において、本実施例は、4バイトのプ
リフェッチバッファを持つ構成を採っており、本発明の
主旨をなるべく明瞭に示すために、本発明と関係のない
部分については省略してある。
In FIG. 1, the present embodiment has a structure having a 4-byte prefetch buffer, and in order to show the gist of the present invention as clearly as possible, parts irrelevant to the present invention are omitted. .

【0015】プリフェッチバッファ1は、パリティチェ
ッカ2が検出するパリティエラーのフラグを1バイトご
とに1ビット持つ。デコーダ3は、プリフェッチバッフ
ァ1の内容をデコードし、命令長を情報として取出し命
令長信号7を出力する。命令長デコーダ4は、図2に示
すように命令長によって、プリフェッチバッファ1のど
こまでが該当する命令であるかを出力する。したがっ
て、プリフェッチバッファ1のパリティエラーの四つの
フラグと命令長デコーダ4の4本の出力の各々をアンド
ゲート5で論理積をとり、その結果をオアゲート6で論
理和をとることにより、該当する命令がパリティエラー
を起こしているときにはパリティエラー信号17が出力
される。シーケンサ18は、パリティエラー信号17が
「1」になると割込制御手段21に認識させて割込を発
生する。また、同時にエラーフリップフロップ14は、
パリティエラー信号17によりセットされ、パリティエ
ラーが発生したことを記憶する。さらに、これと同時に
エラープログラムカウンタ11は、プログラムカウンタ
10の値を入力する。
The prefetch buffer 1 has a flag of a parity error detected by the parity checker 2 for each byte. The decoder 3 decodes the contents of the prefetch buffer 1 and outputs the instruction length signal 7 by taking out the instruction length as information. As shown in FIG. 2, the instruction length decoder 4 outputs up to what part of the prefetch buffer 1 the relevant instruction is according to the instruction length. Therefore, the AND gate 5 logically ANDs each of the four flags of the parity error of the prefetch buffer 1 and the four outputs of the instruction length decoder 4, and the result is ORed by the OR gate 6 to obtain the corresponding instruction. Has a parity error, a parity error signal 17 is output. When the parity error signal 17 becomes "1", the sequencer 18 causes the interrupt control means 21 to recognize it and generate an interrupt. At the same time, the error flip-flop 14
It is set by the parity error signal 17 and stores that a parity error has occurred. Further, at the same time, the error program counter 11 inputs the value of the program counter 10.

【0016】一般の命令では、プログラムカウンタ10
は、命令長信号7により入力する命令長を加算器9で積
算し、常に実行中の命令の命令アドレスを保持する。比
較器20は、プログラムカウンタ10とエラープログラ
ムカウンタ11との出力を比較する。アンドゲート13
は、比較器20の比較結果が一致し、しかもエラープロ
グラムカウンタ11のバリッドフラグ12が「1」であ
るとき、または該当する命令の命令終了信号19が
「1」であるときにエラーフリップフロップ14をリセ
ットする。バリッドフラグ12は、割込制御手段21で
セットされエラーフリップフロップ14と同じタイミン
グでリセットされる。エラーフリップフロップ14が
「1」の状態で、パリティエラーが発生したことをアン
ドゲート15によって検出し、ダブルパリティエラー1
6として信号線を介してシーケンサ18に通知し、パリ
ティエラーの場合とは別の割込として割込制御手段21
に認識させることができる。
In general instructions, the program counter 10
Adds the instruction length input by the instruction length signal 7 by the adder 9 and always holds the instruction address of the instruction being executed. The comparator 20 compares the outputs of the program counter 10 and the error program counter 11. And gate 13
Is the error flip-flop 14 when the comparison result of the comparator 20 is the same and the valid flag 12 of the error program counter 11 is "1" or the instruction end signal 19 of the corresponding instruction is "1". To reset. The valid flag 12 is set by the interrupt control means 21 and reset at the same timing as the error flip-flop 14. When the error flip-flop 14 is "1", the AND gate 15 detects that a parity error has occurred, and a double parity error 1
6 is notified to the sequencer 18 via the signal line, and the interrupt control means 21 is provided as an interrupt different from the case of the parity error.
Can be recognized.

【0017】次に、本実施例の電子計算機の割込制御手
段21による制御例について説明する。図3(a)にお
いて、パリティエラーの割込が発生すると割込制御手段
(割込ハンドラ)21では、パリティエラーが発生した
プログラムの命令部分を再ロードする。
Next, an example of control by the interrupt control means 21 of the electronic computer of this embodiment will be described. In FIG. 3A, when a parity error interrupt occurs, the interrupt control means (interrupt handler) 21 reloads the instruction part of the program in which the parity error occurred.

【0018】次に、エラープログラムカウンタ11のバ
リッドフラグを「オン」としプログラムカウンタ10を
リセットして元のプログラムのエラーが発生した命令に
戻る。その命令がパリティエラーを起こすことが無けれ
ば、パリティエラーが発生する前の状態に戻って実行が
続けられる。元のプログラムのパリティエラーが発生し
た命令が正常に実行される以前に新たなパリティエラー
が発生した場合には、図3(b)のようにプログラムア
ボートが行われる。
Next, the valid flag of the error program counter 11 is set to "ON", and the program counter 10 is reset to return to the instruction in which the error of the original program occurred. If the instruction does not cause a parity error, execution returns to the state before the parity error occurred. When a new parity error occurs before the instruction in which the parity error of the original program has occurred is normally executed, the program abort is performed as shown in FIG. 3B.

【0019】上述のように、本実施例は、パリティエラ
ーを発生した命令の再実行が成功するより以前にパリテ
ィエラーが発生した場合には別の割込としてソフトウェ
アに通知し、パリティエラーを発生した命令の再実行が
成功するとパリティエラーが発生する前の状態に戻って
実行が続けられる。
As described above, according to the present embodiment, when a parity error occurs before the re-execution of the instruction in which the parity error occurs is successful, the software is notified as another interrupt and a parity error is generated. When the re-execution of the executed instruction succeeds, the state before the parity error occurs is returned to and the execution is continued.

【0020】[0020]

【発明の効果】以上説明したように、本発明は、命令フ
ェッチでパリティエラーが発生した場合に再実行できる
優れた効果がある。
As described above, the present invention has an excellent effect that it can be re-executed when a parity error occurs in instruction fetch.

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

【図1】本発明一実施例電子計算機のブロック構成図。FIG. 1 is a block configuration diagram of a computer according to an embodiment of the present invention.

【図2】本発明の電子計算機の命令長デコーダの入出力
真理表を示す図。
FIG. 2 is a diagram showing an input / output truth table of an instruction length decoder of the electronic computer of the present invention.

【図3】本発明の電子計算機のパリティエラーが発生し
た場合の処理を示すフローチャート。
FIG. 3 is a flow chart showing processing when a parity error occurs in the computer of the present invention.

【符号の説明】[Explanation of symbols]

1 プリフェッチバッファ 2 パリティチェッカ 3 デコーダ 4 命令長デコーダ 5、13、15 アンドゲート 6 オアゲート 7 命令長信号 9 加算器 10 プログラムカウンタ 11 エラープログラムカウンタ 12 バリッドフラグ 14 エラーフリップフロップ 16 タブルパリティエラー 17 パリティエラー信号 18 シーケンサ 19 命令終了信号 20 比較器 21 割込制御手段 1 Prefetch Buffer 2 Parity Checker 3 Decoder 4 Instruction Length Decoder 5, 13, 15 AND Gate 6 OR Gate 7 Instruction Length Signal 9 Adder 10 Program Counter 11 Error Program Counter 12 Valid Flag 14 Error Flip-Flop 16 Tabular Parity Error 17 Parity Error Signal 18 sequencer 19 instruction end signal 20 comparator 21 interrupt control means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力する命令のパリティエラーを検出し
たときに検出信号を出力するパリティチェック手段を備
えた電子計算機において、 上記検出信号に基づき第一の割込信号を出力する割込手
段と、この第一の割込信号に基づき上記パリティエラー
を発生した命令部分を再ロードする制御を行う割込制御
手段と、上記検出信号に基づきセットされ入力するリセ
ット信号または命令終了信号に基づきリセットする第一
の記憶手段と、上記検出信号に基づき上記パリティエラ
ーを発生したときの命令アドレスを記憶する第二の記憶
手段と、再ロードが実行されこの第二の記憶手段の内容
とこの再ロードされた命令部分の命令アドレスとが一致
したときに上記リセット信号を出力するリセット手段
と、上記第一の記憶手段がセット状態で上記再ロードさ
れた命令に対する検出信号を入力したときに再検出信号
を出力する再検出手段とを備え、 上記割込手段は上記再検出信号を入力したときに上記命
令終了信号および第二の割込信号を出力する手段を含
み、 上記割込制御手段は上記第二の割込信号に基づき実行中
の命令をアボートする制御を行う手段を含むことを特徴
とする電子計算機。
1. An electronic computer provided with a parity check means for outputting a detection signal when a parity error of an input instruction is detected, and an interrupt means for outputting a first interrupt signal based on the detection signal, An interrupt control means for controlling the reloading of the instruction part in which the parity error occurs based on the first interrupt signal; and a reset signal set based on the detection signal or reset based on an instruction end signal One storage means, a second storage means for storing an instruction address when the parity error occurs based on the detection signal, a reload is executed and the contents of the second storage means and the reloaded The reset means for outputting the reset signal when the instruction address of the instruction portion matches and the first memory means are in the set state, A re-detection means for outputting a re-detection signal when a detection signal corresponding to the received instruction is input, wherein the interruption means receives the instruction end signal and the second interruption signal when the re-detection signal is input. An electronic computer, wherein the interrupt control means includes means for performing control to abort the instruction being executed based on the second interrupt signal.
【請求項2】 上記パリティチェック手段は、上記命令
のパリティチェックを1バイトごとに行うパリティチエ
ッカと、上記命令の1バイトごとにこのパリティチェッ
カの検出結果を付加して格納するプリフェッチバッファ
と、このプリフェッチバッファの内容をデコードし命令
長を出力するデコーダと、このデコーダの出力に基づき
上記命令である部分を示す信号を出力する命令長デコー
ダと、上記プリフェッチバッファに格納された各検出結
果とこの命令長デコーダの出力信号との論理積をとる第
一のアンドゲートと、この各第一のアンドゲートの出力
の論理和をとり上記検出信号を出力するオアゲートとを
含み、 上記第二の記憶手段は、入力する加算結果に基づき実行
中の命令の命令アドレスをカウントし上記割込制御手段
の制御により再ロード時にリセットされるプログラムカ
ウンタと、上記デコーダからの命令長とこのプログラム
カウンタの出力とを加算してその加算結果をこのプログ
ラムカウンタに与える加算器と、上記検出信号に基づき
上記プログラムカウンタの出力を記憶するエラープログ
ラムカウンタとを含み、 上記リセット手段は、上記プログラムカウンタの出力と
上記エラーフリップフロップとの出力とを比較し一致し
たときに一致結果を出力する比較器と、上記割込制御手
段の制御により再ロード時にセットされ上記リセット信
号に基づきリセットされるバリッドフラグと、このバリ
ッドフラグの出力と上記一致結果との論理積をとり上記
リセット信号を出力する第二のアンドゲートとを含む請
求項1記載の電子計算機。
2. The parity check means includes a parity checker for performing a parity check of the instruction on a byte-by-byte basis, and a prefetch buffer for storing the result of the parity checker added on a byte-by-byte basis of the instruction. A decoder that decodes the contents of this prefetch buffer and outputs an instruction length, an instruction length decoder that outputs a signal indicating the portion that is the above instruction based on the output of this decoder, and each detection result stored in the above prefetch buffer and this A second AND means for taking a logical product of the output signal of the instruction length decoder and an OR gate for taking the logical sum of the outputs of the first AND gates and outputting the detection signal; The instruction address of the instruction being executed is counted based on the input addition result and is controlled by the interrupt control means. A program counter that is reset when reloaded, an adder that adds the instruction length from the decoder and the output of the program counter and gives the addition result to the program counter, and an output of the program counter based on the detection signal And an error program counter for storing, and the reset means compares the output of the program counter with the output of the error flip-flop and outputs a coincidence result when they coincide, and the interrupt control means. A valid flag which is set at the time of reloading and reset based on the reset signal under the control of the above, and a second AND gate which logically ANDs the output of the valid flag and the coincidence result and outputs the reset signal. The electronic computer according to Item 1.
JP4015476A 1992-01-30 1992-01-30 Electronic computer Pending JPH05204685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4015476A JPH05204685A (en) 1992-01-30 1992-01-30 Electronic computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4015476A JPH05204685A (en) 1992-01-30 1992-01-30 Electronic computer

Publications (1)

Publication Number Publication Date
JPH05204685A true JPH05204685A (en) 1993-08-13

Family

ID=11889856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4015476A Pending JPH05204685A (en) 1992-01-30 1992-01-30 Electronic computer

Country Status (1)

Country Link
JP (1) JPH05204685A (en)

Similar Documents

Publication Publication Date Title
US5003462A (en) Apparatus and method for implementing precise interrupts on a pipelined processor with multiple functional units with separate address translation interrupt means
EP0357188B1 (en) Pipelined processor
US7401210B2 (en) Selecting subroutine return mechanisms
JP3242508B2 (en) Microcomputer
KR930016880A (en) Electronic device and its fixing information
US4747045A (en) Information processing apparatus having an instruction prefetch circuit
US5253349A (en) Decreasing processing time for type 1 dyadic instructions
US5938758A (en) Microprocessor having function of prefetching instruction
JPH05204685A (en) Electronic computer
JP2783285B2 (en) Information processing device
JPH07182165A (en) Processing method/device for instruction with committing condition
JP3490191B2 (en) calculator
KR20080044652A (en) Method for debugging by using stack of cpu
JP3100705B2 (en) Apparatus for instruction preparation in a microprocessor
JPH06290045A (en) Arithmetic error detecting system for parallel-arithmetic operating processor
JP3729250B2 (en) Information processing apparatus and electronic apparatus
JP2503210B2 (en) Micro program controller
JPH04140851A (en) Diagnostic system for information processor
JPH0535499A (en) Data processing device and method
JPH05108384A (en) Microprocessor
JPH02173825A (en) Branch controller
JPH06131198A (en) Data processor
JPH0683986A (en) Single chip microcomputer
JPH0235525A (en) Instruction fetch control method
JPH0424836A (en) Microprocessor