JPH058652U - Memory device having error detection and correction circuit - Google Patents
Memory device having error detection and correction circuitInfo
- Publication number
- JPH058652U JPH058652U JP5387991U JP5387991U JPH058652U JP H058652 U JPH058652 U JP H058652U JP 5387991 U JP5387991 U JP 5387991U JP 5387991 U JP5387991 U JP 5387991U JP H058652 U JPH058652 U JP H058652U
- Authority
- JP
- Japan
- Prior art keywords
- error
- data
- error flag
- memory
- storage section
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Landscapes
- Detection And Correction Of Errors (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
(57)【要約】
【目的】メモリ装置の信頼性を向上させることである。
【構成】メモリにエラーフラグ部(2c)を設け、メモリ
の各アドレス(すなわち、データ)毎にエラーフラグを
付加できる構成としたため、エラーの統計的処理(エラ
ー発生回数の把握やエラー多発ICの特定等)を容易に
行える。
(57) [Abstract] [Purpose] To improve the reliability of a memory device. [Structure] Since the memory is provided with an error flag section (2c) and an error flag can be added to each address (that is, data) of the memory, statistical processing of errors (recognition of the number of error occurrences and error-prone ICs) (Identification, etc.) can be performed easily.
Description
【0001】[0001]
本考案はSECDEDコードを用いてエラーの検出,訂正を行う機能をもつメモリ装 置に関する。SECDED(Single bit Error Correct Double bit Error Detect) コ ードは、1ビットエラーの訂正および2ビットエラーの検出のための最低4ビッ トのハミング距離をもつエラー訂正コードである。 The present invention relates to a memory device having a function of detecting and correcting an error using the SECDED code. SECDED (Single bit Error Correct Double bit Error Detect) code is an error correction code with a Hamming distance of at least 4 bits for correcting 1-bit error and detecting 2-bit error.
【0002】[0002]
従来のSECDEDコードを用いたメモリ装置の構成が図5に示される。このメモリ 装置の動作は以下のとおりである。 The structure of a conventional memory device using SECDED code is shown in FIG. The operation of this memory device is as follows.
【0003】 メモリ(2)へのライトサイクル時には、そのデータ入力を受けて、誤り訂正 (EDC;Error Detection and Correction) ユニット(1)はSECDEDコードを 生成し、データをデータバス(MData)を介してデータ部(2a) に書込み、SECDED コードをバス(CB)を介してチェックコード部(2b)に書込む。During the write cycle to the memory (2), the error correction (EDC) unit (1) receives the data input, generates a SECDED code, and transfers the data via the data bus (MData). Write to the data section (2a) and write the SECDED code to the check code section (2b) via the bus (CB).
【0004】 一方、メモリ(2)からのリードサイクル時には、読出されたデータとSECDED コードはEDCユニット(1)に入力され、このEDCユニット(1)は、デー タからSECDEDコードを生成し、その生成コードと読込んだSECDEDコードとを比較 することにより、エラーチェックを行う。1ビットのエラーがあった時は、その エラーを訂正した後、正しいデータをバス(Data) を介してマスタ(例えば、C PU5)に出力するとともに、1ビットエラー信号(ERR)を発生させ、2ビット のエラーがあった時は、データの訂正はできず、エラー信号(マルチビットエラ ー信号)を発生させるのみとなる。On the other hand, during a read cycle from the memory (2), the read data and SECDED code are input to the EDC unit (1), and this EDC unit (1) generates a SECDED code from the data and Perform error checking by comparing the generated code with the read SECDED code. If there is a 1-bit error, correct the error and output the correct data to the master (for example, CPU5) via the bus (Data) and generate the 1-bit error signal (ERR). When there is a 2-bit error, the data cannot be corrected and only an error signal (multi-bit error signal) is generated.
【0005】 このように、本従来例では、メモリ内のデータに1ビットのエラーが発生して も、EDCユニット(1)による自動的な訂正が行われ、マスタ(5)は何も意 識しないですむ。As described above, in this conventional example, even if a 1-bit error occurs in the data in the memory, the EDC unit (1) automatically corrects the error, and the master (5) does not know anything. You don't have to.
【0006】[0006]
上述した従来のメモリ装置では、1ビットエラーが発生したことはわかるが、 そのエラーを起こしたアドレスの過去のエラー履歴はかわらない。 Although it can be seen that a 1-bit error has occurred in the conventional memory device described above, the past error history of the address in which the error occurred is not changed.
【0007】 したがって、例えば、そのエラーがハードウエアの故障による回復不可能なエ ラーである場合でも、そのような判断を行うことができず、適切な対応処理を行 えないという問題点がある。Therefore, for example, even if the error is an unrecoverable error due to a hardware failure, such a judgment cannot be made and an appropriate response process cannot be performed. ..
【0008】 本考案はこのような問題点に着目してなされたものであり、その目的は、エラ ー発生アドレスを特定するとともにその履歴を情報として蓄積し、メモリ装置の 信頼性を向上させることにある。The present invention has been made in view of such a problem, and an object thereof is to identify an error occurrence address and accumulate the history thereof as information to improve the reliability of the memory device. It is in.
【0009】[0009]
本考案は、SECDEDコードの生成およびこのコードを用いてのデータのエラーチ ェックを行う機能をもつエラー検出訂正回路を備えたメモリ装置であって、デー タ格納部,SECDEDコード格納部の他に、エラーフラグ格納部が設けられたメモリ と、このメモリおよび前記エラー検出訂正回路の動作を制御するとともに、エラ ーフラグの生成およびチェックを行う機能をもつ制御回路とを具備し、前記メモ リにおけるエラーフラグ格納部のアドレスは前記データ格納部の各アドレスに対 応しており、これにより、エラーフラグはデータ格納部の各アドレスに対応して 設定できるようになっており、前記検出訂正回路により1ビットエラーが検出さ れると、前記制御回路は、前記エラーフラグ格納部から読出されたエラーフラグ の有無をチェックして以前のサイクルでも同一アドレスにおいてエラーが生じて いるかを判定し、生じている場合は、その事実を記録し、生じていない場合は、 エラーフラグを新たに生成し、エラーフラグ格納部に書込むことを特徴とするも のである。 The present invention is a memory device having an error detection / correction circuit having a function of generating a SECDED code and performing an error check of data using this code, in addition to a data storage unit and a SECDED code storage unit, The error flag in the memory is provided with a memory provided with an error flag storage section and a control circuit having a function of controlling the operation of the memory and the error detection / correction circuit and generating and checking an error flag. The address of the storage section corresponds to each address of the data storage section, so that the error flag can be set corresponding to each address of the data storage section. When an error is detected, the control circuit checks whether or not there is an error flag read from the error flag storage section. In the previous cycle, determine whether an error has occurred at the same address and, if it has occurred, record the fact, and if not, generate a new error flag and write it to the error flag storage section. It is characterized by.
【0010】[0010]
【作用】 本考案では、メモリの各アドレス(すなわち、各データ)ごとにエラーフラグ が付加されているため、エラーの統計的処理(例えば、エラーの起こった回数, その回数に基づくソフトエラー/ハードエラーの判断,エラー多発箇所の特定等 )を容易に行え、これにより、装置の信頼性を向上させることができる。In the present invention, since the error flag is added to each address (that is, each data) of the memory, statistical processing of the error (for example, the number of times an error occurs, the soft error / hardware based on the number of times the error occurs). It is possible to easily determine the error, identify the place where the error frequently occurs, etc., and thereby improve the reliability of the device.
【0011】[0011]
次に、本考案の実施例について図面を参照して説明する。図1は本考案の一実 施例の構成を示す図である。 Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a diagram showing the configuration of an embodiment of the present invention.
【0012】 本実施例の図5の従来例との主な相違点は、メモリ(2)にエラーフラグ部(2 c)が追加されていること、カウンタ(4)が設けられていること、制御回路(3 )が設けられていること、カウンタ(4)の内容をマスタであるCPU(5)が チェックできるようになっていることである。The main difference of this embodiment from the conventional example of FIG. 5 is that an error flag part (2 c) is added to the memory (2) and a counter (4) is provided. The control circuit (3) is provided, and the content of the counter (4) can be checked by the CPU (5) as the master.
【0013】 次に、動作を説明する。ライトサイクルにおいては、EDCユニット(1)は CPU(5)よりデータを受けてSECDEDコードを生成し、データをバス(MDATA) を介してデータ部(2a) に書込み、SECDEDコードをバス(CB) を介してチェック コード部(2b) に書込む。また、制御回路(3)は制御信号(MCTL) によりメモ リ(2)におけるエラーフラグ部(2c) をクリアする。Next, the operation will be described. In the write cycle, the EDC unit (1) receives data from the CPU (5) and generates a SECDED code, writes the data to the data section (2a) via the bus (MDATA), and writes the SECDED code to the bus (CB). Write to the check code part (2b) via. Further, the control circuit (3) clears the error flag part (2c) in the memory (2) by the control signal (MCTL).
【0014】 リードサイクル時においては、特徴的な動作が行われるため、図2(a),( b)を用いて説明する。図2(a)は以前のサイクルでも同一アドレスに1ビッ トエラーが発生していた場合のEDCユニット(1)および制御回路(3)の動 作を示し、(b)は初めて1ビットエラーが検出された場合の動作を示す。Since a characteristic operation is performed during the read cycle, description will be made with reference to FIGS. 2A and 2B. Figure 2 (a) shows the operation of the EDC unit (1) and control circuit (3) when a 1-bit error occurred at the same address in the previous cycle, and (b) shows the 1-bit error detected for the first time. The operation when it is performed is shown.
【0015】 制御回路(3)は、EDCユニット(1)からエラー信号(ERR)を受け取って 1ビットエラーの発生を知ると、制御信号ECTLをEDCユニット(1)に送出し 、このEDCユニット(1)により訂正された正しいデータをバス(Data)を介 してCPU(5)に送出させるとともに、その正しいデータをバス(MData)を介 してメモリ(2)のデータ部(2a)にも書込みさせる。また、SECDEDコードもバ ス(CB) を介してチェックコード部(2b) に書込む。When the control circuit (3) receives the error signal (ERR) from the EDC unit (1) and knows that a 1-bit error has occurred, the control circuit (3) sends a control signal ECTL to the EDC unit (1). The correct data corrected by 1) is sent to the CPU (5) via the bus (Data), and the correct data is also sent to the data section (2a) of the memory (2) via the bus (MData). Let me write. The SECDED code is also written in the check code section (2b) via the bus (CB).
【0016】 制御回路(3)は、データの読出しと同期してエラーフラグ部(2c) よりエラ ーフラグ(EF) を読出し、前回アクセスしたときもエラーを起こしていたかを判 定する。エラーフラグ(EF) がセットされていて、エラーの連続であることが判 明した場合は、制御信号(CNT)によりカウンタ(4)をインクリメントする。し たがって、カウンタ(4)の値は、同じアドレス(データ)で2回以上、1ビッ トエラーが発生している回数を表すことになる。同じアドレスにおいて、短時間 のうちにソフトエラー(α線データが反転してしまうエラーであり、データの再 書込みによりデータの訂正が行える)が2回も発生する確率は非常に小さいため 、カウンタ(4)の値は、ハードウエアの故障による1ビットエラーの発生回数 と考えることができる。The control circuit (3) reads the error flag (EF) from the error flag unit (2c) in synchronization with the data reading, and determines whether or not the error occurred even when the previous access was made. When the error flag (EF) is set and it is determined that the error is continuous, the control signal (CNT) increments the counter (4). Therefore, the value of the counter (4) represents the number of times that the 1-bit error occurs twice or more at the same address (data). At the same address, there is a very small probability that a soft error (an error in which α-ray data is inverted and data can be corrected by rewriting data) will occur twice within a short time. The value of 4) can be considered as the number of occurrences of 1-bit error due to hardware failure.
【0017】 一方、エラーフラグのチェックの結果、以前のサイクルでは1ビットエラーが 発生しておらず、今回が初めてであった場合には、EDCユニット(1)は訂正 データおよびSECDEDコードの再書込みを行う。また、制御回路(3)は、エラー フラグを生成してメモリ(2)のエラーフラグ部(2c) に書込む。なお、カウン タのインクリメントは行われない。On the other hand, as a result of checking the error flag, if the 1-bit error has not occurred in the previous cycle and this is the first time, the EDC unit (1) rewrites the correction data and SECDED code. I do. The control circuit (3) also generates an error flag and writes it in the error flag section (2c) of the memory (2). The counter is not incremented.
【0018】 以上の動作をまとめると、図3のようになる。すなわち、1ビットエラーがあ ると(ステップ10)、前回エラーの有無を確認し(ステップ20) 、無しの場合は 訂正データ,コードを書込むとともに、エラーフラグを生成して書込み(ステッ プ30) 、有りの場合は、訂正データ,コードを書込み、カウンタをインクリメン トする(ステップ40) 。The above operation is summarized as shown in FIG. That is, if there is a 1-bit error (step 10), the presence or absence of the previous error is confirmed (step 20). If there is no error, the correction data and code are written, and an error flag is generated and written (step 30). ), If yes, write the correction data and code and increment the counter (step 40).
【0019】 マスタであるCPU(5)の動作例が図4に示される。すなわち、定期的にカ ウンタ値を測定し(ステップ50) 、所定のしきい値以上の場合には(ステップ60 )、ハードウエア故障の発生を示すアラーム(所定の表示等)を発生させる(ス テップ70) 。An example of the operation of the CPU (5) that is the master is shown in FIG. That is, the counter value is periodically measured (step 50), and when it is equal to or higher than a predetermined threshold value (step 60), an alarm (predetermined display, etc.) indicating the occurrence of a hardware failure is generated (step 50). Step 70).
【0020】 本考案はこの実施例に限定されるものではなく、変形,応用が可能である。例 えば、データ部(2a)のデータとエラーフラグ部(2c) のフラグデータとをマルチ プレクスしておき、CPU(5)が、EDCユニット(1)を介してデータとと もにエラーフラグも読み込めるようにすれば、1ビットエラーを起こしたアドレ ス(データ)を全て知ることができ、故障しているメモリセルの特定を確実にか つ迅速に行えるようになる。また、32ビットデータに対するSECDEDコードは7ビ ットであり、×8ビットや×4ビットのメモリICを使う場合は、1ビット余る ため、この余ったビットをエラーフラグに使用すれば、無駄が生じず、効率的で ある。The present invention is not limited to this embodiment and can be modified and applied. For example, the data of the data part (2a) and the flag data of the error flag part (2c) are multiplexed, and the CPU (5) outputs the error flag together with the data via the EDC unit (1). If the data can be read, all the addresses (data) that caused the 1-bit error can be known, and the defective memory cell can be identified reliably and quickly. In addition, the SECDED code for 32-bit data is 7 bits, and when using a memory IC of × 8 bits or × 4 bits, 1 bit is left over. Therefore, if this extra bit is used for an error flag, it is wasted. It does not occur and is efficient.
【0021】[0021]
以上説明したように本考案は、メモリの各アドレス(すなわち、データ)毎に エラーフラグを付加できる構成としたため、エラーの統計的処理(エラー発生回 数の把握やエラー多発ICの特定等)を容易に行える効果がある。これにより、 メモリ装置の信頼性を向上できる効果がある。 As described above, the present invention has a configuration in which an error flag can be added to each address (that is, data) of the memory, and therefore statistical processing of errors (such as grasping the number of error occurrences and identification of error-prone ICs) is performed. There is an effect that can be easily done. This has the effect of improving the reliability of the memory device.
【図1】本考案の一実施例の構成を示す図である。FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.
【図2】(a)は以前のサイクルでも同一アドレスに1
ビットエラーが発生していた場合のEDCユニット
(1)および制御回路(3)の動作を示し、(b)は初
めて1ビットエラーが検出された場合の動作を示す。FIG. 2 (a) shows that the same address is set to 1 in the previous cycle.
The operation of the EDC unit (1) and the control circuit (3) when a bit error has occurred is shown, and (b) shows the operation when a 1-bit error is detected for the first time.
【図3】EDCユニット(1)および制御回路(3)の
動作を示すフローチャートである。FIG. 3 is a flowchart showing operations of an EDC unit (1) and a control circuit (3).
【図4】CPU(5)の動作を示すフローチャートであ
る。FIG. 4 is a flowchart showing an operation of a CPU (5).
【図5】従来例の構成を示すブロック図である。FIG. 5 is a block diagram showing a configuration of a conventional example.
1 EDC(Error Detection and Correction) ユニッ
ト 2 メモリ 3 制御回路 4 カウンタ 5 CPU1 EDC (Error Detection and Correction) unit 2 Memory 3 Control circuit 4 Counter 5 CPU
Claims (1)
ルビットエラー検出)コードの生成およびこのコードを
用いてのデータのエラーチェックを行う機能をもつエラ
ー検出訂正回路(1)を備えたメモリ装置であって、 データ格納部(2a) ,SECDEDコード格納部(2b)の他に、
エラーフラグ格納部(2c) が設けられたメモリ(2)
と、 このメモリ(2)および前記エラー検出訂正回路(1)
の動作を制御するとともに、エラーフラグの生成および
チェックを行う機能をもつ制御回路(3)とを具備し、 前記メモリ(2)におけるエラーフラグ格納部(2c)の
アドレスは前記データ格納部(2a) の各アドレスに対応
しており、これにより、エラーフラグはデータ格納部
(2a) の各アドレスに対応して設定できるようになって
おり、 前記検出訂正回路(1)により1ビットエラーが検出さ
れると、前記制御回路(3)は、前記エラーフラグ格納
部(2c) から読出されたエラーフラグの有無をチェック
して以前のサイクルでも同一アドレスにおいてエラーが
生じているかを判定し、生じている場合は、その事実を
記録し、生じていない場合は、エラーフラグを新たに生
成し、エラーフラグ格納部(2c) に書込むことを特徴と
するエラー検出訂正回路を有するメモリ装置。[Claims for utility model registration] [Claim 1] An error detection and correction circuit (1) having a function of generating a SECDED (single bit error correction double bit error detection) code and performing an error check of data using this code A memory device comprising: a data storage section (2a), a SECDED code storage section (2b),
Memory (2) with error flag storage (2c)
And this memory (2) and the error detection and correction circuit (1)
And a control circuit (3) having a function of generating and checking an error flag and controlling the operation of the error flag storage unit (2c) in the memory (2). ) Corresponds to each address of the data storage section (2a), and the error flag can be set corresponding to each address of the data storage section (2a). Then, the control circuit (3) checks the presence or absence of the error flag read from the error flag storage section (2c) to determine whether or not an error has occurred at the same address in the previous cycle. If so, the fact is recorded, and if not, an error flag is newly generated and written in the error flag storage section (2c). Memory device having a circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5387991U JPH058652U (en) | 1991-07-11 | 1991-07-11 | Memory device having error detection and correction circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5387991U JPH058652U (en) | 1991-07-11 | 1991-07-11 | Memory device having error detection and correction circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH058652U true JPH058652U (en) | 1993-02-05 |
Family
ID=12955037
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5387991U Withdrawn JPH058652U (en) | 1991-07-11 | 1991-07-11 | Memory device having error detection and correction circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH058652U (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11184762A (en) * | 1997-12-19 | 1999-07-09 | Unisia Jecs Corp | Diagnosis device for backup RAM system of automotive control device |
| JP2016045957A (en) * | 2014-08-19 | 2016-04-04 | 三星電子株式会社Samsung Electronics Co.,Ltd. | Memory system and operation method thereof |
-
1991
- 1991-07-11 JP JP5387991U patent/JPH058652U/en not_active Withdrawn
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11184762A (en) * | 1997-12-19 | 1999-07-09 | Unisia Jecs Corp | Diagnosis device for backup RAM system of automotive control device |
| JP2016045957A (en) * | 2014-08-19 | 2016-04-04 | 三星電子株式会社Samsung Electronics Co.,Ltd. | Memory system and operation method thereof |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0381885B1 (en) | Method for identifying bad data | |
| JPS6061837A (en) | Error corrector | |
| US4858236A (en) | Method for error correction in memory system | |
| JPH03248251A (en) | Information processor | |
| JP2606862B2 (en) | Single error detection and correction method | |
| JP2908272B2 (en) | Information processing device | |
| JP2001290710A (en) | Data error detection device | |
| JPS6232813B2 (en) | ||
| US20030081468A1 (en) | Method and device for backing up data in a memory module and memory module | |
| JP2513615B2 (en) | Storage device with ECC circuit | |
| JPH054266U (en) | Memory device | |
| JPH0756816A (en) | Memory controller | |
| JP2818659B2 (en) | Error correction method | |
| JPH02207355A (en) | Memory readout system | |
| JPH02205955A (en) | Error processing system for memory device | |
| JPS6051142B2 (en) | Logging error control method | |
| JPH08129510A (en) | Memory data correcting device | |
| JPS6155696B2 (en) | ||
| JPS6155131B2 (en) | ||
| JPS623509B2 (en) | ||
| JPS62125453A (en) | Storage device | |
| JPS5823678B2 (en) | How to use the warm air conditioner | |
| JPH0571950U (en) | Periodic memory inspection device | |
| JPS6153745B2 (en) | ||
| JPH024003B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 19951102 |