JPH045219B2 - - Google Patents

Info

Publication number
JPH045219B2
JPH045219B2 JP60124841A JP12484185A JPH045219B2 JP H045219 B2 JPH045219 B2 JP H045219B2 JP 60124841 A JP60124841 A JP 60124841A JP 12484185 A JP12484185 A JP 12484185A JP H045219 B2 JPH045219 B2 JP H045219B2
Authority
JP
Japan
Prior art keywords
memory
error
address
data
counter
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
Application number
JP60124841A
Other languages
Japanese (ja)
Other versions
JPS61282949A (en
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 filed Critical
Priority to JP60124841A priority Critical patent/JPS61282949A/en
Publication of JPS61282949A publication Critical patent/JPS61282949A/en
Publication of JPH045219B2 publication Critical patent/JPH045219B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Description

【発明の詳細な説明】 〔概要〕 ECC回路を備えたメモリシステムのメモリエ
ラー処理方式であつて、修正可能なエラーのメモ
リ修正を直ちに行わず、所定のタイミングまでに
そのアドレスに書き込みがなかつた時、そのデー
タのメモリ修正を行うことによつて、データ修正
の減少を図る。
[Detailed Description of the Invention] [Summary] This is a memory error handling method for a memory system equipped with an ECC circuit, in which a correctable error is not immediately corrected in the memory, and the address is not written to by a predetermined timing. At the same time, by modifying the data in memory, the number of data modifications can be reduced.

〔産業上の利用分野〕[Industrial application field]

本発明はメモリデータの検出および修正を行う
回路(ECC回路)を有するメモリシステムのエ
ラーが発生した場合の処理方式に関するものであ
る。
The present invention relates to a processing method when an error occurs in a memory system having a circuit (ECC circuit) for detecting and correcting memory data.

情報処理装置に使用される半導体はその集積化
が進むにつれて、極めて微弱な電気信号で動作す
るようになつている。
2. Description of the Related Art As semiconductors used in information processing devices become more integrated, they operate using extremely weak electrical signals.

従つて、外来ノイズ、例えば、α線にも感動す
るので、防止策を構じているものの完全には防ぎ
切れずエラー障害を発生する。
Therefore, external noise, such as alpha rays, is also affected, and although preventive measures are taken, errors cannot be completely prevented and errors occur.

システムが膨大になるにともなつて、障害発生
による損害も大きくなるので、このような一過性
障害は自動修正する方式がとられている。
As the size of the system increases, the damage caused by failures also increases, so methods are used to automatically correct such temporary failures.

メモリから読み出したデータにエラーが発生し
た場合に、予めエラーコレクテイングコード
(ECC)を付加してあり、エラーが発生してもデ
ータの中の1ビツトであれば、その付加された
ECCに基づいて正しいデータに復元し、2ビツ
ト以上のエラーであればエラー検出してエラー障
害とする。
If an error occurs in the data read from memory, an error correcting code (ECC) is added in advance, and even if an error occurs, if it is one bit in the data, the added
Correct data is restored based on ECC, and if there is an error of 2 bits or more, it is detected and treated as an error failure.

しかしならが、読み出しデータのエラー発生を
検出して、ECCによつて修正したデータを送出
し、直ちにメモリデータを修正しても、次にその
アドレスのデータを読み出す以前に、データの書
き込みがあつた場合には、そのアドレスのデータ
は書き換えられてしまうので、折角のデータ修正
が無駄になる。
However, even if an error in the read data is detected, the data corrected by ECC is sent out, and the memory data is immediately corrected, the data write occurs before the data at that address is read next. In this case, the data at that address will be rewritten, and the painstaking effort to correct the data will be wasted.

これらデータの修正、再書き込みの間はメモリ
が占有されるので、データの修正、再書き込み中
に書き込みまたは読み出しの処理要求があつた場
合には、書き込みまたは読み出しの処理が待たさ
れ、システム処理時間がそれだけかかることにな
る。
Memory is occupied while data is being modified or rewritten, so if a write or read processing request is received while data is being modified or rewritten, the write or read processing will have to wait, resulting in system processing time. It will take that long.

従つて、修正、書き込みの回数をできるだけ減
らしてデータ処理時間をできるだけ短縮する合理
的な方式が要望されている。
Therefore, there is a need for a rational method that reduces the number of corrections and writes as much as possible and shortens the data processing time as much as possible.

〔従来の技術〕[Conventional technology]

第4図は従来のECC回路を備えたメモリシス
テムのブロツク図を示す。
FIG. 4 shows a block diagram of a memory system with a conventional ECC circuit.

メモリ1にに格納されているデータを読み出す
場合、読み出し命令によつてアドレスが指示され
ると、そのアドレスのデータがレジスタ2に格納
される。
When reading data stored in the memory 1, when an address is designated by a read command, the data at that address is stored in the register 2.

ECC回路3を備えたメモリシステムでは、
ECC回路3がこのデータをチエツクして、1ビ
ツトエラーを検出すると、データに付与された
ECCに基づいて正しいデータに復元し、レジス
タ2から送出される。
In a memory system equipped with ECC circuit 3,
When the ECC circuit 3 checks this data and detects a 1-bit error, the
Correct data is restored based on ECC and sent from register 2.

一方、修正されたデータはメモリの同じアドレ
スに書き込まれる。即ち、メモリのデータも修正
される。
Meanwhile, the modified data is written to the same address in memory. That is, the data in the memory is also modified.

また、ECC回路3が2ビツト以上のエラーが
発生していることを検出すると、ECC回路3で
は自動修正ができず、データエラーとして別のエ
ラー処理が行われることになる。
Further, if the ECC circuit 3 detects that an error of 2 or more bits has occurred, the ECC circuit 3 cannot automatically correct the error, and other error processing will be performed as a data error.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ECC回路によつてエラー修正を行うメモリシ
ステムにおいては、修正可能なエラーが発生した
場合には通常即座に修正が行われる。
In a memory system in which error correction is performed using an ECC circuit, when a correctable error occurs, correction is usually performed immediately.

しかしながら、修正されたデータが参照される
以前に同じアドレスにデータが書き込まれる場
合、その前のデータは消去されて新しいデータと
置換されることになるので、折角の修正格納する
処理は無駄になつてしまう。
However, if data is written to the same address before the modified data is referenced, the previous data will be erased and replaced with new data, so the process of storing the modification will be wasted. I end up.

従つて、メモリの書き替え回数の減少を図つた
合理的なエラー処理方式が望まれている。
Therefore, there is a need for a rational error handling method that reduces the number of memory rewrites.

〔問題点を解決するための手段〕 第1図は本発明のメモリエラー処理方式の原理
ブロツク図である。
[Means for Solving the Problems] FIG. 1 is a block diagram of the principle of the memory error processing method of the present invention.

図において、1はデータを格納したメモリ、2
は読み出し命令によつて読み出されたデータを格
納するレジスタ、3はレジスタ2のデータをチエ
ツクする従来と同じ機能をもつECC回路、4は
ECC回路3とその検出されたエラーデータのア
ドレスを記憶するエラーアドレスメモリ41と、
メモリのエラー回数を計数するカウンタ42とか
らなるECC処理部である。
In the figure, 1 is a memory that stores data; 2 is a memory that stores data;
3 is a register that stores the data read by the read command, 3 is an ECC circuit that has the same function as the conventional one to check the data in register 2, and 4 is an ECC circuit that has the same function as the conventional one.
an error address memory 41 that stores the address of the ECC circuit 3 and the detected error data;
This is an ECC processing unit consisting of a counter 42 that counts the number of memory errors.

エラーアドレスメモリ41の内容は所定のタイ
ミング、例えば次のレベルチエンジ信号(1つの
プロセツサにおいて、複数のそれぞれ独立に動作
して、異なる作業を行う実行レベルを設けている
時に、そのレベル間の遷移を指示する信号)まで
に、メモリの同じアドレスに書き込みがあつた
時、また書き込みがなかつた場合は、レベルチエ
ンジ信号の入力時にクリヤされ、書き込みがなか
つた場合には、そのアドレスに修正データが書き
込まれる。
The contents of the error address memory 41 are stored at a predetermined timing, such as the next level change signal (when one processor has a plurality of execution levels that operate independently and perform different tasks, the transition between the levels is detected). If writing has been done to the same address in the memory by the command signal), or if no writing has occurred, it will be cleared when the level change signal is input, and if no writing has occurred, modified data will be written to that address. It will be done.

カウンタ42はエラーアドレスメモリ41に登
録されたアドレス数を計数する。
The counter 42 counts the number of addresses registered in the error address memory 41.

また、メモリのエラーの回数、即ちカウンタ4
2の値が所定の回数に達すれば、同じアドレスへ
の書き込みの有無によらずエラーの修正格納が行
われる。
Also, the number of memory errors, that is, the counter 4
When the value of 2 reaches a predetermined number of times, error correction storage is performed regardless of whether or not there is writing to the same address.

〔作用〕[Effect]

エラーが発生しても直ちにメモリに格納されて
いるデータを修正しないで、所定のタイミングま
で修正を留保し、それまでに書き込みがあれば修
正処理は省略できる。
Even if an error occurs, the data stored in the memory is not corrected immediately, but the correction is deferred until a predetermined timing, and if there is writing by then, the correction process can be omitted.

また、レジスタに格納されたエラーデータは、
検出されると直ちに修正されるので、本来のエラ
ーコレクテイングの機能は損なわれることなく、
しかも次段の処理には何等の影響も生じてはいな
い。
Additionally, the error data stored in the register is
Since it is corrected immediately when it is detected, the original error correction function is not impaired.
Furthermore, there is no effect on the next stage of processing.

〔実施例〕〔Example〕

以下、図面を参照してこの発明の実施例を詳細
に説明する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は本発明のメモリエラー処理方式の一実
施例のブロツク図。
FIG. 2 is a block diagram of an embodiment of the memory error handling method of the present invention.

第3図はその状態遷移図である。 FIG. 3 is a state transition diagram.

なお、全図を通じて同一符号は同一対象物を示
す。
Note that the same reference numerals indicate the same objects throughout the figures.

5はメモリ1の読み/書きのアドレスを指示す
るアドレスレジスタで、ECC処理部4のエラー
アドレスメモリ41と内容の授受を行い、比較回
路6でエラーアドレスメモリ41の内容と比較で
きる構成となつている。
Reference numeral 5 designates an address register for specifying the read/write address of the memory 1, which exchanges contents with the error address memory 41 of the ECC processing section 4, and is configured so that a comparison circuit 6 can compare the contents with the error address memory 41. There is.

以下状態遷移図に従つて本発明の方式の実施例
の動作を説明する。
The operation of the embodiment of the system of the present invention will be described below with reference to state transition diagrams.

以後、括弧付数字で状態ステツプを示す。 Hereinafter, status steps are indicated by numbers in parentheses.

エラーなしの状態(1)に始まり、メモリ1に読み
出しが命令されると、読み出したデータはレジス
タ2に格納され、ECC処理部4のECC回路3が
エラーチエツクを行い、エラーを検出すると修正
可能な1ビツトエラーであれば、修正を行いレジ
スタ2に修正されたデータを格納する。
Starting from the error-free state (1), when reading is commanded to the memory 1, the read data is stored in the register 2, and the ECC circuit 3 of the ECC processing unit 4 performs an error check, and if an error is detected, it can be corrected. If it is a 1-bit error, it is corrected and the corrected data is stored in register 2.

一方、そのアドレスをエラーアドレスメモリ4
1に登録し、カウンタ42に+1を加算する。即
ち、1ビツトエラー1回の状態(2)になる。
On the other hand, store that address in the error address memory 4.
1, and +1 is added to the counter 42. In other words, state (2) occurs in which a 1-bit error occurs once.

更に、次のレベルチエンジ信号が入力するまで
に1ビツトエラーが発生すれば、1ビツトエラー
2回の状態(3)、以下1ビツトエラー3回以上の状
態(4)となる。
Furthermore, if a 1-bit error occurs before the next level change signal is input, a state (3) of two 1-bit errors and a state (4) of 3 or more 1-bit errors will occur.

そして、エラーアドレスメモリ41にはエラー
アドレスがその都度登録され、カウンタ42はそ
の都度+1される。
Then, each error address is registered in the error address memory 41, and the counter 42 is incremented by 1 each time.

この間メモリ1に書き込みがあれば、比較回路
6がその都度エラーアドレスメモリ41の登録ア
ドレスと比較して登録アドレスであれば、エラー
アドレスメモリ41からそのアドレスをクリヤ
し、カウンタ42から1を減じる。
During this period, if there is a write to the memory 1, the comparator circuit 6 compares the address with the registered address in the error address memory 41 each time, and if the address is a registered address, the address is cleared from the error address memory 41 and the counter 42 is decremented by 1.

即ち、状態(3)は状態(2)に、状態(2)は状態(1)にな
る。
That is, state (3) becomes state (2), and state (2) becomes state (1).

レベルチエンジ信号が入力すると、状態(2)〜(4)
からリカバリルーチンが作動し、状態(5)となつ
て、エラーアドレムメモリ41のアドレスのメモ
リ1におけるデータを全て修正し、エラーアドレ
スメモリ41とカウンタ42はクリヤする。
When a level change signal is input, states (2) to (4)
The recovery routine operates from then on, and enters state (5), in which all data in memory 1 at the address of error address memory 41 is corrected, and error address memory 41 and counter 42 are cleared.

この動作が終了すると、状態(1)となる。 When this operation is completed, the state becomes (1).

状態(1)〜(4)で、2ビツトエラーが発生した場合
は、修正不能の別のエラー処理(6)が行われる。
If a 2-bit error occurs in states (1) to (4), another uncorrectable error process (6) is performed.

レベルチエンジ信号が入力する以前にカウンタ
42の値が予め定められた所定値に達すれば、次
のレベルチエンジ信号でリカバリルーチンが作動
する。
If the value of the counter 42 reaches a predetermined value before the level change signal is input, the recovery routine is activated by the next level change signal.

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

以上述べてきたように、本発明によれば、エラ
ーコレクテイング機能をもつメモリシステムのエ
ラー処理が合理化され、不必要な修正ルーチンを
実行しないで済むようになり、実用的には極めて
有用である。
As described above, according to the present invention, error handling in a memory system with an error correcting function is streamlined, and unnecessary correction routines no longer need to be executed, which is extremely useful in practice. .

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

第1図は本発明のメモリシステムのエラー処理
方式の原理ブロツク図、第2図は本発明の一実施
例のブロツク図、第3図は状態遷移図、第4図は
従来例のブロツク図である。 図において、1はメモリ、2はレジスタ、3は
ECC回路、4はECC処理部、41はエラーアド
レスメモリ、42はカウンタである。
Fig. 1 is a principle block diagram of the error processing method of the memory system of the present invention, Fig. 2 is a block diagram of an embodiment of the present invention, Fig. 3 is a state transition diagram, and Fig. 4 is a block diagram of a conventional example. be. In the figure, 1 is memory, 2 is register, and 3 is
4 is an ECC processing unit, 41 is an error address memory, and 42 is a counter.

Claims (1)

【特許請求の範囲】 1 データを格納するメモリ1と、 該メモリ1から読み出されるデータを格納する
レジスタ2と、 前記データのエラーを検出および修正を行うエ
ラーコレクテイング回路(ECC回路)3とから
なるメモリシステムにおいて、 修正可能なエラーを発生したアドレスを記憶す
るエラーアドレスメモリ41と、 該メモリ1の修正可能なエラー回数を計数する
カウンタ42とを、前記ECC回路3に付設し、 前記記憶したアドレスに書き込みがあつた場合
には、前記エラーアドレスメモリ41の該アドレ
スをクリヤし、かつ前記カウンタ42の計数値を
一定数減算し、 前記カウンタ42の計数値が所定値を超えた場
合には、前記アドレスのデータを修正して再書込
みすることを特徴とするメモリエラー処理方式。
[Claims] 1: A memory 1 that stores data, a register 2 that stores data read from the memory 1, and an error correcting circuit (ECC circuit) 3 that detects and corrects errors in the data. In the memory system, an error address memory 41 for storing an address in which a correctable error has occurred, and a counter 42 for counting the number of correctable errors in the memory 1 are attached to the ECC circuit 3, When an address is written, the address in the error address memory 41 is cleared, and the count value of the counter 42 is subtracted by a certain number, and when the count value of the counter 42 exceeds a predetermined value, , a memory error handling method characterized in that data at the address is corrected and rewritten.
JP60124841A 1985-06-07 1985-06-07 Memory error processing system Granted JPS61282949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60124841A JPS61282949A (en) 1985-06-07 1985-06-07 Memory error processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60124841A JPS61282949A (en) 1985-06-07 1985-06-07 Memory error processing system

Publications (2)

Publication Number Publication Date
JPS61282949A JPS61282949A (en) 1986-12-13
JPH045219B2 true JPH045219B2 (en) 1992-01-30

Family

ID=14895415

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60124841A Granted JPS61282949A (en) 1985-06-07 1985-06-07 Memory error processing system

Country Status (1)

Country Link
JP (1) JPS61282949A (en)

Also Published As

Publication number Publication date
JPS61282949A (en) 1986-12-13

Similar Documents

Publication Publication Date Title
JPH03248251A (en) Information processor
JP2606862B2 (en) Single error detection and correction method
JPH045219B2 (en)
KR860002027B1 (en) Key memory error processing system
JPS61290556A (en) Memory error recovering system
JP3130796B2 (en) Control storage device
JPH0816488A (en) Electronic disk device
KR100328818B1 (en) How to save data in flash memory
JPS6051142B2 (en) Logging error control method
JPH04115340A (en) Duplex storage circuit
JPH0756816A (en) Controller for memory
JPH0675864A (en) Memory error recovery system
JPH04162161A (en) Storage controller
JPH054266U (en) Memory device
JPS63278162A (en) Error correction device in information processor
JPH0434632A (en) Memory system
JPH05210597A (en) Patrol circuit for storage device
JPS6240742B2 (en)
JPS635784B2 (en)
JPS6232826B2 (en)
JPS6356751A (en) Memory patrol control system
JPS63221444A (en) Control memory device
JPH03290745A (en) Memory error detecting/correcting method
JPH0520215A (en) Information processor
JPH03168839A (en) Control memory one-bit error correcting system