JPH0338752A - Storage device - Google Patents

Storage device

Info

Publication number
JPH0338752A
JPH0338752A JP1175221A JP17522189A JPH0338752A JP H0338752 A JPH0338752 A JP H0338752A JP 1175221 A JP1175221 A JP 1175221A JP 17522189 A JP17522189 A JP 17522189A JP H0338752 A JPH0338752 A JP H0338752A
Authority
JP
Japan
Prior art keywords
circuit
unit data
check
data
memory 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
JP1175221A
Other languages
Japanese (ja)
Inventor
Fuyuki Watanabe
渡邊 冬樹
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 JP1175221A priority Critical patent/JPH0338752A/en
Publication of JPH0338752A publication Critical patent/JPH0338752A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the output of the correct unit data even when 2 or more error bits are included in the entire data by detecting the output errors of the 1st and 2nd storage circuits having the same storage contents at every unit data with a check bit and selecting the correct unit data. CONSTITUTION:The checking circuits 4 and 5 detect the errors of the unit data read out of 1st and 2nd storage circuits 1 and 2 with the address received from an address register 3 for each data with a check bit. A deciding circuit 6 decides the wrong one of both unit data with a checking signal and outputs a decision signal, and the selection circuits 7 - 10 select the correct unit data based on the decision signal. Consequently, even 2 or more error bits of the entire data can be corrected and the output of the storage circuit can be turned into the valid data.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は記憶装置に関し、特に情報処理システムの記憶
装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a storage device, and particularly to a storage device for an information processing system.

〔従来の技術〕[Conventional technology]

従来の記憶装置は、記憶回路に記憶するデータにチェッ
クピットを付加し、出力時にチェックピットでデータの
チェックを行うことによりデータの正当性の判断を行い
、その結果に対して誤りのビットがデータ全体で1ビツ
トのみのときに出力データの訂正を行っていた。
Conventional storage devices add check pits to the data stored in the memory circuit, and check the data with the check pits at the time of output to determine the validity of the data. The output data was corrected when there was only one bit in total.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の記憶装置は、誤りのビットがデータ全体
で1ビツトの時に限り訂正を行ってぃるので、誤りのビ
ットがデータ全体で2ビット以上あると訂正できないた
めに、記憶回路の出力が無効データとなってしまうとい
う欠点を有している。
The conventional storage device described above performs correction only when the error bit is 1 bit in the entire data, so if there are 2 or more error bits in the entire data, it cannot be corrected, so the output of the storage circuit is This has the disadvantage that the data becomes invalid.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の記憶装置は、単位データ毎にチェックピットを
付加した少なくとも一つの単位データを各アドレスに記
憶する第一記憶回路と、前記第一記憶回路に同じ記憶内
容を有する第二記憶回路と、前記第一記憶回路および前
記第二記憶回路に共通のアドレスを保持するアドレスレ
ジスタと、前記アドレスレジスタから受けたアドレスに
よりそれぞれ前記第一記憶回路および前記第二記憶回路
から読出した各々の単位データに対して単位データ毎に
チェックピットによる誤りの検出を行ってチェック信号
を発生するそれぞれ第一チェック回路および第二チェッ
ク回路と、前記第一記憶回路および前記第二記憶回路の
どちらの単位データが誤っているかを前記第一チェック
回路および前記第二チェック回路から受けたチェック信
号により単位データ毎に判断して判定信号を出力する判
定回路と、前記判定回路の判定信号により正しい各々の
単位データを選択する選択回路とを備えて構成されてい
る。
The storage device of the present invention includes: a first storage circuit that stores at each address at least one unit data with a check pit added to each unit data; a second storage circuit that has the same storage content in the first storage circuit; an address register that holds an address common to the first memory circuit and the second memory circuit; and an address register that holds an address common to the first memory circuit and the second memory circuit; On the other hand, a first check circuit and a second check circuit detect errors using check pits for each unit data and generate a check signal, and which unit data of the first storage circuit and the second storage circuit is detected as an error. a determination circuit that determines whether each unit data is correct based on a check signal received from the first check circuit and the second check circuit and outputs a determination signal; and a determination circuit that selects each correct unit data based on the determination signal of the determination circuit. and a selection circuit.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の記憶装置の一実施例を示すブロック図
である。
FIG. 1 is a block diagram showing an embodiment of the storage device of the present invention.

本実施例の記憶装置は、第1図に示すように、単位デー
タ毎にチェックピットを付加した複数の単位データを各
アドレスに記憶する第一記憶回路1と第一記憶回路1に
同じ記憶内容を記憶する第二記憶回路2と、第一記憶回
路1および第二記憶回路2のアドレス101を供給する
アドレスレジスタ3と、アドレスレジスタ3からのアド
レス101により第一記憶回路1から読出した単位デー
タ201.〜204毎にチェックピットによるチェック
を行う第一チェック回路4と、アドレス101により第
二記憶回路2から読出した単位データ301.〜304
毎にチェックピットによるチェックを行う第二チェック
回路5と、チェック信号401.〜404およびチェッ
ク信号501゜〜504により第一記憶回路lおよび第
二記憶回路2のどちらの単位データが誤っているか判定
する判定回路6と、判定信号601.〜604により正
しい各々の単位データを選択する選択回路7、〜10と
を有して構成されている。
As shown in FIG. 1, the storage device of this embodiment has the same storage content in the first storage circuit 1 which stores a plurality of unit data with check pits added to each unit data at each address. a second memory circuit 2 that stores the address 101 of the first memory circuit 1 and the second memory circuit 2; and an address register 3 that supplies the address 101 of the first memory circuit 1 and the second memory circuit 2; 201. The first check circuit 4 performs a check using a check pit every 204 times, and the unit data 301 . ~304
A second check circuit 5 performs a check using a check pit every time, and a check signal 401 . -404 and check signals 501.about.504, a judgment circuit 6 determines which unit data in the first storage circuit 1 and the second storage circuit 2 is incorrect, and a judgment signal 601. . . . 604. The selection circuit 7, .about.10 selects each correct unit data by .about.604.

そして、アドレスレジスタ3は、アドレス101を第一
記憶回路1および第二記憶回路2へ送出するので、第一
記憶回路1は、アドレスレジスタ3の出力するアドレス
101により、チェックピットを付加した単位データ2
01.〜204を第一チェック回路4および選択回路7
.〜10へ送出するとともに、第二記憶回路2は、アド
レスレジスタ3の出力するアドス101により、チェッ
クピットを付加した単位データ301.〜304を第二
チェック回路5および選択回路7.〜10へ送出する。
Then, the address register 3 sends the address 101 to the first memory circuit 1 and the second memory circuit 2, so the first memory circuit 1 receives the unit data with check pits added by the address 101 output from the address register 3. 2
01. ~204 to the first check circuit 4 and the selection circuit 7
.. .about.10, and the second storage circuit 2 outputs the unit data 301. 304 to the second check circuit 5 and the selection circuit 7. ~10.

また、第一チェック回路4は、第一記憶回路1− の出力する単位データ201.〜204を単位データ毎
に付加されたチェックピットによりチェックを行い、チ
ェック信号401.〜404を判定回路6へ送出すると
ともに、第二チェック回路5は、第二記憶回路2の出力
する単位データ301、〜304を単位データ毎に付加
されたチェックピットによりチェックを行い、チェック
信号501.〜504を判定回路6へ送出する。
The first check circuit 4 also receives the unit data 201. output from the first storage circuit 1-. .about.204 are checked using a check pit added to each unit data, and a check signal 401. ~404 to the determination circuit 6, the second check circuit 5 checks the unit data 301 and ~304 output from the second storage circuit 2 using a check pit added to each unit data, and outputs a check signal 501. .. ~504 is sent to the determination circuit 6.

そこで、判定回路6は、チェック信号401.〜404
とチェック信号501.〜504とにより、第一記憶回
路1と第二記憶回路2とのどちらの単位データが誤って
いるかを単位データ毎に判定し、選択回路7.〜10へ
判定信号601.〜604を送出する。
Therefore, the determination circuit 6 uses the check signal 401. ~404
and check signal 501. - 504, it is determined for each unit data which unit data in the first memory circuit 1 or the second memory circuit 2 is incorrect, and the selection circuit 7. to 10 determination signal 601. ~604 is sent.

なお、判定回路6は、第一記憶回路1と第二記憶回路2
との対応する単位データにおいて、同時に誤りを検出し
た時には、選択不能信号701を出力する。
Note that the determination circuit 6 includes a first memory circuit 1 and a second memory circuit 2.
When an error is simultaneously detected in the corresponding unit data, a selection disable signal 701 is output.

また、選択回路7.〜10は、判定信号601.〜60
4により、単位データ毎に正しい方の単位データを出力
データ801.〜804として出力する。
In addition, the selection circuit 7. .about.10 is the determination signal 601. ~60
4, the correct unit data for each unit data is output data 801. ~ Output as 804.

次に、本実施例の記憶装置に対する読出し動作について
説明する。
Next, a read operation for the storage device of this embodiment will be explained.

まず、第一記憶回路1および第二記憶回路2は、アドレ
スレジスタ3の出力する読出しアドレス101により、
第一記憶回路1の単位データ201、〜204および第
二記憶回路2の単位データ301.〜304を、第一チ
ェック回路4および第二チェック回路5並びに選択回路
7.〜10のそれぞれへ出力する。
First, the first memory circuit 1 and the second memory circuit 2 are operated by the read address 101 output from the address register 3.
Unit data 201 to 204 of the first storage circuit 1 and unit data 301 of the second storage circuit 2. .about.304, the first check circuit 4, the second check circuit 5, and the selection circuit 7. ~10 respectively.

そして、第一チェック回路4および第二チェック回路5
は、単位データ201.〜204および単位データ30
1.〜304を単位データ毎に付加されたチェックピッ
トによりチェックを行う。
Then, the first check circuit 4 and the second check circuit 5
is the unit data 201. ~204 and unit data 30
1. -304 are checked using check pits added to each unit data.

そして、単位データ201.〜204に誤りがない時に
は、チェック信号401.〜404の各々を′0”にし
、単位データ201.〜204の何れかに誤りを検出す
ると、誤りの検出に対応するチェック信号401.〜4
04だけをlにする。
Then, unit data 201. When there is no error in the check signals 401. When each of unit data 201. to 404 is set to '0' and an error is detected in any of the unit data 201. to 204, a check signal 401. to 404 corresponding to the error detection is generated.
Set only 04 to l.

また、単位データ301.〜304に誤りがない時には
、チェック信号501.〜504の各々を0”にし、単
位データ301.〜304の何れかに誤りを検出すると
、誤りの検出に対応するチェック信号501.〜504
だけを“1′”にする。
Also, unit data 301. When there is no error in the check signals 501. When each of unit data 301. to 504 is set to 0'' and an error is detected in any of the unit data 301. to 304, a check signal 501. to 504 corresponding to the error detection is generated.
Set only "1'".

そして、第一記憶回路1および第二記憶回路2の対応す
る単位データ、すなわち、単位データ201および単位
データ301.単位データ202および単位データ30
2.単位データ203および単位データ303.単位デ
ータ204および単位データ304の各々で、共に誤り
がない時または第二記憶回路20単位データでのみ誤り
を検出した時に、判定回路6は対応する単位データの判
定信号601.〜604の各々を“0°′にする。この
時、選択回路7.〜10は、判定信号601、〜604
が“0”であるので第一記憶回路lの出力を選択し、単
位データ201.〜204を出力データ801.〜80
4とする。
Then, the corresponding unit data of the first storage circuit 1 and the second storage circuit 2, that is, the unit data 201 and the unit data 301. Unit data 202 and unit data 30
2. Unit data 203 and unit data 303. When there is no error in each of the unit data 204 and the unit data 304, or when an error is detected only in the unit data of the second storage circuit 20, the determination circuit 6 outputs the determination signal 601. -604 are set to "0°".At this time, the selection circuits 7.-10 select the determination signals 601, -604.
is "0", the output of the first memory circuit l is selected, and the unit data 201. ~204 as output data 801. ~80
Set it to 4.

また、第一記憶回路1の単位データで誤りを検出した時
には、対応する単位データの判定信号601、〜604
をII I IIにする。この時、選択回路7.〜10
は、判定信号601.〜604がII I IIである
ので、第二記憶回路2の出力を選択し、単位データ30
1.〜304を出力データ801、〜804とする。以
上示したように、単位データ毎に誤りを判定し、判定信
号601.〜604により、選択回路7.〜10で正当
な単位データを選択する。
Further, when an error is detected in the unit data of the first storage circuit 1, the determination signals 601, 604 of the corresponding unit data
to II I II. At this time, selection circuit 7. ~10
is the determination signal 601. ~604 is II II II, so the output of the second memory circuit 2 is selected and the unit data 30
1. ~304 are output data 801 and ~804. As shown above, errors are determined for each unit data, and the determination signal 601. ~604, the selection circuit 7. Select valid unit data in ~10.

ただし、判定回路6は、第一記憶回路1と第二記憶回路
2との対応する単位データで同時に誤りを検出すると、
判定不能信号701を1″にして選択が不可能であるこ
とを示す。この時、選択回路7.〜10の出力データ8
01.〜804は無効である。
However, if the determination circuit 6 simultaneously detects an error in the corresponding unit data of the first storage circuit 1 and the second storage circuit 2,
The undeterminable signal 701 is set to 1'' to indicate that selection is impossible.At this time, the output data 8 of the selection circuits 7. to 10
01. ~804 is invalid.

〔発明の効果〕 以上説明したように、本発明の記憶装置は、同じ記憶内
容を有する第一記憶回路と第二記憶回路との出力の誤り
を単位データ毎に付加されたチェックピットで検出し、
正しい単位データを選択することにより、読出したアド
レスのデータ全体で誤りのビットが2ビット以上の時に
も、正しい各々の単位データを出力し、出力データを有
効データとすることができるという効果を有している。
[Effects of the Invention] As explained above, the storage device of the present invention detects errors in the output of the first storage circuit and the second storage circuit, which have the same storage content, using check pits added to each unit of data. ,
By selecting the correct unit data, even when there are two or more error bits in the entire read address data, each correct unit data can be output and the output data can be made valid data. are doing.

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

第1図は本発明の記憶装置の一実施例を示すブロック図
である。 1・・・・・・第1記憶回路、2・・・・・・第二記憶
回路、3・・・・・・アドレスレジスタ、4・・・・・
・第一チェック回路、5・・・・・・第二チェック回路
、6・・・・・・判定回路、7、〜10・・・・・・選
択回路、101・・・・・・アドレス、201、〜20
4,301.〜304・・・・・・単位データ、401
.〜404,501.〜504・・・・・チェック信号
、601.〜604・・・・・・判定信号、70.1・
・・・・・選択不能信号、801.〜804・・出力デ
ータ。
FIG. 1 is a block diagram showing an embodiment of the storage device of the present invention. 1...First memory circuit, 2...Second memory circuit, 3...Address register, 4...
・First check circuit, 5... Second check circuit, 6... Judgment circuit, 7, ~10... Selection circuit, 101... Address, 201, ~20
4,301. ~304...Unit data, 401
.. ~404,501. ~504...Check signal, 601. ~604...Judgment signal, 70.1.
...Selectable signal, 801. ~804...Output data.

Claims (1)

【特許請求の範囲】[Claims] 単位データ毎にチェックビットを付加した少なくとも一
つの単位データを各アドレスに記憶する第一記憶回路と
、前記第一記憶回路に同じ記憶内容を有する第二記憶回
路と、前記第一記憶回路および前記第二記憶回路に共通
のアドレスを保持するアドレスレジスタと、前記アドレ
スレジスタから受けたアドレスによりそれぞれ前記第一
記憶回路および前記第二記憶回路から読出した各々の単
位データに対して単位データ毎にチェックビットによる
誤りの検出を行ってチェック信号を発生するそれぞれ第
一チェック回路および第二チェック回路と、前記第一記
憶回路および前記第二記憶回路のどちらの単位データが
誤っているかを前記第一チェック回路および前記第二チ
ェック回路から受けたチェック信号により単位データ毎
に判断して判定信号を出力する判定回路と、前記判定回
路の判定信号により正しい各々の単位データを選択する
選択回路とを備えることを特徴とする記憶装置。
a first memory circuit that stores at least one unit data with a check bit added to each unit data at each address; a second memory circuit that has the same memory content in the first memory circuit; the first memory circuit and the An address register that holds a common address in a second memory circuit, and an address received from the address register to check each unit data read from the first memory circuit and the second memory circuit, respectively. A first check circuit and a second check circuit detect bit errors and generate check signals, and the first check circuit determines which unit data of the first memory circuit and the second memory circuit is incorrect. A determination circuit that determines each unit data based on a check signal received from the circuit and the second check circuit and outputs a determination signal, and a selection circuit that selects each correct unit data based on the determination signal of the determination circuit. A storage device characterized by:
JP1175221A 1989-07-05 1989-07-05 Storage device Pending JPH0338752A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1175221A JPH0338752A (en) 1989-07-05 1989-07-05 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1175221A JPH0338752A (en) 1989-07-05 1989-07-05 Storage device

Publications (1)

Publication Number Publication Date
JPH0338752A true JPH0338752A (en) 1991-02-19

Family

ID=15992408

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1175221A Pending JPH0338752A (en) 1989-07-05 1989-07-05 Storage device

Country Status (1)

Country Link
JP (1) JPH0338752A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158804A (en) * 2006-12-22 2008-07-10 Nec Corp Memory controller, computer and data reading method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008158804A (en) * 2006-12-22 2008-07-10 Nec Corp Memory controller, computer and data reading method

Similar Documents

Publication Publication Date Title
US7877647B2 (en) Correcting a target address in parallel with determining whether the target address was received in error
US4924465A (en) Memory with function test of error detection/correction device
JP2606862B2 (en) Single error detection and correction method
JPH0338752A (en) Storage device
US5357529A (en) Error detecting and correcting apparatus and method with transparent test mode
JP2526060B2 (en) Memory device
JPH06103469B2 (en) Memory control circuit
JP2003316662A (en) Contents address memory system
JP2609768B2 (en) Error detection method for control information read data
JP2752929B2 (en) Program runaway detection device and runaway detection method
JPH01205357A (en) System for testing memory error detecting circuit
JPS61211786A (en) Ic card
KR200202060Y1 (en) Error Correction Circular
JPH01194035A (en) Address parity checking system for information processor
JPH03113644A (en) Detection circuit for majority decision error
JPS58169253A (en) Error detection system
JPH11161560A (en) Address propriety judgement device and address propriety judgement method for storage device
JPH02143352A (en) Memory error detection and correction system
JPH036760A (en) Ram fault processing system
JPS6220047A (en) Storage element
JPH04287253A (en) Parity check circuit
JPH02105229A (en) Temporary memory circuit
JPS6072036A (en) Error detecting system of control storage device
JPH06348517A (en) Digital relay with vertical parity check function
JPS61161564A (en) Storage device