JPH03186937A - Cpu bus data diagnostic device - Google Patents

Cpu bus data diagnostic device

Info

Publication number
JPH03186937A
JPH03186937A JP1326877A JP32687789A JPH03186937A JP H03186937 A JPH03186937 A JP H03186937A JP 1326877 A JP1326877 A JP 1326877A JP 32687789 A JP32687789 A JP 32687789A JP H03186937 A JPH03186937 A JP H03186937A
Authority
JP
Japan
Prior art keywords
crc
data
bus
output
cpu
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
JP1326877A
Other languages
Japanese (ja)
Inventor
Shigeo Kusunoki
楠 繁雄
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 JP1326877A priority Critical patent/JPH03186937A/en
Publication of JPH03186937A publication Critical patent/JPH03186937A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To detect the error of data fetched in CPU by inspecting the same data as that which CPU fetches. CONSTITUTION:The output of a CRC calculation part 12 and the output of a CRC storage part 14 are inputted to respective inputs of a comparison part 15 with two inputs and are compared. When they do not coincide, the comparison part 15 outputs an error signal 19. The update of a program counter in an instruction processing part 11, which shows the address of a data memory 17 is stopped by the error signal 19. When a subsequent machine cycle starts with such a state, the address of the data memory 17 which is the same as that where the error occurs, is outputted from the program counter. Thus, a retry as against the occurrence of the error is executed and the error of data fetched in CPU is detected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、CPUバスデータ診断装置、特に、CPUに
内蔵しハスデータに誤りを検出した場合にも再度同じハ
スデータのフェッチを可能としたCPUバスデータ診断
装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a CPU bus data diagnostic device, particularly a CPU bus data diagnostic device that is built into a CPU and is capable of fetching the same lotus data again even when an error is detected in the lotus data. The present invention relates to a data diagnosis device.

(技術環境) 近年のマイクロプロセッサは、その機能かかってのミニ
コンピユータを上回るものが開発されてきており、この
ようなマイクロプロセッサが達成しなければならない作
業はより高度になっている。
(Technical Environment) In recent years, microprocessors have been developed that surpass minicomputers in terms of functionality, and the tasks that these microprocessors must accomplish have become more sophisticated.

また、その利用は依然としてメカトロニクスの分野が多
く、非常に厳しい雑音環境での高信頼性動作が要求され
てきている。
Moreover, their use is still mostly in the field of mechatronics, where highly reliable operation in very harsh noise environments is required.

従って、それらのシステム設計時には、雑音の発生を押
さえる努力が必要となると同時に、マイクロプロセッサ
自身にも雑音に強い設計が施されることが望まれる。
Therefore, when designing these systems, it is necessary to make efforts to suppress the generation of noise, and at the same time, it is desirable that the microprocessor itself be designed to be resistant to noise.

〔従来の技術〕[Conventional technology]

従来の技術としては、メモリデータにバリテイチエツク
を施すものかある。
As a conventional technique, there is one that performs a validity check on memory data.

第2図に従来の技術の一例であるハリティチエツク部4
きのメモリの構成を示す。
Fig. 2 shows an example of a conventional technology, a harness check section 4.
The configuration of the current memory is shown below.

図に於て、データバス5を介してCPUIとメモリとハ
リティチエツク部4か互いに接続されている。メモリに
は、データ用の他にパリティ用メモリが用意されている
In the figure, a CPU, a memory, and a quality check unit 4 are connected to each other via a data bus 5. In addition to data memory, parity memory is also provided.

動作を説明する。Explain the operation.

予め正しいハリティをハリティ用メモリ3に書き込んで
おく。ハスの方向がCPUIからメモリのときは、パリ
ティチエツク部4はパリティを計算してパリティ用メモ
リ3に書き込む。
The correct harness is written in the harrity memory 3 in advance. When the direction of the lotus is from the CPUI to the memory, the parity check section 4 calculates parity and writes it into the parity memory 3.

逆にバスの方向がメモリからCPU ]のときは、バス
上のデータからパリティを計算し、同時にパリティ用メ
モリ3からバリデイを読み出し、この両者を比較し、不
一致ならばエラー信号を出力する。
Conversely, when the bus direction is from memory to CPU, parity is calculated from the data on the bus, and at the same time, validity is read from parity memory 3, the two are compared, and if they do not match, an error signal is output.

このエラー信号は、CPUIに対し割り込みを発生させ
る。その後、割り込み処理プログラムにより、再度同じ
バスデータのフェッチを行う。
This error signal generates an interrupt to the CPUI. After that, the interrupt processing program fetches the same bus data again.

〔発明か解決しようとする課題〕[Invention or problem to be solved]

上述した従来のバスデータ診断装置は、CPUの外側に
取り付けられているので、CPUがフェッチしたデータ
の誤りを検出出来ないと言う欠点がある。また、同じ<
cpuの外側に取り付けられているので、再度同じハス
データのフェッチを行うためには、プログラムを作成す
る手間がかかると言う欠点があった。
The conventional bus data diagnostic device described above has the disadvantage that it cannot detect errors in data fetched by the CPU because it is installed outside the CPU. Also, the same <
Since it is attached outside the CPU, it has the disadvantage that it takes time and effort to create a program to fetch the same lotus data again.

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

本発明のCPUバスデータ診断装置は、データバスによ
り互いに接続された命令処理部、とCRC計算計算計該
CRC計算計算計算結果を一時的に記憶しCR,Cハス
に出力するか、またはCR,CバスからのCRC信号を
一時的に記憶するCRC記憶部と、前記CRC計算計算
計力を第1の入力とし、前記CRC記憶部の出力を第2
の入力として、この2入力を比較し、一致していなけれ
ばエラー信号を出力する比較器と、前記命令処理部の内
部にあって、該比較器の出力するエラー信号により、そ
の値の更新を停止されるプログラムカウンタとを含んで
構成される。
The CPU bus data diagnosis device of the present invention includes an instruction processing unit and a CRC calculation unit connected to each other by a data bus, and a CRC calculation unit that temporarily stores the CRC calculation calculation result and outputs it to the CR, C bus, or the CR, C bus. A CRC storage section that temporarily stores the CRC signal from the C bus and the CRC calculation calculation unit are used as first inputs, and the output of the CRC storage section is used as a second input.
As an input, there is a comparator that compares these two inputs and outputs an error signal if they do not match, and a comparator that is located inside the instruction processing section and updates its value using the error signal output from the comparator. and a program counter to be stopped.

発明の詳細な説明 〔実施例〕 次に本発明の実施例について、図面を参照して詳細に説
明する。
Detailed Description of the Invention [Embodiments] Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

データバス10により互いに接続された命令処理部11
とCRC計算計算部上2CRC計算計算部上2算結果を
一時的に記憶しCRCバス13に出力するか、またはC
RCバス13からのCRC信号を一時的に記憶するCR
C記憶部14と、CRC計算計算部上2力を第1の入力
とし、記憶部14の出力を第2の入力として、この2入
力の一致を比較し、一致していなければエラー信号を出
力する比較部15と、命令処理部11の内部にあって、
比較部15の出力するエラー信号により、その値の更新
を停止されるプログラムカウンタ16とから構成される
Instruction processing units 11 connected to each other by a data bus 10
and CRC calculation calculation section Upper 2 CRC calculation calculation section Upper 2 calculation results are temporarily stored and output to the CRC bus 13, or
CR that temporarily stores the CRC signal from the RC bus 13
The C storage unit 14 and the CRC calculation unit use the upper two inputs as the first input, and the output of the storage unit 14 as the second input, and compare the two inputs to see if they match. If they do not match, output an error signal. Inside the comparison unit 15 and the instruction processing unit 11,
The program counter 16 is configured to stop updating its value in response to an error signal output from the comparator 15.

また、データバス10はデータメモリ17に、=5 CRCバス13はCRCメモリ18にそれぞれ接続され
ている。
Further, the data bus 10 is connected to a data memory 17, and the =5 CRC bus 13 is connected to a CRC memory 18.

次に動作を説明する。Next, the operation will be explained.

CRCメモリ18には予め正しいCRCデータが書き込
まれている。データバス10の方向が、命令処理部11
からメモリの方向のときは、命令処理部11から出力さ
れるデータに対して、CRC計算計算部上2RCを計算
しその結果をCRCパス13を経由してCRCメモリ1
8に書き込む。
Correct CRC data is written in the CRC memory 18 in advance. The direction of the data bus 10 is
When the direction is from to memory, 2RC is calculated on the CRC calculation calculation unit for the data output from the instruction processing unit 11, and the result is sent to the CRC memory 1 via the CRC path 13.
Write in 8.

データバス10の方向が逆のとき、即ち、データメモリ
17から命令処理部11の方向のとき、データバス10
上のデータは一つのマシンサイクルで命令処理部11と
CRC計算計算部上2方に入れられる。
When the direction of the data bus 10 is reversed, that is, from the data memory 17 to the instruction processing unit 11, the data bus 10
The above data is input into the instruction processing section 11 and the CRC calculation section in one machine cycle.

CRC計算計算部上2、このデータに対するCRCを計
算する。同時にCRCメモリ18から読み出されたCR
CデータはCRC記憶部14に記憶される。
CRC Calculation Calculation Unit 2 calculates the CRC for this data. CR read out from CRC memory 18 at the same time
The C data is stored in the CRC storage section 14.

CRC計算計算部上2力及びCRC記憶部14一 の出力は2入力の比較部15のそれぞれの入力に入力さ
れ、比較される。
The outputs of the CRC calculation unit and the CRC storage unit 14 are input to respective inputs of a two-input comparison unit 15 and compared.

一致しなけれは、比較部]5はエラー信号1つを出力す
る。
If they do not match, the comparator 5 outputs one error signal.

命令処理部]1の内部にあってデータメモリ17のアド
レスを示ずブロクラムカウンタは、このエラー信号19
によりその更新か停止される。
A block counter that does not indicate the address of the data memory 17 in the instruction processing unit] 1 receives this error signal 19.
The update will be stopped.

このままの状態て、次のマシンサイクルが始まると、エ
ラーを起こしたのと同しデータメモリ17のアドレスが
ブロクラムカウンタから出力される。このことにより、
エラー発生に対するり)・ライが実行される。
When the next machine cycle starts in this state, the address of the same data memory 17 that caused the error is output from the block counter. Due to this,
When an error occurs, ri) is executed.

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

本発明のCP Uハスデータ診断装置は、CPUがフェ
ッチしてデータとおなしものについて検査しているのて
CPUがフェッチしたデータの誤りを検111てきると
言う効果がある。
The CPU data diagnostic device of the present invention is effective in detecting errors in the data fetched by the CPU since the CPU fetches the data and inspects the data.

また、ハードウェアによりプログラムカウンタを直接制
御できるのて、再度同じハスデータのフェッチを行うた
めのプログラム作成は必要ないと言う効果かある。
Furthermore, since the program counter can be directly controlled by hardware, there is no need to create a program to fetch the same lotus data again.

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

第1図は本発明の一実施例を示すブロック図、第2図は
従来の一例を示すブロック図である。 ]O・・データバス、]1・・・命令処理部、]2・・
・CRC計算部、]3・・・CRCハス、14・・・C
R,C記憶部、1−5・・・比較部、16・・・プログ
ラムカウンタ、17・・・データメモリ、18・・・C
R,Cメモリ、19・・・エラー信号。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a block diagram showing a conventional example. ]O...Data bus, ]1...Instruction processing unit, ]2...
・CRC calculation section, ]3...CRC lotus, 14...C
R, C storage section, 1-5... Comparison section, 16... Program counter, 17... Data memory, 18... C
R, C memory, 19...Error signal.

Claims (1)

【特許請求の範囲】[Claims] データバスにより互いに接続された命令処理部と巡回符
号(以下CRCと略す)計算部と、該CRC計算部の計
算結果を一時的に記憶しCRCバスに出力するかまたは
CRCバスからのCRC信号を一時的に記憶するCRC
記憶部と、前記CRC計算部の出力を第1の入力とし前
記CRC記憶部の出力を第2の入力としてこの2入力を
比較し一致していなければエラー信号を出力する比較器
と、前記命令処理部の内部にあって該比較器の出力する
エラー信号によりその値の更新を停止されるプログラム
カウンタとを含むことを特徴とするCPUバスデータ診
断装置。
An instruction processing unit and a cyclic code (CRC) calculation unit are connected to each other by a data bus, and the calculation results of the CRC calculation unit are temporarily stored and output to the CRC bus, or the CRC signal from the CRC bus is CRC to be temporarily stored
a storage unit, a comparator that takes the output of the CRC calculation unit as a first input and the output of the CRC storage unit as a second input, compares these two inputs, and outputs an error signal if they do not match; and the instruction. A CPU bus data diagnostic device comprising: a program counter located inside a processing section and whose value is stopped from being updated in response to an error signal output from the comparator.
JP1326877A 1989-12-15 1989-12-15 Cpu bus data diagnostic device Pending JPH03186937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1326877A JPH03186937A (en) 1989-12-15 1989-12-15 Cpu bus data diagnostic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1326877A JPH03186937A (en) 1989-12-15 1989-12-15 Cpu bus data diagnostic device

Publications (1)

Publication Number Publication Date
JPH03186937A true JPH03186937A (en) 1991-08-14

Family

ID=18192737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1326877A Pending JPH03186937A (en) 1989-12-15 1989-12-15 Cpu bus data diagnostic device

Country Status (1)

Country Link
JP (1) JPH03186937A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012174198A (en) * 2011-02-24 2012-09-10 Denso Corp Abnormality detection device and abnormality detection program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012174198A (en) * 2011-02-24 2012-09-10 Denso Corp Abnormality detection device and abnormality detection program

Similar Documents

Publication Publication Date Title
US8095825B2 (en) Error correction method with instruction level rollback
EP0461792B1 (en) Master/slave checking system
US5987585A (en) One-chip microprocessor with error detection on the chip
KR102926637B1 (en) Checksum generation
US20070067677A1 (en) Program-controlled unit and method
JPH03186937A (en) Cpu bus data diagnostic device
JPH03186956A (en) Cpu bus data diagnosis device
JPH0225937A (en) Detecting system for cpu runaway
JP2591684B2 (en) Execution confirmation device
JP2559531B2 (en) Redundant system error check circuit
JP2546915B2 (en) Integrated circuit
JPH04235638A (en) Microprocessor provided with prefetching function
JPH05289946A (en) Memory control system
JPH01171033A (en) Arithmetic unit
JPS62284438A (en) Locked processor system
JPS63170739A (en) Branch forecast test system
JP3156249B2 (en) Diagnosis method of fault detection circuit
JPH02245941A (en) Address inspection device
JPH02190943A (en) Pseudo fault generator
JPS6383839A (en) Device preventing for malfunction of microcomputer
JPH0452734A (en) Exception detecting circuit for general-purpose register
JPH0424836A (en) Microprocessor
JPH0498326A (en) Microprocessor
JPH07105000A (en) Fetch error control device
JPH02307134A (en) Detecting method for program abnormality