JPH11167497A - Device and method for detecting memory rewrite operation error - Google Patents

Device and method for detecting memory rewrite operation error

Info

Publication number
JPH11167497A
JPH11167497A JP9333917A JP33391797A JPH11167497A JP H11167497 A JPH11167497 A JP H11167497A JP 9333917 A JP9333917 A JP 9333917A JP 33391797 A JP33391797 A JP 33391797A JP H11167497 A JPH11167497 A JP H11167497A
Authority
JP
Japan
Prior art keywords
error
data
check bit
circuit
output
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.)
Granted
Application number
JP9333917A
Other languages
Japanese (ja)
Other versions
JP3190867B2 (en
Inventor
Takeshi Kijino
剛 来住野
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 Computertechno Ltd
Original Assignee
NEC Computertechno 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 Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP33391797A priority Critical patent/JP3190867B2/en
Publication of JPH11167497A publication Critical patent/JPH11167497A/en
Application granted granted Critical
Publication of JP3190867B2 publication Critical patent/JP3190867B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To shorten the rewrite time by providing a means such as a rewrite means rewriting an inspection bit output corrected by an inspection bit error correction means to a storage element without through an error correction/ detection circuit. SOLUTION: When data and the inspection bit, which are corrected by error correction circuits 6 and 7, a supplied and stored to/in a read data storage register 202, a selector 3 selects output data of the read data storage register 202 and supplies it to a write data storage register 102. The write data storage register 102 stores output data of the selector 3 and outputs write data and the inspection bit to the memory array 4 at a prescribed timing. Thus, an ECG circuit 2 generating the inspection bit can be bypassed at the time of rewriting by newly providing the error correction circuit 7 to the inspection bit added to read data. Thus, rewriting time can be shortened.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、誤り訂正/検出回
路(ECC回路:Error Correecting Code,以降ECC
回路という)を有する記憶装置に係り、特に読み出しデ
ータに誤りが発生した場合、ECC回路による訂正を行
い記憶素子への再書き込みを行うメモリ再書き込み動作
誤り検出装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error correction / detection circuit (ECC circuit: Error Correcting Code, hereinafter referred to as ECC circuit).
In particular, the present invention relates to a memory rewrite operation error detection apparatus and method for correcting an ECC circuit and rewriting a storage element when an error occurs in read data.

【0002】[0002]

【従来の技術】従来、メモリ素子のソフト・エラー(例
えば、α線等により、記憶されたデータが反転する現象
であるが、再書き込みにより完全に復元可能なエラー)
対策として、ECC回路を具備し、記憶素子からの読み
出しデータに対する誤り検出/訂正を行い、記憶素子に
再書き込みを行うことで、記憶装置の信頼性を向上させ
る方法が一般に用いられている。
2. Description of the Related Art Conventionally, a soft error of a memory element (for example, a phenomenon in which stored data is inverted by α rays or the like, but an error which can be completely restored by rewriting)
As a countermeasure, a method of improving the reliability of a storage device by providing an ECC circuit, performing error detection / correction on data read from the storage element, and rewriting the storage element is generally used.

【0003】この種の従来における技術として、例え
ば、特開平07−073114号公報に記載のものがあ
る。上記特開平07−073114号公報に記載の発明
(記憶素子への再書き込み動作)について、図3を参照
しながら簡単に説明を行う。
As a conventional technique of this kind, for example, there is one described in Japanese Patent Application Laid-Open No. 07-07114. The invention (rewriting operation to the storage element) described in JP-A-07-073114 will be briefly described with reference to FIG.

【0004】図3は従来のメモリ再書き込み動作誤り検
出装置の構成を示したブロック図である。
FIG. 3 is a block diagram showing a configuration of a conventional memory rewrite operation error detecting device.

【0005】図3に示した従来におけるメモリ再書き込
み動作誤り検出装置は、主演算部11と、メモリ12
と、ECC回路13と、タイミング回路14と、データ
レジスタ15と、外部入出力バッファ16と、アドレス
レジスタ17と、3ステートバッファ18と、書き込み
データ選択回路19を備えて構成される。
[0005] The conventional memory rewrite operation error detecting device shown in FIG.
, An ECC circuit 13, a timing circuit 14, a data register 15, an external input / output buffer 16, an address register 17, a three-state buffer 18, and a write data selection circuit 19.

【0006】主演算部11は、メモリ12からの読み出
し動作を行うために、アドレスレジスタ17に読み出し
アドレス301を供給すると共に、読み出し信号303
をアドレスレジスタ17,メモリ12,ECC回路1
3,データレジスタ15,並びに3ステートバッファ1
8にそれぞれ供給する。また、アドレスレジスタ17は
読み出しアドレス305をメモリ12に供給する。
The main processing unit 11 supplies a read address 301 to the address register 17 and performs a read signal 303 to perform a read operation from the memory 12.
To address register 17, memory 12, ECC circuit 1
3, data register 15, and 3-state buffer 1
8 respectively. The address register 17 supplies the read address 305 to the memory 12.

【0007】メモリ12から読み出されたデータは、E
CC回路13に供給され、誤り訂正処理が施された後、
データレジスタ15に格納される。また、ECC回路1
3は誤り訂正を行う際、タイミング回路14に対して再
書き込み指示信号309を供給する。
The data read from the memory 12 is E
After being supplied to the CC circuit 13 and subjected to error correction processing,
The data is stored in the data register 15. ECC circuit 1
3 supplies a rewrite instruction signal 309 to the timing circuit 14 when performing error correction.

【0008】再書き込み指示信号309の供給されたタ
イミング回路14は、再書き込み動作を開始し、データ
レジスタ15に格納されたデータを、書き込みデータ選
択回路19を介してECC回路18に供給する。ECC
回路13は供給されたデータに検査ビットを付加し、メ
モリ12に対して書き込みデータ及び検査ビットを供給
する。
The timing circuit 14 to which the rewrite instruction signal 309 has been supplied starts the rewrite operation, and supplies the data stored in the data register 15 to the ECC circuit 18 via the write data selection circuit 19. ECC
The circuit 13 adds check bits to the supplied data, and supplies write data and check bits to the memory 12.

【0009】また、メモリ12は、アドレスレジスタ1
7より供給された読み出しアドレス305にて指示され
たアドレスに、ECC回路13より供給されたデータを
書き込む。
The memory 12 has an address register 1
Then, the data supplied from the ECC circuit 13 is written to the address specified by the read address 305 supplied from.

【0010】[0010]

【発明が解決しようとする課題】上記従来の技術による
と、読み出しデータの誤り検出/訂正を行った後、再度
書き込みデータを誤り検出/訂正回路に入力し、誤り検
出/訂正用検査ビットを生成しているため、読み出しデ
ータの誤り検出/訂正を行った後の再書き込み動作に時
間がかかるという問題があった。
According to the above-mentioned prior art, after error detection / correction of read data is performed, write data is again input to an error detection / correction circuit to generate an error detection / correction check bit. Therefore, there is a problem that it takes a long time to perform a rewrite operation after error detection / correction of read data.

【0011】また、メモリ等の記憶素子への再書き込み
データの検査ビットを生成する回路(誤り検出/訂正回
路)に故障が発生した場合等には、再書き込み動作が常
に起動されることとなり、これにより、訂正可能エラー
が書き込みを行う度に記憶素子に埋め込まれてしまうこ
ととなり、記憶素子からの読み出し動作では必ず訂正可
能エラーが検出され、再書き込み動作が必ず行われるこ
とになり、記憶装置の性能(処理速度等)を低下させて
しまうと共に記憶素子への再書き込みによる所望の信頼
性が得られなくなるという問題(欠点)があった。
When a failure occurs in a circuit (error detection / correction circuit) for generating a check bit of data to be rewritten to a storage element such as a memory, the rewrite operation is always started, As a result, a correctable error is embedded in the storage element every time writing is performed, and a correctable error is always detected in a read operation from the storage element, and a rewrite operation is necessarily performed. However, there is a problem (defect) that the performance (processing speed and the like) of the device is lowered and desired reliability cannot be obtained by rewriting to the storage element.

【0012】そこで、本発明の目的は、メモリ等の記憶
素子のソフト・エラー対策として、ECC回路を具備
し、訂正可能な誤りが発生した場合、記憶素子への再書
き込みを行う記憶制御回路における再書き込み動作性能
(処理速度)を向上させると共に、誤り検出/訂正回路
に故障が発生した場合でも記憶装置の性能を低下させる
ことなく、且つ所望の信頼性の得られるメモリ再書き込
み動作誤り検出装置及び方法を提供することにある。
An object of the present invention is to provide an ECC circuit as a countermeasure against soft errors in a storage element such as a memory, and to provide a storage control circuit for rewriting the storage element when a correctable error occurs. A memory rewrite operation error detection device that can improve rewrite operation performance (processing speed) and can obtain desired reliability without lowering the performance of a storage device even when a failure occurs in an error detection / correction circuit. And a method.

【0013】[0013]

【課題を解決するための手段】上記目的を達成するた
め、本発明のメモリ再書き込み動作誤り検出装置は、記
憶素子のソフト・エラー対策として、誤り訂正/検出回
路を具備し、記憶素子からの読み出しデータに誤りが発
生した場合、読み出しデータの訂正を行い、記憶素子へ
の再書き込みを行う機能を有するメモリ再書き込み動作
誤り検出装置において、読み出しデータに付加される検
査ビットに対する誤り訂正を行う検査ビット用誤り訂正
手段と、前記検査ビット用誤り訂正手段により訂正され
た検査ビット出力を、前記誤り訂正/検出回路を介さず
に、前記記憶素子に対して再書き込みする再書き込み手
段と、を備えて構成されることを特徴とするものであ
る。
In order to achieve the above object, a memory rewrite operation error detection device according to the present invention includes an error correction / detection circuit as a measure against soft errors in a storage element, When an error occurs in read data, in a memory rewrite operation error detection device having a function of correcting the read data and rewriting the storage element, a test for correcting an error for a check bit added to the read data is performed. Bit error correction means, and rewrite means for rewriting the check bit output corrected by the check bit error correction means to the storage element without passing through the error correction / detection circuit. It is characterized by comprising.

【0014】また、本発明のメモリ再書き込み動作誤り
検出方法は、記憶素子のソフト・エラー対策として、誤
り訂正/検出回路を具備し、記憶素子からの読み出しデ
ータに誤りが発生した場合、読み出しデータの訂正を行
い、記憶素子への再書き込みを行う機能を有するメモリ
再書き込み動作誤り検出装置において、読み出しデータ
に付加される検査ビットに対する誤りを訂正し、前記訂
正された検査ビット出力を、前記誤り訂正/検出回路を
介さずに前記記憶素子に対して再書き込みすることを特
徴とするものである。
The memory rewrite operation error detection method of the present invention includes an error correction / detection circuit as a countermeasure against a soft error of the storage element. In a memory rewrite operation error detection device having a function of performing a rewrite operation and performing a rewrite operation on a storage element, an error for a check bit added to read data is corrected, and the corrected check bit output is output as the error. It is characterized in that rewriting is performed on the storage element without passing through a correction / detection circuit.

【0015】上記発明によれば、記憶素子からの続み出
しデータに付加される検査ビットに対する誤り訂正回路
を備え、この誤り訂正された検査ビットを再書き込み時
に使用し、記憶素子への再書き込み時に付加される検査
ビットの生成回路(ECG回路)をバイパスさせること
により、再書き込み動作の時間短縮を実現している。ま
た、再書き込み時に、上記ECG回路をバイパスさせる
ことにより、ECG回路に訂正可能な故障が発生した場
合でも、再書き込み動作を行うことにより、前記ECG
回路の故障を救済することが可能となり、記憶装置の信
頼性の向上を実現している。
According to the above-mentioned invention, an error correction circuit is provided for a check bit added to data following from the storage element, and the error-corrected check bit is used at the time of rewriting to rewrite the storage element. By bypassing the test bit generation circuit (ECG circuit) that is sometimes added, the time required for the rewrite operation is reduced. In addition, by bypassing the ECG circuit at the time of rewriting, even if a correctable failure occurs in the ECG circuit, the ECG circuit can be rewritten to perform the ECG operation.
Circuit failure can be relieved, and the reliability of the storage device is improved.

【0016】[0016]

【発明の実施の形態】次に、本発明の実施の形態につい
て図面を参照して詳細に説明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

【0017】図1は本発明のメモリ再書き込み動作誤り
検出装置の実施の形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a memory rewrite operation error detecting device according to the present invention.

【0018】図1に示す本発明であるメモリ再書き込み
動作誤り検出装置は、書き込みデータ100を入力とす
る書き込みデータ格納レジスタ101と、書き込みデー
タ格納レジスタ101の出力データを入力とし、ECC
機能を実現するのに必要な検査ビットを生成する誤り検
出/訂正用検査ビット生成回路(以下、ECG回路とい
う)2と、ECG回路2と続み出しデータ格納レジスタ
202の出力データを入力とし、いずれか一方を選択す
るセレクタ3と、セレクタ3の出力を入力とする書き込
みデータ格納レジスタ102と、書き込みデータ格納レ
ジスタ102の出力データを記憶するメモリ・アレイ4
と、メモリ・アレイ4の読み出しデータを入力とする読
み出しデータ格納レジスタ201と、読み出しデータ格
納レジスタ201の出力データを入力とし、あらかじめ
設定されたECC機能により、複数ビットの誤り検出を
行い、訂正可能な誤りがあった場合、この誤り情報を出
力する誤り検出回路5と、誤り検出回路5の誤り情報を
入力とし、この誤り情報に基づいて、読み出しデータま
たは検査ビットの訂正を行う、データ用誤り訂正回路8
及び検査ビット用誤り訂正回路7と、誤り訂正回路8及
び7の出力データを入力とし、読み出しデータ200を
出力する読み出しデータ格納レジスタ202から構成さ
れる。
The memory rewrite operation error detecting device according to the present invention shown in FIG. 1 has a write data storage register 101 to which write data 100 is input, an output data of the write data storage register 101 to be input, and an ECC.
An error detection / correction check bit generation circuit (hereinafter, referred to as an ECG circuit) 2 for generating check bits necessary for realizing the function, and an output data of the ECG circuit 2 and the run-out data storage register 202 are input. A selector 3 for selecting one of them, a write data storage register 102 to which an output of the selector 3 is input, and a memory array 4 for storing output data of the write data storage register 102
, A read data storage register 201 to which read data of the memory array 4 is input, and an input of output data of the read data storage register 201 to detect and correct a plurality of bits of errors by a preset ECC function. If there is an error, an error detection circuit 5 that outputs the error information, and an error for the data that receives the error information of the error detection circuit 5 and corrects read data or check bits based on the error information. Correction circuit 8
And an error correction circuit 7 for check bits, and a read data storage register 202 which receives output data of the error correction circuits 8 and 7 and outputs read data 200.

【0019】次に、本発明の実施の形態における動作に
ついて、図1及び図2を参照して詳細に説明を行う。
Next, the operation of the embodiment of the present invention will be described in detail with reference to FIGS.

【0020】図2は本発明のメモリ再書き込み動作誤り
検出装置の動作を説明するためのタイミング・チャート
である。尚、図2に示すタイミング・チャートは、記憶
素子から読み出された検査ビットに訂正可能エラーがあ
る場合における本発明のメモリ再書き込み動作誤り検出
装置の動作について示したものである。また、本発明の
趣旨は、記憶素子への再書き込み動作にあるため、通常
の書き込み動作及び通常の読み出し動作についての説明
は省略する。
FIG. 2 is a timing chart for explaining the operation of the memory rewrite operation error detecting device according to the present invention. Note that the timing chart shown in FIG. 2 shows the operation of the memory rewrite operation error detecting device of the present invention when the check bit read from the storage element has a correctable error. In addition, since the purpose of the present invention is a rewrite operation to a storage element, description of a normal write operation and a normal read operation is omitted.

【0021】先ず、メモリ・アレイ4から読み出された
ところの読み出しデータ及び検査ビットを、読み出しデ
ータ格納レジスタ201に格納する。誤り検出回路5
は、あらかじめ定められたECC機能により、読み出し
データ格納レジスタ201の出力データである読み出し
データ及び検査ビットに誤りがあるかどうかを検出し、
データ用誤り訂正回路6及び検査ビット用誤り訂正回路
7に対して、それぞれ誤り情報を送出する。尚、本実施
の形態では、検査ビットに訂正可能エラーがある場合に
ついて論じたものであるため、検査ビット誤り訂正回路
7にのみ誤り情報が供給される。
First, read data and check bits read from the memory array 4 are stored in the read data storage register 201. Error detection circuit 5
Detects whether there is an error in the read data and the check bit which are the output data of the read data storage register 201 by a predetermined ECC function,
Error information is sent to the data error correction circuit 6 and the check bit error correction circuit 7, respectively. In the present embodiment, the case where the check bit has a correctable error has been discussed, so that only the check bit error correction circuit 7 is supplied with error information.

【0022】データ用誤り訂正回路6及び検査ビット用
誤り訂正回路7は、誤り検出回路5から供給される誤り
情報に基づいて誤りを訂正し、訂正されたデータ及び検
査ビットを続み出しデータ格納レジスタ202へ供給す
る。最後に、読み出しデータ格納レジスタ202は、そ
の出力データを読み出しデータ200として、図示しな
い中央演算処理装置等の上位装置に対して出力する。こ
れにより、メモリ・アレイ4からの読み出し動作が完了
する。
The data error correction circuit 6 and the check bit error correction circuit 7 correct errors based on the error information supplied from the error detection circuit 5, and output the corrected data and check bits to store the data. Supply to register 202. Finally, the read data storage register 202 outputs the output data as read data 200 to a host device such as a central processing unit (not shown). Thereby, the read operation from the memory array 4 is completed.

【0023】次に、再書き込み動作について説明を行
う。読み出しデータ格納レジスタ202は、前述の通
り、誤り訂正回路6及び7より、訂正された読み出しデ
ータ及び検査ビットが供給されることにより、その出力
データを読み出しデータ200として、図示しない中央
演算処理装置等の上位装置に対して出力するが、この
際、即ち、読み出しデータ格納レジスタ202に、誤り
訂正回路6及び7より、訂正されたデータ及び検査ビッ
トが供給格納されると、セレクタ3は、この続み出しデ
ータ格納レジスタ202の出力データを選択し、書き込
みデータ格納レジスタ102へ供給する。
Next, the rewrite operation will be described. As described above, the read data storage register 202 is supplied with the corrected read data and the check bit from the error correction circuits 6 and 7, and outputs the output data as the read data 200, such as a central processing unit (not shown). In this case, when the corrected data and check bits are supplied and stored by the error correction circuits 6 and 7 to the read data storage register 202, the selector 3 The output data of the read data storage register 202 is selected and supplied to the write data storage register 102.

【0024】書き込みデータ格納レジスタ102は、セ
レクタ3の出力データを格納後、所定のタイミングに
て、メモリ・アレイ4へ書き込みデータ及び検査ビット
を出力する。上記読み出し動作及び書き込み動作の終了
により、一連の記憶素子への再書き込み動作が完了す
る。
After storing the output data of the selector 3, the write data storage register 102 outputs the write data and the check bit to the memory array 4 at a predetermined timing. Upon completion of the read operation and the write operation, a series of rewrite operations to the storage element is completed.

【0025】ところで、本発明のポイントは、従来技術
ではデータに対してのみ誤り訂正を行っていたのに対
し、本発明ではデータに付加されている検査ビットに対
する誤り訂正回路7を設けることで、検査ビットに対し
ても誤り訂正を行うようにした点にある。
The point of the present invention is that the error correction is performed only on the data in the prior art, whereas the error correction circuit 7 for the check bits added to the data is provided in the present invention, The point is that error correction is performed on the check bits.

【0026】元々、記憶装置では、上位装置から送出さ
れる書き込みデータに対して、検査ビットを付加し、さ
らに、誤り検出/訂正機能を備えることによって、記憶
装置の信頼度を向上させている。したがって、上位装置
へ出力する読み出しデータに対しては、データ部のみの
誤り訂正を行えば十分であり、読み出しデータに付加さ
れている検査ビットについては、誤り検出機能は有して
いるものの訂正する必要がないため、検査ビットの誤り
情報は有効に利用されていなかった。
Originally, the storage device improves the reliability of the storage device by adding a check bit to the write data transmitted from the host device and further having an error detection / correction function. Therefore, it is sufficient for the read data to be output to the host device to correct the error only in the data portion, and the check bits added to the read data are corrected even though they have an error detection function. Since there is no need, the error information of the check bit has not been effectively used.

【0027】しかし、本発明によれば、前記検査ビット
の誤り情報を有効に活用し、検査ビットに対する誤り訂
正回路7を設け、再書き込み時にECG回路2をバイパ
スさせることにより、再書き込み時間の短縮を図ること
が可能となる。
However, according to the present invention, the rewriting time can be shortened by effectively utilizing the error information of the check bit, providing the error correction circuit 7 for the check bit, and bypassing the ECG circuit 2 at the time of rewriting. Can be achieved.

【0028】また、本発明においては、ECG回路2に
訂正可能故障が発生しても、再書き込み動作を行うこと
により、故障を除去することが可能である。即ち、EC
G回路2に訂正可能故障が発生したと仮定すると、上位
装置からの記憶素子への書き込み動作において、ECC
機能を実現するために、必ずECG回路2を通過し、書
き込みデータに付加する検査ビットを生成する。このと
き、訂正可能障害が発生しているECG回路2は、訂正
可能障害が潜在した書き込みデータ(検査ビットを含
む)を発生(出力)するため、メモリ・アレイ4に訂正
可能障害データを書き込むことになる。
Further, in the present invention, even if a correctable fault occurs in the ECG circuit 2, the fault can be removed by performing a rewrite operation. That is, EC
Assuming that a correctable fault has occurred in the G circuit 2, in a write operation from a higher-level device to a storage element, an ECC
In order to realize the function, it always passes through the ECG circuit 2 and generates a check bit added to write data. At this time, the ECG circuit 2 in which the correctable fault has occurred writes the correctable fault data to the memory array 4 to generate (output) write data (including a check bit) in which the correctable fault is latent. become.

【0029】この状態で、再書き込み動作が起動される
と、従来技術では、訂正可能障害を一度は訂正するが、
再書き込み時において、再度ECG回路を通過させるた
め、結果的には、訂正可能障害データを再度、メモリ・
アレイ4に書き込むことになる。したがって、何度再書
き込み動作が起動されても、訂正可能障害データを復旧
する(正しいデータが書き込まれる)ことは不可能であ
り、これによって、常に再書き込み動作が起動されるこ
とになり、記憶装置性能の低下を誘発すると共に、別の
訂正可能障害(記憶素子のソフト・エラーも1つの障害
要因となり得る)が発生した場合には、訂正不能障害と
なり、最悪、記憶装置を使用できなくなる可能性も生じ
る。
In this state, when the rewrite operation is started, the correctable fault is corrected once in the prior art.
At the time of rewriting, the data is passed through the ECG circuit again.
Array 4 will be written. Therefore, no matter how many times the rewrite operation is started, it is impossible to recover the correctable failure data (correct data is written), whereby the rewrite operation is always started, and the storage is performed. In addition to causing a decrease in device performance, if another correctable fault occurs (a soft error of a storage element can also be one cause of failure), an uncorrectable fault occurs, and in the worst case, the storage device cannot be used. The nature also occurs.

【0030】一方、本発明に記載のECG回路2をバイ
パスする再書き込み動作を行えば、誤り訂正された読み
出しデータを、再書き込みデータとして使用するため、
一度の再書き込み動作にて、メモリ・アレイ4に正しい
データが書き込まれることになり、別の訂正可能障害が
発生しない限り、再書き込み動作を起動する必要がなく
なり、記憶装置性能の低下を防止でき、さらに、信頼性
を向上させることが可能となる。
On the other hand, if a rewrite operation is performed to bypass the ECG circuit 2 according to the present invention, the error-corrected read data is used as the rewrite data.
Correct data is written to the memory array 4 in one rewrite operation, and it is not necessary to start the rewrite operation unless another correctable failure occurs, and it is possible to prevent a decrease in storage device performance. Further, the reliability can be improved.

【0031】なお、記憶素子への再書き込み動作は、記
憶装置性能の低下を防ぐために、読み出し動作時におい
て、訂正可能障害が発生したときにのみ、起動させるの
が一般的である。
In general, a rewrite operation to a storage element is started only when a correctable failure occurs during a read operation in order to prevent the performance of the storage device from deteriorating.

【0032】[0032]

【発明の効果】以上述べたように、上記本発明によれ
ば、記憶素子のソフト・エラー対策として、誤り訂正/
検出回路を具備し、記憶素子からの読み出しデータに誤
りが発生した場合、続み出しデータの訂正を行い、記憶
素子への再書き込みを行う機能を有する記憶装置におい
て、読み出しデータに付加される検査ビットに対する誤
り訂正回路を新たに備えることにより、再書き込み時に
必要な書き込みデータに対する検査ビットを生成する回
路(ECG回路)をバイパスすることを可能とし、これ
により、再書き込み時間の短縮を図ることができる。
As described above, according to the present invention, as a countermeasure against a soft error of a storage element, an error correction /
In a storage device including a detection circuit and having a function of correcting read-out data and rewriting data to the storage element when an error occurs in data read from the storage element, an inspection added to the read data is performed. By newly providing an error correction circuit for bits, it is possible to bypass a circuit (ECG circuit) for generating a check bit for write data required at the time of rewriting, thereby shortening the rewriting time. it can.

【0033】また、書き込みデータに付加される検査ビ
ット生成回路に故障が発生した場合でも、読み出しデー
タに付加される検査ビットに対する誤り訂正回路を新た
に備えたことにより、ECG回路は上位装置から初めて
記憶素子に書き込みされるときに通過するのみとなり、
この時点で記憶素子に誤り訂正可能エラーが書き込まれ
たとしても、再書き込み動作により、この訂正可能エラ
ーが除去され、訂正された正しいデータが、記憶素子に
再書き込みされるため、記憶装置性能の低下を最小限に
抑えることができ、さらに、訂正可能故障が発生してい
るECG回路がバイパスできるため、記憶装置の信頼度
の向上が図れる。
Even when a failure occurs in the check bit generation circuit added to the write data, the ECG circuit is first provided by an upper device by providing an error correction circuit for the check bit added to the read data. It only passes when it is written to the storage element,
Even if an error correctable error is written to the storage element at this point, the correctable error is removed by the rewriting operation, and the corrected correct data is rewritten to the storage element. Since the degradation can be minimized and the ECG circuit in which a correctable failure has occurred can be bypassed, the reliability of the storage device can be improved.

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

【図1】本発明におけるメモリ再書き込み動作誤り検出
装置の実施の形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a memory rewrite operation error detection device according to the present invention.

【図2】本発明のメモリ再書き込み動作誤り検出装置の
動作を説明するためのタイミング・チャートである。
FIG. 2 is a timing chart for explaining the operation of the memory rewrite operation error detection device of the present invention.

【図3】従来におけるメモリ再書き込み動作誤り検出装
置の構成を示したブロック図である。
FIG. 3 is a block diagram showing a configuration of a conventional memory rewrite operation error detection device.

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

1 記憶装置 2 ECG回路 3 セレクタ 4 メモリ・アレイ 5 誤り検出回路 6 データ用誤り訂正回路 7 検査ビット用誤り訂正回路 11 主演算部 12 メモリ 13 誤り検出/訂正(ECC)回路 14 タイミング回路 15 データレジスタ 16 外部入出力バッファ 17 アドレスレジスタ 18 3ステートバッファ 19 書き込みデータ選択回路 100 書き込みデータ 101 書き込みデータ格納レジスタ 102 書き込みデータ格納レジスタ 200 読み出しデータ 201 読み出しデータ格納レジスタ 202 読み出しデータ格納レジスタ DESCRIPTION OF SYMBOLS 1 Storage device 2 ECG circuit 3 Selector 4 Memory array 5 Error detection circuit 6 Error correction circuit for data 7 Error correction circuit for check bits 11 Main operation part 12 Memory 13 Error detection / correction (ECC) circuit 14 Timing circuit 15 Data register Reference Signs List 16 external input / output buffer 17 address register 18 3-state buffer 19 write data selection circuit 100 write data 101 write data storage register 102 write data storage register 200 read data 201 read data storage register 202 read data storage register

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】記憶素子のソフト・エラー対策として、誤
り訂正/検出回路を具備し、記憶素子からの読み出しデ
ータに誤りが発生した場合、読み出しデータの訂正を行
い、記憶素子への再書き込みを行う機能を有するメモリ
再書き込み動作誤り検出装置において、 読み出しデータに付加される検査ビットに対する誤り訂
正を行う検査ビット用誤り訂正手段と、 前記検査ビット用誤り訂正手段により訂正された検査ビ
ット出力を、前記記憶素子に対して再書き込みする再書
き込み手段と、 を備えたことを特徴とするメモリ再書き込み動作誤り検
出装置。
An error correction / detection circuit is provided as a measure against soft errors in a storage element. When an error occurs in data read from the storage element, the read data is corrected and rewriting to the storage element is performed. In a memory rewrite operation error detection device having a function of performing a check bit error correction means for performing error correction on a check bit added to read data, and a check bit output corrected by the check bit error correction means, A memory rewriting operation error detection device, comprising: rewriting means for rewriting the storage element.
【請求項2】前記再書き込み手段は、前記検査ビット出
力を前記誤り訂正/検出回路を介さずに、前記記憶素子
に対して再書き込みすることを特徴とする請求項1に記
載のメモリ再書き込み動作誤り検出装置。
2. The memory rewriting device according to claim 1, wherein said rewriting means rewrites said check bit output to said storage element without passing through said error correction / detection circuit. Operation error detection device.
【請求項3】記憶素子のソフト・エラー対策として、誤
り訂正/検出回路を具備し、記憶素子からの読み出しデ
ータに誤りが発生した場合、読み出しデータの訂正を行
い、記憶素子への再書き込みを行う機能を有するメモリ
再書き込み動作誤り検出装置において、 上位装置からの書き込みデータを入力とする第1の書き
込みデータ格納レジスタと、 前記第1の書き込みデータ格納レジスタの出力データを
入力とし、ECC機能を実現するのに必要な検査ビット
を生成する誤り検出/訂正用検査ビット生成回路と、 前記誤り検出/訂正用検査ビット生成回路と第2の読み
出しデータ格納レジスタの出力データとを入力とし、い
ずれか一方を選択するセレクタと、 前記セレクタ出力の書き込みデータを格納する第2の書
き込みデータ格納レジスタと、 前記第2の書き込みデータ格納レジスタの出力データを
記憶するメモリ・アレイと、 前記メモリ・アレイの続み出しデータを入力とする第1
の読み出しデータ格納レジスタと、 前記第1の読み出しデータ格納レジスタの出力データを
入力とし、あらかじめ設定されたECC機能により、複
数ビットの誤り検出を行い、訂正可能な誤りがあった場
合、この誤り情報を出力する誤り検出回路と、 前記誤り検出回路の誤り情報を入力とし、前記誤り情報
により、読み出しデータまたは検査ビットの訂正を行う
と共に、前記訂正された読み出しデータ及び検査ビット
出力を、上位装置への読み出しデータを出力する前記第
2の読み出しデータ格納レジスタに出力するデータ用/
検査ビット用誤り訂正回路と、 を備えたことを特徴とするメモリ再書き込み動作誤り検
出装置。
3. A storage device having an error correction / detection circuit as a countermeasure against soft errors, wherein when an error occurs in data read from the storage element, the read data is corrected and rewriting to the storage element is performed. A memory rewrite operation error detection device having a function of performing a first write data storage register to which write data from a higher-level device is input, and an ECC function to receive output data of the first write data storage register as input. An error detection / correction check bit generation circuit for generating check bits required for realization; and an error detection / correction check bit generation circuit and output data of a second read data storage register. A selector for selecting one of them, and a second write data storage register for storing write data of the selector output A memory array that stores output data of the second write data storage register; and a first array that receives data from the memory array.
And the output data of the first read data storage register is input, and a plurality of bits of error are detected by a preset ECC function. And an error detection circuit that outputs error information of the error detection circuit, corrects read data or check bits based on the error information, and outputs the corrected read data and check bit output to a higher-level device. For the data to be output to the second read data storage register for outputting the read data of
A memory rewrite operation error detection device, comprising: a check bit error correction circuit;
【請求項4】前記データ用/検査ビット用誤り訂正回路
は、前記記憶素子から読み出されたデータ及び検査ビッ
ト出力に対し、ある定められたECC機能に従い誤りを
検出する前記誤り検出回路から出力される検査ビットの
誤り情報を元に、検査ビットの誤りを訂正し、検査ビッ
ト出力として送出することを特徴とする請求項3に記載
のメモリ再書き込み動作誤り検出装置。
4. The data / check bit error correction circuit outputs the data read from the storage element and the check bit output from the error detection circuit detecting an error according to a predetermined ECC function. 4. The memory rewrite operation error detecting device according to claim 3, wherein the error of the check bit is corrected based on the error information of the check bit to be performed, and the corrected error is transmitted as a check bit output.
【請求項5】前記記憶素子から読み出されたデータ及び
検査ビットに対し、ある定められたECC機能に従い、
誤りを検出する誤り検出回路から出力される検査ビット
の誤り情報を元に、検査ビットの誤りを訂正する検査ビ
ット誤り訂正回路を備えたことを特徴とする請求項3に
記載のメモリ再書き込み動作誤り検出装置。
5. The data and check bits read from the storage element according to a predetermined ECC function.
4. The memory rewriting operation according to claim 3, further comprising a check bit error correction circuit for correcting an error of the check bit based on error information of the check bit output from the error detection circuit for detecting an error. Error detection device.
【請求項6】前記セレクタは、前記データ用/検査ビッ
ト用誤り訂正回路から送出された検査ビット出力を、前
記誤り検出/訂正用検査ビット生成回路をバイパスする
ように、再書き込み用検査ビット出力として選択するこ
とを特徴とする請求項3または4に記載のメモリ再書き
込み動作誤り検出装置。
6. A rewrite check bit output circuit for outputting a check bit output from the data / check bit error correction circuit so as to bypass the error detection / correction check bit generation circuit. The memory rewrite operation error detecting device according to claim 3, wherein the device is selected as:
【請求項7】記憶素子のソフト・エラー対策として、誤
り訂正/検出回路を具備し、記憶素子からの読み出しデ
ータに誤りが発生した場合、読み出しデータの訂正を行
い、記憶素子への再書き込みを行う機能を有するメモリ
再書き込み動作誤り検出装置において、 読み出しデータに付加される検査ビットに対する誤りを
訂正し、 前記訂正された検査ビット出力を前記記憶素子に対して
再書き込みする、 ことを特徴とするメモリ再書き込み動作誤り検出方法。
7. As a measure against soft errors in a storage element, an error correction / detection circuit is provided, and when an error occurs in read data from the storage element, the read data is corrected and rewriting to the storage element is performed. A memory rewrite operation error detection device having a function of performing an error correction for a check bit added to read data, and rewriting the corrected check bit output to the storage element. Memory rewrite operation error detection method.
【請求項8】前記検査ビット出力は、前記誤り訂正/検
出回路を介さずに前記記憶素子に対して再書き込みされ
ることを特徴とする請求項7に記載のメモリ再書き込み
動作誤り検出方法。
8. The memory rewrite operation error detecting method according to claim 7, wherein the check bit output is rewritten to the storage element without passing through the error correction / detection circuit.
【請求項9】記憶素子のソフト・エラー対策として、誤
り訂正/検出回路を具備し、記憶素子からの読み出しデ
ータに誤りが発生した場合、読み出しデータの訂正を行
い、記憶素子への再書き込みを行う機能を有するメモリ
再書き込み動作誤り検出装置において、 上位装置からの書き込みデータを第1の書き込みデータ
格納レジスタに入力するステップと、 前記第1の書き込みデータ格納レジスタの出力データを
入力とし、ECC機能を実現するのに必要な検査ビット
を、誤り検出/訂正用検査ビット生成回路により生成す
るステップと、 前記誤り検出/訂正用検査ビット生成回路と第2の読み
出しデータ格納レジスタの出力データとを入力とし、セ
レクタにより、いずれか一方を選択するステップと、 前記セレクタ出力の書き込みデータを第2の書き込みデ
ータ格納レジスタに格納するステップと、 前記第2の書き込みデータ格納レジスタの出力データを
メモリ・アレイに記憶するステップと、 前記メモリ・アレイの続み出しデータを第1の読み出し
データ格納レジスタに入力するステップと、 前記第1の読み出しデータ格納レジスタの出力データを
入力とし、あらかじめ設定されたECC機能により、複
数ビットの誤り検出を行い、訂正可能な誤りがあった場
合、この誤り情報を誤り検出回路より出力するステップ
と、 前記誤り検出回路の誤り情報を入力とし、前記誤り情報
に基づいて、データ用/検査ビット用誤り訂正回路に
て、読み出しデータまたは検査ビットの訂正を行い、前
記訂正された読み出しデータ及び検査ビットを出力する
ステップと、 前記データ用/検査ビット用誤り訂正回路の出力データ
を入力とし、前記第2の読み出しデータ格納レジスタを
介し、上位装置に対して読み出しデータの出力を行うス
テップと、 を含むことを特徴とするメモリ再書き込み動作誤り検出
方法。
9. As a measure against soft errors in the storage element, an error correction / detection circuit is provided, and when an error occurs in data read from the storage element, the read data is corrected and rewriting to the storage element is performed. Inputting write data from a higher-level device to a first write data storage register; receiving an output data of the first write data storage register as an input; Generating a check bit required to realize the above by an error detection / correction check bit generation circuit; and inputting the error detection / correction check bit generation circuit and output data of a second read data storage register. Selecting one of them by a selector; and writing data of the selector output. Is stored in a second write data storage register; the output data of the second write data storage register is stored in a memory array; Inputting the data to a storage register; inputting the output data of the first read data storage register as input; performing error detection of a plurality of bits by a preset ECC function; Outputting information from an error detection circuit; inputting error information of the error detection circuit, and correcting read data or check bits in a data / check bit error correction circuit based on the error information. Outputting the corrected read data and check bits; Receiving the output data of the bit error correction circuit as input, and outputting read data to a higher-level device via the second read data storage register. Method.
【請求項10】前記データ用/検査ビット用誤り訂正回
路は、前記記憶素子から読み出されたデータ及び検査ビ
ット出力に対し、ある定められたECC機能に従い誤り
を検出する前記誤り検出回路から出力される検査ビット
の誤り情報を元に、検査ビットの誤りを訂正して、検査
ビット出力として送出することを特徴とする請求項9に
記載のメモリ再書き込み動作誤り検出方法。
10. The data / check bit error correction circuit outputs the data read from the storage element and the check bit output from the error detection circuit that detects an error according to a predetermined ECC function. 10. The memory rewrite operation error detecting method according to claim 9, wherein an error of the check bit is corrected based on the error information of the check bit to be performed, and the corrected error is transmitted as a check bit output.
【請求項11】前記記憶素子から読み出されたデータ及
び検査ビットに対し、ある定められたECC機能に従
い、誤りを検出する誤り検出回路から出力された検査ビ
ットの誤り情報を元に、検査ビット誤り訂正回路により
前記検査ビットの誤りを訂正することを特徴とする請求
項9に記載のメモリ再書き込み動作誤り検出方法。
11. The method according to claim 1, wherein the data and the check bits read from the storage element are checked in accordance with a predetermined ECC function based on error information of the check bits output from an error detection circuit for detecting an error. The method according to claim 9, wherein an error of the check bit is corrected by an error correction circuit.
【請求項12】前記セレクタは、前記データ用/検査ビ
ット用誤り訂正回路から送出された検査ビット出力を、
前記誤り検出/訂正用検査ビット生成回路をバイパスす
るように、再書き込み用検査ビットとして選択すること
を特徴とする請求項9または10に記載のメモリ再書き
込み動作誤り検出方法。
12. The selector according to claim 1, wherein said selector outputs a check bit output sent from said data / check bit error correction circuit.
11. The memory rewrite operation error detection method according to claim 9, wherein the rewrite check bit is selected so as to bypass the error detection / correction check bit generation circuit.
JP33391797A 1997-12-04 1997-12-04 Apparatus and method for detecting memory rewrite operation error Expired - Fee Related JP3190867B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33391797A JP3190867B2 (en) 1997-12-04 1997-12-04 Apparatus and method for detecting memory rewrite operation error

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33391797A JP3190867B2 (en) 1997-12-04 1997-12-04 Apparatus and method for detecting memory rewrite operation error

Publications (2)

Publication Number Publication Date
JPH11167497A true JPH11167497A (en) 1999-06-22
JP3190867B2 JP3190867B2 (en) 2001-07-23

Family

ID=18271420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33391797A Expired - Fee Related JP3190867B2 (en) 1997-12-04 1997-12-04 Apparatus and method for detecting memory rewrite operation error

Country Status (1)

Country Link
JP (1) JP3190867B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011008518A (en) * 2009-06-25 2011-01-13 Nec Computertechno Ltd Circuit and method for initializing memory, and information processing apparatus
CN117453146A (en) * 2023-12-22 2024-01-26 芯能量集成电路(上海)有限公司 Data reading method, system, eFlash controller and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011008518A (en) * 2009-06-25 2011-01-13 Nec Computertechno Ltd Circuit and method for initializing memory, and information processing apparatus
CN117453146A (en) * 2023-12-22 2024-01-26 芯能量集成电路(上海)有限公司 Data reading method, system, eFlash controller and storage medium
CN117453146B (en) * 2023-12-22 2024-04-05 芯能量集成电路(上海)有限公司 Data reading method, system, eFlash controller and storage medium

Also Published As

Publication number Publication date
JP3190867B2 (en) 2001-07-23

Similar Documents

Publication Publication Date Title
US5502732A (en) Method for testing ECC logic
US9760434B2 (en) ECC method for double pattern flash memory
EP1164589A1 (en) Storage device having an error correction function
JPH07191915A (en) Computer system, memory card and its operating method
JP3039455B2 (en) Semiconductor memory device test method and semiconductor memory device
US4926426A (en) Error correction check during write cycles
KR20020029925A (en) Methods and apparatus for correcting soft errors in digital data
JPH03248251A (en) Information processor
JP3190867B2 (en) Apparatus and method for detecting memory rewrite operation error
JP3106947B2 (en) Nonvolatile semiconductor memory device
JPH1097471A (en) Method and system for error correction of memory data
CN116153378A (en) Error checking and refreshing operation method and semiconductor system using the same
JP2910692B2 (en) Testing method of random access memory
JP3281982B2 (en) Data buffer
JPH0520215A (en) Information processor
JP3045532B2 (en) Memory device
JP2998282B2 (en) Memory device
JP2000242515A (en) Ecc function verification circuit and ecc function verifying method
JP4985462B2 (en) Integrated circuit, integrated circuit operation test method, and operation test program
JPH05173899A (en) Information processor
JPH05108496A (en) Patrol control system
JPS63753A (en) Test system for memory error checking and correcting circuit
JPS6261974B2 (en)
JP2000099410A (en) Memory control circuit and information processor
JPS6161418B2 (en)

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090518

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100518

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees