JPH03237539A - Electronic disk device - Google Patents

Electronic disk device

Info

Publication number
JPH03237539A
JPH03237539A JP2034137A JP3413790A JPH03237539A JP H03237539 A JPH03237539 A JP H03237539A JP 2034137 A JP2034137 A JP 2034137A JP 3413790 A JP3413790 A JP 3413790A JP H03237539 A JPH03237539 A JP H03237539A
Authority
JP
Japan
Prior art keywords
bit
circuit
error
syndrome
error position
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
JP2034137A
Other languages
Japanese (ja)
Inventor
Hironori Mizoguchi
溝口 博教
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 JP2034137A priority Critical patent/JPH03237539A/en
Publication of JPH03237539A publication Critical patent/JPH03237539A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To perform error correction up to two bits with a simple constitution by using a syndrome conversion ROM to perform the error correction. CONSTITUTION:Data and an error check code (ECC) read out from a memory circuit 1 are inputted to a cyndrome generating circuit 21 to generate a syndrome. The syndrome is given as the address to syndrome conversion ROMS 22 and 23, and thereby, a value larger than the data bit width read out from the circuit 1 is outputted from the ROM 22 as the error position of a first bit in the case of an address having error in the first bit. A value larger than the data bit width is outputted from the ROM 23 as the error position of a second bit in the case of an address having error in the second bit. Error up to two bits if data read out from the circuit 1 is corrected through error position decoding circuit 24 and 25, an OR circuit 26, and an XOR circuit 27. Thus, error of two bits is corrected with the simple constitution.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子ディスク装置に関し、特に誤り訂正回路を
有する電子ディスク装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an electronic disk device, and particularly to an electronic disk device having an error correction circuit.

〔従来の技術〕[Conventional technology]

従来の電子ディスク装置は、ROMを使用せずに、論理
回路を使用した誤り訂正回路を有している。
A conventional electronic disk device has an error correction circuit using a logic circuit without using a ROM.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の電子ディスク装置は、2ビットの誤り訂正を行っ
た場合に、誤り訂正回路のハードウェアが非常に大きく
なり、極めて高価になるという欠点を有している。
Conventional electronic disk devices have the disadvantage that when 2-bit error correction is performed, the hardware of the error correction circuit becomes very large and extremely expensive.

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

本発明の電子ディスク装置は、データ及びECCの格納
を行うメモリ回路と、前記メモリ回路から読出したデー
タ及びECCからシンドロームを生成するシンドローム
生成回路と、そのシンドロームをアドレスとして与える
事により1ビット目の誤り位置を出力する第1のシンド
ローム変換ROMと、そのシンドロームをアドレスとし
て与える事により2ビット目の誤り位置を出力する第2
のシンドローム変換ROMと、前記第1のシンドローム
変換ROMの出力を受けて1ビット目の誤り位置を検出
する第1の誤り位置デコード回路と、前記第2のシンド
ローム変換ROMの出力を受けて2ビット目の誤り位置
を検出する第2の誤り位置デコード回路と、前記第1の
デコード回路の出力及び前記第2のデコード回路の出力
に対する論理和を出力するOR回路と、前記メモリ回路
から読み出したデータ及び前記OR回路の出力に対する
排他的論理和を出力するXOR回路とを有している。
The electronic disk device of the present invention includes a memory circuit that stores data and ECC, a syndrome generation circuit that generates a syndrome from the data and ECC read from the memory circuit, and a syndrome that generates a syndrome from the first bit by giving the syndrome as an address. A first syndrome conversion ROM outputs the error position, and a second syndrome conversion ROM outputs the second bit error position by giving the syndrome as an address.
a syndrome conversion ROM; a first error position decoding circuit that receives the output of the first syndrome conversion ROM and detects the error position of the first bit; and a syndrome conversion ROM that receives the output of the second syndrome conversion ROM and detects the error position of the first bit; a second error position decoding circuit for detecting the error position of the eye; an OR circuit for outputting a logical sum of the output of the first decoding circuit and the output of the second decoding circuit; and data read from the memory circuit. and an XOR circuit that outputs an exclusive OR of the output of the OR circuit.

そして、前記メモリ回路より読み出されたデータ及びE
CCは、前記シンドローム生成回路に入力され、シンド
ロームが生成される。そして、前記第1のシンドローム
変換ROMと前記第2のシンドローム変換ROMとに、
前記シンドローム生成回路により生成されたシンドロー
ムをアドレスとして与える事により、前記第1のシンド
ローム変換ROMからは、1ビット目の誤りが有るアド
レスの時には誤りのビット位置を、誤りが無いアドレス
の時には前記メモリ回路より読み出されたデータビット
幅より大きな値を1ビット目の誤り位置として出力する
。同様に、前記第2のシンドローム変換ROMからは、
2ビット目の誤りが有るアドレスの時には誤りのビット
位置を、誤りが無いアドレスの時には前記メモリ回路よ
り読み出されたデータビット幅より大きな値を2ビット
目の誤り位置として出力する。
Then, the data read from the memory circuit and E
The CC is input to the syndrome generation circuit, and a syndrome is generated. and the first syndrome conversion ROM and the second syndrome conversion ROM,
By giving the syndrome generated by the syndrome generating circuit as an address, the first syndrome conversion ROM will output the bit position of the error when the address has an error in the first bit, and the memory when the address has no error. A value larger than the data bit width read out from the circuit is output as the first bit error position. Similarly, from the second syndrome conversion ROM,
When the address has an error in the second bit, the bit position of the error is output, and when the address has no error, a value larger than the data bit width read from the memory circuit is output as the error position of the second bit.

次に、1ビット目の誤り位置を前記第1の誤り位置デコ
ード回路に入力することにより、1ビット目の誤り位置
が前記メモリ回路より読み出されたデータビット幅より
大きければ誤りなしとし、全ビットが0″のデータビッ
ト幅と同じビット幅の信号を出力し、データビット幅以
下であれば1ビット目の誤り位置のビットのみが“1”
で他のビットは“0”のデータビット幅に同じビット幅
の信号を出力する。
Next, by inputting the error position of the first bit to the first error position decoding circuit, if the error position of the first bit is larger than the data bit width read from the memory circuit, it is determined that there is no error, and all Outputs a signal with the same bit width as the data bit width when the bit is 0'', and if it is less than the data bit width, only the bit at the 1st bit error position is “1”
The other bits output signals with the same bit width as the data bit width of "0".

同様に、2ビット目の誤り位置を前記第2の誤り位置デ
コード回路1に入力することにより、2ビット目の誤り
位置が前記メモリ回路より読み出されたデータビット幅
より大きければ誤り無しとし、全ビットが““0”のデ
ータビット幅に同じビット幅の信号を出力し、データビ
ット幅以下であれば2ビット目の誤り位置のビットのみ
が“1”で他のビットは“0″のデータビット幅に同じ
ビット幅の信号を出力する。
Similarly, by inputting the error position of the second bit to the second error position decoding circuit 1, if the error position of the second bit is larger than the data bit width read from the memory circuit, it is determined that there is no error; A signal with the same bit width as the data bit width where all bits are “0” is output, and if it is less than the data bit width, only the bit at the second bit error position is “1” and the other bits are “0”. Outputs a signal with the same bit width as the data bit width.

そこで、前記第1の誤り位置デコード回路より出力され
た信号と前記第2の誤り位置デコード回路より出力され
た信号とを、前記OR回路に入力する事により、1ビッ
ト目の誤り位置と2ビット目の誤り位置とのビットのみ
が“1”で他のビットは“0”の信号が出力される。さ
らに、前記メモリ回路より読み出されたデータと前記O
R回路より出力された信号とを前記XOR回路に入力す
る事により、前記メモリ回路から読み出されたデータの
2ビットまでの誤りを訂正する。
Therefore, by inputting the signal output from the first error position decoding circuit and the signal output from the second error position decoding circuit to the OR circuit, the first bit error position and the second bit A signal is output in which only the bit corresponding to the eye error position is "1" and the other bits are "0". Furthermore, the data read from the memory circuit and the O
By inputting the signal output from the R circuit to the XOR circuit, errors in up to 2 bits of data read from the memory circuit are corrected.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の電子ディスク装置の一実施例を示すブ
ロック図である。
FIG. 1 is a block diagram showing an embodiment of an electronic disk device of the present invention.

第1図に示す本実施例のメモリ回路lは、データ及びE
CCを格納しており、誤り訂正回路2は、データ及びE
CCからシンドロームを生成するシンドローム生成回路
21と、シンドロームをアドレスとして与える事により
1ビット目の誤り位置を出力する第1のシンドローム変
換ROM22と、シンドロームをアドレスとして与える
事により2ビット目の誤り位置を出力する第2のシンド
ローム変換ROM23と、1ビット目の誤り位置を検出
する第1の誤り位置デコード回路24と、2ビット目の
誤り位置を検出する第2の誤り位置デコード回路25と
、2つの入力データの論理和を出力するOR回路26と
、2つの入力データの排他的論理和を出力するXOR回
路27とを有している。
The memory circuit l of this embodiment shown in FIG.
The error correction circuit 2 stores data and E
A syndrome generation circuit 21 generates a syndrome from CC, a first syndrome conversion ROM 22 outputs the error position of the first bit by giving the syndrome as an address, and a first syndrome conversion ROM 22 outputs the error position of the second bit by giving the syndrome as an address. A second syndrome conversion ROM 23 that outputs, a first error position decoding circuit 24 that detects the error position of the first bit, and a second error position decoding circuit 25 that detects the error position of the second bit. It has an OR circuit 26 that outputs the logical sum of input data, and an XOR circuit 27 that outputs the exclusive logical sum of two input data.

そして、メモリ回路1より読み出されたデータ及びEC
Cは、シンドローム生成回路21に入力され、シンドロ
ームが生成される。第1のシンドローム変換ROM22
と第2のシンドローム変換ROM23とに、シンドロー
ム生成回路21にまり生成されたシンドロームをアドレ
スとして与える事により、第1のシンドローム変換RO
M22からは、1ビット目の誤りが有るアドレスの時に
は誤りのビット位置を、誤りが無いアドレスの時にはメ
モリ回路1より読み出されたデータビット幅より大きな
値を1ビット目の誤り位置として出力する。同様に第2
のシンドローム変換ROM23からは、2ビット目の誤
りが有るアドレスの時には誤りのビット位置を、誤りが
無いアドレスの時にはメモリ回路lより読み出されたデ
ータビット幅より大きな値を2ビット目の誤り位置とし
て出力する。
Then, the data read from the memory circuit 1 and the EC
C is input to the syndrome generation circuit 21, and a syndrome is generated. First syndrome conversion ROM22
By giving the syndrome generated by the syndrome generation circuit 21 as an address to the first syndrome conversion ROM 23 and the second syndrome conversion ROM 23, the first syndrome conversion RO
M22 outputs the error bit position when the address has an error in the first bit, and outputs a value larger than the data bit width read from memory circuit 1 as the error bit position when the address has no error. . Similarly, the second
When the address has an error in the second bit, the syndrome conversion ROM 23 outputs the bit position of the error, and when the address has no error, it outputs a value larger than the data bit width read from the memory circuit l to the error position of the second bit. Output as .

次に1ビット目の誤り位置を第1の誤り位置デコード回
路24に入力することにより、1ビット目の誤り位置が
メモリ回路1より読み出されたデータビット幅より大き
ければ誤りなしとし、全ビットが“0”のデータビット
幅に同じビット幅の信号を出力し、データビット幅以下
であれば1ビット目の誤り位置のビットのみが“1”で
他のビットは“0”のデータビット幅に同じビット幅の
信号を出力する。
Next, by inputting the error position of the first bit to the first error position decoding circuit 24, if the error position of the first bit is larger than the data bit width read from the memory circuit 1, it is determined that there is no error, and all bits are outputs a signal with the same bit width as the data bit width of “0”, and if it is less than the data bit width, only the bit at the first error position is “1” and the other bits are “0”. outputs a signal with the same bit width.

同様に、2ビット目の誤り位置を第2の誤り位置デコー
ド回路25に入力することにより、2ビット目の誤り位
置がメモリ回路1より読み出されたデータビット幅より
大きければ誤りなしとし、全ビットが“0”のデータビ
ット幅に同じビット幅の信号を出力し、データビット幅
以下であれば2ビット目の誤り位置のビットのみが“1
”で他のビットは“0”のデータビット幅に同じビット
幅の信号を出力する。
Similarly, by inputting the error position of the second bit to the second error position decoding circuit 25, if the error position of the second bit is larger than the data bit width read from the memory circuit 1, it is determined that there is no error, and all A signal with the same bit width as the data bit width where the bit is “0” is output, and if it is less than the data bit width, only the bit at the second bit error position is “1”.
” and other bits output signals with the same bit width as the data bit width of “0”.

そこで、第1の誤り位置デコード回路24より出力され
た信号と第2の誤り位置デコード回路25より出力され
た信号とをOR回路26に入力する事により、1ビット
目の誤り位置と2ビット目の誤り位置とのビットのみが
1″で他のビットは′0”の信号が出力される。さらに
メモリ回路1より読み出されたデータとOR回路26よ
り出力された信号とをXOR回路27に入力する事によ
り、メモリ回路1から読み出されたデータの2ビットま
での誤りを訂正する。
Therefore, by inputting the signal output from the first error position decoding circuit 24 and the signal output from the second error position decoding circuit 25 to the OR circuit 26, the error position of the first bit and the second bit can be determined. A signal is output in which only the bit corresponding to the error position is 1'' and the other bits are '0'. Furthermore, by inputting the data read from the memory circuit 1 and the signal output from the OR circuit 26 to the XOR circuit 27, errors in up to 2 bits of the data read from the memory circuit 1 are corrected.

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

以上説明したように、本発明の電子ディスク装置は、誤
り訂正をROMを用いて行う事により、構成を簡単化し
てハードウェア量を少なくするので、より経済的な設計
ができるという効果を有している。
As explained above, the electronic disk device of the present invention performs error correction using ROM, which simplifies the configuration and reduces the amount of hardware, so it has the effect of enabling more economical design. ing.

を示すブロック図である。FIG.

1・・・メモリ回路、2・・・誤り訂正回路、21・・
・シンドローム生成回路、22・・・第1のシンドロー
ム変換ROM、23・・・第2のシンドローム変換RO
M、24・・・第1の誤り位置デコード回路、25・・
・第2の誤り位置デコード回路、26・・・OR回路、
27・・・XOR回路。
1...Memory circuit, 2...Error correction circuit, 21...
-Syndrome generation circuit, 22...first syndrome conversion ROM, 23...second syndrome conversion RO
M, 24... first error position decoding circuit, 25...
・Second error position decoding circuit, 26...OR circuit,
27...XOR circuit.

Claims (1)

【特許請求の範囲】[Claims] データ及びECCの格納を行うメモリ回路と、前記メモ
リ回路から読出したデータ及びECCからシンドローム
を生成するシンドローム生成回路と、そのシンドローム
をアドレスとして与える事により1ビット目の誤り位置
を出力する第1のシンドローム変換ROMと、そのシン
ドロームをアドレスとして与える事により2ビット目の
誤り位置を出力する第2のシンドローム変換ROMと、
前記第1のシンドローム変換ROMの出力を受けて1ビ
ット目の誤り位置を検出する第1の誤り位置デコード回
路と、前記第2のシンドローム変換ROMの出力を受け
て2ビット目の誤り位置を検出する第2のデコード回路
と、前記第1のデコード回路の出力及び前記第2のデコ
ード回路の出力に対する論理和を出力するOR回路と、
前記メモリ回路から読出したデータ及び前記OR回路の
出力に対する排他的論理和を出力するXOR回路とを有
し、前記メモリ回路より読み出されたデータ及びECC
を前記シンドローム生成回路に入力する事によりシンド
ロームを生成し、前記第1のシンドローム変換ROM及
び前記第2のシンドローム変換ROMに前記シンドロー
ム生成回路で生成されたシンドロームをアドレスとして
与える事により前記第1のシンドローム変換ROMから
1ビット目の誤りが有るアドレスの時には誤りのビット
位置を誤りが無いアドレスの時には前記メモリ回路より
読み出されたデータビット幅より大きな値を1ビット目
の誤り位置として出力し、同様に第2のシンドローム変
換ROMから2ビット目の誤りが有るアドレスの時には
誤りのビット位置を誤りが無いアドレスの時には前記メ
モリ回路より読み出されたデータビット幅より大きな値
を2ビット目の誤り位置として出力し、前記第1の誤り
位置デコード回路に前記第1のシンドローム変換ROM
より出力された1ビット目の誤り位置を入力することに
より1ビット目の誤り位置が前記メモリ回路より読み出
されたデータビット幅より大きければ誤りなしとし、全
ビットが“0”のデータビット幅の信号を出力し、デー
タビット幅以下であれば1ビット目の誤り位置のビット
のみが“1”で他のビットは“0”のデータビット幅に
同じビット幅の信号を出力し、同様に前記第2の誤り位
置デコード回路に前記第2のシンドローム変換ROMよ
り出力された2ビット目の誤り位置を入力することによ
り2ビット目の誤り位置が前記メモリ回路より読み出さ
れたデータビット幅より大きければ誤りなしとし、全ビ
ットが“0”のデータビット幅に同じビット幅の信号を
出力し、データビット幅以下であれば2ビット目の誤り
位置のビットのみが“1”で他のビットは“0”のデー
タビット幅に同じビット幅の信号を出力し、前記OR回
路に前記第1の誤り位置デコード回路より出力された信
号及び前記第2の誤り位置デコード回路より出力された
信号を入力することにより1ビット目の誤り位置及び2
ビット目の誤り位置のビットのみが“1”で他のビット
は“0”の信号を出力し、前記XOR回路に前記メモリ
回路より読み出されたデータ及び前記OR回路により出
力された信号を入力することにより2ビットの誤りまで
の読み出されたデータを訂正する事を特徴とする電子デ
ィスク装置。
a memory circuit that stores data and ECC, a syndrome generation circuit that generates a syndrome from the data and ECC read from the memory circuit, and a first syndrome generation circuit that outputs the error position of the first bit by giving the syndrome as an address. a syndrome conversion ROM; a second syndrome conversion ROM that outputs the second bit error position by giving the syndrome as an address;
a first error position decoding circuit that receives the output of the first syndrome conversion ROM and detects the error position of the first bit; and a first error position decode circuit that receives the output of the second syndrome conversion ROM and detects the error position of the second bit. an OR circuit that outputs a logical sum of the output of the first decode circuit and the output of the second decode circuit;
an XOR circuit that outputs an exclusive OR of the data read from the memory circuit and the output of the OR circuit, and the data read from the memory circuit and an ECC
A syndrome is generated by inputting the syndrome into the syndrome generation circuit, and the syndrome generated by the syndrome generation circuit is given as an address to the first syndrome conversion ROM and the second syndrome conversion ROM. When the address has an error in the first bit from the syndrome conversion ROM, outputs the bit position of the error, and when the address does not have an error, outputs a value larger than the data bit width read from the memory circuit as the error position of the first bit, Similarly, when the address has an error in the second bit from the second syndrome conversion ROM, the bit position of the error is changed to a value larger than the data bit width read from the memory circuit when the address has no error. the first syndrome conversion ROM to the first error position decoding circuit.
By inputting the error position of the first bit output from the memory circuit, if the error position of the first bit is larger than the data bit width read from the memory circuit, it is determined that there is no error, and the data bit width in which all bits are "0" is determined. If it is less than the data bit width, only the bit at the first bit error position is “1” and the other bits are “0”, and a signal with the same bit width is output, and the same bit width is output. By inputting the second bit error position output from the second syndrome conversion ROM to the second error position decoding circuit, the second bit error position is determined from the data bit width read from the memory circuit. If it is larger, it is assumed that there is no error, and a signal with the same bit width as the data bit width in which all bits are “0” is output, and if it is less than the data bit width, only the bit at the second bit error position is “1” and other bits are outputs a signal with the same bit width as the data bit width of "0", and sends the signal output from the first error position decoding circuit and the signal output from the second error position decoding circuit to the OR circuit. By inputting the error position of the 1st bit and the 2nd bit
Outputs a signal in which only the bit at the bit-th error position is "1" and the other bits are "0", and inputs the data read from the memory circuit and the signal output by the OR circuit to the XOR circuit. An electronic disk device characterized in that read data with up to 2-bit errors can be corrected by correcting the read data.
JP2034137A 1990-02-14 1990-02-14 Electronic disk device Pending JPH03237539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2034137A JPH03237539A (en) 1990-02-14 1990-02-14 Electronic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2034137A JPH03237539A (en) 1990-02-14 1990-02-14 Electronic disk device

Publications (1)

Publication Number Publication Date
JPH03237539A true JPH03237539A (en) 1991-10-23

Family

ID=12405832

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2034137A Pending JPH03237539A (en) 1990-02-14 1990-02-14 Electronic disk device

Country Status (1)

Country Link
JP (1) JPH03237539A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5283045A (en) * 1975-12-30 1977-07-11 Fujitsu Ltd Error correction control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5283045A (en) * 1975-12-30 1977-07-11 Fujitsu Ltd Error correction control system

Similar Documents

Publication Publication Date Title
US8510641B2 (en) Circuit and technique for reducing parity bit-widths for check bit and syndrome generation for data blocks through the use of additional check bits to increase the number of minimum weighted codes in the hamming code H-matrix
JPS6151253A (en) Memory error correctng circuit
JPS5846741A (en) Decoder
US7007223B2 (en) Efficient method and apparatus for low latency forward error correction
JPH03237539A (en) Electronic disk device
JP3364753B2 (en) Memory error correction circuit
JPS6386620A (en) Detector for erroneous operation of decoder
JPH01196647A (en) Storage device with error correcting function
JPH0652002A (en) Method and circuit for checking data
JPH06303149A (en) Decoder for bch code
US5375231A (en) Control memory error correcting apparatus
JPH0138998Y2 (en)
JP2871168B2 (en) Error correction code coding circuit
JP2594563B2 (en) Error correction circuit
JPS6131491B2 (en)
JPS63126040A (en) Constituting method for error correcting/detecting code system
JPS6142305B2 (en)
KR940007422B1 (en) Rs decoding system without using buffer register
JPH02217948A (en) Error detecting/correcting device
JPS61101857A (en) Memory error detecting correcting circuit
JPH05197580A (en) Two-bit error correction circuit
JP2000099410A (en) Memory control circuit and information processor
JPS61110247A (en) Storage device
JPH0638239B2 (en) Error correction mechanism
JPH03288935A (en) Error correcting device for information processor