JPH10312337A - Testing circuit for storage device - Google Patents
Testing circuit for storage deviceInfo
- Publication number
- JPH10312337A JPH10312337A JP9121324A JP12132497A JPH10312337A JP H10312337 A JPH10312337 A JP H10312337A JP 9121324 A JP9121324 A JP 9121324A JP 12132497 A JP12132497 A JP 12132497A JP H10312337 A JPH10312337 A JP H10312337A
- Authority
- JP
- Japan
- Prior art keywords
- error correction
- bit
- bits
- correction code
- data
- 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
- 238000012360 testing method Methods 0.000 title claims abstract description 67
- 238000012937 correction Methods 0.000 claims abstract description 121
- 238000001514 detection method Methods 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 27
- 238000010998 test method Methods 0.000 description 9
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 238000003745 diagnosis Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- For Increasing The Reliability Of Semiconductor Memories (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、情報処理装置の誤
り訂正機能を備えた記憶装置の試験回路に関し、特に誤
り訂正機能の診断に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test circuit for a storage device having an error correction function of an information processing apparatus, and more particularly to a diagnosis of an error correction function.
【0002】[0002]
【従来の技術】されたい。従来の技術では、誤り訂正機
能を持つRAM(読み書き可能メモリ)のテスト方式と
して、通常のメモリアクセス処理機能を用いて、適当な
テストパタンに対して誤り訂正符号を生成し、これをR
AMに書き込んだのち、読み出して誤り訂正符号の検出
を行う方式が採られる(1.公開番号/特開平08−2
63391号、2.公開番号/特開平01−10943
9号、3.公開番号/特開昭64−001198号を参
照)。この際、RAMのテストを網羅するする手段とし
て、RAMの全てのビットに対して”0”を書いて正し
く読み出せることと、”1”を書いて正しく読み出せる
ことを実施することにより短時間で効率的なRAMテス
トを可能にしている。一方、RAMの誤り訂正機能のテ
スト方式としては、一つに、あらかじめ適当な1ビット
の誤りを持つテストパタンをデータビットの個数分用意
しRAMに書き込んだのち読み出してテストする方式が
あり、また一つに、あらかじめ適当なテストパタンに対
して誤り訂正符号を生成し、これをRAMに書き込んだ
のち、読み出す段階で任意の1ビットを反転して1ビッ
ト誤りを持つデータを擬似的に作りだすとともにあらか
じめ期待すべき誤り訂正結果を作り出しておいて、誤り
訂正テストを実施した結果と比較する方式がある。2. Description of the Related Art In the prior art, as a test method for a RAM (read / write memory) having an error correction function, an error correction code is generated for an appropriate test pattern by using a normal memory access processing function, and the error correction code is generated.
A method is adopted in which the data is written to the AM and then read to detect an error correction code (1.
63391,2. Public number / Japanese Patent Laid-Open No. 01-10943
No. 9, 3. Publication No./JP-A-64-001198). At this time, as a means for covering the test of the RAM, by writing “0” to all the bits of the RAM and reading it correctly and by writing “1” and reading it correctly, it is possible to shorten the time. And enables efficient RAM testing. On the other hand, as a test method of the error correction function of the RAM, there is a method in which test patterns having an appropriate 1-bit error are prepared in advance for the number of data bits, written into the RAM, and then read to test. One is to generate an error correction code for an appropriate test pattern in advance, write it to the RAM, and then invert any one bit at the reading stage to pseudo-create data with a one-bit error. There is a method in which an expected error correction result is created in advance, and the result is compared with the result of performing an error correction test.
【0003】[0003]
【発明が解決しようとする課題】従来技術においては、
誤り訂正機能を持つRAMのテスト方式として、RAM
の全ビットに対して”0”を書いて正しく読み出せるこ
とと、”1”を書いて正しく読み出せることを実施する
ことにより短時間で効率的なRAMテストを可能にする
一方で、誤り訂正機能のテストにおいて、第一には、あ
らかじめ適当な1ビットの誤りを持つテストパタンをデ
ータビットの個数分用意する場合、複数個のテストパタ
ンが必要な上に誤り訂正機能のテストが短時間で実施出
来ないという問題点がある。第二には、あらかじめ適当
なテストパタンに対して誤り訂正符号を生成し、これを
RAMに書き込んだのち、読み出す段階で任意の1ビッ
トを反転して1ビット誤りを持つデータを擬似的に作り
だすとともにあらかじめ期待すべき誤り訂正結果を作り
出しておいて、誤り訂正テストを実施した結果と比較す
る場合には、用意するテストパタンは少なくできるが誤
り訂正機能のテストが網羅的でなくまた専用のハードウ
ェアを用意しなければならないという問題点がある。In the prior art,
As a test method of RAM having an error correction function, RAM
By writing “0” to all the bits of the memory and reading it correctly and writing “1” to read it correctly, the RAM test can be performed efficiently in a short time while error correction is performed. In the function test, first, if test patterns having an appropriate 1-bit error are prepared in advance for the number of data bits, a plurality of test patterns are required and the error correction function test can be performed in a short time. There is a problem that it cannot be implemented. Second, an error correction code is generated for an appropriate test pattern in advance, and after writing this in a RAM, any one bit is inverted at a reading stage to pseudo-create data having a one-bit error. In addition, when the expected error correction result is created in advance and compared with the result of the error correction test, the test pattern to be prepared can be reduced, but the error correction function test is not exhaustive and dedicated hardware There is a problem that wear must be prepared.
【0004】本発明はこのような事情に鑑みてなされた
もので、誤り訂正機能を持つ、短時間で効率的なRAM
テスト方式を利用することによって、少ないハードウェ
アの投資で、高速で網羅的な誤り訂正機能のテストを実
現する。[0004] The present invention has been made in view of such circumstances, and has a short-time and efficient RAM having an error correction function.
By using the test method, a high-speed and comprehensive error correction function test can be realized with a small hardware investment.
【0005】[0005]
【課題を解決するための手段】請求項1記載の発明は、
読み書きが可能な記憶装置と、上記記憶装置にアドレス
を供給するアドレスレジスタと、上記記憶装置に書き込
むデータを保持している書き込みデータレジスタと、上
記書き込みデータレジスタの出力が供給され、該出力が
全ビット”0”の時は誤り訂正符号を全ビット”0”に
し、該出力が全ビット”1”の時は誤り訂正符号を全ビ
ット”1”にする誤り訂正符号生成手段と、上記誤り訂
正符号生成手段の出力である誤り訂正符号が供給され、
制御信号によってオン・オフの制御がされ、反転すべき
ビット位置が外部より指定された書き込みデータおよび
誤り訂正符号のうちの1ビットの値を反転し、これを上
記記憶装置に書き込むビット反転回路と、上記記憶装置
から読みだした読みだしデータおよび誤り訂正符号が供
給され、これらの誤り検出と訂正を行う誤り訂正手段
と、上記誤り訂正手段により訂正された読みだしデータ
が供給され、この値が全ビット”0”または全ビット”
1”であることを確認するデータチェック回路とを具備
した記憶装置の試験回路である。請求項2記載の発明
は、請求項1記載の記憶装置の試験回路において、上記
アドレスレジスタの出力が供給され、これをデコードし
て上記の記憶装置に書き込むデータおよび誤り訂正符号
のそれぞれ任意の1ビットの位置を指定するテストビッ
トデコーダを備え、これによって上記ビット反転回路で
のビット反転位置は決められることを特徴としている。According to the first aspect of the present invention,
A readable / writable storage device, an address register for supplying an address to the storage device, a write data register holding data to be written to the storage device, and an output of the write data register are supplied. An error correction code generation means for setting the error correction code to all bits "0" when the bit is "0", and setting the error correction code to all bits "1" when the output is all bits "1"; An error correction code output from the code generation means is supplied,
A bit inverting circuit for controlling on / off by a control signal, inverting a bit position to be inverted, of one bit of write data and an error correction code specified from the outside, and writing the same to the storage device; The read data and the error correction code read from the storage device are supplied, error correction means for detecting and correcting these errors, and the read data corrected by the error correction means are supplied. All bits "0" or all bits "
A test circuit for a storage device, comprising: a data check circuit for confirming that it is 1 ". The invention according to claim 2 is the test circuit for a storage device according to claim 1, wherein the output of the address register is supplied. And a test bit decoder for designating an arbitrary one-bit position of each of data and an error correction code to be decoded and written in the storage device, whereby the bit inversion position in the bit inversion circuit is determined. It is characterized by.
【0006】請求項3記載の発明は、読み書きが可能な
記憶装置と、上記記憶装置にアドレスを供給するアドレ
スレジスタと、上記記憶装置に書き込むデータを保持し
ている書き込みデータレジスタと、上記書き込みデータ
レジスタの出力が供給され、該出力が全ビット”0”の
時は誤り訂正符号を全ビット”0”にし、該出力が全ビ
ット”1”の時は誤り訂正符号を全ビット”1”にする
誤り訂正符号生成手段と、上記記憶装置の出力が供給さ
れ、制御信号によってオン・オフの制御がされ、反転す
べきビット位置が外部より指定された書き込みデータお
よび誤り訂正符号のうちの1ビットの値を反転し、これ
を上記記憶装置に書き込むビット反転回路と、上記ビッ
ト反転回路の出力および誤り訂正符号が供給され、これ
らの誤り検出と訂正を行う誤り訂正手段と、上記誤り訂
正手段により訂正された読みだしデータが供給され、こ
の値が全ビット”0”または全ビット”1”であること
を確認するデータチェック回路とを具備した記憶装置の
試験回路である。請求項4記載の発明は、請求項3記載
の記憶装置の試験回路において、上記アドレスレジスタ
の出力が供給され、これをデコードして上記の記憶装置
に書き込むデータおよび誤り訂正符号のそれぞれ任意の
1ビットの位置を指定するテストビットデコーダを備
え、これによって上記ビット反転回路でのビット反転位
置がきめられることを特徴としている。According to a third aspect of the present invention, there is provided a readable / writable storage device, an address register for supplying an address to the storage device, a write data register for holding data to be written to the storage device, The output of the register is supplied. When the output is all "0", the error correction code is set to "0". When the output is all "1", the error correction code is set to "1". And an output of the storage device, the ON / OFF of which is controlled by a control signal, and the bit position to be inverted is one bit of the write data and the error correction code designated from outside. A bit inverting circuit for inverting the value of the bit inversion and writing the same in the storage device, an output of the bit inversion circuit and an error correction code are supplied, and these errors are detected and corrected. And a data check circuit to which read data corrected by the error correction means is supplied and which confirms that this value is all bits "0" or all bits "1". This is the test circuit of the device. According to a fourth aspect of the present invention, in the test circuit of the storage device according to the third aspect, an output of the address register is supplied, and any one of data and an error correction code to be decoded and written to the storage device is provided. A test bit decoder for designating a bit position is provided, whereby a bit inversion position in the bit inversion circuit is determined.
【0007】[0007]
【発明の実施の形態】次に、本発明の一実施形態につい
て図面を参照して説明する。図1は第1の実施形態のブ
ロック図であり、符号101は、1ビット誤りの検出・
訂正が可能なRAMである。符号102は、前記RAM
101への書き込み・読み出しアドレスを保持するアド
レスレジスタである。符号103は、前記RAM101
への書き込みデータを保持する書き込みデータレジスタ
である。符号104は、前記書き込みデータレジスタ1
03の値が全て”0”の時には誤り訂正符号を全て”
0”にし、前記書き込みデータレジスタ103の値が全
て”1”の時には誤り訂正符号を全て”1”にすること
が可能な、誤り訂正符号生成手段である。符号105
は、前記アドレスレジスタ102の出力をデコードして
書き込みデータ及び誤り訂正符号のうちの任意の1ビッ
トをデータビットの個数に対してもれなく指定するテス
トビットデコーダである。Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of the first embodiment.
It is a RAM that can be corrected. Reference numeral 102 denotes the RAM
This is an address register that holds a write / read address to / from the address 101. Reference numeral 103 denotes the RAM 101
This is a write data register that holds write data to the memory. Reference numeral 104 denotes the write data register 1
When the values of 03 are all “0”, all error correction codes are “
This is an error correction code generation means that can set all the error correction codes to "1" when the value of the write data register 103 is "1".
Is a test bit decoder that decodes the output of the address register 102 and specifies any one bit of the write data and the error correction code with respect to the number of data bits.
【0008】符号106は、前記テストビットデコーダ
105によって指定された書き込みデータ及び誤り訂正
符号のうちの任意の1ビットを反転するビット反転回路
である。符号107は、前記ビット反転回路106を制
御する反転制御フラグである。符号108は、前記RA
M101から読み出した読み出しデータ及び誤り訂正符
号の1ビット誤りの検出・訂正を行う誤り訂正手段であ
る。符号109は、前記誤り訂正手段108により訂正
した読み出しデータが全ビット”0”または全ビット”
1”であることをチェックするデータチェック回路であ
る。ここで、上記反転制御フラグ107は、その値が”
0”の時にビット反転回路106を無効にし、値が”
1”の時にビット反転回路106を有効にしてテストビ
ットデコーダ105で指定された任意の1ビットを反転
させるものとし、テストビットデコーダ105はアドレ
スレジスタ102の値によりRAM101に書き込むデ
ータの全ビットの指定を網羅するものとする。Reference numeral 106 denotes a bit inversion circuit that inverts any one bit of the write data and the error correction code specified by the test bit decoder 105. Reference numeral 107 denotes an inversion control flag for controlling the bit inversion circuit 106. Reference numeral 108 denotes the RA
Error correction means for detecting and correcting a 1-bit error in the read data and error correction code read from M101. The code 109 indicates that the read data corrected by the error correction means 108 is all bits "0" or all bits "0".
This is a data check circuit for checking that the inversion control flag 107 is "1".
When the value is “0”, the bit inversion circuit 106 is invalidated, and the value becomes “
When "1", the bit inversion circuit 106 is enabled to invert any one bit specified by the test bit decoder 105. The test bit decoder 105 specifies all bits of data to be written to the RAM 101 by the value of the address register 102. Shall be covered.
【0009】次に、本発明の動作を、本構成において、
データレジスタ103に与えるデータビット数が18ビ
ット、誤り訂正訂正符号生成手段14で生成する誤り訂
正符号のビット数が6ビットの合計24ビットのデータ
ビット数に対する誤り訂正機能のテストに全ビット”
0”のデータを利用する場合を例に説明する。図3は、
誤り訂正符号生成手段104で使用する誤り訂正符号表
を示している。図3の誤り訂正符号表によると、誤り訂
正符号C0は、C0の割り当てられた行において”1”
となるデータD00一D08の排他的論理和で生成さ
れ、この時データD00一D17が全て”0”ならばC
0の値は”0”となる。同様にC1一C5についても値
は0となるので、RAM101に書き込む全24ビット
を全て”0”にすることが出来る。従来の技術における
RAM101のテストでは、反転制御フラグ107を”
0”としておきアドレスレジスタ102をRAM101
の先頭アドレスから最後のアドレスまでインクリメント
することにより前述のようにして生成した全24ビット
の全て0のデータをRAM101の全アドレスに対して
書き込み、正しく全て”0”のデータを読み出すことで
テストを実施する。この時、誤り訂正手段108は読み
出したデータが正しいため訂正動作を行わない。Next, the operation of the present invention will be
A test of the error correction function for a data bit number of 24 bits in which the number of data bits given to the data register 103 is 18 bits and the number of error correction codes generated by the error correction code generation means 14 is 6 bits is performed.
An example in which data of "0" is used will be described.
3 shows an error correction code table used by the error correction code generation means 104. According to the error correction code table of FIG. 3, the error correction code C0 is "1" in the row to which C0 is assigned.
Is generated by the exclusive OR of the data D00 and D08, and if all the data D00 and D17 are "0", C
The value of 0 is "0". Similarly, the value of C1 to C5 is also 0, so that all 24 bits written to the RAM 101 can be set to "0". In the test of the RAM 101 in the related art, the inversion control flag 107 is set to “
0 "and the address register 102 is stored in the RAM 101
The test is performed by writing all 24-bit data of all 0s generated as described above to all the addresses of the RAM 101 by incrementing from the first address to the last address of the RAM 101 and reading all the data of "0" correctly. carry out. At this time, the error correction unit 108 does not perform a correction operation because the read data is correct.
【0010】一方、誤り訂正手段108のテストを行う
ために反転制御フラグ107を1としてビット反転回路
106を有効にすると、前述のようにして生成した全
て”0”のデータのうち、テストビットデコーダ105
で指定された任意の1ビットがビット反転回路106に
よって値を1に反転し、1ビットのみ誤りを持つ全て”
0”のデータが生成される。このようにして生成された
1ビット誤りを持つ全て”0”のデータは、アドレスレ
ジスタ102の値により1ビット誤りのビット位置を全
ビットに対して網羅するため、アドレスレジスタ102
を先頭アドレスから最後のアドレスまでインクリメント
することにより、RAM101のデータ18ビットの全
ビット位置に対して1ビットのみ誤りを持つ全ビット”
0”データを書き込むことが出来る。その後、アドレス
レジスタ102を先頭アドレスから最後のアドレスまで
インクリメントしてRAM101から1ビットのみ誤り
を持つ全ビット”0”のデータを読み出すが、この時誤
り訂正手段108は、図3の誤り訂正符号表に従い1ビ
ット誤りの検出・訂正を行う。On the other hand, when the inversion control flag 107 is set to 1 to enable the bit inversion circuit 106 to test the error correction means 108, the test bit decoder out of all "0" data generated as described above is used. 105
Any one bit designated by (1) is inverted to 1 by the bit inverting circuit 106, and only one bit has an error.
Data of "0" is generated. The data of all "0" having a 1-bit error generated in this manner covers the bit position of the 1-bit error for all bits according to the value of the address register 102. , Address register 102
Is incremented from the first address to the last address, so that all bits having only one bit error with respect to all the 18-bit data positions of the RAM 101 "
Then, the address register 102 is incremented from the first address to the last address, and the data of all bits "0" having only one bit error is read from the RAM 101. At this time, the error correction means 108 Performs 1-bit error detection and correction according to the error correction code table of FIG.
【0011】誤り訂正手段108による1ビット誤りの
検出・訂正は、誤り訂正情報S0一S5を得ることで行
い、S0一S5のビットパタンによってIビット誤りの
ビット位置を検出し訂正する。例えばD00が1ビット
誤りである場合のS0の値は、図3の誤り訂正符号表で
S0に割り当てられた行において”1”となるD00一
D08及び誤り訂正符号C0の排他的論理和で生成さ
れ、D00が1ビット誤りである場合のS0の値は”
1”となる。同様にしてS1一S5までを生成して、S
0一S5の値110100を得るが、このビットパタン
はD00の列に該当するためにD00が1ビット誤りで
あることを検出し、D00の値を反転することで正しい
値”0”に訂正する。誤り訂正手段108により正しく
訂正された全ビット”0”データは、データチェック回
路109により全ビット”0”チェックを行い、誤り訂
正機能が正常に動作することを確認するが、誤り訂正手
段108が正しく誤り訂正を行わなければ、データチェ
ック回路109は、全ビット”0”チェックで誤り訂正
機能が正常に動作しなかったことを検出する。The detection and correction of a 1-bit error by the error correction means 108 is performed by obtaining error correction information S0-S5, and the bit position of an I-bit error is detected and corrected by the bit pattern of S0-S5. For example, when D00 is a one-bit error, the value of S0 is generated by the exclusive OR of D00-D08 and the error correction code C0, which become "1" in the row assigned to S0 in the error correction code table of FIG. When D00 is a one-bit error, the value of S0 is "
1 ". Similarly, S1 to S5 are generated, and
Although the value 110100 of 0-S5 is obtained, since this bit pattern corresponds to the column of D00, it is detected that D00 is a 1-bit error, and the value of D00 is corrected to the correct value "0" by inverting the value of D00. . The data check circuit 109 checks all the bits “0” of all the bits “0” data correctly corrected by the error correction means 108 to confirm that the error correction function operates normally. If error correction is not performed correctly, the data check circuit 109 detects that the error correction function did not operate normally by checking all bits “0”.
【0012】続いて、本発明の第2の実施形態のブロッ
ク図である図2を用いて次の説明を行う。この図2の構
成において、図1と同じ符号を付されたものは、図1に
おけるものと同様であるので重複する説明は割愛する。
この図2を用いて、第2の実施形態の動作を、本構成に
おいて、データレジスタ103に与えるデータビット数
が18ビット、誤り訂正符号生成手段104で生成する
誤り訂正符号のビット数が6ビットの合計24ビットの
データビット数に対する誤り訂正機能のテストに全て”
1”のデータを利用する場合を例に説明する。図3は、
前記訂正符号生成手段104で使用する誤り訂正符号表
を示している。図3の誤り訂正符号表によると、誤り訂
正符号C0は、C0の割り当てられた行において”1”
となるデータD00〜D08の排他的論理和で生成さ
れ、この時データD00一D17が全て”1”ならばC
0の値は”1”となる。同様にC1一C5についても値
は”1”となるので、RAM101に書き込む全24ビ
ットを全て”1”にすることが出来る。従来の技術にお
けるRAM101のテストでは、アドレスレジスタ10
2をRAM101の先頭アドレスから最後のアドレスま
でインクリメントすることにより前述のようにして生成
した全24ビットの全ビット”1”のデータをRAM1
01の全アドレスに対して書き込み、反転制御フラグ1
07を”0”にしておいてRAM101から正しく全ビ
ット”1”のデータを読み出すことでテストを実施す
る。この時、誤り訂正手段108は読み出したデータが
正しいため訂正動作を行わない。Next, the following description will be given with reference to FIG. 2 which is a block diagram of a second embodiment of the present invention. In the configuration of FIG. 2, components denoted by the same reference numerals as those in FIG. 1 are the same as those in FIG.
Referring to FIG. 2, the operation of the second embodiment will be described in the case where the number of data bits given to data register 103 is 18 bits and the number of bits of the error correction code generated by error correction code generation means 104 is 6 bits in this configuration. Test for error correction function for a total of 24 data bits
An example in which the data of "1" is used will be described.
4 shows an error correction code table used by the correction code generation means 104. According to the error correction code table of FIG. 3, the error correction code C0 is "1" in the row to which C0 is assigned.
Is generated by an exclusive OR of the data D00 to D08. If all the data D00 to D17 are "1", C is generated.
The value of 0 is "1". Similarly, since the value of C1 to C5 is also "1", all 24 bits written to the RAM 101 can be all set to "1". In the test of the RAM 101 in the conventional technology, the address register 10
2 is incremented from the first address to the last address of the RAM 101, and the data of all bits “1” of all 24 bits generated as described above are stored in the RAM 1
01 for all addresses, and inversion control flag 1
07 is set to “0”, and a test is performed by correctly reading data of all bits “1” from the RAM 101. At this time, the error correction unit 108 does not perform a correction operation because the read data is correct.
【0013】一方、誤り訂正手段108のテストを行う
ために、アドレスレジスタ102を先頭アドレスから最
後のアドレスまでインクリメントすることにより、全ビ
ット”1”のデータをRAM101の全アドレスに対し
て書き込む。その後、反転制御フラグ107を”1”と
してビット反転回路106を有効にしておき、アドレス
レジスタ102を先頭アドレスから最後のアドレスまで
インクリメントしてRAM101から全ビット”1”デ
ータを読み出すと、全ビット”1”のデータのうち、テ
ストビットデコーダ105で指定された任意の1ビット
がビット反転回路106によって値を”0”に反転し、
1ビットのみ誤りを持つ全ビット”1”のデータとして
読み出される。テストビットデコーダ105はアドレス
レジスタ102の値により1ビット誤りのビット位置を
全ビットに対して網羅する。このようにして1ビット誤
りを持つ全ビット”1”のデータをRAM101からビ
ット反転回路106を経由して読み出すが、この時誤り
訂正手段108は図3の誤り訂正符号表に従い1ビット
誤りの検出・訂正を行う。誤り訂正手段108による1
ビット誤りの検出・訂正は、上記の第1の実施形態の箇
所において記述したものと全く同じであるのでその説明
は割愛する。On the other hand, in order to test the error correction means 108, the data of all bits “1” is written to all the addresses of the RAM 101 by incrementing the address register 102 from the first address to the last address. After that, the inversion control flag 107 is set to “1” to enable the bit inversion circuit 106, the address register 102 is incremented from the start address to the last address, and when all the data “1” is read from the RAM 101, Of the data of "1", any one bit designated by the test bit decoder 105 inverts the value to "0" by the bit inversion circuit 106,
The data is read out as data of all bits “1” having only one bit error. The test bit decoder 105 covers the bit position of the 1-bit error for all bits according to the value of the address register 102. In this manner, data of all bits "1" having a one-bit error is read from the RAM 101 via the bit inversion circuit 106. At this time, the error correction means 108 detects the one-bit error according to the error correction code table shown in FIG.・ Make corrections. 1 by the error correction means 108
The detection and correction of the bit error is exactly the same as that described in the first embodiment, and the description is omitted.
【0014】以上、述べたように、誤り訂正機能を持つ
RAMのテスト方式として、RAMの全ビットに対し
て”0”を書いて正しく読み出せることと、”1”を書
いて正しく読み出せることを実施することにより短時間
で効率的なRAMテストを可能にする一方で、誤り訂正
機能のテストにおいて、請求項1に基づいた実施形態で
は、RAMの全ビットに対して値”0”、またはRAM
の全ビットに対して値”1”を書く際、全ビット位置を
網羅可能なビット位置情報をRAMのアドレスから得る
ことにより任意の1ビットを反転してからRAMに書き
込み、読み出す時に反転したビットが誤り訂正機能で正
しく訂正されることをテストする。このため、誤り訂正
機能を持つRAMの短時間で網羅的なRAMテスト方式
を利用することによって、少ないハードウェアの投資
で、効率的かつ網羅的な誤り訂正機能のテストを実現す
る。同様に、第2の実施形態では、RAMの全ビットに
対して”0”、またはRAMの全ビットに対して”1”
をRAMに書き込み、読み出す際に全ビット位置を網羅
可能なビット位置情報をRAMのアドレスから得ること
により任意の1ビットを反転して読み出し、反転したビ
ットが誤り訂正機能で正しく訂正されることをテストす
る。このため、誤り訂正機能を持つRAMの短時間で網
羅的なRAMテスト方式を利用することによって、少な
いハードウェアの投資で、効率的かつ網羅的な誤り訂正
機能のテストを実現する。As described above, as a test method of a RAM having an error correction function, "0" can be written and read correctly for all bits of the RAM, and "1" can be correctly read and written for all bits of the RAM. In the test of the error correction function, in the embodiment based on claim 1, the value “0” or “0” is set for all the bits of the RAM. RAM
When writing the value "1" for all bits of the bit, the bit position information that can cover all the bit positions is obtained from the address of the RAM, so that any one bit is inverted and then written to the RAM and the bit is inverted when read. Is correctly corrected by the error correction function. For this reason, by using a short and exhaustive RAM test method of a RAM having an error correction function, an efficient and exhaustive error correction function test can be realized with a small investment of hardware. Similarly, in the second embodiment, “0” is set for all bits of the RAM, or “1” is set for all bits of the RAM.
When writing to and reading from the RAM, the bit position information that can cover all the bit positions is obtained from the address of the RAM, so that any one bit is inverted and read, and that the inverted bit is correctly corrected by the error correction function. Testing. For this reason, by using a short and exhaustive RAM test method of a RAM having an error correction function, an efficient and exhaustive error correction function test can be realized with a small investment of hardware.
【0015】これらにより、上で提示した、第一の問題
点である、あらかじめ適当な1ビットの誤りを持つテス
トバタンをデータビットの個数分用意する場合、複数個
のテストパタンが必要な上に誤り訂正機能のテストが短
時間で実施出来ないという問題点を解決し、第二の問題
点である、あらかじめ適当なテストパタンに対して誤り
訂正符号を生成し、これをRAMに書き込んだのち、読
み出す段階で任意の1ビットを反転して1ビット誤りを
持つデータを擬似的に作りだすとともにあらかじめ期待
すべき誤り訂正結果を作り出しておいて、誤り訂正テス
トを実施した結果と比較する場合には、用意するテスト
パタンは少なくできるが誤り訂正機能のテストが網羅的
でなくまた専用のハードウエアを投資しなければならな
いという問題点を解決することができる。Thus, when preparing test patterns having an appropriate one-bit error in advance by the number of data bits, which is the first problem presented above, a plurality of test patterns are required. After solving the problem that the test of the error correction function cannot be performed in a short time, the second problem, which is to generate an error correction code for an appropriate test pattern in advance and write it to the RAM, When inverting an arbitrary one bit at the reading stage to pseudo-create data having a one-bit error and generating an expected error correction result in advance and comparing the result with the result of the error correction test, Although the test patterns to be prepared can be reduced, the problem that the test of the error correction function is not exhaustive and that dedicated hardware must be invested. It is possible to attain.
【0016】なお、上記の実施形態の説明で、ビット反
転回路106におけるビット反転位置をテストビットデ
コーダ105によって決めているが、これは必ずしもテ
ストビットデコーダによらずに、他の手段や回路によっ
て決めても構わない。In the above description of the embodiment, the bit inversion position in the bit inversion circuit 106 is determined by the test bit decoder 105, but this is not necessarily determined by the test bit decoder but by other means or circuits. It does not matter.
【0017】[0017]
【発明の効果】以上説明したように、誤り訂正機能を持
つRAMのテスト方式として、RAMの全ビットに対し
て”0”を書いて正しく読み出し、”1”を書いて正し
く読み出すという短時間で網羅的なRAMテスト方式を
利用することによって、少ないハードウエアの投資で、
効率的かつ網羅的な誤り訂正機能のテストを実現出来る
という効果を得ることができる。As described above, as a test method for a RAM having an error correction function, "0" is written and read correctly for all bits of the RAM, and "1" is written and read correctly in a short time. By using an exhaustive RAM test method, with a small hardware investment,
An effect that an efficient and comprehensive test of the error correction function can be realized can be obtained.
【図1】 本発明の第1の実施形態による記憶装置の試
験回路のブロック図である。FIG. 1 is a block diagram of a test circuit of a storage device according to a first embodiment of the present invention.
【図2】 本発明の第2の実施形態による記憶装置の試
験回路のブロック図である。FIG. 2 is a block diagram of a test circuit of a storage device according to a second embodiment of the present invention.
【図3】 誤り訂正符号の生成と誤り訂正するビット位
置を検出するための誤り訂正符号表である。FIG. 3 is an error correction code table for generating an error correction code and detecting a bit position to be corrected.
101…RAM、 102…アドレスレジスタ、 103…書き込みデータレジスタ、 104…誤り訂正符号生成手段、 105…テストビットデコーダ、 106…ビット反転回路、 107…反転制御フラグ、 108…誤り検出・訂正手段、 109…データチェック回路 101: RAM, 102: Address register, 103: Write data register, 104: Error correction code generation means, 105: Test bit decoder, 106: Bit inversion circuit, 107: Inversion control flag, 108: Error detection / correction means, 109 … Data check circuit
Claims (4)
と、 上記記憶装置に書き込むデータを保持している書き込み
データレジスタと、 上記書き込みデータレジスタの出力が供給され、該出力
が全ビット”0”の時は誤り訂正符号を全ビット”0”
にし、該出力が全ビット”1”の時は誤り訂正符号を全
ビット”1”にする誤り訂正符号生成手段と、 上記誤り訂正符号生成手段の出力である誤り訂正符号が
供給され、制御信号によってオン・オフの制御がされ、
反転すべきビット位置が外部より指定された書き込みデ
ータおよび誤り訂正符号のうちの1ビットの値を反転
し、これを上記記憶装置に書き込むビット反転回路と、 上記記憶装置から読みだした読みだしデータおよび誤り
訂正符号が供給され、これらの誤り検出と訂正を行う誤
り訂正手段と、 上記誤り訂正手段により訂正された読みだしデータが供
給され、この値が全ビット”0”または全ビット”1”
であることを確認するデータチェック回路とを具備した
記憶装置の試験回路。1. A read / write storage device, an address register for supplying an address to the storage device, a write data register holding data to be written to the storage device, and an output of the write data register When the output is all bits "0", the error correction code is changed to all bits "0".
An error correction code generating means for setting the error correction code to all bits "1" when the output is all bits "1"; and an error correction code output from the error correction code generating means. ON / OFF control by
A bit inverting circuit for inverting the value of one bit of write data and an error correction code whose bit position to be inverted is specified from the outside, and writing the inverted value to the storage device; read data read from the storage device; And error correction code, and error correction means for detecting and correcting these errors, and read data corrected by the error correction means are supplied, and this value is set to all bits "0" or all bits "1".
A test circuit for a storage device, comprising: a data check circuit for confirming that
れ、これをデコードして上記の記憶装置に書き込むデー
タおよび誤り訂正符号のそれぞれ任意の1ビットの位置
を指定するテストビットデコーダを備え、これによって
上記ビット反転回路でのビット反転位置は決められるこ
とを特徴とする請求項1記載の記憶装置の試験回路。And a test bit decoder which receives an output of the address register, decodes the output, and specifies an arbitrary one-bit position of each of data to be written to the storage device and an error correction code. 2. The test circuit according to claim 1, wherein the bit inversion position in the bit inversion circuit is determined.
と、 上記記憶装置に書き込むデータを保持している書き込み
データレジスタと、 上記書き込みデータレジスタの出力が供給され、該出力
が全ビット”0”の時は誤り訂正符号を全ビット”0”
にし、該出力が全ビット”1”の時は誤り訂正符号を全
ビット”1”にする誤り訂正符号生成手段と、 上記記憶装置の出力が供給され、制御信号によってオン
・オフの制御がされ、反転すべきビット位置が外部より
指定された書き込みデータおよび誤り訂正符号のうちの
1ビットの値を反転し、これを上記記憶装置に書き込む
ビット反転回路と、 上記ビット反転回路の出力および誤り訂正符号が供給さ
れ、これらの誤り検出と訂正を行う誤り訂正手段と、 上記誤り訂正手段により訂正された読みだしデータが供
給され、この値が全ビット”0”または全ビット”1”
であることを確認するデータチェック回路とを具備した
記憶装置の試験回路。3. A readable and writable storage device, an address register for supplying an address to the storage device, a write data register holding data to be written to the storage device, and an output of the write data register. When the output is all bits "0", the error correction code is changed to all bits "0".
When the output is all bits "1", an error correction code generating means for setting the error correction code to all bits "1", and the output of the storage device are supplied, and on / off control is performed by a control signal. A bit inversion circuit for inverting the value of one bit of the write data and the error correction code whose bit position to be inverted is specified from outside, and writing the inverted value to the storage device; A code is supplied, error correction means for detecting and correcting these errors, and read data corrected by the error correction means are supplied, and this value is all bits "0" or all bits "1".
A test circuit for a storage device, comprising: a data check circuit for confirming that
れ、これをデコードして上記の記憶装置に書き込むデー
タおよび誤り訂正符号のそれぞれ任意の1ビットの位置
を指定するテストビットデコーダを備え、これによって
上記ビット反転回路でのビット反転位置がきめられるこ
とを特徴とする請求項3記載の記憶装置の試験回路。4. An apparatus according to claim 1, further comprising a test bit decoder which receives an output of said address register, decodes the data, and specifies an arbitrary one-bit position of each of data to be written to said storage device and an error correction code. 4. The test circuit according to claim 3, wherein a bit inversion position in the bit inversion circuit is determined.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9121324A JPH10312337A (en) | 1997-05-12 | 1997-05-12 | Testing circuit for storage device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9121324A JPH10312337A (en) | 1997-05-12 | 1997-05-12 | Testing circuit for storage device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH10312337A true JPH10312337A (en) | 1998-11-24 |
Family
ID=14808442
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9121324A Pending JPH10312337A (en) | 1997-05-12 | 1997-05-12 | Testing circuit for storage device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH10312337A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014531681A (en) * | 2011-09-29 | 2014-11-27 | インテル・コーポレーション | Method and apparatus for injecting errors into memory |
| JPWO2015111176A1 (en) * | 2014-01-24 | 2017-03-23 | 株式会社日立製作所 | Programmable device, error holding system, and electronic system apparatus |
| CN117558331A (en) * | 2024-01-12 | 2024-02-13 | 杭州广立微电子股份有限公司 | Method and device for detecting address stability of high-density test chip |
-
1997
- 1997-05-12 JP JP9121324A patent/JPH10312337A/en active Pending
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014531681A (en) * | 2011-09-29 | 2014-11-27 | インテル・コーポレーション | Method and apparatus for injecting errors into memory |
| JPWO2015111176A1 (en) * | 2014-01-24 | 2017-03-23 | 株式会社日立製作所 | Programmable device, error holding system, and electronic system apparatus |
| US10095570B2 (en) | 2014-01-24 | 2018-10-09 | Hitachi, Ltd. | Programmable device, error storage system, and electronic system device |
| CN117558331A (en) * | 2024-01-12 | 2024-02-13 | 杭州广立微电子股份有限公司 | Method and device for detecting address stability of high-density test chip |
| CN117558331B (en) * | 2024-01-12 | 2024-04-26 | 杭州广立微电子股份有限公司 | Method and device for detecting address stability of high-density test chip |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2821278B2 (en) | Semiconductor integrated circuit | |
| US20010052090A1 (en) | Storage device having an error correction function | |
| JPH01201736A (en) | Microcomputer | |
| US7398439B2 (en) | Semiconductor device with memory and method for memory test | |
| GB2201016A (en) | Memories and the testing thereof | |
| JP2004246754A (en) | Semiconductor memory and its controller | |
| JPH10312337A (en) | Testing circuit for storage device | |
| JPH0212445A (en) | Storage device | |
| JPH08263391A (en) | Information processor | |
| JPH04141900A (en) | Semiconductor integrated circuit | |
| KR19990063083A (en) | Programmable ROM with Error Recovery Circuit | |
| JP4742553B2 (en) | Storage device | |
| JPH03142800A (en) | Electrically erasable and writable programmable read only memory | |
| JP2910692B2 (en) | Testing method of random access memory | |
| JP3095088B2 (en) | Semiconductor memory test equipment | |
| JPH04341998A (en) | Memory circuit | |
| JPH01260699A (en) | Storing circuit | |
| KR100280474B1 (en) | Light device and method of memory semiconductor | |
| JPH0287397A (en) | semiconductor integrated circuit | |
| JPH03186954A (en) | Address error detection system | |
| JPS6167162A (en) | Memory-checking circuit | |
| JPH11167497A (en) | Device and method for detecting memory rewrite operation error | |
| JPH0256656A (en) | Memory system | |
| JPH0520215A (en) | Information processor | |
| JPH0553924A (en) | System for testing storage device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20010220 |