JPH0520213A - Storage device - Google Patents

Storage device

Info

Publication number
JPH0520213A
JPH0520213A JP3172058A JP17205891A JPH0520213A JP H0520213 A JPH0520213 A JP H0520213A JP 3172058 A JP3172058 A JP 3172058A JP 17205891 A JP17205891 A JP 17205891A JP H0520213 A JPH0520213 A JP H0520213A
Authority
JP
Japan
Prior art keywords
data
bit
circuit
memory circuit
error
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
JP3172058A
Other languages
Japanese (ja)
Inventor
Seiji Hashida
誠治 橋田
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 JP3172058A priority Critical patent/JPH0520213A/en
Publication of JPH0520213A publication Critical patent/JPH0520213A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent the generation of an error even when a bit fault occurs on the halfway of reading out data from a memory circuit. CONSTITUTION:When an ECC circuit 4 detects/corrects the error in data read out from the memory circuit 1, a microprocessor 5 sets up an 1/n selective flag register 7. Based upon the operation, the corrected data of a bit error position judged by the ECC circuit 4 are written in a redundant bit memory circuit 2. The operation is repeated until the end of data reading from the memory circuit 1. After completing the data reading, a 1/2 switching circuit 3 is started, the data of a fixed failure bit position are switched and correct data are outputted.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は記憶装置に関し、特に半
導体メモリをディスクキャッシュに使用した記憶装置及
び半導体ディスクキャッシュの半導体記憶装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device, and more particularly to a storage device using a semiconductor memory for a disk cache and a semiconductor storage device for a semiconductor disk cache.

【0002】[0002]

【従来の技術】従来のデータには、アドレスパリティが
含まれていない。また、ビットの固定故障位置のデータ
の切り替えは立ち上げ時のみであったため、走行中の固
定ビット故障によりシステムに重大な事故を引き起こす
ような欠点があった。
2. Description of the Related Art Conventional data does not include address parity. Further, since the data of the fixed bit position of the bit is switched only at the time of start-up, there is a drawback that a fixed bit failure during running causes a serious accident in the system.

【0003】[0003]

【発明が解決しようとする課題】本発明の目的は、走行
中にビット故障が発生した場合にも、エラー発生を防止
できる記憶装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a storage device capable of preventing the occurrence of an error even if a bit failure occurs during running.

【0004】[0004]

【課題を解決するための手段】本発明の記憶装置は、デ
ータ及びECC用付加ビットと冗長ビットをそれぞれ格
納するメモリ回路と、固定故障のビット位置のデータ
と、冗長ビットからのデータを切り替えることのできる
1/2切り替え回路と、ECC回路で検出された1ビッ
トデータ誤り時のビット位置を、1/2選択フラグレジ
スタ、1/n選択フラグレジスタにそれぞれ転送するマ
イクロプロセッサと、1ビットデータ誤り時のビット位
置のデータを指定する1/n切り替え回路とを備え、前
記メモリ回路から読み出されたデータを前記ECC回路
が受信し、あるビットが故障であると位置を確認しデー
タを訂正し、訂正後の固定故障のビット位置のデータを
冗長ビットに記憶させ、走行中に前記1/2切り替え回
路により切り替えて、データとして出力させることを特
徴とする。
A storage device of the present invention switches a memory circuit for storing data and an additional bit for ECC and a redundant bit respectively, data at a bit position of a fixed failure, and data from a redundant bit. ½ switching circuit, a microprocessor that transfers the bit position at the time of a 1-bit data error detected by the ECC circuit to the ½ selection flag register and the 1 / n selection flag register, and a 1-bit data error A 1 / n switching circuit for designating the data of the bit position at the time, the ECC circuit receives the data read from the memory circuit, confirms the position if a certain bit is defective, and corrects the data. , The data of the fixed fixed bit position after correction is stored in the redundant bit, and is switched by the 1/2 switching circuit while running. Characterized in that to the output as data.

【0005】[0005]

【実施例】本発明の実施例について図面を参照して説明
する。
Embodiments of the present invention will be described with reference to the drawings.

【0006】図1は、記憶装置の一実施例を示す。この
記憶装置は、データ及びECC用チェックビットを格納
するメモリ回路1と、冗長ビットを格納するメモリ回路
2と、メモリ回路1の読みだしデータ線101と、メモ
リ回路2の読みだしデータ線105のそれぞれに接続さ
れ、データ線101上のデータのビット故障位置を、デ
ータ線105上のデータに置き換えることのできる1/
2切り替え回路3と、1/2切り替え回路3の出力であ
る切り替え後データ線102上のデータを受け、メモリ
エラーの検出,修正,エラービット位置の検知を行うE
CC回路4と、ECC回路4で検出したエラービット位
置を示すシンドロームを含むデータを出力するデータ線
103と、データ線103上のデータを受信し、エラー
ビット位置を判定するマイクロプロセッサ5と、データ
線103上のデータを受信する1/n切り替え回路8
と、1/2選択フラグレジスタ107と、1/n選択フ
ラグレジスタ108と、マイクロプロセッサ5で判定し
たエラービット位置信号を1/2選択フラグレジスタ6
と1/nフラグレジスタ7にそれぞれ転送するエラービ
ット位置信号106と、1/2選択フラグレジスタ6か
ら1/2切り替え回路6に転送するデータ線107と、
1/n選択フラグレジスタ8から1/n切り替え回路4
に転送するデータ線108と、1/n選択フラグレジス
タ7からの信号線108によって、ECC回路4からの
データ線103上のデータから固定故障のビット位置位
置のデータを転送するデータ線104とを有している。
FIG. 1 shows an embodiment of a storage device. This storage device includes a memory circuit 1 for storing data and ECC check bits, a memory circuit 2 for storing redundant bits, a read data line 101 of the memory circuit 1, and a read data line 105 of the memory circuit 2. Connected to each of them, the bit failure position of the data on the data line 101 can be replaced with the data on the data line 105.
E receiving the data on the data line 102 after switching which is the output of the 2 switching circuit 3 and the 1/2 switching circuit 3 to detect and correct the memory error and detect the error bit position E
A CC circuit 4, a data line 103 that outputs data including a syndrome indicating an error bit position detected by the ECC circuit 4, a microprocessor 5 that receives data on the data line 103, and determines an error bit position; 1 / n switching circuit 8 for receiving data on line 103
, 1/2 selection flag register 107, 1 / n selection flag register 108, and the error bit position signal determined by the microprocessor 5 to the 1/2 selection flag register 6
And an error bit position signal 106 transferred to the 1 / n flag register 7 and a data line 107 transferred from the 1/2 selection flag register 6 to the 1/2 switching circuit 6, respectively.
1 / n selection flag register 8 to 1 / n switching circuit 4
And the data line 104 for transferring the data at the bit position of the fixed fault from the data on the data line 103 from the ECC circuit 4 by the signal line 108 from the 1 / n selection flag register 7. Have

【0007】以上の構成の記憶装置において、メモリ回
路1からデータを読みだす場合、メモリ回路1の出力で
ある読みだし信号線101上のデータは1/2切り替え
回路3に入力される。最初の読みだし時においては、1
/2選択フラグレジスタ6,1/n選択フラグレジスタ
7それぞれからの信号線106,107は全てオフとな
っており、補正後データ線102上のデータは読みだし
信号線101上のデータと同じ値となる。補正後データ
線102上のデータがECC回路4へ入力されると、E
CC回路4はそのデータに誤りがあるかどうかを判定
し、誤りがなければ補正後データ線102上の値をその
まま修正後データ線103に出力する。補正後データ線
102上のデータに1ビット誤りがあると、ECC回路
4はその1ビット誤りを修正し修正後データ線103に
修正したデータを出力する。この時、ECC回路4は修
正したビット位置をデータと共にデータ線103にのせ
る。データ線103上のデータを受信したマイクロプロ
セッサ5は、信号線106を介して、1/n選択フラグ
レジスタ7をセットする。1/n選択フラグレジスタ7
をセットすることにより、冗長ビットに固定故障のビッ
ト位置の訂正後のデータが書き込まれる。
When data is read from the memory circuit 1 in the storage device having the above configuration, the data on the read signal line 101 which is the output of the memory circuit 1 is input to the 1/2 switching circuit 3. 1 at the first reading
All the signal lines 106 and 107 from the / 2 selection flag register 6 and the 1 / n selection flag register 7 are off, and the data on the corrected data line 102 has the same value as the data on the read signal line 101. Becomes When the data on the corrected data line 102 is input to the ECC circuit 4, E
The CC circuit 4 determines whether or not the data has an error, and if there is no error, the value on the corrected data line 102 is directly output to the corrected data line 103. When the data on the corrected data line 102 has a 1-bit error, the ECC circuit 4 corrects the 1-bit error and outputs the corrected data to the corrected data line 103. At this time, the ECC circuit 4 puts the corrected bit position on the data line 103 together with the data. Upon receiving the data on the data line 103, the microprocessor 5 sets the 1 / n selection flag register 7 via the signal line 106. 1 / n selection flag register 7
By setting, the data after the correction of the fixed fault bit position is written in the redundant bit.

【0008】これらを繰り返しながらメモリ回路1のデ
ータをスタートアドレスよりリードしてゆく。データを
最後まで読み終えると、1/2切り替え回路3をスター
トさせ、固定故障のビット位置のデータと冗長ビットの
データを切り替える。
By repeating these steps, the data in the memory circuit 1 is read from the start address. When the data has been read to the end, the 1/2 switching circuit 3 is started to switch between the data at the fixed fault bit position and the data at the redundant bit.

【0009】[0009]

【発明の効果】本発明は以上説明したように、固定故障
のビット位置のデータを冗長ビットに記憶させてゆき、
全てを読み終えた時点で、1/2切り替え回路により固
定故障のビット位置のデータと、冗長ビットのデータを
切り替える。このことによりエラー発生を防止する効果
がある。
As described above, the present invention stores the data of the bit position of the fixed fault in the redundant bit,
When the reading of all is completed, the data of the bit position of the fixed failure and the data of the redundant bit are switched by the 1/2 switching circuit. This has the effect of preventing the occurrence of errors.

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

【図1】本発明の一実施例をブロック図で示した図であ
る。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【符号の説明】 1 データ及びECC用チェックビットメモリ回路 2 冗長ビットメモリ回路 3 1/2切り替え回路 4 ECC回路 5 マイクロプロセッサ 6 1/2選択フラグレジスタ 7 1/n選択フラグレジスタ 8 1/n切り替え回路 101 読みだしデータ線 102 切り替え後データ線 103 補正後データ線 104,105 データ線 106,107,108 信号線[Explanation of Codes] 1 check bit memory circuit for data and ECC 2 redundant bit memory circuit 3 1/2 switching circuit 4 ECC circuit 5 microprocessor 6 1/2 selection flag register 7 1 / n selection flag register 8 1 / n switching Circuit 101 Read data line 102 Data line after switching 103 Data line after correction 104, 105 Data line 106, 107, 108 Signal line

Claims (1)

【特許請求の範囲】 【請求項1】データ及びECC用付加ビットと冗長ビッ
トをそれぞれ格納するメモリ回路と、 固定故障のビット位置のデータと、冗長ビットからのデ
ータを切り替えることのできる1/2切り替え回路と、 ECC回路で検出された1ビットデータ誤り時のビット
位置を、1/2選択フラグレジスタ、1/n選択フラグ
レジスタにそれぞれ転送するマイクロプロセッサと、 1ビットデータ誤り時のビット位置のデータを指定する
1/n切り替え回路とを備え、 前記メモリ回路から読み出されたデータを前記ECC回
路が受信し、あるビットが故障であると位置を確認しデ
ータを訂正し、訂正後の固定故障のビット位置のデータ
を冗長ビットに記憶させ、走行中に前記1/2切り替え
回路により切り替えて、データとして出力させることを
特徴とする記憶装置。
Claim: What is claimed is: 1. A memory circuit for storing data and an additional bit for ECC and a redundant bit respectively, data at a bit position of a fixed failure, and data from the redundant bit. A switching circuit, a microprocessor that transfers the bit position at the time of 1-bit data error detected by the ECC circuit to the 1/2 selection flag register and the 1 / n selection flag register, and a bit position at the time of 1-bit data error A 1 / n switching circuit for designating data, the ECC circuit receives data read from the memory circuit, confirms a position if a certain bit is defective, corrects the data, and fixes the corrected data. The data at the faulty bit position is stored in the redundant bit, and is switched by the 1/2 switching circuit while running to obtain the data. Storage device for causing the force.
JP3172058A 1991-07-12 1991-07-12 Storage device Pending JPH0520213A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3172058A JPH0520213A (en) 1991-07-12 1991-07-12 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3172058A JPH0520213A (en) 1991-07-12 1991-07-12 Storage device

Publications (1)

Publication Number Publication Date
JPH0520213A true JPH0520213A (en) 1993-01-29

Family

ID=15934758

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3172058A Pending JPH0520213A (en) 1991-07-12 1991-07-12 Storage device

Country Status (1)

Country Link
JP (1) JPH0520213A (en)

Similar Documents

Publication Publication Date Title
US5452429A (en) Error correction code on add-on cards for writing portions of data words
JP2021509499A (en) How to operate the memory controller, how to switch from dual channel mode to single channel mode, and the memory controller
KR100261790B1 (en) Error correction circuit and semiconductor memory device
US3898443A (en) Memory fault correction system
JP4050091B2 (en) Semiconductor memory device
JPH06124243A (en) Multiplex memory device
JP2001290710A (en) Device for detecting data error
US11726864B2 (en) Data processing device and data processing method
JPH0520213A (en) Storage device
JP2743756B2 (en) Semiconductor disk device
JPH04115340A (en) Duplex storage circuit
JPS63121933A (en) Error detecting and correcting system
JPS6121695Y2 (en)
JPS6356751A (en) Memory patrol control system
JPS6018898A (en) Semiconductor memory device
JPS61125651A (en) Error report processing system
JPH0275039A (en) Memory circuit
KR100802666B1 (en) Circuit arrangement and method for operating such a circuit arrangement
JPH0667989A (en) Patrol circuit for memory
JPS6327940A (en) Storage controller
JPH0520215A (en) Information processor
JPS6223337B2 (en)
JPS62293439A (en) Error correcting mechanism
JPH1021149A (en) Memory device
JPH04367046A (en) Information processor