JPH0371236A - Error detecting system - Google Patents

Error detecting system

Info

Publication number
JPH0371236A
JPH0371236A JP1209140A JP20914089A JPH0371236A JP H0371236 A JPH0371236 A JP H0371236A JP 1209140 A JP1209140 A JP 1209140A JP 20914089 A JP20914089 A JP 20914089A JP H0371236 A JPH0371236 A JP H0371236A
Authority
JP
Japan
Prior art keywords
memory
error
computer
parity
operation code
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
JP1209140A
Other languages
Japanese (ja)
Inventor
Yoshiki Kuwata
桑田 良樹
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.)
Denso Corp
Original Assignee
NipponDenso 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 NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP1209140A priority Critical patent/JPH0371236A/en
Publication of JPH0371236A publication Critical patent/JPH0371236A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To detect the error of a memory and the runaway of a computer by adding respectively different error detecting codes to an operation code and operands and providing an error detecting circuit. CONSTITUTION:Respectively different error detecting codes are added to the operation code and the operands and the error detecting circuit 3 collates a signal for discriminating the operation code from the operands outputted from the computer 1 with data including an error detecting code read out from a memory 2 to detect the error of the memory 2 and the runaway of the computer 1. Namely, the memory error disabling the correct reading of data from the memory 2 and the computer runaway disabling the program counter in the computer 1 to noncorrectly indicate addresses are detected. Consequently, the error of the memory 2 and the runaway of the computer 1 can be detected only by adding the small number of bits.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、エラー検出システムに係り、詳しくはメモ
リのエラーとコンピュータの暴走を検出するエラー検出
システムに関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an error detection system, and more particularly to an error detection system for detecting memory errors and computer runaways.

[従来技術] 従来、計算機のエラー検出のための技術として、例えば
、特開昭56−31143号公報にはメモリから読み出
されたデータがオペレーションコードであるか否かを識
別するためにデータに暴走防止ビットを付加することが
示されている。又、特開昭57−98047号公報には
命令コード中にコードエラー検出のための冗長ビットを
用いるエラーコード検出機能が示されている。
[Prior Art] Conventionally, as a technique for detecting errors in computers, for example, Japanese Patent Laid-Open No. 56-31143 discloses a technique for detecting errors in data in order to identify whether or not data read from memory is an operation code. It is shown that a runaway prevention bit is added. Further, Japanese Patent Application Laid-Open No. 57-98047 discloses an error code detection function using redundant bits in the instruction code for detecting code errors.

[発明が解決しようとする課題] ところが、前者〈特開昭56−31143号公報〉にお
いては、付加する暴走防止ビットが多くなるとともに、
後者(特開昭57−98047M公報)においてはメモ
リのエラーは検出できるがコンピュータの暴走は検出で
きなかった。
[Problems to be Solved by the Invention] However, in the former (Japanese Unexamined Patent Publication No. 56-31143), as the number of runaway prevention bits increases,
In the latter method (Japanese Unexamined Patent Publication No. 57-98047M), memory errors can be detected, but computer runaway cannot be detected.

この発明の目的は、少ないビット数を付加するだけでメ
モリのエラーとコンピュータの暴走を検出できるエラー
検出システムを提供することにある。
An object of the present invention is to provide an error detection system that can detect memory errors and computer runaways by simply adding a small number of bits.

[課題を解決するための手段] この発明は、オペレーションコードとオペランドとで異
なるエラー検出符号を付加し、エラー検出回路がコンピ
ュータから出力されるオペレーションコードとオペラン
ドを区別する信号と、メモリから読み出された前記エラ
ー検出符号を含むデータとを照合してメモリのエラー及
びコンピュータの暴走を検出するようにしたエラー検出
システムをその要旨とするものである。
[Means for Solving the Problems] The present invention adds different error detection codes to operation codes and operands, and the error detection circuit uses a signal that distinguishes between the operation code and the operands output from the computer and a signal read from the memory. The gist of the present invention is an error detection system that detects memory errors and computer runaways by comparing data containing the error detection code that has been detected.

[作用] オペレーションコードとオペランドとで異なるエラー検
出符号が付加され、エラー検出回路がコンピュータから
出力されるオペレーションコードとオペランドを区別す
る信号と、メモリから読み出されたエラー検出符号を含
むデータとを照合してメモリのエラー及びコンピュータ
の暴走の検出を行なう。つまり、メモリから正しくデー
タが読めないというメモリのエラー、及び、コンピュー
タのプログラムカウンタが正しくアドレスを示さないと
いうコンピュータの暴走を検出する。
[Operation] Different error detection codes are added to the operation code and the operand, and the error detection circuit detects the signal that distinguishes the operation code and operand from the computer and the data containing the error detection code read from the memory. This is used to detect memory errors and computer runaways. That is, it detects memory errors in which data cannot be read correctly from memory, and computer runaways in which the computer's program counter does not indicate correct addresses.

[実施例] 以下、この発明を具体化した一実施例を図面に従って説
明する。
[Example] An example embodying the present invention will be described below with reference to the drawings.

本実施例のシステムにおいては、中央処理装置(以下、
CPUという)1とメモリ2に対しエラー検出回路とし
てのパリティ検出回路3が設けられるとともに、これら
はバス4を介して接続されている。このバス4はエラー
を検出するためのパリティビットを伝送するため、通常
のデータバスのビット幅よりも1ビット広くなっている
。CPU1からオペレーションコードとオペランドの読
み出しを区別するためのI F (I n5truct
ion  F−etch)信号5がパリティ検出回路3
に入力される。
In the system of this embodiment, the central processing unit (hereinafter referred to as
A parity detection circuit 3 as an error detection circuit is provided for a CPU 1 and a memory 2, and these are connected via a bus 4. Since this bus 4 transmits parity bits for detecting errors, it is one bit wider than the bit width of a normal data bus. IF (I n5truct
ion F-etch) signal 5 is the parity detection circuit 3
is input.

このIF信号5は、オペレーションコードフェッチサイ
クルの時に「1」となり、オペランドフェッチサイクル
の時にrOJとなる。
This IF signal 5 becomes "1" during the operation code fetch cycle, and becomes rOJ during the operand fetch cycle.

パリティ検出回路3はエラーを検出したことを示すため
の割込み信号(以下、INT信号という)6をCPU’
lに出力する。このINT信@6は、エラーなしのとき
にrOJとなり、エラーありのときに「1」となる。
The parity detection circuit 3 sends an interrupt signal (hereinafter referred to as INT signal) 6 to the CPU' to indicate that an error has been detected.
Output to l. This INT signal @6 becomes rOJ when there is no error, and becomes "1" when there is an error.

又、オペレーションコードにはパリティビットを含めた
全データのパリティが奇パリティとなるようにパリティ
ビットが付加されるとともに、オペランドにはパリティ
ビットを含めた全データのパリティが偶パリティとなる
ようにパリティビットが付加されている。そして、CP
U1はメモリ2からオペレーションコード、オペランド
を順次読み出して処理を進める。
Also, a parity bit is added to the operation code so that the parity of all data including the parity bit is odd parity, and a parity is added to the operand so that the parity of all data including the parity bit is even parity. Bits are added. And C.P.
U1 sequentially reads out operation codes and operands from memory 2 and proceeds with processing.

次に、オペレーションコードフェッチ時のエラー検出に
ついて説明する。パリティ検出回路3はメモリ2から読
み出されたパリティビットを含むデータとCPU1から
出力されるオペレーションコードフェッチサイクルを示
す■「信号5(=1)を入力する。そして、パリティ検
出回路3はこれらの信号の全パリティが偶であればエラ
ーなしと判断し、INT信号6をrOJとする。又、パ
リティ検出回路3はメモリ2から読み出されたデータと
I「信号5の全パリティが奇であれば、エラーありと判
断し、INT信号6を「1」とする。
Next, error detection when fetching an operation code will be explained. The parity detection circuit 3 inputs the data including the parity bit read from the memory 2 and the signal 5 (=1) indicating the operation code fetch cycle output from the CPU 1. If all the parities of the signal are even, it is determined that there is no error, and the INT signal 6 is set to rOJ.The parity detection circuit 3 also detects the data read out from the memory 2 and the data read out from the memory 2. For example, it is determined that there is an error and the INT signal 6 is set to "1".

CPU1はこの「1」であるINT信号6を入力して、
例外処理を開始する。尚、この際に、CPU1をリセッ
トするようにしてもよい。
The CPU 1 inputs this INT signal 6, which is "1", and
Start exception handling. Incidentally, at this time, the CPU 1 may be reset.

次に、オペランドフェッチ時のエラー検出について説明
する。パリティ検出回路3はパリティビットを含むデー
タとCPU1から出力されるオペランドフェッチサイク
ルを示すIF信@5(=0)を入力する。その結果、パ
リティ検出回路3はこれらの信号の全パリティが偶であ
ればエラーなしと判断し、INT信号6を「O」とする
。又、パリティ検出回路3はこれらの信号の全パリティ
が奇であれば、エラーありと判断し、INT信号6を「
1」とする。
Next, error detection during operand fetching will be explained. The parity detection circuit 3 receives data including a parity bit and an IF signal @5 (=0) indicating an operand fetch cycle output from the CPU 1. As a result, the parity detection circuit 3 determines that there is no error if all the parities of these signals are even, and sets the INT signal 6 to "O". Furthermore, if all the parities of these signals are odd, the parity detection circuit 3 determines that there is an error, and changes the INT signal 6 to "
1".

さて、具体的なエラーの発生を説明すると、まず、メモ
リ2からのデータ読み出し時に1ビツトのエラーが発生
した場合を考える。このメモリ2のエラーの場合(メモ
リ2からデータが正しく読めない場合〉、パリティ検出
回路3は上述したように奇パリティを検出し、エラーが
検出される。
Now, to explain the specific occurrence of an error, first consider the case where a 1-bit error occurs when reading data from the memory 2. In the case of an error in the memory 2 (when data cannot be read correctly from the memory 2), the parity detection circuit 3 detects odd parity as described above, and an error is detected.

次に、CPU1が暴走し、CPLJi内のプログラムカ
ウンタが暴走した場合を考える。
Next, consider a case where the CPU 1 goes out of control and the program counter in CPLJi goes out of control.

この場合、オペレーションコードフェッチ時に正しいオ
ペレーションコードアドレスを出力し、又、オペランド
フェッチ時に正しいオペランドアドレスを出力するとは
限らない。従って、オペレ−ジョンコードフェッチ時に
オペランドを読み出したりオペランドフェッチ時にオペ
レーションコードを読み出すということが発生する。
In this case, it is not always the case that the correct operation code address is output when fetching the operation code, and the correct operand address is not necessarily output when fetching the operand. Therefore, an operand is read when an operation code is fetched, and an operation code is read when an operand is fetched.

このCPU1の暴走時(CPUIのプログラムカウンタ
が正しくアドレスを示さない時)には、パリティ検出回
路3はメモリ2から読み出したパリティビットを含むデ
ータとCPUIから出力されるIF信@5を入力して、
これらの信号の全パリティが奇パリティであるとCPU
1の暴走を検出する。
When the CPU 1 runs out of control (when the CPU program counter does not indicate the correct address), the parity detection circuit 3 inputs the data including the parity bit read from the memory 2 and the IF signal @5 output from the CPU. ,
If all the parities of these signals are odd parity, the CPU
1 out of control is detected.

このように本実施例によれば、オペレーションコードと
オペランドとで異なるパリティ情報(エラー検出符号)
を付加し、パリティ検出回路(エラー検出回路)がCP
Lllから出力されるオペレーションコードとオペラン
ドを区別するIF信号5と、メモリ2から読み出された
パリティピットを含むデータとを照合してメモリ2のエ
ラー及びCPU1の暴走を検出するようにした。つまり
、メモリ2からデータが正しく読めないというメモリ2
のエラー、及び、CPUIのプログラムカウンタが正し
くアドレスを示さないというCPUIの暴走を検出する
ことができる。その結果、従来、特開昭56−3114
3@公報においては付加する暴走防止ピッ1〜が多くな
るとともに、特開昭57−98047@公報においては
コンピュータの暴走は検出できなかったが、本実施例で
は1ビツトのパリティ情報をデータに付加するとともに
若干のハードウェア(パリティ検出回路3〉を追加する
だけで、メモリ2のエラーとCPU1の暴走を検出する
ことができる。
In this way, according to this embodiment, different parity information (error detection code) is used between the operation code and the operand.
is added, and the parity detection circuit (error detection circuit)
An error in the memory 2 and a runaway in the CPU 1 are detected by comparing the IF signal 5 outputted from the Lll to distinguish between an operation code and an operand with data including parity pits read from the memory 2. In other words, memory 2 cannot read data correctly from memory 2.
It is possible to detect errors in the CPU and runaway of the CPU in which the program counter of the CPU does not indicate the correct address. As a result, conventionally, JP-A-56-3114
In JP-A-57-98047, computer runaway could not be detected, but in this embodiment, 1 bit of parity information is added to the data. At the same time, by simply adding some hardware (parity detection circuit 3), errors in the memory 2 and runaway of the CPU 1 can be detected.

尚、この発明は上記実施例に限定されるものではなく、
例えば、エラー検出符号としてハミング符号、ファイヤ
符号等のエラー検出、訂正符号を用いてもよい。
Note that this invention is not limited to the above embodiments,
For example, an error detection/correction code such as a Hamming code or a Fire code may be used as the error detection code.

[発明の効果] 以上詳述したようにこの発明によれば、少ないビット数
を付加するだけでメモリのエラーとコンピュータの暴走
を検出できる優れた効果を発揮する。
[Effects of the Invention] As described in detail above, according to the present invention, an excellent effect is achieved in that memory errors and computer runaways can be detected simply by adding a small number of bits.

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

図は実施例を説明するための全体システム図である。 1はCPU、2はメモ1ハ3はエラー検出回路としての
パリティ検出回路。
The figure is an overall system diagram for explaining the embodiment. 1 is a CPU, 2 is a memory 1, and 3 is a parity detection circuit as an error detection circuit.

Claims (1)

【特許請求の範囲】[Claims] 1、オペレーションコードとオペランドとで異なるエラ
ー検出符号を付加し、エラー検出回路がコンピュータか
ら出力されるオペレーションコードとオペランドを区別
する信号と、メモリから読み出された前記エラー検出符
号を含むデータとを照合してメモリのエラー及びコンピ
ュータの暴走を検出するようにしたエラー検出システム
1. Adding different error detection codes to the operation code and the operand, and causing the error detection circuit to output a signal output from the computer to distinguish between the operation code and the operand, and data containing the error detection code read from the memory. An error detection system that detects memory errors and computer runaways by comparing them.
JP1209140A 1989-08-10 1989-08-10 Error detecting system Pending JPH0371236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1209140A JPH0371236A (en) 1989-08-10 1989-08-10 Error detecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1209140A JPH0371236A (en) 1989-08-10 1989-08-10 Error detecting system

Publications (1)

Publication Number Publication Date
JPH0371236A true JPH0371236A (en) 1991-03-27

Family

ID=16567964

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1209140A Pending JPH0371236A (en) 1989-08-10 1989-08-10 Error detecting system

Country Status (1)

Country Link
JP (1) JPH0371236A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0962525A (en) * 1995-08-30 1997-03-07 Nec Ic Microcomput Syst Ltd Device and method for detecting program runaway

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54129948A (en) * 1978-03-31 1979-10-08 Nec Corp Data processor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54129948A (en) * 1978-03-31 1979-10-08 Nec Corp Data processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0962525A (en) * 1995-08-30 1997-03-07 Nec Ic Microcomput Syst Ltd Device and method for detecting program runaway

Similar Documents

Publication Publication Date Title
JPH0371236A (en) Error detecting system
JP2786215B2 (en) Restart processing control method
JPH03209523A (en) Detection system for error of instruction data
JPS60233743A (en) Fault detecting circuit of computer system
JPS59129995A (en) Storage device
JPH02297235A (en) Memory data protecting circuit
JPH0333939A (en) Microprocessor
JPH01100636A (en) Error control circuit
JPH0230060B2 (en)
JPH03233732A (en) Electronic computer
JPS61195432A (en) Parity check retry system for general purpose microprocessor
JPH0789324B2 (en) Information processing equipment
JPH0135369B2 (en)
JPS58115559A (en) Program overrun detecting circuit
JPH0797324B2 (en) Microprogram error correction circuit
JPS6385831A (en) Control circuit for microprocessor
JPS6083149A (en) Computer
JPS63150732A (en) Program running supervisory equipment
JPS62127944A (en) Information processor
JPS60169947A (en) Program abnormality detector
JPS62231340A (en) Computer
JPH08166891A (en) Fault tolerant computer system
JPS61139836A (en) Instruction control system of pipeline computer
JPH05289946A (en) Memory control system
JPS621049A (en) Memory access control system