JPH08153013A - Error detection circuit - Google Patents

Error detection circuit

Info

Publication number
JPH08153013A
JPH08153013A JP6296123A JP29612394A JPH08153013A JP H08153013 A JPH08153013 A JP H08153013A JP 6296123 A JP6296123 A JP 6296123A JP 29612394 A JP29612394 A JP 29612394A JP H08153013 A JPH08153013 A JP H08153013A
Authority
JP
Japan
Prior art keywords
data
retry
error
parity
majority decision
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.)
Withdrawn
Application number
JP6296123A
Other languages
Japanese (ja)
Inventor
Yuichi Fujiwara
裕一 藤原
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP6296123A priority Critical patent/JPH08153013A/en
Publication of JPH08153013A publication Critical patent/JPH08153013A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To shorten the response time while the reliability of data is improved by selecting the number of retry times sufficient for majority decision and executing retry for the number of times when a parity error is detected so as to execute majority decision. CONSTITUTION: A memory 1 reads data by the control of a control circuit 2. Read data is parity-checked in an error detection circuit 3. A parity error detection signal and read data are inputted to a retry control circuit. The retry control circuit 4 executes a retry processing n-times, more than three times, which is previously decided, when the parity error is detected in read data. Respective pieces of data and the error detection signals are inputted to a data holding circuit 5 through the retry control circuit 4 so as to hold them. When n-times of retry is finished, a majority decision circuit 6 decides the majority of data which is not error-detected among data held by the data holding circuit 5, and result data is outputted to CPU 7.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は誤り検出回路に関し、特
にデータのパリティエラーを検出するパリティエラー検
出回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error detection circuit, and more particularly to a parity error detection circuit for detecting a data parity error.

【0002】[0002]

【従来の技術】一般に、メモリ等からのリードデータの
エラーの有無を検出する場合、簡便な方法としてパリテ
ィチェックを行うパリティエラー検出方式がある。この
パリティチェックにより、パリティエラーが検出される
と、直ちにエラーフラグが生成されて上位装置であるC
PU等に報告が行われる。
2. Description of the Related Art Generally, there is a parity error detection method for performing a parity check as a simple method for detecting the presence or absence of an error in read data from a memory or the like. By this parity check, when a parity error is detected, an error flag is immediately generated and the host device C
Report to PU etc.

【0003】また、エラー検出されると、直ちに上位装
置へエラーの報告を行う代わりに、リトライ処理を行っ
て再度同一のメモリアドレスからリードデータを受ける
方式があり、特開平2−208874号公報に開示され
ている。
Further, there is a system in which, when an error is detected, instead of immediately reporting the error to the host device, a retry process is performed and read data is received again from the same memory address, as disclosed in Japanese Unexamined Patent Publication No. 2-208874. It is disclosed.

【0004】[0004]

【発明が解決しようとする課題】パリティチェックを1
回だけ行う方式では、エラーが固定障害ではなくノイズ
等の外的要因によるものである場合には、リトライを行
えばエラーは解消するにもかかわらず、単に1回のエラ
ー検出のみでシステムダウンが生じるという危険があ
る。
Parity check is 1
In the method of performing only once, when the error is not due to a fixed fault but due to an external factor such as noise, the error can be resolved by retrying, but the system goes down with only one error detection. There is a risk that it will occur.

【0005】リトライ処理を行う方式では、リトライ回
数が1回であることが多く、よってこれまた上述の問題
を完全に解決できない。また、ソフトウエア処理により
リトライ制御を行うと、エラー検出からリトライ結果が
出力されるまでの応答時間が長くなるという欠点があ
る。
In the method of performing the retry process, the number of retries is often one, and thus the above-mentioned problem cannot be completely solved. Further, if the retry control is performed by software processing, there is a disadvantage that the response time from error detection until the retry result is output becomes long.

【0006】更に、パリティチェック方式では、奇数パ
リティの場合、偶数ビットのエラーは検出できないの
で、仮にパリティエラーを検出した後に再び同一アドレ
スのデータをリトライ処理で読み出すだけでは信頼性に
欠けることになる。
Further, in the parity check method, even-numbered bit errors cannot be detected in the case of odd-numbered parity. Therefore, if a parity error is detected and data of the same address is read again by retry processing, the reliability will be insufficient. .

【0007】本発明の目的は、リトライ処理を用いてデ
ータの信頼性を向上させつつ応答時間を短くするように
した誤り検出回路を提供することである。
It is an object of the present invention to provide an error detection circuit which uses a retry process to improve the reliability of data and shorten the response time.

【0008】[0008]

【課題を解決するための手段】本発明による誤り検出回
路は、入力データのパリティエラーを検出するパリティ
エラー検出手段と、このパリティエラー検出手段による
パリティエラーの検出に応答して前記入力データの供給
元に対して予め定められた3回以上の所定回数だけ前記
入力データの供給を指示する指示手段と、この所定回数
の入力データの多数決をなす多数決手段とを含み、この
多数決手段の多数決結果を出力データとして導出するよ
うにしたことを特徴としている。
An error detecting circuit according to the present invention comprises a parity error detecting means for detecting a parity error of input data, and a supply of the input data in response to the detection of the parity error by the parity error detecting means. It includes an instruction means for instructing the supply of the input data a predetermined number of times of three times or more predetermined to the original, and a majority decision means for making a majority decision of the input data a predetermined number of times. The feature is that it is derived as output data.

【0009】[0009]

【作用】メモリなどからの入力データにパリティエラー
が検出されると、入力データの取込みを3回以上リトラ
イ処理し、この3回以上の取込みデータの多数決をと
る。この多数決結果による出力データを正しいデータと
して導出する。
When a parity error is detected in the input data from the memory or the like, the input data is retried three times or more and the majority of the acquired data is taken three or more times. The output data resulting from this majority decision is derived as correct data.

【0010】[0010]

【実施例】以下、図面を用いて本発明の実施例について
説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0011】図1は本発明の実施例のブロック図であ
る。メモリ1はメモリ制御回路2による制御によりデー
タリードが行われ、このリードデータはエラー検出回路
3においてパリティチェックがなされる。このエラー検
出回路3によるパリティエラー検出信号とリードデータ
とはリトライ制御回路4へ入力される。
FIG. 1 is a block diagram of an embodiment of the present invention. Data is read from the memory 1 under the control of the memory control circuit 2, and the read data is subjected to a parity check in the error detection circuit 3. The parity error detection signal from the error detection circuit 3 and the read data are input to the retry control circuit 4.

【0012】このリトライ制御回路4はリードデータに
パリティエラーが検出されると予め定められた3回路以
上のn回のリトライ処理を行うものであり、メモリ制御
回路2に対してこのリトライ処理指示が出される。よっ
て、メモリ制御回路2は同一のリードアドレスによるメ
モリアクセスをn回行うようになっている。
The retry control circuit 4 performs a retry process of n times or more when a parity error is detected in the read data. The retry process instruction is issued to the memory control circuit 2. Will be issued. Therefore, the memory control circuit 2 performs memory access by the same read address n times.

【0013】このn回のリトライによる各データとエラ
ー検出信号とをリトライ制御回路4を介してデータ保持
回路5へ入力して保持するようにする。n回のリトライ
が終了すると、多数決回路6はデータ保持回路5に保持
されているデータのうちエラー検出されなかったデータ
のみの多数決をとり、多数決結果データをCPU7へ出
力する。また、多数決回路6は多数決がとれなければ、
CPU7へエラー報告を行うようになっている。
Each data and the error detection signal by the retry of n times are input to the data holding circuit 5 via the retry control circuit 4 and held. When the retry of n times is completed, the majority circuit 6 takes the majority of only the data held in the data holding circuit 5 and no error is detected, and outputs the majority result data to the CPU 7. If the majority decision circuit 6 cannot take a majority decision,
An error is reported to the CPU 7.

【0014】図2はリトライ制御の動作フローチャート
である。メモリリードにおいて、パリティエラーが検出
されなければリードデータは正しいものとしてリトライ
処理はなされず、次のメモリリードがなされる。このメ
モリリードにおいてパリティエラーが検出されると(ス
テップ21)、同一アドレスのn回のメモリリードのリ
トライ処理が行われる(ステップ22)。
FIG. 2 is an operation flowchart of the retry control. In the memory read, if no parity error is detected, the read data is regarded as correct and retry processing is not performed, and the next memory read is performed. When a parity error is detected in this memory read (step 21), retry processing of memory read of the same address n times is performed (step 22).

【0015】これ等n回のリードデータの多数決がとら
れるが(ステップ23)、そのうちパリティエラーが検
出されたデータは多数決に参加されないようになってい
る。例えば、図3にn=5回のリトライ処理のデータと
パリティチェック結果とを示しており、偶数パリティと
すると、2回目のデータはパリティエラーであるので多
数決に入らない。1回目、3〜5回目の4つのデータが
多数決に参加することになり、結果として“0000”
なるデータは3回、“0110”なるデータは1回であ
るので、“0000”が正しいデータとして導出される
ことになる。
The majority of the read data is taken n times (step 23), but the data in which the parity error is detected is not allowed to participate in the majority vote. For example, FIG. 3 shows the data of the retry process of n = 5 times and the result of the parity check. If even parity is used, the data of the second time is a parity error and therefore the majority decision cannot be entered. The 4th data from the 1st and 3rd to 5th will participate in the majority vote, resulting in "0000".
Since the data of "0" is three times and the data of "0110" is once, "0000" is derived as correct data.

【0016】パリティエラーが多く生じて多数決がとれ
ない場合があるが、このときはCPU等の上位装置7に
対してエラー報告がなされて処理終了となる(ステップ
24,25)。
There are cases in which a large number of parity errors occur and a majority decision cannot be taken. At this time, an error report is made to the host device 7 such as a CPU and the processing ends (steps 24, 25).

【0017】[0017]

【発明の効果】本発明によれば、リトライ回数を多数決
がとれるに充分な回数(3回以上)に選定して、パリテ
ィエラーが検出されると、その回数だけリトライを行っ
て多数決をとるようにしてので、データの信頼性が著し
く向上し、また、全てハードウエアにて構成できるので
応答速度も大とすることができるという効果がある。
According to the present invention, the number of retries is selected to be a sufficient number (three or more) so that a majority decision can be taken, and when a parity error is detected, a retry is performed for that number of times to take a majority decision. Therefore, there is an effect that the reliability of the data is remarkably improved and the response speed can be increased because all the hardware can be configured.

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

【図1】本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】本発明の実施例の動作フロー図である。FIG. 2 is an operation flow chart of the embodiment of the present invention.

【図3】リトライ処理によるデータ、パリティ及び多数
決結果の例を示す図である。
FIG. 3 is a diagram showing an example of data, parity, and a majority decision result by a retry process.

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

1 メモリ 2 メモリ制御回路 3 エラー検出回路 4 リトライ制御回路 5 データ保持回路 6 多数決回路 7 CPU 1 memory 2 memory control circuit 3 error detection circuit 4 retry control circuit 5 data holding circuit 6 majority circuit 7 CPU

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 入力データのパリティエラーを検出する
パリティエラー検出手段と、このパリティエラー検出手
段によるパリティエラーの検出に応答して前記入力デー
タの供給元に対して予め定められた3回以上の所定回数
だけ前記入力データの供給を指示する指示手段と、この
所定回数の入力データの多数決をなす多数決手段とを含
み、この多数決手段の多数決結果を出力データとして導
出するようにしたことを特徴とする誤り検出回路。
1. A parity error detecting means for detecting a parity error of input data, and a predetermined number of times of three or more times predetermined for a source of the input data in response to detection of a parity error by the parity error detecting means. It is characterized in that it includes an instruction means for instructing the supply of the input data a predetermined number of times and a majority decision means for making a majority decision of the input data a predetermined number of times, and the result of majority decision of the majority decision means is derived as output data. Error detection circuit.
【請求項2】 前記多数決手段は、多数決がとれない場
合、上位装置に対してエラー報告を行うようにしたこと
を特徴とする請求項1記載の誤り検出回路。
2. The error detection circuit according to claim 1, wherein the majority decision means reports an error to a host device when a majority decision cannot be taken.
【請求項3】 前記入力データはメモリからの読出しデ
ータであり、前記指示手段は、前記メモリに対して同一
アドレスのデータ読出し所定回数指示するよう構成され
ていることを特徴とする請求項1または2記載の誤り検
出回路。
3. The input data is read data from a memory, and the instructing means is configured to instruct the memory to read data at the same address a predetermined number of times. 2. The error detection circuit described in 2.
JP6296123A 1994-11-30 1994-11-30 Error detection circuit Withdrawn JPH08153013A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6296123A JPH08153013A (en) 1994-11-30 1994-11-30 Error detection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6296123A JPH08153013A (en) 1994-11-30 1994-11-30 Error detection circuit

Publications (1)

Publication Number Publication Date
JPH08153013A true JPH08153013A (en) 1996-06-11

Family

ID=17829442

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6296123A Withdrawn JPH08153013A (en) 1994-11-30 1994-11-30 Error detection circuit

Country Status (1)

Country Link
JP (1) JPH08153013A (en)

Similar Documents

Publication Publication Date Title
JPH08153013A (en) Error detection circuit
JP2806856B2 (en) Diagnostic device for error detection and correction circuit
JPH05165734A (en) Fixed fault diagnostic device for main storage device
JPS62226353A (en) Storage device with ras circuit
JPH05108385A (en) Error correction circuit diagnostic system
JPS60214043A (en) Pipeline control circuit
JPH03189736A (en) Fault detecting system for selection circuit
JPH0334708B2 (en)
JP2924732B2 (en) Self-diagnosis method for information processing device
JPH09311825A (en) Rom monitoring circuit
JPS6261974B2 (en)
JPS6155744A (en) Recovery processing of errors
JPS6161427B2 (en)
JPH05224968A (en) Data check system
JPS6314244A (en) Error processing circuit
JPH04109340A (en) False fault generating circuit
JPH01205357A (en) System for testing memory error detecting circuit
JPS6142304B2 (en)
JPH0240727A (en) Error detecting and correcting device
JPH04239923A (en) Error recovery system for soft visible register
JPH05100878A (en) Selection circuit error detection system
JPS6077246A (en) Data processor
JPH064412A (en) Local memory inspecting/correcting circuit
JPH01171031A (en) Trouble detecting circuit
JPH0466880A (en) Trouble shooting device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020205