JPH0418338B2 - - Google Patents
Info
- Publication number
- JPH0418338B2 JPH0418338B2 JP57178286A JP17828682A JPH0418338B2 JP H0418338 B2 JPH0418338 B2 JP H0418338B2 JP 57178286 A JP57178286 A JP 57178286A JP 17828682 A JP17828682 A JP 17828682A JP H0418338 B2 JPH0418338 B2 JP H0418338B2
- Authority
- JP
- Japan
- Prior art keywords
- bit
- parity
- read data
- data
- error
- 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 - Lifetime
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1076—Parity data used in redundant arrays of independent storages, e.g. in RAID systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Detection And Correction Of Errors (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Description
【発明の詳細な説明】
本発明は、ICメモリを使用した記憶装置にお
いて、読出データ部の1ビツト誤りの訂正と並行
して正しいデータパリテイビツトを生成するパリ
テイ生成方式に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a parity generation method for generating correct data parity bits in parallel with correction of a 1-bit error in a read data portion in a storage device using an IC memory.
従来、この種の記憶装置は、第1図に示す構成
となつており、チエツクビツトジエネレータ1、
メモリ2、シンドロームジエネレータ3、デコー
ダ4、1ビツト誤り訂正器5及び読出データパリ
テイジエネレータ12とを有して成る。上記メモ
リ2の書込側には、書込データ6とチエツクビツ
トジエネレータ1の出力が入力されている。一
方、読出側では、シンドロームジエネレータ3
に、上記メモリ2から出力される読出データ(修
正前)9とチエツクビツト8とが入力され、該ジ
エネレータ3から出力されるシンドロームビツト
10がデコーダ4に入力されている。そして、1
ビツト誤り訂正器5に、上記読出データ(修正
前)9と上記デコーダ4の出力が入力され、該訂
正器5から読出データ(修正後)11が出力され
る。 Conventionally, this type of storage device has the configuration shown in FIG. 1, in which a check bit generator 1,
It comprises a memory 2, a syndrome generator 3, a decoder 4, a 1-bit error corrector 5, and a read data parity generator 12. Write data 6 and the output of the check bit generator 1 are input to the write side of the memory 2. On the other hand, on the read side, syndrome generator 3
Read data (before correction) 9 and check bits 8 outputted from the memory 2 are inputted, and syndrome bits 10 outputted from the generator 3 are inputted to the decoder 4. And 1
The read data (before correction) 9 and the output of the decoder 4 are input to the bit error corrector 5, and the corrector 5 outputs read data (after correction) 11.
従来、この種の記憶装置において、読出データ
部に1ビツト誤りが検出された時、該誤りビツト
の訂正と共に、正しいパリテイビツトを生成する
には、上記シンドロームジエネレータ3、デコー
ダ4及び1ビツト誤り訂正器5を経て訂正された
読出データ11をパリテイジエネレータ12に入
力することにより行なつている。そのため、従来
のパリテイ生成方式は、データビツトに比し、読
出データパリテイビツトの出力が遅くなるという
欠点があつた。 Conventionally, in this type of storage device, when a 1-bit error is detected in the read data section, in order to correct the error bit and generate a correct parity bit, the syndrome generator 3, decoder 4, and 1-bit error correction are required to correct the error bit and generate a correct parity bit. This is done by inputting the corrected read data 11 through the parity generator 12 through the parity generator 12. Therefore, the conventional parity generation method has a drawback that the output of read data parity bits is slower than that of data bits.
本発明は、斯かる欠点に鑑みなされたもので、
チエツクビツトとシンドロームビツトの排他的論
理和をとつて読出データパリテイを生成すること
により、上記欠点を解決し、金物量を少なくし、
しかも少ない遅延時間で該パリテイを出力するパ
リテイ生成方式を提供するものである。 The present invention was made in view of these drawbacks,
By generating read data parity by calculating the exclusive OR of check bits and syndrome bits, the above drawbacks are solved, the amount of hardware is reduced,
Furthermore, the present invention provides a parity generation method that outputs the parity with a short delay time.
即ち、本発明は、読出データとチエツクビツト
とからシンドロームビツトを生成しこのシンドロ
ームビツトをデコーダに入力せしめて1ビツトの
誤りの位置を検出せしめ、1ビツト誤り訂正器に
て読出データのビツト誤りを訂正するよう構成し
たメモリ装置におけるパリテイ生成方式におい
て、上記シンドロームビツトにより、1ビツト誤
りがデータ部にあるか否かを検出するデータ1ビ
ツト誤り検出器と、上記シンドロームビツトとチ
エツクビツトとから読出データのパリテイビツト
を発生する読出データパリテイジエネレータと、
上記読出データ部に1ビツト誤りが検出された
時、上記読出データパリテイジエネレータから出
力されるパリテイビツトを反転する読出データパ
リテイ訂正器とを備えて成り、読出データ部に1
ビツト誤りが検出された時、該誤りビツトの訂正
と並行して正しいデータパリテイビツトを生成す
るよう構成して成るものである。 That is, the present invention generates a syndrome bit from read data and a check bit, inputs this syndrome bit to a decoder to detect the position of a 1-bit error, and corrects the bit error in the read data using a 1-bit error corrector. In the parity generation method in a memory device configured to a read data parity generator that generates
and a read data parity corrector for inverting the parity bit output from the read data parity generator when a 1-bit error is detected in the read data part.
When a bit error is detected, correct data parity bits are generated in parallel with correction of the error bit.
以下、本発明を図面に示す実施例に基づいて説
明する。 Hereinafter, the present invention will be explained based on embodiments shown in the drawings.
第2図は本発明パリテイ生成方式の一実施例を
適用した記憶装置を示すブロツク図である。 FIG. 2 is a block diagram showing a storage device to which an embodiment of the parity generation method of the present invention is applied.
同図において本発明パリテイ生成方式を備えた
記憶装置は、チエツクビツトジエネレータ1、メ
モリ2、シンドロームジエネレータ3、デコーダ
4及び1ビツト誤り訂正器5とから成るものに、
更に、読出データパリテイジエネレータ12と、
データ1ビツト誤り検出器13と、読出データパ
リテイ訂正器14とを備えて構成される。 In the figure, the storage device equipped with the parity generation method of the present invention is composed of a check bit generator 1, a memory 2, a syndrome generator 3, a decoder 4, and a 1-bit error corrector 5.
Furthermore, a read data parity generator 12;
It is comprised of a data 1-bit error detector 13 and a read data parity corrector 14.
上記メモリ2の書込側には、書込データ6と、
チエツクビツトジエネレータ1の出力が入力され
ている。即ち、書込時、図示しない中央制御装置
より送出される書込データ6が、チエツクビツト
ジエネレータ1よりチエツクビツトを付加され、
メモリ2に書込まれる。この場合、書込データパ
リテイは、チエツクのみに用いられ、メモリ2に
は書込まれない。 On the write side of the memory 2, write data 6 and
The output of check bit generator 1 is input. That is, during writing, a check bit is added to the write data 6 sent from a central control unit (not shown) by the check bit generator 1, and
Written to memory 2. In this case, the write data parity is used only for checking and is not written to memory 2.
一方、メモリ2の読出側からは、読出データ
(修正前)9とチエツクビツト8とが出力され、
前者は1ビツト誤り訂正器5及びシンドロームジ
エネレータ3に入力され、後者は該シンドローム
ジエネレータ3及び読出データパリテイジエネレ
ータ12に入力される。このシンドロームジエネ
レータ3から出力されるシンドロームビツト10
は、上記デコーダ4、読出データパリテイジエネ
レータ12及びデータ1ビツト誤り検出器13の
各々に入力される。そして、デコーダ4の出力は
上記1ビツト誤り訂正器5に入力されて読出デー
タ9を修正し、該訂正器5から読出データ(修正
後)11を出力せしめる。又、読出データパリテ
イジエネレータ12及びデータ1ビツト誤り検出
器13の各出力は、読出データパリテイ訂正器1
4に入力されて、読出データパリテイ7を出力せ
しめる。 On the other hand, read data (before correction) 9 and check bits 8 are output from the read side of the memory 2.
The former is input to the 1-bit error corrector 5 and the syndrome generator 3, and the latter is input to the syndrome generator 3 and the read data parity generator 12. Syndrome bit 10 output from this syndrome generator 3
is input to each of the decoder 4, read data parity generator 12, and data 1-bit error detector 13. The output of the decoder 4 is input to the 1-bit error corrector 5, which corrects the read data 9, and causes the corrector 5 to output the read data (after correction) 11. Further, each output of the read data parity generator 12 and the data 1-bit error detector 13 is connected to the read data parity corrector 1.
4 and causes read data parity 7 to be output.
第3図は上記本発明に適用される、データ長16
ビツトの場合のハミングコートの1例を示す説明
図である。同図に示すものは、データ16ビツトと
チエツクビツト6ビツトの合計22ビツトがメモリ
2に書込まれる。 Figure 3 shows data length 16 applied to the above invention.
FIG. 3 is an explanatory diagram showing an example of a Hamming coat in the case of bits. In the example shown in the figure, a total of 22 bits, including 16 data bits and 6 check bits, are written into the memory 2.
ここで、チエツクビツトC0はデータ0、1、
2、3、4、5、10、14ビツト目のパリテイ、
C1はデータ0、1、2、6、7、8、9ビツト
目のパリテイ、C2はデータ0、4、6、7、8、
13、14、15ビツト目のパリテイ、C3は5、6、
9、10、11、13、14、15ビツト目のパリテイ、
C4は1、3、7、9、10、11、12、13ビツト目
のパリテイ、C5はデータ2、3、4、5、8、
11、12、15ビツト目のパリテイをとつたものであ
る。 Here, check bit C0 is data 0, 1,
Parity of 2nd, 3rd, 4th, 5th, 10th, 14th bit,
C1 is the parity of data 0, 1, 2, 6, 7, 8, 9th bit, C2 is data 0, 4, 6, 7, 8,
Parity of 13th, 14th, 15th bit, C3 is 5, 6,
Parity of 9th, 10th, 11th, 13th, 14th, 15th bit,
C4 is parity of 1st, 3rd, 7th, 9th, 10th, 11th, 12th, 13th bit, C5 is data 2nd, 3rd, 4th, 5th, 8th,
It has parity on the 11th, 12th, and 15th bits.
読出時、読出データ9とチエツクビツト8をシ
ンドロームジエネレータ3に入力することにより
シンドロームビツト10を生成し、このシンドロ
ームビツト10をデコーダ4に入力することによ
り1ビツト誤りの位置、または2ビツトエラーで
あることを検出している。本発明ではこの検出動
作と同時に全シンドロームビツト10と全チエツ
クビツト8のパリテイをとることにより読出デー
タのパリテイを生成している。 When reading, the read data 9 and check bit 8 are input to the syndrome generator 3 to generate syndrome bit 10, and this syndrome bit 10 is input to the decoder 4 to determine the location of a 1-bit error or whether it is a 2-bit error. is being detected. In the present invention, the parity of the read data is generated by checking the parity of all syndrome bits 10 and all check bits 8 at the same time as this detection operation.
第4図は上記ハミングコートを使用した本発明
パリテイ生成方式の一例の詳細を示すブロツク図
である。図に示すシンドロームジエネレータ3か
ら出力されるシンドロームビツト10において、
10aはデータ0、1、2、3、4、5、10、14
ビツト目とC0ビツトのパリテイ、10bはデー
タ0、1、2、6、7、8、9ビツト目とC1の
パリテイ、10cはデータ0、4、6、7、8、
13、14、15ビツト目とC2のパリテイ、10dは
データ5、6、9、10、11、13、14、15ビツト目
とC3のパリテイ、10eはデータ1、3、7、
9、10、11、12、13ビツト目とC4のパリテイ、
10fはデータ2、3、4、5、8、11、12、15
ビツト目とC5のパリテイである。 FIG. 4 is a block diagram showing details of an example of the parity generation method of the present invention using the Hamming coat. In the syndrome bit 10 output from the syndrome generator 3 shown in the figure,
10a is data 0, 1, 2, 3, 4, 5, 10, 14
The parity of the 1st bit and C0 bit, 10b is the parity of data 0, 1, 2, 6, 7, 8, 9th bit and C1, 10c is the data 0, 4, 6, 7, 8,
13th, 14th, 15th bits and parity of C2, 10d is data 5th, 6th, 9th, 10th, 11th, 13th, 14th, 15th bit and parity of C3, 10e is data 1st, 3rd, 7th,
Parity of 9th, 10th, 11th, 12th, 13th bit and C4,
10f is data 2, 3, 4, 5, 8, 11, 12, 15
It is the parity of bit and C5.
この10a〜10fのシンドロームビツトと全
チエツクビツトのパリテイをとると、このパリテ
イビツトにはチエツクビツトの影響はなくなり、
データ0から15ビツト目までの求める読出データ
パリテイが求められる。ここで、データ部に1ビ
ツトエラーがある場合は、1ビツトエラー検出器
13で検出され、パリテイビツトが反転される。 If we take the parity of the syndrome bits 10a to 10f and all check bits, the influence of the check bits disappears on these parity bits.
The desired read data parity for data bits 0 to 15 is determined. Here, if there is a 1-bit error in the data portion, it is detected by the 1-bit error detector 13 and the parity bit is inverted.
なお、データが32ビツト、64ビツトなどの場合
でも、同様の方式で読出データパリテイを生成す
ることができる。 Note that even when the data is 32 bits, 64 bits, etc., read data parity can be generated using the same method.
本発明は以上説明したように、チエツクビツト
シンドロームとビツトにより読出データパリテイ
生成をデータの1ビツト訂正と並行して行うた
め、該パリテイを少ない遅延時間で出力するとい
う効果がある。 As described above, the present invention generates read data parity using check bit syndrome and bits in parallel with one-bit correction of data, and therefore has the effect of outputting the parity with a short delay time.
第1図は従来のパリテイ生成方式を示すブロツ
ク図、第2図は本発明パリテイ生成方式の一実施
例を示すブロツク図、第3図は上記本発明に適用
される、データ長16ビツトの場合のハミングコー
ドの例を示す説明図、第4図は上記ハミングコー
ドを使用した本発明パリテイ生成方式の一例の詳
細を示すブロツク図である。
1……チエツクビツトジエネレータ、2……メ
モリ、3……シンドロームジエネレータ、4……
デコーダ、5……1ビツト誤り訂正器、6……書
込データ、7……読出データパリテイ、8……チ
エツクビツト、9……読出データ(修正前)、1
0……シンドロームビツト、11……読出データ
(修正後)、12……読出データパリテイジエネレ
ータ、13……データ1ビツト誤り検出器、14
……読出データパリテイ訂正器。
FIG. 1 is a block diagram showing a conventional parity generation method, FIG. 2 is a block diagram showing an embodiment of the parity generation method of the present invention, and FIG. 3 is a case of 16-bit data length applied to the present invention. FIG. 4 is a block diagram showing details of an example of the parity generation method of the present invention using the Hamming code. 1...Check bit generator, 2...Memory, 3...Syndrome generator, 4...
Decoder, 5... 1-bit error corrector, 6... Write data, 7... Read data parity, 8... Check bit, 9... Read data (before correction), 1
0... Syndrome bit, 11... Read data (after correction), 12... Read data parity generator, 13... Data 1-bit error detector, 14
...Read data parity corrector.
Claims (1)
ームビツトを生成し、このシンドロームビツトを
デコーダに入力せしめて1ビツト誤りの位置を検
出せしめ、1ビツト誤り訂正器にて読出データの
ビツト誤りを訂正するよう構成して成る誤り訂正
機能を備えたメモリ装置におけるパリテイ生成方
式において、上記シンドロームビツトにより、1
ビツト誤りがデータ部にあるか否かを検出するデ
ータ1ビツト誤り検出器と、上記シンドロームビ
ツトとチエツクビツトとから読出データのパリテ
イビツトを発生する読出データパリテイジエネレ
ータと、上記読出データ部に1ビツト誤りが検出
された時、上記読出データパリテイジエネレータ
から出力されるパリテイビツトを反転する読出デ
ータパリテイ訂正器とを備えて成り、読出データ
部に1ビツト誤りが検出された時、該誤りビツト
の訂正と並行して正しいデータパリテイビツトを
生成するよう構成して成ることを特徴とするメモ
リ装置のパリテイビツト生成方式。1 A syndrome bit is generated from read data and a check bit, the syndrome bit is input to a decoder to detect the position of a 1-bit error, and a 1-bit error corrector corrects the bit error in the read data. In the parity generation method in a memory device equipped with an error correction function, the syndrome bit
a data 1-bit error detector for detecting whether or not a bit error exists in the data section; a read data parity generator for generating a parity bit for read data from the syndrome bit and check bit; and a read data parity corrector that inverts the parity bit output from the read data parity generator when an error is detected, and when a 1-bit error is detected in the read data section, the error bit is inverted. 1. A parity bit generation method for a memory device, characterized in that the method is configured to generate correct data parity bits in parallel with correction of data parity bits.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57178286A JPS5968899A (en) | 1982-10-13 | 1982-10-13 | Parity producing system of memory device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57178286A JPS5968899A (en) | 1982-10-13 | 1982-10-13 | Parity producing system of memory device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5968899A JPS5968899A (en) | 1984-04-18 |
| JPH0418338B2 true JPH0418338B2 (en) | 1992-03-27 |
Family
ID=16045807
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57178286A Granted JPS5968899A (en) | 1982-10-13 | 1982-10-13 | Parity producing system of memory device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5968899A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS54103639A (en) * | 1978-02-01 | 1979-08-15 | Hitachi Ltd | Memory unit |
-
1982
- 1982-10-13 JP JP57178286A patent/JPS5968899A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5968899A (en) | 1984-04-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3325914B2 (en) | Error correction detection method for data and error detection circuit for computer memory | |
| EP0186719A1 (en) | Device for correcting errors in memories | |
| US4858236A (en) | Method for error correction in memory system | |
| JP3170145B2 (en) | Memory control system | |
| JPS6232813B2 (en) | ||
| JPS5968899A (en) | Parity producing system of memory device | |
| JPS6155131B2 (en) | ||
| JP2518333B2 (en) | Storage device | |
| JPH0756816A (en) | Memory controller | |
| JPH0434786B2 (en) | ||
| JP2930239B2 (en) | Storage device failure detection method and storage control device | |
| JPH06301604A (en) | Storage reproducing system | |
| JPS6048769B2 (en) | Loading method | |
| JPS61196341A (en) | System for correcting memory error | |
| JPS604497B2 (en) | Storage device | |
| JPS6155696B2 (en) | ||
| JPH0675864A (en) | Memory error recovery system | |
| JPS6261974B2 (en) | ||
| JPH054266U (en) | Memory device | |
| JPS6232821B2 (en) | ||
| JPH06103469B2 (en) | Memory control circuit | |
| JPS6232826B2 (en) | ||
| JPS6240742B2 (en) | ||
| JPH01133299A (en) | Semiconductor memory device | |
| JPS63141153A (en) | Semiconductor external memory device |