JPS63279348A - Check system for memory - Google Patents

Check system for memory

Info

Publication number
JPS63279348A
JPS63279348A JP62115193A JP11519387A JPS63279348A JP S63279348 A JPS63279348 A JP S63279348A JP 62115193 A JP62115193 A JP 62115193A JP 11519387 A JP11519387 A JP 11519387A JP S63279348 A JPS63279348 A JP S63279348A
Authority
JP
Japan
Prior art keywords
read data
check
data
circuit
cpu
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
JP62115193A
Other languages
Japanese (ja)
Inventor
Kunio Ono
大野 邦夫
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 Corp
Original Assignee
NEC Corp
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 Corp filed Critical NEC Corp
Priority to JP62115193A priority Critical patent/JPS63279348A/en
Publication of JPS63279348A publication Critical patent/JPS63279348A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To accurately detect the illegal read data by using 1st and 2nd read data registers, and comparing the contents of the 2nd read data register with a check bit for check of the read data. CONSTITUTION:A 1st read data register 12 is provided together with a 2nd read data register 13. The read data given from a memory array 10 is held and a part of this data output is sent to a CPU 32. While the another part of said output is sent to the CPU 32 via a correction circuit 16 after correction of a 1-bit error if produced for selection of the read data, the corrected data or the input data received from the CPU 32. In a reading state, the read data is selected and used for generation of a check bit. This produced check bit is compared with another check bit produced from the read data by an ECC check circuit 15. The result of this comparison is sent to the CPU 32. Thus it is possible to check easily and accurately the discordance of data.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は情報処理装置に使用される記憶装置に関し、特
にその故障検出に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a storage device used in an information processing device, and particularly to failure detection thereof.

(従来の技術) 情報処理装置に使用される記憶装置に関して、その性能
を示すアクセスタイムの改善に関しては種々の方法が提
案されている。
(Prior Art) Various methods have been proposed for improving the access time, which indicates the performance, of storage devices used in information processing devices.

それらの方法の一つは、記憶装置を構成しているメモリ
素子の高速化、ダイナミックRAMからスタティックR
AMへの変更、周辺回路のLSI化や大形化などが実現
されている。小形装置の記憶装置では、コストを高くで
きないので、TTL素子や標準ダイナミックRA M 
k使用しているので、大形機の記憶装置に比べてアクセ
スタイムが遅くなる。したがって、回路構成を変更して
アクセスタイムの改善が図られている。
One of these methods is to speed up the memory elements that make up the storage device, from dynamic RAM to static RAM.
Changes have been made to AM, and peripheral circuits have been changed to LSI and larger in size. For storage devices in small devices, the cost cannot be increased, so TTL elements and standard dynamic RAM are used.
Since it uses 100K, the access time is slower than that of large machine storage devices. Therefore, attempts have been made to improve the access time by changing the circuit configuration.

第2図は、従来の技術による記憶装置の読出しデータ部
の一例を示すブロック図である。第2図において、10
0はメモリアレイ、101は第1の読出しデータレジス
タ、102は第2の読出しデータレジスタ、103はパ
リティ発生回路、104はECCチェック回路、11g
は1ビットエラー訂正のための訂正回路、106はデー
タレジスタ、107はパリティレジスタ、108〜11
1はそれぞれCPUI 12ヘデータを送出するための
駆動ゲート、112はCPUである。
FIG. 2 is a block diagram showing an example of a read data section of a storage device according to the prior art. In Figure 2, 10
0 is a memory array, 101 is a first read data register, 102 is a second read data register, 103 is a parity generation circuit, 104 is an ECC check circuit, 11g
is a correction circuit for 1-bit error correction, 106 is a data register, 107 is a parity register, 108 to 11
1 is a drive gate for sending data to the CPUI 12, and 112 is a CPU.

第2図のデータ系回路はメモリアレイ100から読出し
データを高速でアクセスする走めKECCチェック回路
104によってチェックを行う前に第1の読出しデータ
レジスタ101、パリティ発生回路103、ならびに駆
動ゲート108.109を介してCPU112にデータ
を送出するようになっている。そのとき、信号線102
は駆動ゲート108,109をイネーブル状態にし、信
号線202は駆動ゲート110,111をディスエーブ
ル状態だしている。し念がって、ECCによるエラーチ
ェック時間(一般に、1クロック期間)だけアクセスタ
イムを改善することができる。
The data system circuit in FIG. 2 accesses read data from the memory array 100 at high speed.Before checking by the KECC check circuit 104, the data system circuitry in FIG. Data is sent to the CPU 112 via the CPU 112. At that time, the signal line 102
The signal line 202 enables the drive gates 108 and 109, and the signal line 202 disables the drive gates 110 and 111. However, the access time can be improved by the ECC error checking time (generally one clock period).

ECCチェック回路104によってチェックの結果、1
ビットエラーのあることが判明した場合には、信号線2
00上のSBK信号によりこれをCPU112に通知す
るとともに、訂正回路105によってデータの訂正を行
う。この後、データレジスタ106、パリティレジスタ
10フ、ならびに駆動ゲート110,111を介して訂
正データをCPU112に転送する。このとき、信号線
201は駆動ゲート108,109をディスエーブル状
態にし、信号線202は駆動ゲート110゜111をイ
ネーブル状態にしている。
As a result of the check by the ECC check circuit 104, 1
If it is found that there is a bit error, signal line 2
This is notified to the CPU 112 by the SBK signal on 00, and the data is corrected by the correction circuit 105. Thereafter, the corrected data is transferred to the CPU 112 via the data register 106, parity register 10f, and drive gates 110 and 111. At this time, the signal line 201 disables the drive gates 108 and 109, and the signal line 202 enables the drive gates 110 and 111.

第2図において、第1の読出しデータレジスタ101が
故障したとき、メモリアレイ10Gからのデータにエラ
ーがないので、第2の読出しデータレジスタ102とE
CCチェック回路104とによってはエラーを検出でき
ない。また、パリティは第1の読出しデータレジスタ1
01の出力結果により生成されるので、CPU112は
読出しデータに不正のあったことを検知できないことに
なシ、データ化けを発生してしまう。
In FIG. 2, when the first read data register 101 fails, since there is no error in the data from the memory array 10G, the second read data register 102 and E
The error cannot be detected by the CC check circuit 104. Moreover, the parity is the first read data register 1.
Since the CPU 112 is generated based on the output result of 01, the CPU 112 cannot detect that there is an irregularity in the read data, and the data is garbled.

(発明が解決しようとする問題点) 上述し九従来の記憶装置のチェック方式では、第1の読
出しデータレジスタが故障したとき、メモリアレイから
のデータにエラーがないので、第2の読出しデータレジ
スタとECCチェック回路とによってはエラーを検出で
きない。また、パリティは第1の読出しデータレジスタ
の出力結果により生成されるので、CPUは読出しデー
タに不正のあつ走ことを検知できないことになシ、デー
タ化けを発生してしまうという欠点がある。
(Problems to be Solved by the Invention) In the nine conventional storage device checking methods described above, when the first read data register fails, the second read data register is Errors cannot be detected by the ECC check circuit and ECC check circuit. Further, since the parity is generated based on the output result of the first read data register, the CPU cannot detect any irregularity in the read data, which results in garbled data.

本発明の目的は、メモリアレイからの読出しデータを保
持し、その出力の一部ecPUに送出し、他の一部を訂
正回路を介し1ビットエラー発生時には訂正したうえで
CPUに送り、読出しデータか、訂正済みデータか、あ
るいはCPUから送・られてきた入力データかを選択し
、読出し時には読出しデータを選択してチェックピット
の発生に使用し、読出しデータとECCチェック回路と
によって生成されたチェックピットと、上記チェックビ
ットの発生によって生成されたチェックピットとを比較
して、その出力をCPUに送出することによシ上記欠点
を除去し、読出しデータの不正を的確に検知できるよう
に構成した記憶装置のチェック方式を提供することにあ
る。
An object of the present invention is to hold read data from a memory array, send part of the output to the ecPU, correct the other part via a correction circuit when a 1-bit error occurs, and send the read data to the CPU. , corrected data, or input data sent from the CPU, and when reading, the read data is selected and used to generate check pits, and the check generated by the read data and the ECC check circuit is selected. By comparing the pits with the check pits generated by the generation of the check bits and sending the output to the CPU, the above drawbacks are eliminated and irregularities in the read data can be accurately detected. The purpose of the present invention is to provide a storage device checking method.

(問題点を解決するための手段) 本発明例よる記憶装置のチェック方式は、第1および第
2の読出しデータレジスタと、エラーチェック訂正手段
と、選択回路と、チェックピット発生手段と、比較回路
とを具備して構成しなものである。
(Means for Solving the Problems) A checking method for a storage device according to an example of the present invention includes first and second read data registers, error check and correction means, selection circuit, check pit generation means, and comparison circuit. It is constructed by comprising the following.

wLlおよび第2の読出しデータレジスタは、メモリア
レイからの読出しデータを保持するためのものである。
wLl and the second read data register are for holding read data from the memory array.

エラーチェック訂正手段は、第2の読出しデータレジス
タの内容に1ピツトエラーが発生したときには訂正して
訂正済みデータを出力するためのものである。
The error check and correction means is for correcting and outputting corrected data when a one-pit error occurs in the contents of the second read data register.

選択回路は、第1の読出しデータレジスタの内容、訂正
済みデータ、あるいは演算処理装置から送られてきた入
力データを選択するためのものである。
The selection circuit is for selecting the contents of the first read data register, corrected data, or input data sent from the arithmetic processing unit.

チェックビット発生手段は、読出し時には選択回路によ
り第1の読出しデータレジスタの出力を選択してチェッ
クビットを発生するためのものである。
The check bit generating means is for generating a check bit by selecting the output of the first read data register by a selection circuit during reading.

比較回路は、第2の読出しデータレジスタの内容とチェ
ックビットとを比較して読出しデータをチェックするた
めのものである。
The comparison circuit is for checking the read data by comparing the contents of the second read data register with the check bit.

(実施例) 次に、本発明について図面を参照して説明する。(Example) Next, the present invention will be explained with reference to the drawings.

第1図は、本発明による記憶装置のチェック方式を実現
する一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a storage device checking method according to the present invention.

第1図において、10はメモリアレイ、11はバッファ
ゲート、12は第1の読出しデータレジスタ、13は第
2の読出しデータレジスタ、14はパリティ発生回路、
15はFCCチェック回路、16は訂正回路、17は出
力データレジスタ、1日はパリティレジスタ、19〜2
2はそれぞれ駆動デー)、23.24はそれぞれ入力ゲ
ート、25は入力データおよびパリティを格納するデー
タレジスタ、26は部分書込み用データ選択回路、27
は入力データバリティチェック回路、2Bは比較回路、
29はECG発生回路、30は書込みデータレジスタ、
31は書込みデータ出力ゲート、32はCPUである。
In FIG. 1, 10 is a memory array, 11 is a buffer gate, 12 is a first read data register, 13 is a second read data register, 14 is a parity generation circuit,
15 is an FCC check circuit, 16 is a correction circuit, 17 is an output data register, 1st is a parity register, 19-2
2 are drive data), 23 and 24 are input gates, 25 are data registers that store input data and parity, 26 are partial write data selection circuits, 27
is an input data parity check circuit, 2B is a comparison circuit,
29 is an ECG generation circuit, 30 is a write data register,
31 is a write data output gate, and 32 is a CPU.

比較回路28は、FCCチェック回路1sで生成されな
第2の読出しデータレジスタ13の出力に対応するチェ
ックピットと、ECG発生回路29で生成された第1の
読出しデータレジスタ12の出力に対応するチェックピ
ットとを比較する。駆動ゲート19,21.および駆動
ゲート20.22は’フイヤードOR論理となってお勺
、信号線50.51上の信号によりいずれか一方が選択
される。信号線52は1ビットエラーが発生したことを
示す1ビツト工ラー信号線、信号線53はデータネ一致
エラーが発生したことを示すデータネ一致エラー信号線
である。
The comparison circuit 28 includes a check pit corresponding to the output of the second read data register 13 not generated by the FCC check circuit 1s and a check pit corresponding to the output of the first read data register 12 generated by the ECG generation circuit 29. Compare with pit. Drive gates 19, 21. The drive gates 20 and 22 have a 'fired OR' logic, and one of them is selected by the signal on the signal line 50 and 51. The signal line 52 is a 1-bit error signal line indicating that a 1-bit error has occurred, and the signal line 53 is a data match error signal line indicating that a data match error has occurred.

メモリアレイ10から読出されたデータは、バッフアゲ
−)11e介して第1の読出しデータレジスタ12と第
2の読出しデータレジスタ13とに格納される。第1の
読出しデータレジスタ12の出力は直ちにパリティ発生
回路14に加えられ、ここでパリティが生成され、パリ
ティとともに駆動ゲート19.20を介して、第1の読
出しデータレジスタ12の出力はCPU32に送出され
る。
Data read from the memory array 10 is stored in the first read data register 12 and the second read data register 13 via the buffer 11e. The output of the first read data register 12 is immediately applied to the parity generation circuit 14, where parity is generated, and the output of the first read data register 12 is sent to the CPU 32 together with the parity via the drive gate 19.20. be done.

この間、第1の読出しデータレジスタ13に格納されて
いたデータは、FCCチェック回路15に送られてチェ
ックされる。
During this time, the data stored in the first read data register 13 is sent to the FCC check circuit 15 and checked.

その結果、1ビットエラーが検出された場合には、訂正
回路16によりデータの訂正を行うとともに、CPU3
2に対して1ビットエラーの発生を告げる1ビツト工ラ
ー信号を信号#52ft介して通知する。訂正されたデ
ータは出力データレジスタ1フに格納され、当該データ
【対するパリティピットはFCCチェック回路ISKよ
って生成され、パリティレジスタ18に格納される。こ
れらのデータおよびパリティは、第1の読出しデータレ
ジスタ12の出力が送られたクロックのIT後のクロッ
クにより、駆動ゲート21.22を介してCPU32に
送出される。
As a result, if a 1-bit error is detected, the correction circuit 16 corrects the data and the CPU 3
2, a 1-bit error signal indicating the occurrence of a 1-bit error is notified via signal #52ft. The corrected data is stored in the output data register 1f, and a parity pit for the data is generated by the FCC check circuit ISK and stored in the parity register 18. These data and parity are sent to the CPU 32 via the drive gates 21 and 22 by a clock after IT of the clock to which the output of the first read data register 12 is sent.

このとき、信号線50は非選択状態、信号線S1は選択
状態となっている。1ビットエラーが発生しなかった場
合には、第1の読出しデータレジスタ12の出力が有効
となってCPU32により処理が実行される。
At this time, the signal line 50 is in a non-selected state and the signal line S1 is in a selected state. If a 1-bit error does not occur, the output of the first read data register 12 becomes valid and the CPU 32 executes the process.

第1の読出しデータレジスタ12の出力は、部分書込み
用データ選択回路26に送られ、読出しモード時には当
該データを選択するように構成される。部分書込み時に
は、選択回路26は書込み指示バイト信号のセットされ
ているバイトについては入力データレジスタ2Sの出力
を選択し、書込み指定バイト信号がセットされていない
バイトについては訂正済みデータを格納している出力デ
ータレジスタ17の出力を選択している。読出しモード
時には、全バイトについて第1の読出しデータレジスタ
12の出力を選択し、これをECG発生回路29に送出
する。ECG発生回路29では、当該出力データに対す
るチェックピットを生成する。
The output of the first read data register 12 is sent to a partial write data selection circuit 26, which is configured to select the data in the read mode. During partial writing, the selection circuit 26 selects the output of the input data register 2S for bytes for which the write instruction byte signal is set, and stores corrected data for bytes for which the write instruction byte signal is not set. The output of the output data register 17 is selected. In the read mode, the output of the first read data register 12 is selected for all bytes and sent to the ECG generation circuit 29. The ECG generation circuit 29 generates check pits for the output data.

FCCチェック回路15には、第2の読出しデータレジ
スタ13のチェックビットを除くデータに対してECC
マトリクスの演算結果が出力されているととは当業者に
おhては容易に推察される。
The FCC check circuit 15 performs ECC on data other than the check bit of the second read data register 13.
Those skilled in the art can easily guess that the matrix calculation results are output.

この演算結果は、ECG発生回1lI29によって発生
されるチェックビットの演算式と同一のものである。し
たがって、第1の読出しデータレジスタ12の出力によ
るECG発生回路29の出力と、ECCチェック回路1
5の部分回路による第2の読出しデータレジスタ13の
出力による出力結果とは、第1の読出しデータレジスタ
12と第2の読出しデータレジスタ13との格納結果が
同一であれば同じになる。比較回路28によってチェッ
クビットを比較することにより、データの不一致をチェ
ックすることができる。比較結果t−信号線53を介し
てCPU32に知らせることにより、重大なデータ化け
を回避することが可能になる。
This calculation result is the same as the check bit calculation formula generated by the ECG generation circuit 11I29. Therefore, the output of the ECG generation circuit 29 based on the output of the first read data register 12 and the ECC check circuit 1
The output result of the output of the second read data register 13 by the partial circuit No. 5 will be the same if the stored results of the first read data register 12 and the second read data register 13 are the same. By comparing the check bits by the comparison circuit 28, it is possible to check for data mismatch. By notifying the CPU 32 of the comparison result via the t-signal line 53, serious data corruption can be avoided.

(発明の効果) 以上説明したように本発明は、メモリアレイからの読出
しデータを保持し、その出力の一部をCPUに送出し、
他の一部を訂正回路を介し、1ビットエラー発生時には
訂正したうえでCPUに送シ、読出しデータか、訂正済
みデータか、あるいはCPUから送られてきた入力デー
タかを選択し、読出し時には読出しデータを選択してチ
ェックビットの発生に使用し、読出しデータとFCCチ
ェック回路とによって生成さf′したチェックビットと
、上記チェックビットの発生によって生成されたチェッ
クビットとを比較してCPUに送出することてより容易
、且つ的確にデータの不一致をチェックできるという効
果がある。
(Effects of the Invention) As explained above, the present invention holds read data from a memory array, sends a part of the output to the CPU,
When a 1-bit error occurs, the other part is corrected and sent to the CPU via a correction circuit, and read data, corrected data, or input data sent from the CPU is selected, and when reading, it is read out. Select the data and use it to generate a check bit, compare the check bit f′ generated by the read data and the FCC check circuit with the check bit generated by the generation of the check bit, and send it to the CPU. This has the advantage that data inconsistency can be checked more easily and accurately.

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

第1図は、本発明による記憶装置のチェック方式を実現
する一実施例を示すグロノ4り図である。 第2図は、従来技術による記憶装置のチェック方式を実
現する一例を示すブロック図である。 10.100・・−メモリアレイ 11・・・バッファゲート 12.13.17.25.30,101 。 102.106・拳Φ・・データレジスタ14.103
・・・パリティ発生回路 15.104・・・ECCチェック回路16.108・
・・訂正回路 111.1(1・拳・パリティレジスタ19〜22.1
08〜111e・−駆動ゲート23.24−−−人力ゲ
ート 26・・・選択回路 27・・・パリティチェック回路 28・・・比較回路 29・・・ECG発生回路 31・・・出力ゲート 32.112・・・処理装置
FIG. 1 is a four-dimensional diagram showing an embodiment of the storage device checking method according to the present invention. FIG. 2 is a block diagram showing an example of implementing a storage device checking method according to the prior art. 10.100...-Memory array 11...Buffer gate 12.13.17.25.30,101. 102.106・FistΦ・・Data register 14.103
...Parity generation circuit 15.104...ECC check circuit 16.108.
・・Correction circuit 111.1 (1・Fist・Parity register 19 to 22.1
08~111e・-Drive gate 23.24---Manual gate 26...Selection circuit 27...Parity check circuit 28...Comparison circuit 29...ECG generation circuit 31...Output gate 32.112 ...processing equipment

Claims (1)

【特許請求の範囲】[Claims] メモリアレイからの読出しデータを保持するための第1
および第2の読出しデータレジスタと、前記第2の読出
しデータレジスタの内容に1ビットエラーが発生したと
きには訂正して訂正済みデータを出力するためのエラー
チェック訂正手段と、前記第1の読出しデータレジスタ
の内容、前記訂正済みデータ、あるいは演算処理装置か
ら送られてきた入力データを選択するための選択回路と
、読出し時には前記選択回路により前記第1の読出しデ
ータレジスタの出力を選択してチェックビットを発生す
るためのチェックビット発生手段と、前記第2の読出し
データレジスタの内容と前記チェックビットとを比較し
て読出しデータをチェックするための比較回路とを具備
して構成したことを特徴とする記憶回路のチェック方式
The first one for holding read data from the memory array.
and a second read data register, an error check and correction means for correcting and outputting corrected data when a 1-bit error occurs in the contents of the second read data register, and the first read data register. a selection circuit for selecting the content of the data, the corrected data, or input data sent from the arithmetic processing unit, and at the time of reading, the selection circuit selects the output of the first read data register and sets a check bit. and a comparison circuit for comparing the contents of the second read data register and the check bit to check the read data. Circuit check method.
JP62115193A 1987-05-12 1987-05-12 Check system for memory Pending JPS63279348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62115193A JPS63279348A (en) 1987-05-12 1987-05-12 Check system for memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62115193A JPS63279348A (en) 1987-05-12 1987-05-12 Check system for memory

Publications (1)

Publication Number Publication Date
JPS63279348A true JPS63279348A (en) 1988-11-16

Family

ID=14656654

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62115193A Pending JPS63279348A (en) 1987-05-12 1987-05-12 Check system for memory

Country Status (1)

Country Link
JP (1) JPS63279348A (en)

Similar Documents

Publication Publication Date Title
US6009548A (en) Error correcting code retrofit method and apparatus for multiple memory configurations
JP4071940B2 (en) Shared error correction for memory design
EP1164589A1 (en) Storage device having an error correction function
JP2772391B2 (en) Bad data algorithm
JPS6061837A (en) Error corrector
US4926426A (en) Error correction check during write cycles
JPS61157959A (en) Error correction for memory
JPH04271445A (en) Analysis for high-speed memory when power supply using dma is turned on
JP2004514184A (en) Method and apparatus for correcting soft errors in digital data
US7293221B1 (en) Methods and systems for detecting memory address transfer errors in an address bus
JPH09288619A (en) Main storage device
JPS63279348A (en) Check system for memory
WO2023045803A1 (en) Memory error correction method and apparatus, and related device
JPH04119434A (en) Parity error detector
JPS5826120B2 (en) Storage device
JPH01194046A (en) Memory access system
JPH02207355A (en) Memory readout system
JPS63278162A (en) Error correction device in information processor
JPH06301604A (en) Storage reproducing system
JPS6054059A (en) Storage device
JPH0240746A (en) Memory error processing system
JPH0520215A (en) Information processor
JPH0373014B2 (en)
JPS6161418B2 (en)
JPH01123345A (en) Self-diagnosing circuit for error correcting device