JP2000076145A - Fault detecting method for storage device, and storage control unit - Google Patents
Fault detecting method for storage device, and storage control unitInfo
- Publication number
- JP2000076145A JP2000076145A JP10246748A JP24674898A JP2000076145A JP 2000076145 A JP2000076145 A JP 2000076145A JP 10246748 A JP10246748 A JP 10246748A JP 24674898 A JP24674898 A JP 24674898A JP 2000076145 A JP2000076145 A JP 2000076145A
- Authority
- JP
- Japan
- Prior art keywords
- address
- parity code
- read
- storage device
- parity
- 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
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、記憶装置の障害検
出方法及び記憶制御装置に係り、特に、誤り検出符号を
用いた記憶装置のアドレス障害の検出に好適な障害検出
方法及び記憶制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting a failure in a storage device and a storage control device, and more particularly to a failure detection method and a storage control device suitable for detecting an address failure in a storage device using an error detection code. .
【0002】[0002]
【従来の技術】従来、記憶装置のアドレス障害を検出す
る方法としては、誤り訂正符号の誤り位置指摘能力の冗
長部にアドレス情報を割当てて、データと共に符号化/
復号化することにより、書込み時と読出し時のアドレス
の不一致を検出する方法が知られている。例えば、特開
平2−206855号公報には、アドレスから生成され
る情報を割当てたパリティ検査行列を使用する方法が開
示されている。2. Description of the Related Art Conventionally, as a method of detecting an address failure in a storage device, address information is allocated to a redundant portion of an error correction code having an error position indicating capability, and encoding / coding is performed together with data.
There is known a method of detecting an address mismatch between writing and reading by decoding. For example, Japanese Patent Laying-Open No. 2-206855 discloses a method using a parity check matrix to which information generated from an address is assigned.
【0003】[0003]
【発明が解決しようとする課題】前記従来技術では、複
数の冗長ビットにアドレス情報を割当てる方法を用いて
いて、アドレス障害の検出機能に優れているが、複数の
冗長ビットを書込みアドレス単位に記憶させる必要があ
り、その為の記憶素子を備える負担が必要であった。The above prior art uses a method of allocating address information to a plurality of redundant bits, and is excellent in an address failure detecting function. However, a plurality of redundant bits are stored in units of write addresses. It is necessary to provide a storage element for that purpose.
【0004】本発明の目的は、書込みアドレス単位に備
えられたデータのみに対するパリティ検査符号のビット
数を増加させること無く、パリティ検査符号にデータ及
びアドレスの双方に対する検査機能を備えた記憶装置の
障害検出方法及び記憶制御装置を提供することにある。SUMMARY OF THE INVENTION It is an object of the present invention to provide a storage system having a parity check code having a function of checking both data and address without increasing the number of bits of the parity check code for only data provided in a write address unit. It is to provide a detection method and a storage control device.
【0005】[0005]
【課題を解決するための手段】本発明の記憶装置の障害
検出方法は、複数ビットにより構成されるバイト内の単
一ビットの誤りを検出可能なパリティ符号を使用し、該
パリティ符号の生成方法を書込みアドレス、もしくは該
アドレスから生成される情報に基づき、奇数パリティ符
号と偶数パリティ符号の二通りの符号の何れかの符号生
成方法を使用することにより、記憶装置のデータの単一
ビットの誤り、もしくはアドレス指示ビットの単一誤り
を検出することを特徴とする。According to the present invention, there is provided a method for detecting a failure in a storage device, comprising the steps of: using a parity code capable of detecting a single-bit error in a byte composed of a plurality of bits; Based on the write address or the information generated from the address, a single bit error of the data in the storage device can be achieved by using one of two types of codes, an odd parity code and an even parity code. Or detecting a single error in the address designating bit.
【0006】又、本発明の記憶装置は、複数ビットによ
り構成されるバイト内の単一ビットの誤りを検出可能な
パリティ符号を、書込みアドレス、もしくは該アドレス
から生成される情報に基づき、奇数パリティ符号と偶数
パリティ符号の二通りの符号の何れかの符号生成方法を
使用して生成する手段と、前記生成されたパリティ符号
を書込みデータと共に、記憶装置の書込みアドレスで指
定された部位に書込む手段と、記憶装置の読出しアドレ
スで指定された部位からデータとパリティ符号を読出す
手段と、読出しアドレス、もしくは該アドレスから生成
される情報に基づき、奇数パリティ符号と偶数パリティ
符号の二通りの符号の何れかの符号検査方法を選択する
手段と、読出したデータとパリティ符号を前記選択した
パリティ符号検査方法により誤りを検出した場合は、デ
ータの単一ビットの誤り、もしくはアドレス指示ビット
の単一誤り、と認識する手段を有することを特徴とす
る。Further, the storage device of the present invention converts a parity code capable of detecting a single-bit error in a byte composed of a plurality of bits into an odd parity based on a write address or information generated from the address. Means for generating using any one of two kinds of codes, a code and an even parity code, and writing the generated parity code together with write data into a portion specified by a write address of a storage device. Means, means for reading data and a parity code from a portion designated by the read address of the storage device, and two kinds of codes of an odd parity code and an even parity code based on the read address or information generated from the address. Means for selecting any one of the code check methods, and the selected parity code check for the read data and the parity code. If an error is detected by law, characterized by having a single error, and recognizes means of a single-bit error or address indication bits, the data.
【0007】[0007]
【発明の実施の形態】以下、本発明の一実施例を図1に
より説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIG.
【0008】図1は、本発明による記憶制御装置の一実
施例を示し、書込みデータのパリティ生成器20、書込
みアドレスのパリティ生成器30、生成パリティ変換器
40、記憶装置50、読出しアドレスのパリティ生成器
60、読出しパリティ変換器70、読出しパリティ検査
器80よりなる。FIG. 1 shows an embodiment of a storage control device according to the present invention. A parity generator 20 for write data, a parity generator 30 for a write address, a generated parity converter 40, a storage device 50, a parity for a read address are shown. It comprises a generator 60, a read parity converter 70, and a read parity checker 80.
【0009】図1の動作は次の通りである。書込み時、
格納対象データ11と書込みアドレス15が与えられる
と、書込みデータのパリティ生成器20において、格納
対象データ11に対して、書込みデータ奇数パリティビ
ット21が生成され、書込みアドレスのパリティ生成器
30において、書込みアドレス15に対して書込みアド
レス奇数パリティビット31が生成され、生成パリティ
変換器40において、該書込みデータ奇数パリティビッ
ト21が該書込みアドレス奇数パリティビット31によ
り書込みパリティビット41に変換され、該変換された
書込みパリティビット41と書込みデータ11が、記憶
装置50内の書込みアドレス15で指定された部位に書
込まれる。The operation of FIG. 1 is as follows. When writing,
When the storage target data 11 and the write address 15 are given, the write data parity generator 20 generates a write data odd parity bit 21 for the storage target data 11, and the write address parity generator 30 A write address odd parity bit 31 is generated for the address 15, and in the generated parity converter 40, the write data odd parity bit 21 is converted into a write parity bit 41 by the write address odd parity bit 31, and the converted parity bit is converted. The write parity bit 41 and the write data 11 are written to a location specified by the write address 15 in the storage device 50.
【0010】読出し時には、読出しアドレス16が与え
られると、読出しアドレス16で指定された記憶装置5
0の部位より読出しデータ51及び読出しパリティビッ
ト52が読出される。また、読出しアドレスのパリティ
生成器60において、読出しアドレス16に対して読出
しアドレス奇数パリティビット61が生成され、読出し
パリティ変換器70において、該読出しパリティビット
52が該読出しアドレス奇数パリティビット61によ
り、読出しデータ奇数パリティビット71に変換され
る。読出しパリティ検査器80において、該読出しデー
タ51、及び該読出しデータ奇数パリティビット71
が、奇数パリティ検査される。奇数パリティ検査不一致
の場合は、データの単一符号誤り、もしくはアドレス指
示符号の単一誤りと認識する。At the time of reading, when a read address 16 is given, the storage device 5 designated by the read address 16 is read.
The read data 51 and the read parity bit 52 are read from the 0 position. In the read address parity generator 60, a read address odd parity bit 61 is generated for the read address 16, and in the read parity converter 70, the read parity bit 52 is read by the read address odd parity bit 61. The data is converted to odd parity bits 71. In the read parity checker 80, the read data 51 and the read data odd parity bit 71
Are odd parity checked. If the odd parity check does not match, it is recognized as a single code error in the data or a single error in the address designating code.
【0011】本実施例では、書込みデータに対する奇数
パリティ符号を予め生成し、このパリティ符号を書込み
アドレスに対する奇数パリティ符号により排他的論理和
演算を行うことにより、アドレス情報に基づいて、奇数
パリティ符号と偶数パリティ符号の生成を選択し、読出
しデータに対しても同様な方法で復号する場合を示して
いる。予め生成するパリティ符号は、偶数パリティであ
っても、読出し側も同様な方法をとることにより同一の
効果が得られる。In this embodiment, an odd parity code for the write data is generated in advance, and the parity code is subjected to an exclusive OR operation with the odd parity code for the write address. A case is shown in which generation of an even-number parity code is selected, and read data is decoded in a similar manner. Even if the parity code generated in advance is an even parity, the same effect can be obtained by using the same method on the reading side.
【0012】また、書込みアドレス、及び読出しアドレ
スに基づく情報として、各々のアドレスの奇数パリティ
符号を用いる場合を示しているが、書込みアドレスと読
出しアドレスとの間で同一の規則に基づく方法であれ
ば、同様の効果が得られる。更に、記憶装置に書込むパ
リティ符号及び読出しパリティ符号は、本実施例のよう
に変換器を用いること無く書込み及び読出しデータをア
ドレスに基づく情報と共に、一挙に生成及び検査する方
法も可能である。Also, the case where an odd parity code of each address is used as the information based on the write address and the read address is shown. However, if the method is based on the same rule between the write address and the read address, The same effect can be obtained. Further, the parity code and the read parity code to be written into the storage device can be generated and checked at once with the write and read data together with the address-based information without using a converter as in the present embodiment.
【0013】[0013]
【発明の効果】以上の説明から明らかな如く、本発明に
よれば、パリティ符号のビット数を増加させること無く
データ誤りのみならずアドレス誤りも検出できる効果が
有る。As is apparent from the above description, according to the present invention, not only data errors but also address errors can be detected without increasing the number of bits of the parity code.
【図1】本発明の実施例である記憶装置の障害検出部の
ブロック図。FIG. 1 is a block diagram of a failure detection unit of a storage device according to an embodiment of the present invention.
11…格納対象データ、 15…書込みアドレス、 1
6…読出しアドレス、20…書込みデータのパリティ生
成器、21…書込みデータ奇数パリティビット、30…
書込みアドレスのパリティ生成器、31…書込みアドレ
ス奇数パリティビット、 40…生成パリティ変換器、
41…書込みパリティビット、 50…記
憶装置、51…読出しデータ、 52…読出しパ
リティ、60…読出しアドレスのパリティ生成器、61
…読出しアドレス奇数パリティビット、70…読出しパ
リティ変換器、71…読出しデータの奇数パリティビッ
ト、80…読出しパリティ検査器。11: Data to be stored, 15: Write address, 1
6 read address, 20 write data parity generator, 21 write data odd parity bit, 30
Parity of the write address, 31: odd parity bit of the write address, 40: generated parity converter,
41: Write parity bit, 50: Storage device, 51: Read data, 52: Read parity, 60: Parity generator of read address, 61
... Read address odd parity bit, 70 read parity converter, 71 read data odd parity bit, 80 read parity checker.
Claims (3)
一ビットの誤りを検出可能なパリティ符号を使用する記
憶装置の障害検出方法であって、書込みアドレス、もし
くは該アドレスから生成される情報に基づき、前記パリ
ティ符号を、奇数パリティ符号と偶数パリティ符号の二
通りの符号の何れかの符号生成方法を使用することによ
り、記憶装置のデータの単一ビットの誤り、もしくはア
ドレス指示ビットの単一誤りを検出することを特徴とす
る記憶装置の障害検出方法。A method for detecting a failure in a storage device using a parity code capable of detecting a single-bit error in a byte composed of a plurality of bits, the method comprising: detecting a write address or information generated from the address; Based on the parity code, any one of two kinds of codes, an odd parity code and an even parity code, is used to generate a single bit error in the data of the storage device or a single bit in the address indication bit. A failure detection method for a storage device, comprising detecting an error.
おいて、書込み時には、書込みデータに対して前記書込
みアドレス、もしくは該アドレスから生成される情報に
基づき、奇数パリティ符号、もしくは偶数パリティ符号
の何れかのパリティ符号を付加して記憶装置に書込み、
読出し時には、記憶装置から読出されたデータとパリテ
ィ符号を、書込み時と同様の方法で、読出しアドレス、
もしくは該アドレスから生成される情報に基づいて、奇
数パリティ符号、もしくは偶数パリティ符号の何れかの
検査を行い、誤りがあると記憶装置のデータの単一ビッ
トの誤り、もしくはアドレス指示ビットの単一誤りと認
識することを特徴とする記憶装置の障害検出方法。2. The storage device fault detection method according to claim 1, wherein at the time of writing, an odd parity code or an even parity code is applied to the write data based on the write address or information generated from the address. Write any parity code to the storage device,
At the time of reading, the data read from the storage device and the parity code are converted into the read address,
Alternatively, based on information generated from the address, a check is performed for either an odd parity code or an even parity code, and if there is an error, a single bit error in the data in the storage device or a single bit in the address indication bit is detected. A failure detection method for a storage device, characterized in that the failure is recognized as an error.
制御装置において、複数ビットにより構成されるバイト
内の単一ビットの誤りを検出可能なパリティ符号を、書
込みアドレス、もしくは該アドレスから生成される情報
に基づき、奇数パリティ符号と偶数パリティ符号の二通
りの符号の何れかの符号生成方法を使用して生成する手
段と、前記生成されたパリティ符号を書込みデータと共
に記憶装置の書込みアドレスで指定された部位に書込む
手段と、記憶装置の読出しアドレスで指定された部位か
らデータとパリティ符号を読出す手段と、読出しアドレ
ス、もしくは該アドレスから生成される情報に基づき、
奇数パリティ符号と偶数パリティ符号の二通りの符号の
何れかの符号検査方法を選択する手段と、読出したデー
タとパリティ符号を前記選択したパリティ符号検査方法
により誤りを検出した場合は、データの単一ビットの誤
り、もしくはアドレス指示ビットの単一誤りと認識する
手段を有することを特徴とする記憶制御装置。3. A storage control device for controlling writing and reading of a storage device, wherein a parity code capable of detecting a single-bit error in a byte composed of a plurality of bits is generated from a write address or the write address. Means for generating the parity code using one of two kinds of codes, an odd parity code and an even parity code, based on the information, and specifying the generated parity code together with the write data by a write address of a storage device. Means for writing to a specified part, means for reading data and a parity code from a part specified by a read address of the storage device, and a read address or information generated from the address,
A means for selecting one of two kinds of codes, an odd parity code and an even parity code, and a method for detecting the error between the read data and the parity code by the selected parity code checking method. A storage control device comprising means for recognizing a single bit error or a single error of an address indication bit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10246748A JP2000076145A (en) | 1998-09-01 | 1998-09-01 | Fault detecting method for storage device, and storage control unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP10246748A JP2000076145A (en) | 1998-09-01 | 1998-09-01 | Fault detecting method for storage device, and storage control unit |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2000076145A true JP2000076145A (en) | 2000-03-14 |
Family
ID=17153078
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP10246748A Pending JP2000076145A (en) | 1998-09-01 | 1998-09-01 | Fault detecting method for storage device, and storage control unit |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2000076145A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008204085A (en) * | 2007-02-19 | 2008-09-04 | Toshiba Corp | Semiconductor memory |
-
1998
- 1998-09-01 JP JP10246748A patent/JP2000076145A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008204085A (en) * | 2007-02-19 | 2008-09-04 | Toshiba Corp | Semiconductor memory |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP3325914B2 (en) | Error correction detection method for data and error detection circuit for computer memory | |
US6009548A (en) | Error correcting code retrofit method and apparatus for multiple memory configurations | |
US4319357A (en) | Double error correction using single error correcting code | |
JP2772391B2 (en) | Bad data algorithm | |
US5768294A (en) | Memory implemented error detection and correction code capable of detecting errors in fetching data from a wrong address | |
US5751745A (en) | Memory implemented error detection and correction code with address parity bits | |
US20080082869A1 (en) | Memory control unit | |
US5761221A (en) | Memory implemented error detection and correction code using memory modules | |
US5550849A (en) | Method and apparatus for detecting single or multiple bit errors instorage devices | |
JP2606862B2 (en) | Single error detection and correction method | |
US6519735B1 (en) | Method and apparatus for detecting errors in data output from memory and a device failure in the memory | |
EP4231302A1 (en) | Test method and test system | |
JP2000076145A (en) | Fault detecting method for storage device, and storage control unit | |
US8028221B2 (en) | Error correction and error detection method for reading of stored information data and a storage control unit for the same | |
US11249839B1 (en) | Method and apparatus for memory error detection | |
JP3170145B2 (en) | Memory control system | |
KR100715878B1 (en) | Methods and devices for preventing error encoding of data, Methods and devices for data decryption, and storage media | |
JPH02146200A (en) | Eeprom device | |
JPS58501922A (en) | Information systems that use error syndromes for special control | |
JP2930239B2 (en) | Storage device failure detection method and storage control device | |
JPH01292550A (en) | Error detecting circuit | |
JPH04341998A (en) | Memory circuit | |
JP3045532B2 (en) | Memory device | |
JPH06103469B2 (en) | Memory control circuit | |
JPH0756816A (en) | Controller for memory |