JPH0588993A - Memory control system - Google Patents

Memory control system

Info

Publication number
JPH0588993A
JPH0588993A JP3273078A JP27307891A JPH0588993A JP H0588993 A JPH0588993 A JP H0588993A JP 3273078 A JP3273078 A JP 3273078A JP 27307891 A JP27307891 A JP 27307891A JP H0588993 A JPH0588993 A JP H0588993A
Authority
JP
Japan
Prior art keywords
memory
bit error
data
circuit
control circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3273078A
Other languages
Japanese (ja)
Inventor
Kenji Matsumoto
賢二 松本
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 Software Shikoku Ltd
Original Assignee
NEC Software Shikoku 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 Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP3273078A priority Critical patent/JPH0588993A/en
Publication of JPH0588993A publication Critical patent/JPH0588993A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Dram (AREA)

Abstract

PURPOSE:To reduce probability of generating a 2-bit error by reading out corrected data when an 1-bit error is generated in read data and writing the read data in a memory just after the reading. CONSTITUTION:If an 1-bit error is generated at the time of reading out data from a memory 8, an ECC control circuit 7 corrects the read data, outputs the corrected data to a data bus 2 and sends an 1-bit error generation signal (a) to a rewriting control circuit 5. The circuit 5 sends a retry request signal (b) to a CPU 9 and sends a rewriting cycle signal (c) to a memory access control circuit 3. The circuit 3 sends an ECC control signal (e) to the circuit 7 and sends a memory control signal (h) to the memory 8. The circuit 7 sends the corrected data to the memory 8. Thus rewriting operation in the memory 8 is executed just after reading out data at the time of generating an error.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【技術分野】本発明はメモリ制御システムに関し、特に
メモリからの読出しデータにエラーが発生した場合にお
ける制御システムに関する。
TECHNICAL FIELD The present invention relates to a memory control system, and more particularly to a control system when an error occurs in read data from a memory.

【0002】[0002]

【従来技術】従来、ECC(Error Checking and Corre
ction )機能、すなわち、1ビットエラーの検出と訂正
及び2ビットエラーの検出機能を有するECC付きメモ
リ回路においては、ソフトエラーによって1ビットエラ
ーが発生した場合、1ビットエラーは訂正された後に出
力される。ところが、CPUはこの1ビットエラーの発
生を検出した場合であっても、その1ビットエラーの再
書込みを行わずに無視して処理の実行を続行している。
また、そのエラーの発生を検出した場合、CPU内部の
アドレスレジスタを参照してアドレスレジスタの示す番
地への再書込みを実行する処理を後に行う方式もあっ
た。さらにまた、アドレスラッチ回路を設けておき、こ
れにラッチされているアドレスへ再書込みを実行する方
式もあった。
2. Description of the Related Art Conventionally, ECC (Error Checking and Correlation)
In a memory circuit with an ECC having a function of detecting and correcting a 1-bit error and a function of detecting a 2-bit error, if a 1-bit error occurs due to a soft error, the 1-bit error is corrected and then output. It However, even when the CPU detects the occurrence of this 1-bit error, it ignores the 1-bit error without rewriting it and continues execution of the process.
Further, there is also a method in which, when the occurrence of the error is detected, a process of referring to the address register inside the CPU and performing rewriting to the address indicated by the address register is performed later. Furthermore, there is also a system in which an address latch circuit is provided and rewriting is performed to an address latched in the address latch circuit.

【0003】上述した従来のECC付きメモリ回路にお
いて、1ビットエラーの発生時、1ビットエラーの発生
した番地に対する再書込みを行わない場合には、1ビッ
トエラーの発生した番地を読出す度に1ビットエラーが
発生する。そのため、2ビットエラーが発生する確率が
高くなるので、メモリ回路の信頼性が低下するという欠
点がある。一方、CPUが再書込みを行う場合には、C
PUが再書込みを行うための専用プログラムが必要にな
るという欠点がある。また、アドレスラッチ回路を設け
る方式では、ハードウェア量が増大するという欠点があ
った。
In the above-described conventional memory circuit with ECC, when a 1-bit error occurs, if the address at which the 1-bit error occurs is not rewritten, 1 is read every time the address at which the 1-bit error occurs is read. Bit error occurs. As a result, the probability of occurrence of a 2-bit error increases, and the reliability of the memory circuit decreases. On the other hand, when the CPU rewrites, C
There is a drawback that a dedicated program is required for the PU to rewrite. Further, the method of providing the address latch circuit has a drawback that the amount of hardware increases.

【0004】[0004]

【発明の目的】本発明は上述した従来の欠点を解決する
ためになされたものであり、その目的は2ビットエラー
の発生する確率を低下させることのできるメモリ制御シ
ステムを提供することである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned conventional drawbacks, and an object of the present invention is to provide a memory control system capable of reducing the probability of occurrence of a 2-bit error.

【0005】[0005]

【発明の構成】本発明によるメモリ制御システムは、メ
モリの所定アドレスからの読出しデータの誤りを訂正す
る誤り訂正手段と、この訂正後のデータを、前記読出し
データの読出し直後に前記アドレスに書込む書込み手段
とを有することを特徴とする。
A memory control system according to the present invention includes an error correction means for correcting an error in read data from a predetermined address of a memory, and the corrected data is written to the address immediately after reading the read data. And a writing means.

【0006】[0006]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0007】図1は本発明によるメモリ制御システムの
一実施例の構成を示すブロック図である。図において、
メモリアクセス制御回路3は、メモリアクセスに応じた
ECC制御信号eをECC制御回路7に供給し、メモリ
制御信号hをメモリ8に供給する回路である。
FIG. 1 is a block diagram showing the configuration of an embodiment of a memory control system according to the present invention. In the figure,
The memory access control circuit 3 is a circuit that supplies an ECC control signal e corresponding to memory access to the ECC control circuit 7 and a memory control signal h to the memory 8.

【0008】メモリリフレッシュ回路4は、メモリアク
セス制御回路3にメモリリフレッシュ要求信号fを送出
する回路であり、メモリアクセス制御回路3からメモリ
リフレッシュ許可信号gを受取ると、メモリ8にリフレ
ッシュ動作をさせるためのアドレスを供給するようにな
っている。
The memory refresh circuit 4 is a circuit for sending a memory refresh request signal f to the memory access control circuit 3, and when receiving the memory refresh enable signal g from the memory access control circuit 3, causes the memory 8 to perform a refresh operation. The address of is supplied.

【0009】再書込み制御回路5は、ECC制御回路7
から送出された1ビットエラー発生信号aに応じてCP
U再試行要求信号bをCPU9に送出し、それと同時に
再書込みサイクル信号cをメモリアクセス制御回路3に
送出する制御回路である。
The rewrite control circuit 5 is an ECC control circuit 7
CP according to the 1-bit error occurrence signal a sent from
This is a control circuit that sends a U retry request signal b to the CPU 9 and, at the same time, sends a rewrite cycle signal c to the memory access control circuit 3.

【0010】アドレスセレクタ6は、メモリリフレッシ
ュ制御回路4、又はアドレスバス1から供給されるアド
レスを選択してメモリ8に供給するメモリ入力用のセレ
クタである。
The address selector 6 is a memory input selector for selecting an address supplied from the memory refresh control circuit 4 or the address bus 1 and supplying it to the memory 8.

【0011】ECC制御回路7は、メモリ8からの読出
しデータの1ビット誤り(エラー)を検出し、1ビット
エラー発生信号aを出力する回路である。また、このE
CC制御回路7はECC制御信号eに従ってメモリ8か
ら入力したデータを訂正するとともに、訂正したデータ
をメモリ8に送出する。なお、1はアドレスバス、2は
データバスである。
The ECC control circuit 7 is a circuit which detects a 1-bit error (error) in the read data from the memory 8 and outputs a 1-bit error occurrence signal a. Also, this E
The CC control circuit 7 corrects the data input from the memory 8 according to the ECC control signal e, and sends the corrected data to the memory 8. In addition, 1 is an address bus and 2 is a data bus.

【0012】次に、かかる構成からなる本システムの動
作について説明する。メモリ8からのデータ読出し時、
1ビットエラーが発生すると、ECC制御回路7はメモ
リ8から出力されたデータを訂正してデータバス2に出
力する。これと同時に、ECC制御回路7は1ビットエ
ラー発生信号aを再書込み制御回路5に送出する。1ビ
ットエラー発生信号aが入力された再書込み制御回路5
は、CPU9に再試行要求信号bを送出し、それと同時
にメモリアクセス制御回路3に再書込みサイクル信号c
を送出する。
Next, the operation of the present system having such a configuration will be described. When reading data from the memory 8,
When a 1-bit error occurs, the ECC control circuit 7 corrects the data output from the memory 8 and outputs it to the data bus 2. At the same time, the ECC control circuit 7 sends the 1-bit error occurrence signal a to the rewrite control circuit 5. Rewriting control circuit 5 to which the 1-bit error occurrence signal a is input
Sends a retry request signal b to the CPU 9 and at the same time, a rewrite cycle signal c to the memory access control circuit 3.
Is sent.

【0013】再試行要求信号bが入力されたCPU9は
先のメモリ読出しサイクルを再試行し、アドレスバス1
上に同じアドレスを出力し続ける。
When the retry request signal b is input, the CPU 9 retries the previous memory read cycle, and the address bus 1
Continue to output the same address on top.

【0014】一方、再書込みサイクル信号cが入力され
たメモリアクセス制御回路3は、他の要求信号、すなわ
ち、メモリリードライト要求信号dやメモリリフレッシ
ュ要求信号fが有効であってもそれらを受付けない。そ
して、先に読出し訂正されたデータをメモリ8へ出力す
るようなECC制御信号eをECC制御回路7へ送出す
るとともに、そのデータがメモリ8に書かれるようなメ
モリ制御信号hをメモリ8へ送出する。
On the other hand, the memory access control circuit 3 to which the rewrite cycle signal c is input does not accept other request signals even if the memory read / write request signal d and the memory refresh request signal f are valid. .. Then, the ECC control signal e for outputting the previously read and corrected data to the memory 8 is sent to the ECC control circuit 7, and the memory control signal h for writing the data to the memory 8 is sent to the memory 8. To do.

【0015】ECC制御回路7はECC制御信号eを受
付け、訂正されたデータをメモリ8に送出する。そし
て、この訂正されたデータは、メモリ制御信号hと、ア
ドレスバス1上のアドレス、すなわち、先の読出しサイ
クルと同じアドレスとに従ってメモリ8の該当アドレス
に書込まれる。以上のように、エラー発生時には、その
読出し直後にメモリ8に対する再書込み動作がなされ
る。
The ECC control circuit 7 receives the ECC control signal e and sends the corrected data to the memory 8. Then, the corrected data is written to the corresponding address of the memory 8 according to the memory control signal h and the address on the address bus 1, that is, the same address as the previous read cycle. As described above, when an error occurs, the rewriting operation to the memory 8 is performed immediately after the reading.

【0016】再書込み動作の後、再書込みサイクル信号
cは無効となり、メモリアクセス制御回路3はCPU9
の再試行によるメモリリード要求を受付けて、通常のメ
モリ読出しサイクルがなされ、CPU9は再試行を終了
する。
After the rewriting operation, the rewriting cycle signal c becomes invalid, and the memory access control circuit 3 causes the CPU 9 to operate.
In response to the memory read request by the retry, a normal memory read cycle is performed, and the CPU 9 ends the retry.

【0017】しかし、CPU9の再試行時においても1
ビットエラーが発生した場合にはメモリ8の固定故障と
みなし、再書込みをする必要性がないのは明らかであ
る。
However, even when the CPU 9 retries,
When a bit error occurs, it is obviously regarded as a fixed failure of the memory 8 and there is no need to rewrite.

【0018】以上のように、本実施例のメモリ制御シス
テムによれば、ECC制御回路によってエラー検出信号
が出力された場合、再書込み制御回路からCPU再試行
要求信号及び再書込みサイクル信号が出力され、先に読
出し訂正されたデータをCPUの再試行によって出力さ
れる先の読出しサイクルにおけるアドレスと同じアドレ
スに書込むことにより、訂正されたデータを再書込みす
ることができる。
As described above, according to the memory control system of this embodiment, when the ECC control circuit outputs the error detection signal, the rewrite control circuit outputs the CPU retry request signal and the rewrite cycle signal. , The corrected data can be rewritten by writing the previously read and corrected data to the same address as the address in the previous read cycle output by the retry of the CPU.

【0019】[0019]

【発明の効果】以上説明したように本発明によれば、1
ビットエラーが発生した場合、必ず訂正後に再書込みが
なされるため、従来方式と違って2ビットエラーの発生
する確率を低下させることができるという効果がある。
また、この再書込み動作はCPUの再試行を利用して行
われるため、再書込みするための専用プログラムは不要
であり、CPUの処理効率を向上させることができると
いう効果がある。
As described above, according to the present invention, 1
When a bit error occurs, rewriting is always performed after correction, so that unlike the conventional method, there is an effect that the probability of a 2-bit error occurring can be reduced.
Further, since this rewriting operation is performed by utilizing the retry of the CPU, there is no need for a dedicated program for rewriting, and the processing efficiency of the CPU can be improved.

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

【図1】本発明の実施例によるメモリ制御システムの構
成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a memory control system according to an embodiment of the present invention.

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

1 アドレスバス 2 データバス 3 メモリアクセス制御回路 4 メモリリフレッシュ制御回路 5 再書込み制御回路 6 アドレスセレクタ 7 ECC制御回路 8 メモリ 9 CPU 1 Address Bus 2 Data Bus 3 Memory Access Control Circuit 4 Memory Refresh Control Circuit 5 Rewrite Control Circuit 6 Address Selector 7 ECC Control Circuit 8 Memory 9 CPU

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 メモリの所定アドレスからの読出しデー
タの誤りを訂正する誤り訂正手段と、この訂正後のデー
タを、前記読出しデータの読出し直後に前記アドレスに
書込む書込み手段とを有することを特徴とするメモリ制
御システム。
1. An error correction means for correcting an error in read data from a predetermined address of a memory, and a write means for writing the corrected data to the address immediately after reading the read data. And memory control system.
JP3273078A 1991-09-25 1991-09-25 Memory control system Pending JPH0588993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3273078A JPH0588993A (en) 1991-09-25 1991-09-25 Memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3273078A JPH0588993A (en) 1991-09-25 1991-09-25 Memory control system

Publications (1)

Publication Number Publication Date
JPH0588993A true JPH0588993A (en) 1993-04-09

Family

ID=17522839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3273078A Pending JPH0588993A (en) 1991-09-25 1991-09-25 Memory control system

Country Status (1)

Country Link
JP (1) JPH0588993A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004030527A (en) * 2002-06-28 2004-01-29 Fujitsu Ltd Storage controller and storage control method
JP2013122807A (en) * 2011-12-09 2013-06-20 Sk Hynix Inc Fuse circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004030527A (en) * 2002-06-28 2004-01-29 Fujitsu Ltd Storage controller and storage control method
JP2013122807A (en) * 2011-12-09 2013-06-20 Sk Hynix Inc Fuse circuit

Similar Documents

Publication Publication Date Title
JP5010271B2 (en) Error correction code generation method and memory control device
US7752527B2 (en) Microcontroller and RAM
US20040205384A1 (en) Computer system and memory control method thereof
US5063565A (en) Single-error detecting and correcting system
JPH0588993A (en) Memory control system
US20040193967A1 (en) Electronic circuit assembly comprising at least a storage unit with error correcting means
JPH0652065A (en) Memory control circuit
JPH0316655B2 (en)
JPH06149685A (en) Memory error recovering circuit
JPH04115340A (en) Duplex storage circuit
JPH06139153A (en) Memory control system
JP3123855B2 (en) Patrol control circuit of memory device
JP2853555B2 (en) Storage controller
JPH0667989A (en) Patrol circuit for memory
JP2818659B2 (en) Error correction method
JPH0675864A (en) Memory error recovery system
JPH06282449A (en) Memory controller
JPH0689237A (en) Memory control system
JPH04332046A (en) Information processor
JPH0756816A (en) Controller for memory
JP2586072B2 (en) Storage device
JPH0391198A (en) Memory rewrite system
JPH06250936A (en) Computer system
JPH0520215A (en) Information processor
JPH01246651A (en) Data rewriting device in memory module with ecc mechanism