JPS5845738B2 - Error detection/correction device - Google Patents
Error detection/correction deviceInfo
- Publication number
- JPS5845738B2 JPS5845738B2 JP52146068A JP14606877A JPS5845738B2 JP S5845738 B2 JPS5845738 B2 JP S5845738B2 JP 52146068 A JP52146068 A JP 52146068A JP 14606877 A JP14606877 A JP 14606877A JP S5845738 B2 JPS5845738 B2 JP S5845738B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- circuit
- error
- bit
- correction
- 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
Links
Landscapes
- Detection And Correction Of Errors (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Description
【発明の詳細な説明】
本発明は、例えば記憶装置からの読出しデータに対しそ
のエラー検出と訂正を行なう装置に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an apparatus for detecting and correcting errors in data read from, for example, a storage device.
最近の電子計算機では、主記瞳装置から読出されたデー
タに対し、2ビツト以上(以下これを多ビットと称する
)0)エラー〇)っ・突出と1ビツトエラーの訂正を行
なうのが普通となっている。In recent electronic computers, it is common practice to correct 2 or more bits (hereinafter referred to as multi-bit) errors, 0), and 1-bit errors on data read out from the main pupil unit. ing.
第1図は多ビツトエラー検出と1ビツトエラーの訂正を
行なうようにした記憶装置とその周辺を示すブロック図
である。FIG. 1 is a block diagram showing a storage device and its surroundings that detect multi-bit errors and correct 1-bit errors.
8バイトのデータ長を扱うものとすると、演算処理装置
の如き外部の装置から与えられた8バイトのデータ1と
8ビツトのパリティ2はハミングコード発生回路3に与
えられ、ここでパリティ2の代りに8ビツトのシンドロ
ーム4が作成され、データ1とシンドローム4とが書込
みデータとして記憶装置5に与えられる。Assuming that 8-byte data length is to be handled, 8-byte data 1 and 8-bit parity 2 given from an external device such as an arithmetic processing unit are given to the Hamming code generation circuit 3, where parity 2 is replaced by 8-byte data 1 and 8-bit parity 2. An 8-bit syndrome 4 is created, and data 1 and syndrome 4 are given to the storage device 5 as write data.
また記憶装置5から読出された8バイト0)データ6と
8ビツトのシンドローム7はハミングコード検査回路8
に与えられここでエラーの検出が行なわれる。Furthermore, the 8-byte data 6 and the 8-bit syndrome 7 read from the storage device 5 are sent to the Hamming code inspection circuit 8.
Error detection is performed here.
ハミングコード検査回路8はエラーがあるか否か、また
エラーの内容に応じたエラーコード9を発生する。The Hamming code checking circuit 8 determines whether there is an error or not, and generates an error code 9 depending on the content of the error.
このエラーコード9と読出されたデータ6はエラー訂正
回路10に与えられ、ここでデータ6はそれに1ビツト
のエラーがある場合にはエラーコード9に従って訂正さ
れる。This error code 9 and the read data 6 are applied to an error correction circuit 10, where the data 6 is corrected according to the error code 9 if it has a 1-bit error.
2ビツト以上のエラーの場合には訂正は不可能であり別
な処理に移る。In the case of an error of 2 bits or more, correction is impossible and another process is started.
エラー訂正回路10はさらに読出したデータ6あるいは
それを訂正したデータに基いて8ビツト0パリテイを作
成し、データ6とパリティ11を外部の装置へ送出する
。The error correction circuit 10 further creates 8-bit 0 parity based on the read data 6 or the corrected data, and sends the data 6 and parity 11 to an external device.
なお0内の数値はビット数を示す。Note that the number within 0 indicates the number of bits.
さて以上の構成は、記憶装置5の誤動作に対処するため
のものであるが、ハミングコード発生回路3、ハミング
コード検査回路8、エラー訂正回路10等の周辺回路が
故障した場合、外部へ送出するデータの保証はできなく
なる。The above configuration is for dealing with malfunctions of the storage device 5, but if the peripheral circuits such as the Hamming code generation circuit 3, Hamming code inspection circuit 8, and error correction circuit 10 fail, the data is sent to the outside. Data cannot be guaranteed.
例えば、ハミングコード発生回路3が故障した場合それ
がハミングコード検査回路8において多ビツトエラーと
検出されれば、データの訂正はしないで直ちに別な処理
に移るので問題はないがもしこれが1ビツトエラーとし
て検出されたなら、正しいデータを誤って訂正してしま
うことになる。For example, if the Hamming code generation circuit 3 malfunctions and the Hamming code inspection circuit 8 detects it as a multi-bit error, there is no problem because the data is not corrected and the process immediately moves on to another process, but if it is detected as a 1-bit error. If this happens, correct data will be incorrectly corrected.
この結果、外部の装置は記憶装置の内容とは異なったデ
ータを処理することになり、データ処理に重大な支障を
きたすことになる。As a result, the external device will process data different from the contents of the storage device, causing a serious problem in data processing.
そこで本発明の第1の目的は、エラー検出訂正機能を遂
行するための回路の故障により、本来訂正不可能なエラ
ーに対し誤って訂正することを防ぐエラー検出、訂正装
置を提供することにある。Therefore, a first object of the present invention is to provide an error detection and correction device that prevents errors that are originally uncorrectable from being erroneously corrected due to a failure of a circuit for performing the error detection and correction function. .
また本発明の第2の目的は、前記の如きエラー検出、訂
正装置を従来のものに比し大幅な回路の追加なしに実現
できるようにすることにある。A second object of the present invention is to make it possible to realize the above-mentioned error detection and correction device without adding a large amount of circuitry compared to conventional devices.
本発明では、エラー検出、訂正機能を遂行するために設
けられるコード発生回路とコード検査回路の少なくとも
一方を改良する。The present invention improves at least one of a code generation circuit and a code check circuit provided to perform error detection and correction functions.
コード発生回路は、エラー検出と訂正の対象となる系に
与えられるデータに基いてエラー検出と訂正のためのコ
ードを作成するものである。The code generation circuit generates a code for error detection and correction based on data given to a system to be detected and corrected.
またコード検査回路は、前記系からのデータとこのデー
タとともに得られる前記コードに基いてデータに対する
エラー検出と訂正を表示する情報を作成するものである
。The code checking circuit also creates information indicating error detection and correction for the data based on the data from the system and the code obtained with this data.
本発明に従えば、これらの少なくとも一方はその全部で
はないが、少なくともその回路の部分的故障がコード検
査回路においてエラー訂正可能なエラーと判定される部
分について2重化され、両者の出力を比較する手段が設
けられる。According to the present invention, at least one of these circuits is duplicated for at least a portion where a partial failure of the circuit is determined to be an error that can be corrected in the code inspection circuit, and the outputs of the two are compared. A means is provided to do so.
このような構成にしておけば訂正可能なエラーについて
は2重に判定していることになり、誤って正しいデータ
を訂正してしまうようなことは事実上なくなる。With this configuration, correctable errors are double-judged, and correct data is virtually never corrected by mistake.
(確率は非常に小さい)従って信頼性の高いエラー検出
。(probability is very small) thus reliable error detection.
訂正装置を得ることができる。また回路が2重化される
部分は一部であり、低コストなエラー検出。You can get a correction device. In addition, only a portion of the circuit is duplicated, allowing for low-cost error detection.
訂正装置を得ることができる。以下本発明の一実施例に
ついて説明する。You can get a correction device. An embodiment of the present invention will be described below.
ハミングコード発生回路の具体的な構成は次の通りであ
る。The specific configuration of the Hamming code generation circuit is as follows.
データを8バイト−64ビツト、シンドロームを8ビツ
ト、シンドロームの各ビット5o−87は第2図のよう
にデータ64ビツトのうちの[一分を排他的論理和して
得るものとする。The data is 8 bytes - 64 bits, the syndrome is 8 bits, and each bit 5o-87 of the syndrome is obtained by exclusive ORing one part of the 64 bits of data as shown in FIG.
先ずバイトの各々に対応して4個Qつ素データPim(
iは0〜7までのバイト位置、mはO〜3を示す)を作
成し、さらにこの素データを使用してシンドロームを作
成する。First, four Q element data Pim(
i is a byte position from 0 to 7, m is a byte position from 0 to 3), and this raw data is used to create a syndrome.
第3図は素データPimの作成回路を示し、図において
PGはこの分野でよく知られている偶数パリティ発生器
である。FIG. 3 shows a circuit for generating raw data Pim, in which PG is an even parity generator well known in this field.
つまり、データを構成するビットをDij(iは0〜7
のバイト位置、JはO〜7のビット位置を示す)とする
と、
Pi□=DiO■Di、■Di2■D s 3■Di4
■D t 5■D l 6■Di7
Pi1=Di4■Di5■D+6■Di7P I 2
=D 12■D t 3■D i 6■D t 7P
i3 =D t 1■D t 5■D i5■D r
7(但し、■は排他的論理和を示す)
となる。In other words, the bits constituting the data are Dij (i is 0 to 7
, and J indicates the bit position from O to 7), then Pi□=DiO■Di, ■Di2■D s 3■Di4
■D t 5 ■D l 6 ■Di7 Pi1=Di4■Di5■D+6■Di7P I 2
=D 12■D t 3■D i 6■D t 7P
i3 =D t 1■D t 5■D i5■D r
7 (However, ■ indicates exclusive OR).
第4図は素データを使用してシンドロームS。Figure 4 shows syndrome S using raw data.
〜S7を作成する回路を示し、図においてPGは偶数パ
リティ発生器である。~S7 is shown, in which PG is an even parity generator.
シンドロームビットはそれぞれ
SO””P30■P40■P50■IF’cto■P7
0S1=P00■P10■P20■P60■P70S2
=P10■P20■P40■P50
S3=Poo■P20■P30■P50■P70s4:
P01■P11■P、21■P31■P41■P51
■P61■P7、
s5= P02■P12■P22■P32■P42■P
52■P6□■P72
s6= P03■P13■P23■P33■P43■P
53■P63■P73
s7= P00■P10■P20■P30■P40■P
、。The syndrome bits are SO””P30■P40■P50■IF'cto■P7
0S1=P00■P10■P20■P60■P70S2
=P10■P20■P40■P50 S3=Poo■P20■P30■P50■P70s4:
P01■P11■P, 21■P31■P41■P51
■P61■P7, s5= P02■P12■P22■P32■P42■P
52■P6□■P72 s6= P03■P13■P23■P33■P43■P
53■P63■P73 s7= P00■P10■P20■P30■P40■P
,.
■pao■P70■So■S1■S2■S3■S4■S
5■S6
となる。■pao■P70■So■S1■S2■S3■S4■S
5■S6 becomes.
次にハミングコード検査回路の具体的な構成は次の通り
である。Next, the specific configuration of the Hamming code inspection circuit is as follows.
8バイトの読出しデータに対しハミングコード発生回路
の場合と同様にバイトの各々に対応して4個の素データ
Pimを作成し、この素データと読出されたシンドロー
ムS。For 8 bytes of read data, four pieces of raw data Pim are created corresponding to each byte as in the case of the Hamming code generation circuit, and this raw data and the read syndrome S are generated.
−87とを使用してエラーコードE。-87 and error code E.
−E7を作成する。つまり
Eo−8o■P30■P40■P50■pao■P7゜
El−81■POO■PIO■P20■pao■P70
E2−82■PIQ■P20■P40■P50E3−8
3■P00■P20■P30■P50■P70E4=
S4■P01■pH■P21■P31■P4、■P51
■P61■P71
E5=S5■P02■P12■P22■P32■P42
■P52■P62■P72
E6=S6■P03■P13■P23■P33■P43
■P53■P63■P73
E7=S7■P00■P1o■P20■P30■P40
■P50■pao■P70■So■S1■S2■S3■
S4■85の86
となり、読出されたデータにより作成したシンドローム
ビットと読出されたシンドロームビットが一致する場合
対応するエラーコードビットは“0“で、不一致の場合
は1″となる。-Create E7. In other words, Eo-8o■P30■P40■P50■pao■P7゜El-81■POO■PIO■P20■pao■P70
E2-82■PIQ■P20■P40■P50E3-8
3■P00■P20■P30■P50■P70E4=
S4■P01■pH■P21■P31■P4,■P51
■P61■P71 E5=S5■P02■P12■P22■P32■P42
■P52■P62■P72 E6=S6■P03■P13■P23■P33■P43
■P53■P63■P73 E7=S7■P00■P1o■P20■P30■P40
■P50■pao■P70■So■S1■S2■S3■
If the syndrome bit created from the read data matches the syndrome bit read out, the corresponding error code bit becomes "0", and if they do not match, it becomes "1".
エフ−コードが全て“O“ならば読出されたデータにエ
ラーがないと判定される。If all the F-codes are "O", it is determined that there is no error in the read data.
E7が“1“でEo−E3が第1表のようになっている
と1ビツトエラーと判定され、この場合にはE。If E7 is "1" and Eo-E3 is as shown in Table 1, it is determined that there is a 1-bit error, and in this case, E.
−E3で示されたバイトの中の第2表のE4〜E6で示
されたビットがエラーであると判定され、このビットを
反転することによって訂正が行なわれる。The bits designated E4-E6 in Table 2 in the byte designated -E3 are determined to be in error, and correction is made by inverting this bit.
またエラーコードが第3表のようになっていると、それ
ぞれ表に示されるシンドローム0) 1ビツトエラーと
判定される。Further, if the error code is as shown in Table 3, it is determined that the syndrome 0) or 1 bit error shown in the table is present.
この場合、データにエラーはないので訂正は行なわれな
い。In this case, since there is no error in the data, no correction is performed.
Eo−E3が第1表及び第3表に示されたコード以外の
場合、及びE7が0“でかつE。If Eo-E3 is a code other than those shown in Tables 1 and 3, and E7 is 0'' and E.
−E6が全てOでない場合は多ビツトエラーと判定され
る。If -E6 is not all O, it is determined that there is a multi-bit error.
次にハミングコード発生回路とハミングコード検査回路
の誤動作について考えてみる。Next, let's consider malfunctions of the Hamming code generation circuit and Hamming code inspection circuit.
先ずハミングコード発生回路の誤動作において素データ
Pimを作成する回路のうちのPio系が故障したとす
ると、第5図の如くシンドロームビットが誤り、読出し
時にエラーコードにより1ビツトエラーあるいは多ビツ
トエラーと判定される。First, if the PIO system of the circuit that creates the raw data Pim malfunctions due to a malfunction in the Hamming code generation circuit, the syndrome bit will be erroneous as shown in Figure 5, and upon reading, it will be determined that it is a 1-bit error or a multiple-bit error based on the error code. .
なおこの表図において、×印は誤動作を示す。またPi
l 、pi2. Pig系が故障したとすると、それぞ
れシンドロームビットS4とS7.S5とS7゜S6と
S7が誤り、エラーコードは“00001001″“0
0000101”、“00000011″となっていず
れもシンドロームビットの1ビツトエラーと判定される
。Note that in this table, an x mark indicates a malfunction. Also Pi
l, pi2. If the Pig system fails, syndrome bits S4 and S7. S5 and S7゜S6 and S7 are wrong, error code is “00001001” “0”
0000101" and "00000011", both of which are determined to be 1-bit errors of syndrome bits.
次にシンドロームビットS。〜S7を作成する回路のS
。Next is Syndrome Bit S. ~ S of the circuit that creates S7
.
−87系が故障したとすると、それぞれシンドロームビ
ットS。-If the 87 series fails, each syndrome bit S.
とS7、S1トS7、S2とS7、S3とS7、S4と
S7、S、とS7、S6とS7、S7が誤り、エラーコ
ードは10000001″、“01000001”
“’00100001’“00010001” ”0
0001001”“0000010−1″、“0000
0011″、“oooooooi”となっていずれもシ
ンドロームビットの1ビツトエラーと判定される。and S7, S1 and S7, S2 and S7, S3 and S7, S4 and S7, S, and S7, S6 and S7, S7 are wrong, error code is 10000001", "01000001"
“'00100001’“00010001” ”0
0001001” “0000010-1” “0000
0011" and "ooooooooi", both of which are determined to be 1-bit errors of syndrome bits.
次にハミングコード検査回路の誤動作において、素デー
タPr□) P’+11 Pt2、P t 3を作成す
る回路系が故障したとすると、それぞれ前記したハミン
グコード発生回路のPiolPil、Pi2、Pi3系
の故障の場合と全く同じになる。Next, in the malfunction of the Hamming code inspection circuit, if the circuit system that creates the raw data Pr□) P'+11 Pt2 and Pt3 breaks down, the PiolPil, Pi2, and Pi3 systems of the Hamming code generation circuit described above will fail. It will be exactly the same as in the case of
またエラーコードE。Also error code E.
−E7を作成する回路系が故障したとすると、これもそ
れぞれハミングコード発生回路のS。If the circuit system that creates -E7 breaks down, this will also be the S of the Hamming code generation circuit.
〜S7系の故障の場合と全く同じになる。~It will be exactly the same as in the case of a failure in the S7 system.
以上から、ハミングコード発生回路とハミングコード検
査回路の誤動作は、素データP。From the above, the malfunction of the Hamming code generation circuit and Hamming code inspection circuit is due to the raw data P.
o、Plo。P2O1P2O+ pctoの作成回路系
が1つだけ故障した場合に1ビツトエラーと判定され、
このとき正常なデータが誤って訂正されることが判る。o, Plo. If only one P2O1P2O+ pcto creation circuit system fails, it will be determined as a 1-bit error,
At this time, it can be seen that normal data is incorrectly corrected.
従ってこのときに1ビツトエラー訂正を行なわないよう
にすればよいことが判る。Therefore, it can be seen that it is sufficient not to perform 1-bit error correction at this time.
なお素データ、シンドローム、エラーコードの各ピッ1
0作成回路系が同時に2つ以上故障する確率は非常に小
さく、従ってこのようなケースは本発明では考えないこ
とにする。In addition, each pin of raw data, syndrome, and error code
The probability that two or more zero generation circuit systems fail at the same time is very small, and therefore such a case is not considered in the present invention.
そこで本発明に従えば、ハミングコード発生回路とハミ
ングコード検査回路に第6図の如き回路を追加する。Therefore, according to the present invention, a circuit as shown in FIG. 6 is added to the Hamming code generation circuit and the Hamming code inspection circuit.
第6図において、PGは偶数パリティ発生回路で、これ
には外部より与えられるデータ(ハミングコード検査回
路の場合には記憶装置から読出されたデータ) D 1
o−D I 7が入力されており、ここまでは既存の素
データPi□の作成論理と全く同じで、素データPIO
が2重に作成されていることになる。In FIG. 6, PG is an even parity generation circuit, to which data is given from the outside (in the case of a Hamming code check circuit, data read from a storage device) D 1
o-D I 7 is input, and the logic up to this point is exactly the same as the creation logic of the existing raw data Pi□, and the raw data PIO
is created twice.
偶数パリティ発生回路PGにはさらに既存の素データP
IOが入力されている。The even parity generation circuit PG further contains existing raw data P.
IO is being input.
この目的は偶数パリティ発生回路PGによって作成され
る新たな素データと既存の素データPi□とを比較する
ことにある。The purpose of this is to compare the new raw data created by the even parity generation circuit PG with the existing raw data Pi□.
偶数パリティ発生回路PGは、故障した場合に1ビツト
エラーと判定されるPoo・PIO・P2O・P2O・
pao系に各々設けられ、ハミングコード発生回路とハ
ミングコード検査回路に各々計5個設けられることにな
る。The even parity generation circuit PG is connected to Poo, PIO, P2O, P2O, which is determined to be a 1-bit error in the event of a failure.
One is provided in each pao system, and five in total are provided in each of the Hamming code generation circuit and the Hamming code inspection circuit.
従ってi=0.1.3.4.6である。Therefore, i=0.1.3.4.6.
ORは5個0偶数パリテイ発生回路PGの出力のオ、ア
をとるオア回路、ANDはオア回路ORの出力をタイミ
ングパルスTPの発生時点で出力するアンド回路、FF
はアンド回路ANDの出力でセットされるフリップフロ
ップで、これの出力は、1ビツト工ラー訂正動作の禁止
信号となる。OR is an OR circuit that takes O and A of the output of the 5-0 even parity generation circuit PG, AND is an AND circuit that outputs the output of the OR circuit at the time of generation of the timing pulse TP, and FF
is a flip-flop which is set by the output of the AND circuit AND, and its output serves as a signal for inhibiting the 1-bit factory correction operation.
このようにしておけば、ハミングコード発生回路とハミ
ングコード検査回路の素データPi□(但し、i=o、
1.3.4.6)の作成回路系が故障して誤った出力を
生じた場合は、偶数パリティ発生回路PGの出力が生じ
、タイミングパルスTPの発生時点でフリップフロップ
FFがセットされ、この出力により1ビツト工ラー訂正
動作が禁止される。By doing this, the raw data Pi□ of the Hamming code generation circuit and the Hamming code inspection circuit (however, i=o,
If the generation circuit system in 1.3.4.6) malfunctions and produces an incorrect output, the even parity generation circuit PG will output, and the flip-flop FF will be set at the time the timing pulse TP is generated. The output inhibits 1-bit factory correction operations.
なお以上において、素データPi□の作成回路系に関し
、既存の偶数パリティ発生回路と新たに追加した偶数パ
リティ発生回路が同時に故障した場合は、誤って1ビツ
トエラーと判定し、訂正動作を遂行してしまうことが、
この確率は非常に小さく、事実上ありえないと考えても
よい。In the above, regarding the circuit system for generating raw data Pi□, if the existing even parity generation circuit and the newly added even parity generation circuit fail at the same time, it will be mistakenly determined as a 1-bit error and a correction operation will be performed. To put away
This probability is so small that it can be considered virtually impossible.
また以上において、素データPIOの作成回路系を二重
化するのはi=o、1.3.4.6とした。Furthermore, in the above, the circuit system for generating raw data PIO is duplicated with i=o and 1.3.4.6.
しかしこのようにすると、素データPimを作る回路が
1バイト毎に別な基板に実装される場合Pi。However, if you do this, if the circuit that creates the raw data Pi is mounted on a separate board for each byte, Pi.
の作成回路系が2重化されたものとそうでないものとの
2種類の基板を用意する必要がある。It is necessary to prepare two types of boards: one with a duplicated circuit system and one without.
そこで、このような不便さをなくすため、素データPi
oの作成回路系については、全てすなわちi=0〜7に
ついて2重化するようにしてもよい。Therefore, in order to eliminate this inconvenience, raw data Pi
Regarding the circuit system to be created for o, all of them, i.e., i=0 to 7, may be duplicated.
この場合でも、残りの素データPi1、P 12、P
1,3の作成回路系も合わせて全てを2重化する場合よ
り、はるかに回路素子数が少なくなることは明らかであ
る。Even in this case, the remaining raw data Pi1, P12, P
It is clear that the number of circuit elements is much smaller than when all of the circuit systems 1 and 3 are duplicated.
また以上の説明では、エラー訂正回路の故障については
触れなかったが、以下これについて説明する。Further, in the above explanation, failure of the error correction circuit was not mentioned, but this will be explained below.
第7図はエラー訂正回路を示すもので、破線りより上部
がデータ訂正部、下部がパリティビット発生部である。FIG. 7 shows an error correction circuit, in which the area above the broken line is a data correction section, and the area below is a parity bit generation section.
20はエラーコードE。−E7に基いてデータのエラー
ビットを指定するデコーダ群で、データの各ピッH)i
jに対応してデコーダDEC1を有する。20 is error code E. - A decoder group that specifies error bits of data based on E7, and each bit of data H)i
It has a decoder DEC1 corresponding to j.
21はデコーダ群20からの出力に基いてデータを訂正
(反転)する排他的論理和回路群で、データの各ビット
Dijに対応して排他的論理和回路EX1を有する。21 is an exclusive OR circuit group for correcting (inverting) data based on the output from the decoder group 20, and has an exclusive OR circuit EX1 corresponding to each bit Dij of data.
排他的論理和回路EXIには対応するデータビットDi
jとデコーダDEC1の出力が入力されている。The exclusive OR circuit EXI has a corresponding data bit Di.
j and the output of the decoder DEC1 are input.
22は1ビツトエラーと判定される場合のエラーバイト
を指定するデコーダ群で、各バイト毎にデコーダDEC
2を有する。22 is a decoder group that specifies an error byte when a 1-bit error is determined, and a decoder DEC is specified for each byte.
It has 2.
23はデコーダ群22からの出力に基いてパリティビッ
トを訂正(反転)する排他的論理和回路群で、各バイト
に対応して排他的論理和回路EX2を有する。23 is an exclusive OR circuit group that corrects (inverts) the parity bit based on the output from the decoder group 22, and has an exclusive OR circuit EX2 corresponding to each byte.
排他的論理和回路EX2には対応する素データPi(1
とデコーダDEC2の出力が入力されている。The exclusive OR circuit EX2 receives the corresponding raw data Pi(1
and the output of the decoder DEC2 are input.
素データPl□は偶数パリティ発生回路PCにより得ら
れるものであるので、そのままパリティビットとなる。Since the raw data Pl□ is obtained by the even parity generation circuit PC, it becomes a parity bit as it is.
このエラー訂正回路では、データビットD。0〜D7□
が訂正されない場合は、素データPIO〜F70がその
ままパリティビットとして出力されるがもしデータビッ
トの訂正をすれば、そのビットが属するバイトに対応す
る素データを反転してパリティビットとする。In this error correction circuit, data bit D. 0~D7□
If not corrected, the raw data PIO-F70 is output as is as a parity bit, but if the data bit is corrected, the raw data corresponding to the byte to which the bit belongs is inverted and used as a parity bit.
このエラー訂正回路においては、デコーダDEC1、D
EC2、排他的論理和回路EX1EX2はいずれも独立
な回路となっているため、その内1つの回路が故障した
場合、受信側装置でパリテ1′チェックを行なえばパリ
ティエラーとなる。In this error correction circuit, decoders DEC1 and D
Since EC2 and exclusive OR circuit EX1EX2 are both independent circuits, if one of them fails, a parity 1' check will result in a parity error in the receiving device.
従ってこのようなエラー訂正装置の故障を検出すること
は可能となる。Therefore, it is possible to detect a failure of such an error correction device.
以上本発明を記憶装置のエラー検出、訂正装置に適用し
た場合の一実施例について説明したが、本発明はこれに
限られるものではない。Although an embodiment in which the present invention is applied to an error detection and correction device for a storage device has been described above, the present invention is not limited to this.
例えば、データを一方の装置から他方の装置へ転送する
デ−タ伝送系や、データを1ビツトずつ直列に記憶ある
いは伝送する系においても、本発明を適用できることは
明らかである。For example, it is clear that the present invention can be applied to a data transmission system that transfers data from one device to another, or a system that stores or transmits data serially bit by bit.
以上の如き本発明によれば、訂正可能なエラーに対して
は2重に判定していることになり、誤って正しいデータ
を訂正してしまうようなことを事実上なくすことができ
る。According to the present invention as described above, correctable errors are double-judged, and it is possible to virtually eliminate the possibility of incorrectly correcting correct data.
またそのための構成も、常に回路全体を2重にしたもの
でないため、非常に簡単であり、低コストで装置を作る
ことができる。Furthermore, the configuration for this purpose is very simple because the entire circuit is not always duplicated, and the device can be manufactured at low cost.
第1図は多ビツトエラー検出と1ビツトエラー訂正を行
なう記憶装置とその周辺を示すブロック図、第2図はシ
ンドロームの作成方法を説明するための表図、第3図と
第4図は第1図のハミングコード発生回路の具体的構成
を説明するための図、第5図はハミングコード発生回路
の故障を説明するための表図、第6図は本発明に従って
ハミングコード発生回路とハミングコード検査回路に追
加される回路を示す図、第7図はエラー訂正回路の構成
を示す図である。
図において、3・・・ハミングコード発生回路、5・・
・記憶装置、8・・・ハミングコード検査回路、10・
・・エラー訂正回路、PG・・・偶数パリティ発生回路
。Figure 1 is a block diagram showing a storage device that performs multi-bit error detection and 1-bit error correction and its surroundings, Figure 2 is a table for explaining the syndrome creation method, and Figures 3 and 4 are the same as Figure 1. FIG. 5 is a table diagram for explaining failures in the Hamming code generation circuit, and FIG. 6 is a diagram illustrating a Hamming code generation circuit and a Hamming code inspection circuit according to the present invention. FIG. 7 is a diagram showing the configuration of an error correction circuit. In the figure, 3... Hamming code generation circuit, 5...
・Storage device, 8... Hamming code inspection circuit, 10.
...Error correction circuit, PG...Even parity generation circuit.
Claims (1)
タに基いてエラー検出と訂正のためのコードを作成しそ
れを前記系にデータとともに与えるコード発生回路と、
前記系からのデータと当該データとともに得られる前記
コードに基いてデータに対するエラー検出と訂正を表示
する情報を作成するコード検査回路とより成るエラー検
出、訂正装置において、前記コード発生回路とコード検
査回路の少なくとも一方は、当該回路Qつ全部ではなく
少なくとも当該回路の部分的故障がコード検査回路にお
いてエラー訂正可能なエラーと判定される細分について
2重化し、両者の出力を比較する手段が設けられている
ことを特徴とするエラー検出、訂正装置。1. A code generation circuit that creates a code for error detection and correction based on data given to a system subject to error detection and correction and supplies it to said system together with the data;
An error detection and correction device comprising a code inspection circuit that creates information indicating error detection and correction for data based on data from the system and the code obtained with the data, the code generation circuit and the code inspection circuit. At least one of the Q circuits is duplicated for subdivisions in which a partial failure of at least the Q circuits is determined to be an error that can be corrected in the code checking circuit, and a means is provided for comparing the outputs of both Q circuits. An error detection and correction device characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP52146068A JPS5845738B2 (en) | 1977-12-07 | 1977-12-07 | Error detection/correction device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP52146068A JPS5845738B2 (en) | 1977-12-07 | 1977-12-07 | Error detection/correction device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5478944A JPS5478944A (en) | 1979-06-23 |
| JPS5845738B2 true JPS5845738B2 (en) | 1983-10-12 |
Family
ID=15399348
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP52146068A Expired JPS5845738B2 (en) | 1977-12-07 | 1977-12-07 | Error detection/correction device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5845738B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR102377636B1 (en) | 2014-02-10 | 2022-03-24 | 필립모리스 프로덕츠 에스.에이. | Fluid permeable heater assembly for an aerosol-generating system and method for assembling a fluid permeable heater for an aerosol-generating system |
-
1977
- 1977-12-07 JP JP52146068A patent/JPS5845738B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5478944A (en) | 1979-06-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3836957A (en) | Data storage system with deferred error detection | |
| US6948091B2 (en) | High integrity recovery from multi-bit data failures | |
| EP0989681B1 (en) | Technique for correcting single-bit errors and detecting paired double-bit errors | |
| EP0265639A2 (en) | ECC circuit failure verifier | |
| US6823476B2 (en) | Mechanism to improve fault isolation and diagnosis in computers | |
| EP0037705A1 (en) | Error correcting memory system | |
| US20100174967A1 (en) | Control apparatus and control method | |
| JPS5845738B2 (en) | Error detection/correction device | |
| JP2001290710A (en) | Data error detection device | |
| JPS62293441A (en) | Data outputting system | |
| JP3112922B2 (en) | Check method of ECC circuit | |
| JPS62226353A (en) | Storage device with ras circuit | |
| JPH02207355A (en) | Memory readout system | |
| JPH05224968A (en) | Data check system | |
| JPS6041374B2 (en) | 1-bit error correction/2-bit error detection method | |
| JPS62194745A (en) | Error correction circuit | |
| JPH0638239B2 (en) | Error correction mechanism | |
| JP2558152B2 (en) | Counter error detector | |
| JPH0760391B2 (en) | Error correction mechanism | |
| CS215606B1 (en) | Error checking and correction device | |
| JPH01309421A (en) | Error correction system | |
| JPH0198033A (en) | Detecting circuit for data error | |
| JPS61253564A (en) | Storage device | |
| JPH01273450A (en) | Test system for data error detecting circuit | |
| JPS63311457A (en) | Data reading circuit for memory |