JPH0746517B2 - Semiconductor memory and its testing method - Google Patents

Semiconductor memory and its testing method

Info

Publication number
JPH0746517B2
JPH0746517B2 JP60139792A JP13979285A JPH0746517B2 JP H0746517 B2 JPH0746517 B2 JP H0746517B2 JP 60139792 A JP60139792 A JP 60139792A JP 13979285 A JP13979285 A JP 13979285A JP H0746517 B2 JPH0746517 B2 JP H0746517B2
Authority
JP
Japan
Prior art keywords
check bit
memory cell
data
error correction
bit
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.)
Expired - Lifetime
Application number
JP60139792A
Other languages
Japanese (ja)
Other versions
JPS621198A (en
Inventor
真志 堀口
正和 青木
儀延 中込
伸一 池永
勝博 下東
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP60139792A priority Critical patent/JPH0746517B2/en
Priority to US06/853,230 priority patent/US4726021A/en
Publication of JPS621198A publication Critical patent/JPS621198A/en
Publication of JPH0746517B2 publication Critical patent/JPH0746517B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)
  • Detection And Correction Of Errors (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は半導体メモリ及びそのテスト方法に関し、特に
誤り訂正符号(以下、ECC(Error Correcting Code)と
呼ぶ)による誤り訂正機能を搭載する半導体メモリの各
種チェックを容易にするのに好適な半導体メモリ及びそ
のテスト方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a semiconductor memory and a method of testing the same, and more particularly to a semiconductor memory equipped with an error correction function based on an error correcting code (hereinafter referred to as ECC (Error Correcting Code)). The present invention relates to a semiconductor memory suitable for facilitating various checks and a test method thereof.

〔発明の背景〕[Background of the Invention]

各種データを記憶する半導体メモリは、近年、益々高集
積化される傾向にあるが、それに伴ってメモリセルの蓄
積電荷量が減少してしまうために、ソフトエラーの発生
頻度が高くなっている。
In recent years, semiconductor memories that store various types of data have tended to be more highly integrated, but the amount of accumulated charges in the memory cells decreases accordingly, so that the frequency of soft errors increases.

その対策としては、山田,他著「メモリLSIにおける
自己訂正方式」電子通信学会論文誌,1984年10月,vol.J6
7−C,No.10,pp777〜784、Yamada.J.,et.al.「A Submi
cnon VLSI Memory with a 4b−at−a−Time Built in
ECC Circuit」ISSCC Digest of Technical Papers,pp1
04〜105,Feb.1984に記載されているように、ECCによる
誤り訂正機能をメモリチップ上に設ける方法がある。
As a countermeasure, Yamada et al., "Self-correction method in memory LSI", IEICE Transactions, October 1984, vol.J6
7-C, No.10, pp777-784, Yamada.J., Et.al.``A Submi
cnon VLSI Memory with a 4b−at−a−Time Built in
ECC Circuit '' ISSCC Digest of Technical Papers, pp1
As described in 04-105, Feb.1984, there is a method of providing an error correction function by ECC on a memory chip.

しかし、上記の方法を実施してメモリ製造後のチェック
など(テスティング)を行う場合は、誤り訂正機能を搭
載した半導体メモリであることを明示し、誤り訂正機能
も含めて各種のテストを行うが、例えば、ECCとして単
一誤り訂正符号を用いた場合、偶然、1個のメモリセル
にハードエラーがあると、読出したデータがECCによっ
て訂正されるために、そのハードエラーを発見すること
ができず、見かけ上エラーがないことになる。
However, when performing the above-mentioned method to check after memory manufacturing (testing), it is specified that the semiconductor memory has an error correction function, and various tests including the error correction function are performed. However, for example, when a single error correction code is used as the ECC, if one memory cell happens to have a hard error, the read data is corrected by the ECC, so that the hard error can be found. You can't do that, and there will be no apparent errors.

また、このハードエラー状態において、エラーのメモリ
セルと同じ誤り訂正の単位ブロックに属する他のメモリ
セルに、偶然、ソフトエラーが生じてしまうと、合計2
ビットが発生したことになるので、ECCによる誤り訂正
が不可能になる。
Further, in this hard error state, if a soft error happens to occur in another memory cell belonging to the same error correction unit block as the error memory cell, a total of 2
Since bits have been generated, error correction by ECC becomes impossible.

したがって、誤り訂正機能付半導体メモリに対する各種
テストを完全に実施するためには、メモリセル自体と、
符号化回路,復号回路などからなる誤り訂正機能とを、
各々独立にテストする必要があるが、未だ実用化できる
ものとして発表されていない。
Therefore, in order to completely perform various tests on the semiconductor memory with an error correction function, the memory cell itself and the
An error correction function consisting of an encoding circuit and a decoding circuit,
Each must be tested independently, but has not yet been announced as a viable solution.

〔発明の目的〕[Object of the Invention]

本発明の目的は、このような従来の問題を解決し、ECC
による誤り訂正機能を搭載した半導体メモリにおいて、
検査ビツト用のメモリセル自体のテスト,符号化回路の
テスト,復号回路のテストなどを各々独立に実施するこ
とのできる半導体メモリ及びそのテスト方法を提供する
ことにある。
The purpose of the present invention is to solve such conventional problems and
In the semiconductor memory equipped with the error correction function by
It is an object of the present invention to provide a semiconductor memory and a test method therefor capable of independently performing a test of a memory cell for a check bit, a test of an encoding circuit, a test of a decoding circuit and the like.

〔発明の概要〕[Outline of Invention]

上記目的を達成するため、本発明の半導体メモリは、
情報ビットに誤り訂正符号に基づく検査ビットを付加す
る符号化手段と、複数のワード線と、複数のデータ線
と、上記複数のワード線と上記複数のデータ線との交点
の所定の位置に設けられ、上記検査ビットを記憶する検
査ビット用メモリセルと、上記複数のワード線と上記複
数のデータ線との交点の所定の位置に設けられ、上記検
査ビットを記憶する検査ビット用メモリセルと、上記複
数のデータ線を順次選択するデータ線選択手段と、上記
情報ビット用メモリセルおよび上記検査ビット用メモリ
セルから読み出された読み出しデータを訂正する復号手
段と、上記復号手段の誤り訂正動作を停止させる誤り訂
正動作手段とを有する半導体メモリにおいて、 上記データ線選択手段にタイミング信号を供給するた
め、上記誤り訂正動作停止手段からの制御信号が第1の
状態の時には上記検査ビットに対応する分のタイミング
信号を自発的に発生し、上記制御信号が上記第1の状態
と異なる第2と状態の時には上記検査ビットに対応する
分のタイミング信号を外部クロックに同期して発生する
タイミング発生手段を具備したことを特徴としている。
In order to achieve the above object, the semiconductor memory of the present invention is
Encoding means for adding a check bit based on an error correction code to information bits, a plurality of word lines, a plurality of data lines, and provided at a predetermined position of an intersection of the plurality of word lines and the plurality of data lines. A check bit memory cell for storing the check bit, a check bit memory cell for storing the check bit, which is provided at a predetermined position of an intersection of the plurality of word lines and the plurality of data lines, Data line selecting means for sequentially selecting the plurality of data lines, decoding means for correcting read data read from the information bit memory cell and the check bit memory cell, and an error correcting operation of the decoding means In a semiconductor memory having an error correcting operation means for stopping, the error correcting operation stopping means for supplying a timing signal to the data line selecting means. When the control signal from 1 is in the first state, a timing signal corresponding to the check bit is voluntarily generated, and when the control signal is in the second state different from the first state, it corresponds to the check bit. It is characterized by comprising a timing generating means for generating a timing signal corresponding to the amount of time in synchronization with an external clock.

また、本発明の半導体メモリのテスト方法は、上記復
号手段の誤り訂正動作を停止させ、上記制御信号を上記
第2の状態にして、上記検査ビット用メモリセルに上記
半導体メモリの外部からのデータを書き込み、しかる後
に上記検査ビット用メモリセルに蓄えられたデータを読
み出すことにより、上記検査ビット用メモリセルのテス
トをする工程を有することを特徴している。また、上
記制御信号を上記第1の状態にして上記符号手段に情報
ビットを入力し、しかる後に上記復号手段の誤り訂正動
作を停止させ、上記制御信号を上記第2の状態にして、
上記検査ビット用メモリセルに蓄えられたデータを読み
出すことにより、上記符号化手段のテストをする工程を
有することも特徴としている。また、上記制御信号を
上記第2の状態にして上記情報ビット用メモリセル及び
上記検査ビット用メモリセルに上記半導体メモリの外部
からのデータを書き込み、しかる後に上記復号手段の誤
り訂正動作を停止させない状態で、上記復号手段により
訂正されたデータを読み出すことにより、上記復号手段
のテストをする工程を有することも特徴としている。
In the semiconductor memory testing method of the present invention, the error correction operation of the decoding means is stopped, the control signal is set to the second state, and the check bit memory cell receives data from outside the semiconductor memory. Is written, and then the data stored in the check bit memory cell is read out to test the check bit memory cell. Further, the control signal is set to the first state, the information bit is input to the encoding means, and thereafter the error correction operation of the decoding means is stopped, and the control signal is set to the second state.
It is also characterized in that the method further comprises a step of testing the encoding means by reading the data stored in the check bit memory cell. The control signal is set to the second state to write data from the outside of the semiconductor memory into the information bit memory cell and the check bit memory cell, and thereafter the error correction operation of the decoding means is not stopped. It is also characterized in that it has a step of testing the decoding means by reading the data corrected by the decoding means in the state.

〔発明の実施例〕Example of Invention

以下、本発明の実施例を図面により説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の第一の実施例を示す半導体メモリの構
成図である。同図において、1はlog2r本のアドレス信
号をでデコードしワード線ドライバ2を通してメモリア
レー3のワード線W0〜Wr-1の1本を指定するデコーダ
部、4は指定された(1本の)ワード線上の全メモリセ
ルのデータをデータ線D0〜Dns-1を通して読出し増幅す
るセンスアンプ群、6はlog2s本のアドレス信号をデコ
ードしてデータ線D0〜Dns-1のうちn本を指定し、その
指定したセンスアンプ群4の(n個の)データをデータ
線選択回路5を介して、(n本の)共通入出線I/Oに送
り出すデコーダ部、10,20,30,40はそれぞれ復号回路,
符号化回路,セレクタ回路,書込み回路であり、ECCに
よる誤り訂正機能を構成するものである。
FIG. 1 is a block diagram of a semiconductor memory showing a first embodiment of the present invention. In the figure, 1 is a decoder unit which decodes log 2 r address signals by and designates one of the word lines W 0 to Wr -1 of the memory array 3 through the word line driver 2 and 4 is designated (1 Sense amplifier group for reading and amplifying the data of all memory cells on the (word) word lines through the data lines D 0 to D ns-1 , and 6 decodes the log 2 s address signals to decode the data lines D 0 to D ns-. A decoder unit for designating n of 1 and sending (n) data of the designated sense amplifier group 4 to (n) common input / output line I / O via a data line selection circuit 5. , 20,30,40 are decoding circuits,
An encoding circuit, a selector circuit, and a writing circuit, which constitute an error correction function by ECC.

本半導体メモリは、RAM(Random Access Memory)であ
り、情報点数k,検査点数m,符号長n(n=k+m)のEC
Cによる誤り訂正機能を有する。また、ECCエネーブル信
号を入力する端子ECCと検査用ビットを指定する端子aa
を持ち、通常の使用状態においては、端子ECCEが抵抗器
R1によって高電位(論理“1")、一方の端子aaが、抵抗
器R2によって低電位(論理“0")で誤り訂正機能を働か
せて各種のデータを記憶する。詳細は後述するが、端子
ECCEを低電位(論理“0")にすることで誤り訂正機能の
動作を停止させ、一方の端子aaを高電位(論理“1")に
することで検査ビットを書込/読出させて、各部をチェ
ックする。
This semiconductor memory is a RAM (Random Access Memory), and has an EC of information points k, inspection points m, and code length n (n = k + m).
Has an error correction function by C. Also, the terminal ECC for inputting the ECC enable signal and the terminal aa for specifying the inspection bit
In normal use, the terminal ECCE is a resistor
R 1 has a high potential (logic “1”), and one terminal aa stores a variety of data by operating the error correction function at a low potential (logic “0”) with the resistor R 2 . Although details will be described later, terminals
The operation of the error correction function is stopped by setting ECCE to a low potential (logic "0"), and the check bit is written / read by setting one terminal aa to a high potential (logic "1"). Check each part.

次に、ECCによる誤り訂正機能を構成する各回路10〜40
の構成およびその動作について第2図〜第5図により述
べる。
Next, each circuit 10 to 40 that constitutes the error correction function by ECC
The configuration and the operation thereof will be described with reference to FIGS.

復号回路10は、ECCによる誤り訂正を行うため、第2図
に示すように、シンドローム生成回路11,誤り位置指定
回路12,誤り訂正用の排他的論理和(EOR)ゲート群とAN
Dゲート群とで構成する。シンドローム生成回路11は共
通入出力線I/Oからのデータxo〜xn-1に対するシンドロ
ームを生成し、それを誤り位置指定回路12に送出する。
誤り位置指定回路12はシンドロームを解析してデータxo
〜xn-1の誤り位置を推定し、出力するn本のうち、誤り
があると推定した出力線のみを論理“1"(他出力は全て
論理“0")にする。
Since the decoding circuit 10 performs error correction by ECC, as shown in FIG. 2, the syndrome generation circuit 11, the error position designation circuit 12, the exclusive OR (EOR) gate group for error correction, and the AN
It consists of D gate group. The syndrome generation circuit 11 generates a syndrome for the data x o to x n−1 from the common input / output line I / O and sends it to the error position designation circuit 12.
The error locator circuit 12 analyzes the syndrome and data x o
The error position of xn-1 is estimated, and among the n output lines, only the output line that is estimated to have an error is set to logic "1" (all other outputs are logic "0").

この時、ECCEが論理“1"すなわち誤り訂正を行う場合
は、上記n本の出力がそのままANDゲート群を通してEOR
ゲート群に送られるので、データxo〜xn-1のうち、誤り
があると推定されたビットのみが反転し、出力yo〜yn-1
となる。反対に、ECCEが論理“0"すなわち誤り訂正を行
わない場合は、ANDゲート群の出力全てが論理“0"とな
り、データx0〜xn-1がそのまま出力yo〜yn-1となる。
At this time, when the ECCE is logic "1", that is, when error correction is performed, the n outputs are directly subjected to EOR through the AND gate group.
Since it is sent to the gate group, only the bits of the data x o to x n-1 that are estimated to be erroneous are inverted, and the output y o to y n-1.
Becomes On the contrary, when the ECCE is logic “0”, that is, no error correction is performed, all the outputs of the AND gate group are logic “0”, and the data x 0 to x n-1 are output as they are y o to y n-1 . Become.

セレクタ回路30は、復号回路10からのデータyo〜y6(た
だし、n=7,k=4,m=3)を端子aaおよびlog2k本のア
ドレス内容に基づいて出力端子Doutに送出しメモリアレ
ー3のデータを読出すため、第3図に示すように、イン
バータ群,ANDゲート群,ORゲートで構成する。
The selector circuit 30, the transmission data y o ~y 6 from the decoding circuit 10 (where, n = 7, k = 4 , m = 3) to based on the address content of terminal aa and log 2 k the output terminal Dout In order to read data from the memory array 3, it is composed of an inverter group, an AND gate group, and an OR gate, as shown in FIG.

すなわち、3本のアドレス信号ai,ai+1,aaの内容で、入
力したデータy0〜y6のうちの1つを選択したANDゲート
群,ORゲートを通してDoutに送出するが、このとき、aa
が論理“0"であれば、上記選択をyo〜y3すなわち情報ビ
ットの中から行い、反対に、aaが論理“1"であればy4
y6すなわち検査ビットの中から行う。
That is, according to the contents of the three address signals a i , a i + 1 , aa, one of the input data y 0 to y 6 is sent to Dout through the selected AND gate group and OR gate. When aa
If but a logic "0", performs the selection from among y o ~y 3 or information bits, the opposite, y 4 ~ If aa is logic "1"
y 6, that is, from the check bits.

つまり、情報ビットyo〜y3を読出すための本来のアドレ
スai〜ai+1に、アドレスaaを追加したことで、情報ビッ
ト,検査ビットの両方を外部に読出すことが可能とな
る。
That is, the original address a i ~a i + 1 for reading an information bit y o ~y 3, by adding the address aa, information bits can be read out both check bits to the outside Become.

書込み回路40は、aaとlog2k本のアドレス内容に基づい
て、データy0〜y6(n=7,k=4,m=3)の中の1ビット
を入力端子Dinからのデータで置換し、符号化回路20に
送出しメモリアレー3に再び書込むため、第4図に示す
ように、インバータ群とANDゲート群でなるデコーダ回
路41,インバータ群,トランジスタ群で構成する。
The writing circuit 40 uses the data from the input terminal Din to convert one bit of the data y 0 to y 6 (n = 7, k = 4, m = 3) based on the address contents of aa and log 2 k lines. As shown in FIG. 4, it is composed of a decoder circuit 41 consisting of an inverter group and an AND gate group, an inverter group, and a transistor group in order to replace and send it to the encoding circuit 20 and write it to the memory array 3 again.

すなわち、3本のアドレス信号ai,ai+1,aaの内容で、復
号回路10からのデータy0〜y6のうちの1つをDinからの
データで置換して符号化回路20に送出するが、このと
き、aaが論理“0"であれば上記置換をyo〜y3(情報ビッ
ト)の中で行い、反対に、aaが論理“1"であればy4〜y6
(検査ビット)の中で行う。
That is, with the contents of the three address signals a i , a i + 1 , and aa, one of the data y 0 to y 6 from the decoding circuit 10 is replaced with the data from Din, and the data is transferred to the encoding circuit 20. While sending this time, aa performs the substitution is logic "0" in the y o ~y 3 (information bits), the opposite, y 4 ~y 6 if aa is logic "1"
(Check bit).

つまり、セレクタ回路30の場合と同様に、情報ビットy0
〜y3を置換するための本来のアドレスai、ai+1に、アド
レスaaを追加したことで、情報ビット,検査ビットの両
方に対し、外部から任意のデータを書込むことが可能と
なる。なお、本実施例では、k≧mと仮定しているの
で、追加するアドレスはaa1本で実現できるが、k<m
のときには付加するアドレス本数を増やして対応する。
That is, as in the case of the selector circuit 30, the information bit y 0
By adding address aa to original addresses a i and a i + 1 for replacing ~ y 3 , it is possible to write arbitrary data from both outside to both information bits and check bits. Become. In this embodiment, since it is assumed that k ≧ m, the address to be added can be realized by one aa, but k <m
In the case of, the number of addresses to be added is increased to deal with it.

符号化回路20は、書込み回路40からのデータZ0〜Zn-1
共通入出力線I/Oのx0〜xn-1に出力しメモリアレー3に
書込むとき、情報ビット(Z0〜Zk-1)はそのまま、一方
の検査ビット(Zk〜Zn-1)をそのまま、または新しく生
成した検査ビットで置換にするため、第5図に示すよう
に、検査ビット生成回路21,トランジスタ群,インバー
タで構成する。
Encoding circuit 20 when writing to the memory array 3 to output data Z 0 ~Z n-1 from the write circuit 40 in x 0 ~x n-1 of the common input-output lines I / O, data bits (Z 0 to Zk −1 ) as it is, one check bit (Zk to Z n−1 ) is replaced as it is or with a newly generated check bit. Therefore, as shown in FIG. It consists of a transistor group and an inverter.

すなわち、検査ビット生成回路21が、Z0〜Zk-1(情報ビ
ット)の内容に基づいてm本からなるECCの検査ビット
を生成し、このとき、aaが論理“0"であればxk〜x
n-1(検査ビット)に生成した検査ビットを、反対に、
論理“0"であればZk〜Zn-1をそのまま送出し、Z0〜Zk-1
と共にデータ線選択回路5を通してメモリアレー3内に
書込む。
That is, the check bit generation circuit 21 generates m check bits of ECC based on the contents of Z 0 to Zk −1 (information bits). At this time, if aa is a logical “0”, xk to x
The check bit generated in n-1 (check bit) is
If it is a logical "0", Zk to Z n-1 is sent as it is and Z 0 to Zk -1
At the same time, the data is written in the memory array 3 through the data line selection circuit 5.

ここで、半導体メモリの製造後のチェック(テスティン
グ)について上述した内容を整理すると、 、メモリセルのテスト ECCEを論理“0"(誤り訂正機能を停止)のままで、メモ
リアレー3に“1"および“0"のチェックデータを書込
み、その後読出してデータ内容をチェックし、検査ビッ
ト用のメモリセルも含めたメモリセル自体のテストを実
施する。なお、このときのaaは本来のアドレスと同様に
スキャンさせる。
Here, to summarize the above-mentioned contents regarding the check (testing) after the semiconductor memory is manufactured, the memory cell test ECCE remains "0" (the error correction function is stopped) and the memory array 3 has "1". The check data of "and" 0 "is written, then read to check the data content, and the memory cell itself including the memory cell for the check bit is tested. At this time, aa is scanned in the same way as the original address.

、符号化のテスト ECCEを論理“1"(誤り訂正機能を動作),aaを論理“0"
にして、情報ビットを書込み、その後ECCEを論理“0"
(誤り訂正機能を停止)にして情報ビットを、続いてaa
を論理“1"(検査ビットを指定)にして検査ビットを、
共に読出し、データ内容をチェックし、検査ビットが符
号化回路20において正しく付加されているかのテストを
実施する。
, Encoding test ECCE is logic "1" (error correction function is activated), aa is logic "0"
, Write the information bit, and then set ECCE to logic "0".
(Error correction function is stopped), information bit, and then aa
Is set to logical "1" (specify check bit),
Both are read out, the data contents are checked, and a test is performed as to whether or not the check bit is correctly added in the encoding circuit 20.

、復号のテスト ECCEを論理“0",aaを論理“0"にして情報ビットを書込
み、続いて、aaを論理“1"に変えて検査ビットを書込
み、その後ECCEを論理“1",aaを論理“0"にして情報ビ
ットを読出し、データ内容をチェックし、情報ビットが
復号回路10において正しく誤り訂正されているかのテス
トを実施する。続いて、aaのみを論理“1"に変え検査ビ
ットを読出して同様にチェツクし、検査ビットに対する
訂正のテストを実施する。なお、書込むデータは復号回
路10で訂正可能な誤りを含めた内容にする。
, Decryption test ECCE is set to logic "0", aa to logic "0", information bit is written, then aa is changed to logic "1" and check bit is written, and then ECCE is set to logic "1", aa Is set to logic "0", the information bit is read, the data content is checked, and a test is performed as to whether the information bit is correctly error-corrected in the decoding circuit 10. Then, only aa is changed to the logic "1", the check bit is read and checked in the same manner, and the correction test for the check bit is performed. The data to be written has a content including an error that can be corrected by the decoding circuit 10.

本実施例では、ECCエネーブル信号,アドレス信号を入
力するために端子ECCE,aaを設けたが、他の端子を時分
割で兼用し両信号を入力してもよい。また、通常動作時
には使用しないような信号の組合せ(例えばスタチック
RAMにおいては、出力エネーブル信号OEと書込エネーブ
ル信号WEを同時に印加するなど)によって、内部で信号
を生成してもよい。
In the present embodiment, the terminals ECCE, aa are provided for inputting the ECC enable signal and the address signal, but other terminals may be used in a time division manner and both signals may be input. Also, signal combinations that are not used during normal operation (eg static
In the RAM, the signal may be internally generated by applying the output enable signal OE and the write enable signal WE at the same time.

次に、本発明の第二の実施例を第6図〜第12図により詳
細に述べる。
Next, a second embodiment of the present invention will be described in detail with reference to FIGS.

第6図は、半導体メモリの構成図である。前述した第1
図と相違する点は、(i)データ線D0〜Dn-1をシリアル
状に選択する点。すなわちr本のワード線W0〜Wr-1は、
第1図と同様にデコーダ部1によりランダムに選択され
るが、n本のデータ線D0〜Dn-1は外部からのクロック信
号SCLKに同期してシフトするシフトレジスタ部7によっ
てD0,D1,D2‥‥Dn-1の順に選択される。ただしデータ線
D0〜Dn-1は前述と同様にk本の情報ビットD0〜Dk-1記憶
用とm本の検査ビットDk〜Dn-1記憶用で構成する。した
がって、メモリアレー3に対する情報ビットの書込/読
出はSCLK信号に同期して1ビットずつk回のタイミング
で行う。
FIG. 6 is a configuration diagram of a semiconductor memory. First mentioned above
The difference from the figure is that (i) the data lines D 0 to D n-1 are serially selected. That is, the r word lines W 0 to Wr −1 are
Are selected at random as well by the decoder unit 1 and Figure 1, the data lines D 0 to D n-1 of n book D 0 by the shift register unit 7 for shifting in synchronization with the clock signal SCLK from the outside, D 1 , D 2 ... D n-1 are selected in this order. However, the data line
Similarly to the above, D 0 to D n-1 are configured to store k information bits D 0 to Dk -1 and m check bits Dk to D n-1 . Therefore, the writing / reading of the information bit to / from the memory array 3 is carried out bit by bit at the timing of k times in synchronization with the SCLK signal.

(ii)ECCとして巡回符号を採用した点。これにより、
符号化回路25,復号回路15には、それぞれ巡回符号の性
質を利用してシリアル的に符号化,復号化を実行する回
路を用いる。
(Ii) A cyclic code is adopted as the ECC. This allows
As the encoding circuit 25 and the decoding circuit 15, circuits that serially execute encoding and decoding by using the property of cyclic code are used.

(iii)SCLK信号,ECCエネーブル信号を入力して、シフ
トレジスタ部7,符号化回路25,復号回路15を駆動するた
めのタイミングパルスを発生するタイミング発生回路55
を備える。なお、詳細は後述するが、必要に応じてSCLK
信号がなくともタイミングパルスを送出する。
(Iii) A timing generation circuit 55 that inputs a SCLK signal and an ECC enable signal and generates a timing pulse for driving the shift register unit 7, the encoding circuit 25, and the decoding circuit 15.
Equipped with. Although details will be described later, if necessary, SCLK
Sends a timing pulse even if there is no signal.

(iv)データ線選択回路5からの共通入出力線I/Oの接
続先を復号回路15の出力側および入力側,符号化回路25
の入力側に切替えるスイッチ65を設けている。
(Iv) The connection destination of the common input / output line I / O from the data line selection circuit 5 is the output side and the input side of the decoding circuit 15, and the encoding circuit 25.
A switch 65 for switching to the input side of is provided.

第7図は、第6図の半導体メモリの処理フローチャート
である。第8図は、第6図での‘通常動作’時の動作タ
イミング図である。
FIG. 7 is a processing flowchart of the semiconductor memory of FIG. FIG. 8 is an operation timing chart at the “normal operation” in FIG.

半導体メモリは、図示していないが選択信号であるチッ
プセレクト信号CSが“L"で、デコーダ部1およびワード
線ドライバ2によって、ワード線W0〜Wr-1の1本が選択
されると、図示してないが読出または書込を指示する信
号であるWE信号が“L"(書込)のときには、タイミング
発生回路55から符号化回路25,シフトレジスタ部7にSCL
K信号な同期するタイミングパルスをk回送出させて、
データ線をD0,D1,D2‥‥‥Dk-1の順に1つずつ切替え
て、入力端子Dinからのデータをメモリアレー3のそれ
に対応するメモリセルに書込む(第7図のステップ12
2)。なお、スイッチ65の接続先は符号化回路25の出力
側(端子C)である。
In the semiconductor memory, when the chip select signal CS, which is a selection signal (not shown), is “L” and the decoder unit 1 and the word line driver 2 select one of the word lines W 0 to Wr −1 , Although not shown, when the WE signal which is a signal for instructing reading or writing is "L" (writing), the timing generating circuit 55 causes the encoding circuit 25 and the shift register unit 7 to SCL.
Send a timing pulse that is synchronized with the K signal k times,
The data lines are switched one by one in the order of D 0 , D 1 , D 2・ ・ ・ Dk -1 , and the data from the input terminal Din is written in the memory cell corresponding to that of the memory array 3 (step in FIG. 7). 12
2). The switch 65 is connected to the output side (terminal C) of the encoding circuit 25.

続いて、タイミング発生回路55から符号化回路25,シフ
トレジスタ7にタイミングパルスをm回送出させて、符
号化回路25が生成していたm個からなる検査ビットを上
記と同様の方法でメモリアレー3に書込む(ステップ12
3)。
Then, the timing generating circuit 55 sends timing pulses to the encoding circuit 25 and the shift register 7 m times, and the m check bits generated by the encoding circuit 25 are checked by the same method as described above. Write to 3 (Step 12
3).

上記動作を繰返すことにより、Dinからのデータ全てとE
CCの検査ビットをメモリアレー3内に書込む。
By repeating the above operation, all the data from Din and E
Write the CC check bit into memory array 3.

一方、WE信号が“H"(読出)のときには、先ず、タイミ
ング発生回路55からタイミングパルスを送出させてシフ
トレジスタ部7,復号回路15を駆動し、シンドロームの計
算を行わせる(ステップ131)。続いて、タイミング発
生回路55から復号回路15,シフトレジスタ部7にSCLK信
号に同期するタイミングパルスを送出させ、書込時と同
様に、データ線をD0,D1,D2‥‥‥Dk-1の順に1つずつ切
替えて、メモリアレー3の対応するメモリセルからk個
の情報ビットを読出し、復号回路15で誤り訂正した後、
出力端子Doutに出力する。それと同時に、訂正した情報
ビットをスイッチ65の端子A,データ線選択回路5を通し
てメモリアレー3の元のメモリセルに再び書込む(第7
図のステップ132)。
On the other hand, when the WE signal is "H" (read), first, the timing generating circuit 55 sends a timing pulse to drive the shift register unit 7 and the decoding circuit 15 to calculate the syndrome (step 131). Then, the timing generation circuit 55 sends a timing pulse in synchronization with the SCLK signal to the decoding circuit 15 and the shift register unit 7, and the data lines D 0 , D 1 , D 2 ... -1 is switched one by one in order, the k information bits are read from the corresponding memory cell of the memory array 3, and the decoding circuit 15 performs error correction,
Output to output terminal Dout. At the same time, the corrected information bit is rewritten into the original memory cell of the memory array 3 through the terminal A of the switch 65 and the data line selection circuit 5 (seventh).
Step 132 in the figure).

続いて、タイミング発生回路55からの復号回路15,シフ
トレジスタ部7にタイミングパルスを更にm回送出さ
せ、上記情報ビットと同様、データ線をDk,Dk+1,‥‥‥
Dn-1の順に1つずつ切替えて、対応するメモリセルから
m個の検査ビットを読出し、復号回路15で誤り訂正した
後、スイッチ65の端子A,データ線選択回路5を通してメ
モリアレー3の元のメモリセルに再び書込む(ステップ
133)。なお、m個の検査ビットを再書込みはするがDou
tに送出はしない。
Then, the timing pulse is sent m times from the timing generation circuit 55 to the decoding circuit 15 and the shift register section 7, and the data lines Dk, Dk + 1 , ...
After switching one by one in the order of D n-1 and reading out m check bits from the corresponding memory cell and performing error correction in the decoding circuit 15, through the terminal A of the switch 65 and the data line selection circuit 5, the memory array 3 of Rewrite to the original memory cell (step
133). Note that m check bits are rewritten, but Dou
Do not send to t.

上記の読出動作を繰返すことで、メモリアレー3内の指
定の情報ビットをDoutに出力する。
By repeating the above read operation, a specified information bit in the memory array 3 is output to Dout.

この場合、書込時,読出時も外部から印加するSCLK信号
のサイクル数はk回であり、書込む,読出すデータ数も
kビットである。すなわち、外部からはkビットのシリ
アル半導体メモリに見え、ECC用のm個の検査ビットは
見えない。
In this case, the number of cycles of the SCLK signal applied from the outside is k times during writing and reading, and the number of data to be written and read is k bits. That is, from the outside, it looks like a k-bit serial semiconductor memory, and m inspection bits for ECC cannot be seen.

第9図は、第6図での‘メモリセル(検査ビット用のメ
モリセルも含む)のテスト’時の動作タイミング図であ
る。
FIG. 9 is an operation timing chart at the time of “test of memory cell (including memory cell for check bit)” in FIG. 6.

半導体メモリは、CS信号と端子ECCEが共に“L"で、ワー
ド線W0〜Wr-1の1本が選択されると、WE信号が“L"(書
込)のときには、第8図(通常動作時)と同様、タイミ
ング発生回路55から符号化回路25,シフトレジスタ部7
にSCLK信号に同期するタイミングパルスをk回送出さ
せ、データ線をD0,D1,D2‥‥Dk-1の順に切替えて、Din
からのデータ(情報ビット)をスイッチ65のC端子,デ
ータ線選択回路5を通してメモリアレー3に対応するメ
モリセルに順次書込む(第7図のステップ112)。
In the semiconductor memory, when both of the CS signal and the terminal ECCE are “L” and one of the word lines W 0 to Wr −1 is selected, when the WE signal is “L” (write), FIG. As in the normal operation), from the timing generation circuit 55 to the encoding circuit 25, the shift register unit 7
The timing pulses synchronized with SCLK signal by out k forwarding, switching the data line in the order of D 0, D 1, D 2 ‥‥ Dk -1, Din
The data (information bit) from (1) is sequentially written into the memory cell corresponding to the memory array 3 through the C terminal of the switch 65 and the data line selection circuit 5 (step 112 in FIG. 7).

続いて、上記と同様のタイミングパルスを、タイミング
発生回路55から符号化回路25,シフトレジスタ部7にm
回送出させ、データ線をDk,Dk+1,Dk+2‥‥‥Dn-1の順に
切替えて、Dinからのデータ(検査ビット)をスイッチ6
5のC端子,データ線選択回路5を通してメモリアレー
3に対応するメモリセルに順次書込む(ステップ11
3)。
Subsequently, a timing pulse similar to the above is sent from the timing generation circuit 55 to the encoding circuit 25 and the shift register unit 7.
The data lines are transmitted once, and the data lines are switched in the order of Dk, Dk +1 , Dk +2・ ・ ・ D n-1 and the data (check bit) from Din is switched to switch 6
Data is sequentially written into the memory cells corresponding to the memory array 3 through the C terminal 5 and the data line selection circuit 5 (step 11).
3).

上記動作を繰返すことで、Dinからのデータ(情報およ
び検査ビット)をメモリアレー3の各メモリセルに書込
む。
By repeating the above operation, the data (information and check bits) from Din is written in each memory cell of the memory array 3.

一方、WE信号が“H"(読出)のときには、第8図(通常
動作)と同様に、シフトレジスタ部7,復号回路15にシン
ドロームの計算を行わせた後(第7図のステップ14
1)、タイミング発生回路55から復号回路15,シフトレジ
スタ部7にSCLK信号に同期するタイミングパルスを送出
させ、書込時と同様に、データ線をD0,D1,D2‥‥‥Dk-1
の順に切替えて、メモリアレー3の対応するメモリセル
からk個の情報ビットを読出しDoutに出力する。それと
同時にスイッチ65の端子A,データ線選択回路5を通して
メモリアレー3に再び書込む(ステップ142)。
On the other hand, when the WE signal is "H" (read), after the shift register unit 7 and the decoding circuit 15 are caused to calculate the syndrome, as in FIG. 8 (normal operation) (step 14 in FIG. 7).
1) The timing generating circuit 55 sends a timing pulse in synchronization with the SCLK signal to the decoding circuit 15 and the shift register section 7, and the data lines D 0 , D 1 , D 2 ... -1
, And reads k information bits from the corresponding memory cells of the memory array 3 and outputs them to Dout. At the same time, the data is again written into the memory array 3 through the terminal A of the switch 65 and the data line selection circuit 5 (step 142).

続いて、上記と同様のタイミングパルスをさらに、タイ
ミング発生回路55から復号回路15,シフトレジスタ部7
にm回送出させ、データ線をDk,Dk+1,‥‥‥Dn-1の順に
切替えて、対応するメモリセルからm個の検査ビットを
読出しDoutに出力する。同時にスイッチ65の端子A,デー
タ線選択回路5を通してメモリアレー3に再び書込む
(ステップ143)。
Then, the timing pulse similar to the above is further supplied from the timing generation circuit 55 to the decoding circuit 15 and the shift register unit 7.
, M n times, the data lines are switched in the order of Dk, Dk +1 , ..., D n-1 , and m check bits are read from the corresponding memory cell and output to Dout. At the same time, the data is again written into the memory array 3 through the terminal A of the switch 65 and the data line selection circuit 5 (step 143).

上記の読出動作を繰返すことで、メモリアレー3の情報
および検査ビットをDoutに出力する。
By repeating the above-mentioned read operation, the information and the check bit of the memory array 3 are output to Dout.

メモリセルのテスト時は通常動作時と異なり、書込/読
出ともにSCLK信号を(k+m)回印加し、復号回路15に
よるデータの誤り訂正を動作停止にする(なお、これは
第2図と同様の手法で実現する)。これにより、SCLK信
号をn(=k+m)回印加すると、メモリセルに書込ん
だ情報ビットのみならず、検査ビットをも訂正なしでDo
utに読出せるので、メモリセル自体(検査ビット用のメ
モリセルも含む)のテストが可能となる。また、この場
合、外部からは誤り訂正機能なしのnビットのシリアル
半導体メモリに見える。
In the memory cell test, unlike the normal operation, the SCLK signal is applied (k + m) times for both writing and reading, and the data error correction by the decoding circuit 15 is stopped (this is the same as in FIG. 2). It is realized by the method of). As a result, when the SCLK signal is applied n (= k + m) times, not only the information bit written in the memory cell but also the check bit are corrected without correction.
Since the data can be read in ut, the memory cell itself (including the memory cell for the check bit) can be tested. Further, in this case, it looks like an n-bit serial semiconductor memory without an error correction function from the outside.

第10図は、第6図での‘符号化のテスト’時の動作タイ
ミング図である。
FIG. 10 is an operation timing chart at the'encoding test 'in FIG.

半導体メモリは、CS信号が“L",端子ECCEが“H"で、WE
信号が“L"(書込)のときには、ワード線W0〜Wr-1が1
ほ選択されると、第8図(通常動作時)と同様に、SCLK
信号と同期するタイミングパルス(k回)で、Dinから
のデータ(情報ビット)をメモリアレー3に書込み(ス
テップ122)、続いて、タイミングパルス(m回)で、
符号化回路25が生成したm個の検査ビットをメモリアレ
ー3に書込む(ステップ123)。
In the semiconductor memory, the CS signal is "L", the terminal ECCE is "H", and the WE
When the signal is "L" (write), the word lines W 0 to Wr -1 are 1
When selected, SCLK is the same as in Fig. 8 (during normal operation).
Data (information bits) from Din are written to the memory array 3 at timing pulses (k times) synchronized with the signal (step 122), and then at timing pulses (m times).
The m check bits generated by the encoding circuit 25 are written in the memory array 3 (step 123).

上記動作を繰返すことで、Dinからのデータ全てとそれ
に対するECCの検査ビットをメモリアレー3内に書込
む。
By repeating the above operation, all the data from Din and the ECC check bit for the data are written in the memory array 3.

一方、端子ECCEが“L"で、WE信号が“H"(読出)のとき
には、ワード線W0〜Wr-1が1本選択されると、第9図
(メモリセルのテスト時)と同様に、シンドロームの計
算後、SCLK信号に同期するタイミングパルス(k回)
で、メモリアレー3の情報ビットをk個読出してDoutに
出力すると同時に、メモリアレー3に再び書込む(ステ
ップ141,142)。続いて、上記情報ビットと同様、SCLK
信号に同期するタイミングパルス(m回)で、メモリア
レー3の検査ビットをm個読出してDoutに出力すると同
時に、メモリアレー3に再び書込む(ステップ143)。
On the other hand, when one of the word lines W 0 to Wr −1 is selected when the terminal ECCE is “L” and the WE signal is “H” (read), the same as in FIG. 9 (during memory cell test). Then, after calculating the syndrome, timing pulse (k times) synchronized with the SCLK signal
Then, k information bits of the memory array 3 are read out and output to Dout, and at the same time, rewritten in the memory array 3 (steps 141 and 142). Then, similar to the above information bit, SCLK
At the timing pulse (m times) synchronized with the signal, m inspection bits of the memory array 3 are read out and output to Dout, and at the same time, written again in the memory array 3 (step 143).

上記の読出動作を繰返すことで、メモリアレー3内の情
報および検査ビットをDoutに出力する。
By repeating the above read operation, the information and check bits in the memory array 3 are output to Dout.

この場合、ECCEを“H"にして、情報ビットと符号化回路
25で付加した検査ビットをメモリセルに書込んだ後、そ
れをECCEを“L"(誤り訂正機能を停止)にして、情報ビ
ットと検査ビットからなるnビットのデータを誤り訂正
なしで読出すので、符号化回路25において検査ビットを
正しく付加しているかをテストすることができる。
In this case, set ECCE to "H" to set the information bit and encoding circuit.
After writing the check bit added in 25 to the memory cell, set ECCE to "L" (stop error correction function) and read n-bit data consisting of information bit and check bit without error correction. Therefore, it is possible to test whether the check bit is correctly added in the encoding circuit 25.

第11図は、第6図での‘符号化のテスト’時の動作タイ
ミング図である。
FIG. 11 is an operation timing chart at the “encoding test” in FIG.

半導体メモリは、CS信号,端子ECCEが共に“L"で、WE信
号が“L"(書込)のときには、第9図(メモリセルのテ
スト時)と同様に、SCLK信号に同期するタイミングパル
ス(k回)で、Dinからのデータ(k個の情報ビット)
をメモリアレー3のメモリセルに書込み(ステップ11
2)、続いて、上記情報ビットと同様のタイミングパル
ス(m回)で、Dinからのデータ(m個の検査ビット)
をメモリセルに順次書込む(ステップ113)。
In the semiconductor memory, when both the CS signal and the terminal ECCE are “L” and the WE signal is “L” (write), the timing pulse synchronized with the SCLK signal is provided as in FIG. 9 (when testing the memory cell). (K times), data from Din (k information bits)
To the memory cells of memory array 3 (step 11
2) Then, at the same timing pulse (m times) as the above information bit, data from Din (m check bits)
Are sequentially written in the memory cells (step 113).

一方、WE信号が“H"(読出)のときには、第8図(通常
動作時)と同様に、シンドロームの計算後、SCLK信号に
同期するタイミングパルス(k回)で、メモリアレー3
からk個の情報ビットを読出し、復号回路15で誤り訂正
してDoutに出力すると同時に、再びメモリセルに書込み
(ステップ131,132)、続いて、タイミングパルス(m
回)で、メモリアレー3からm個の検査ビットを読出
し、復号回路15で誤り訂正して再びメモリセルに書込む
(ステップ133)。
On the other hand, when the WE signal is "H" (read), as in FIG. 8 (during normal operation), after calculating the syndrome, a timing pulse (k times) synchronized with the SCLK signal causes the memory array 3 to operate.
, K information bits are read out, the decoding circuit 15 performs error correction and outputs them to Dout, and at the same time, writes them again in the memory cells (steps 131 and 132), and then the timing pulse (m
(M times), the m check bits are read from the memory array 3, the decoding circuit 15 performs error correction, and the data is written in the memory cell again (step 133).

上記の読出動作を繰返すことで、メモリアレー3内の情
報ビットをDoutに出力する。
By repeating the above read operation, the information bit in the memory array 3 is output to Dout.

この場合、ECCEを“L"にして、情報ビットおよび検査ビ
ットを任意な内容でメモリアレー3に書込んだ後、その
情報ビットをECCEを“H"すなわち復号回路15で誤り訂正
して読出すので、復号回路15において正しく訂正してい
るかがテストできる。なお、書込むデータの内容は、例
えば復号回路15で訂正可能な誤りを含むようにする。ま
た、情報ビットの訂正テストと共に、検査ビットも実施
するときには、第12図の方法で行う。
In this case, ECCE is set to "L", the information bit and the check bit are written in the memory array 3 with arbitrary contents, and then the information bit is read out after the ECCE is set to "H", that is, the decoding circuit 15 performs error correction. Therefore, it is possible to test whether the decoding circuit 15 is correct. The contents of the data to be written include an error that can be corrected by the decoding circuit 15, for example. When the check bit is carried out together with the information bit correction test, the method shown in FIG. 12 is used.

すなわち、半導体メモリは、CS信号,端子ECCE,WE信号
が共に“L"状態である第一段階に、第11図と同様、SCLK
信号に同期するタイミングパルス(k+m回)で、Din
からのk個の情報ビットとm個の検査ビットの両方をメ
モリセルに書込む(ステップ112〜113)。
That is, in the semiconductor memory, the SCLK, the terminal ECCE, and the WE signal are both in the “L” state at the first stage, as in FIG.
Din by timing pulse (k + m times) synchronized with the signal
Both the k information bits from and the m check bits are written into the memory cell (steps 112-113).

次に、端子ECCEとWE信号が共に“H"状態である第二段階
に、第11図と同様、シンドロームの計算後、SCLK信号に
同期するタイミングパルス(k回)で、メモリアレー3
から情報ビットを読出し訂正してDoutに出力した後、タ
イミングパルス(m回)で、検査ビットを読出し訂正し
て再びメモリアレー3に書込む(ステップ131〜133)。
Next, in the second stage in which both the terminal ECCE and the WE signal are in the "H" state, the memory array 3 is driven by the timing pulse (k times) synchronized with the SCLK signal after calculating the syndrome, as in FIG.
After reading out and correcting the information bit from the output and outputting it to Dout, the check bit is read out and corrected by the timing pulse (m times) and written again in the memory array 3 (steps 131 to 133).

続いて、CS信号と端子ECCEが共に“L",WE信号が“H"の
ままの状態である第三段階に、第9図と同様、シンドロ
ームの計算後、SCLK信号に同期するタイミングパルス
(k回)で、情報ビットを読出してDoutに出力し再びメ
モリアレー3に書込んだ後、同期のタイミングパルス
(m回)で、第二段階で訂正されている検査ビットを読
出してDoutに出力し再びメモリアレー3に書込む(ステ
ップ141〜143)。
Subsequently, in the third stage in which both the CS signal and the terminal ECCE remain “L” and the WE signal remains “H”, timing pulse (synchronized with the SCLK signal after the calculation of the syndrome as in FIG. 9). (k times), the information bit is read out and output to Dout and again written to the memory array 3, and then the synchronous timing pulse (m times) reads out the check bit corrected in the second stage and outputs it to Dout. Then, the data is written again in the memory array 3 (steps 141 to 143).

上記三段階の動作で、検査ビットが正しく訂正されたか
を外部にて判断することができる。また、動作を三段階
とせずに行う方法を第13図により述べる。
It is possible to externally determine whether the check bit has been correctly corrected by the above three-step operation. A method of performing the operation without the three steps will be described with reference to FIG.

第13図は、ECCエネーブル信号の入力端子を2個設けた
場合の半導体メモリ構成図である。
FIG. 13 is a semiconductor memory block diagram in the case where two ECC enable signal input terminals are provided.

同図において、ECCE1は、タイミング発生回路56および
符号化回路26を前記と同様に制御する端子、ECCE2は復
号回路16を前記と同様に制御する端子である。なお、そ
の他は第6図と同様である。
In the figure, ECCE 1 is a terminal that controls the timing generation circuit 56 and the encoding circuit 26 in the same manner as described above, and ECCE 2 is a terminal that controls the decoding circuit 16 in the same manner as described above. The rest is the same as in FIG.

すなわち、検査ビットの復号テストは、先ず、書込みを
第11図(復号のテスト時)と同様に、CS信号,端子ECCE
1,WE信号を共に“L"(論理“0")にし端子ECCE2を“H"
(論理“1")にして、Dinからのデータ(情報および検
査ビット)をメモリアレー3に書込み、次の読出しを、
ECCE1を論理“0",ECCE2を論理“1"にして読出すこと
で、復号回路16が誤り訂正している状態から直接、検査
ビットを読出すことができ、検査ビットの訂正を上記二
段階でテストできる。なお、その他のテスト時と通常動
作時は、第6図の場合の実施例をECCE1=ECCE2の状態で
行う。
That is, in the check bit decoding test, first, as in the case of FIG. 11 (at the time of the decoding test), the CS signal and the terminal ECCE are written.
Set both 1 and WE signals to "L" (logic "0") and set terminal ECCE 2 to "H"
(Logic "1"), write the data (information and check bit) from Din to the memory array 3 and read the next
By reading the ECCE 1 with the logic “0” and the ECCE 2 with the logic “1”, the check bit can be directly read from the state where the decoding circuit 16 is performing the error correction. You can test in two steps. During the other tests and the normal operation, the embodiment of FIG. 6 is performed with ECCE 1 = ECCE 2 .

第14図は、本発明の第四実施例を示す半導体メモリの構
成図である。同図において、73は多値(3ビット)のメ
モリアレー、67はデータ線選択回路75からの3本のI/O
線をそれぞれ復号回路の入力側および出力側,符号化回
路の出力側に接続するスイッチである。なお、入力端子
Dinと出力端子Doutの本数は3本となるが、他の各回路
の動作は基本的には第6図と同様である。
FIG. 14 is a configuration diagram of a semiconductor memory showing a fourth embodiment of the present invention. In the figure, 73 is a multi-valued (3-bit) memory array, 67 is three I / Os from the data line selection circuit 75.
Switches that connect the lines to the input side and output side of the decoding circuit and the output side of the encoding circuit, respectively. Input terminal
The number of Din and output terminals Dout is three, but the operation of each of the other circuits is basically the same as in FIG.

符号化回路27が3ビットそれぞれの符号化を前述と同様
の方法で行って多値メモリに書込み、復号回路17が3ビ
ットそれぞれの誤り訂正を同じく前述と同様の方法で行
って多値メモリのデータ読出すことで、前述の各種テス
トを実施する。
The encoding circuit 27 performs 3-bit encoding in the same manner as described above and writes it in the multi-valued memory, and the decoding circuit 17 performs 3-bit error correction in the same manner as described above and also in the multi-valued memory. By reading the data, the various tests described above are performed.

このように、ECCエネーブル信号,検査ビットの外部へ
の入出力を指示して、ECC用の検査ビットを蓄積するメ
モリセル自体のテスト,符号化回路のテスト,復号回路
のテストなどを各々独立させることができるので、従来
よりテスティングの信頼性を高めることができる。
In this way, the test of the memory cell itself for storing the ECC enable signal and the check bit is instructed to the outside, and the test of the memory cell itself, the test of the encoding circuit, the test of the decoding circuit, etc. are made independent. Therefore, the reliability of testing can be improved as compared with the conventional case.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、メモリセル自体
と、符号化回路と、復号回路を各々独立にテストするこ
とができるので、従来の誤り訂正機能搭載型半導体メモ
リでは誤り訂正されるがために検出できなくなってしま
っていたハードウェアエラーを検出することが可能とな
る。
As described above, according to the present invention, the memory cell itself, the encoding circuit, and the decoding circuit can be independently tested, so that the conventional semiconductor memory with an error correction function performs error correction. Therefore, it becomes possible to detect a hardware error that cannot be detected.

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

第1図は本発明の第1の実施例を示す半導体メモリの構
成図、第2図〜第5図はECCによる誤り訂正機能を有す
る回路構成図、第6図は本発明の第2の実施例を示す半
導体メモリの構成図、第7図は第6図の処理フローチヤ
ート、第8図は第6図における通常動作時のタイムチヤ
ート、第9図は第6図におけるメモリセルのテスト時の
動作タイムチヤート、第10図は第6図における符号化テ
スト時の動作タイムチヤート、第11図は第6図における
復号化テスト時の動作タイムチヤート、第12図は情報ビ
ツトの訂正テストとともに、検査ビツトも実施するとき
のタイムチヤート、第13図はECCエネーブル信号の入力
端子を2個設けた場合の半導体メモリの構成図、第14図
は本発明の第4の実施例を示す半導体メモリの構成図で
ある。 1,6,71:デコーダ部、2,72:ワード線ドライバ、3,73:メ
モリアレー、4,74:センスアンプ群、7,75:データ部選択
回路、7,77:シフトレジスタ部、10,15,16,17:復号回
路、11:シンドローム生成回路、12:誤り位置指定回路、
20,25,26,27:符号化回路、21:検査ビツト生成回路、30:
セレクタ回路、40:書込み回路、41:デコーダ回路、55,5
6,57:タイミング発生回路、65,66,67:スイツチ、ECCE:E
CCエネーブル信号の入力端子、aa:検査ビツト指定用の
入力端子、Din:データの入力端子、Dout:データの出力
端子。
FIG. 1 is a configuration diagram of a semiconductor memory showing a first embodiment of the present invention, FIGS. 2 to 5 are circuit configuration diagrams having an error correction function by ECC, and FIG. 6 is a second embodiment of the present invention. FIG. 7 is a configuration diagram of a semiconductor memory showing an example, FIG. 7 is a process flow chart of FIG. 6, FIG. 8 is a time chart of a normal operation in FIG. 6, and FIG. 9 is a test of a memory cell in FIG. Operation time chart, FIG. 10 is an operation time chart at the time of the coding test in FIG. 6, FIG. 11 is an operation time chart at the time of the decoding test in FIG. 6, and FIG. 12 is an inspection together with the correction test of the information bit. FIG. 13 is a configuration diagram of a semiconductor memory in which two ECC enable signal input terminals are provided, and FIG. 14 is a configuration of a semiconductor memory showing a fourth embodiment of the present invention. It is a figure. 1,6,71: Decoder section, 2,72: Word line driver, 3,73: Memory array, 4,74: Sense amplifier group, 7,75: Data section selection circuit, 7,77: Shift register section, 10 , 15,16,17: Decoding circuit, 11: Syndrome generating circuit, 12: Error position specifying circuit,
20,25,26,27: Encoding circuit, 21: Check bit generation circuit, 30:
Selector circuit, 40: Write circuit, 41: Decoder circuit, 55, 5
6,57: Timing generator, 65,66,67: Switch, ECCE: E
CC enable signal input terminal, aa: input terminal for specifying inspection bit, Din: data input terminal, Dout: data output terminal.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 池永 伸一 東京都国分寺市東恋ヶ窪1丁目280番地 株式会社日立製作所中央研究所内 (72)発明者 下東 勝博 東京都国分寺市東恋ヶ窪1丁目280番地 株式会社日立製作所中央研究所内 (56)参考文献 特開 昭60−11952(JP,A) 特開 昭58−185097(JP,A) 特開 昭56−22292(JP,A) 特開 昭55−93598(JP,A) ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Shinichi Ikenaga 1-280 Higashi Koigakubo, Kokubunji, Tokyo Inside Central Research Laboratory, Hitachi, Ltd. (72) Inventor Katsuhiro Shimoto 1-280 Higashi Koigakubo, Kokubunji, Tokyo Hitachi Ltd. (56) References JP-A-60-11952 (JP, A) JP-A-58-185097 (JP, A) JP-A-56-22292 (JP, A) JP-A-55-93598 (JP , A)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】情報ビットに誤り訂正符号に基づく検査ビ
ットを付加する符号化手段と、複数のワード線と、複数
のデータ線と、上記複数のワード線と上記複数のデータ
線との交点の所定の位置に設けられ、上記情報ビットを
記憶する情報ビット用メモリセルと、上記複数のワード
線と上記複数のデータ線との交点の所定の位置に設けら
れ、上記検査ビットを記憶する検査ビット用メモリセル
と、上記複数のデータ線を順次選択するデータ線選択手
段と、上記情報ビット用メモリセルおよび上記検査ビッ
ト用メモリセルから読み出された読み出しデータを訂正
する復号手段と、上記復号手段の誤り訂正動作を停止さ
せる誤り訂正動作停止手段とを有する半導体メモリにお
いて、 上記データ線選択手段にタイミング信号を供給するた
め、上記誤り訂正動作停止手段からの制御信号が第1の
状態の時には上記検査ビットに対応する分のタイミング
信号を自発的に発生し、上記制御信号が上記第1の状態
と異なる第2の状態の時には上記検査ビットに対応する
分のタイミング信号を外部クロックに同期して発生する
タイミング発生手段を具備したことを特徴とする半導体
メモリ。
1. A coding means for adding a check bit based on an error correction code to an information bit, a plurality of word lines, a plurality of data lines, and an intersection of the plurality of word lines and the plurality of data lines. An information bit memory cell, which is provided at a predetermined position and stores the information bit, and a check bit, which is provided at a predetermined position at the intersection of the plurality of word lines and the plurality of data lines, and stores the check bit. Memory cell, data line selecting means for sequentially selecting the plurality of data lines, decoding means for correcting read data read from the information bit memory cell and the check bit memory cell, and the decoding means. In the semiconductor memory having an error correction operation stopping means for stopping the error correction operation of the above, since the timing signal is supplied to the data line selection means, the error When the control signal from the correction operation stopping means is in the first state, the timing signal corresponding to the check bit is spontaneously generated, and when the control signal is in the second state different from the first state, the timing signal is generated. A semiconductor memory comprising a timing generation means for generating a timing signal corresponding to a check bit in synchronization with an external clock.
【請求項2】情報ビットに誤り訂正符号に基づく検査ビ
ットを付加する符号化手段と、複数のワード線と、複数
のデータ線と、上記複数のワード線と上記複数のデータ
線との交点の所定の位置に設けられ、上記情報ビットを
記憶する情報ビット用メモリセルと、上記複数のワード
線と上記複数のデータ線との交点の所定の位置に設けら
れ、上記検査ビットを記憶する検査ビット用メモリセル
と、上記複数のデータ線を順次選択するデータ線選択手
段と、上記情報ビット用メモリセルおよび上記検査ビッ
ト用メモリセルから読み出された読み出しデータを訂正
する復号手段と、上記復号手段の誤り訂正動作を停止さ
せる誤り訂正動作停止手段と、上記データ線選択手段に
タイミング信号を供給するタイミング発生手段とを有
し、上記タイミング発生手段は、上記誤り訂正動作停止
手段からの制御信号が第1の状態の時には上記検査ビッ
トに対応する分のタイミング信号を自発的に発生し、上
記制御信号が上記第1の状態と異なる第2と状態の時に
は上記検査ビットに対応する分のタイミング信号を外部
クロックに同期して発生する半導体メモリにおいて、 上記復号手段の誤り訂正動作を停止させ、上記制御信号
を上記第2の状態にして、上記検査ビット用メモリセル
に上記半導体メモリの外部からのデータを書き込み、し
かる後に上記検査ビット用メモリセルに蓄えられたデー
タを読み出すことにより、上記検査ビット用メモリセル
のテストをする工程を有することを特徴とする半導体メ
モリのテスト方法。
2. An encoding means for adding a check bit based on an error correction code to an information bit, a plurality of word lines, a plurality of data lines, and an intersection of the plurality of word lines and the plurality of data lines. An information bit memory cell, which is provided at a predetermined position and stores the information bit, and a check bit, which is provided at a predetermined position at the intersection of the plurality of word lines and the plurality of data lines, and stores the check bit. Memory cell, data line selecting means for sequentially selecting the plurality of data lines, decoding means for correcting read data read from the information bit memory cell and the check bit memory cell, and the decoding means. The error correction operation stopping means for stopping the error correction operation and the timing generating means for supplying a timing signal to the data line selecting means. When the control signal from the error correction operation stopping means is in the first state, the generating means spontaneously generates a timing signal corresponding to the check bit, and the control signal is different from the first state. In the state of 2, the error correction operation of the decoding means is stopped and the control signal is set to the second state in a semiconductor memory which generates a timing signal corresponding to the check bit in synchronization with an external clock. A step of writing data from the outside of the semiconductor memory into the check bit memory cell and then reading the data stored in the check bit memory cell to test the check bit memory cell. A method for testing a semiconductor memory, comprising:
【請求項3】情報ビットに誤り訂正符号に基づく検査ビ
ットを付加する符号化手段と、複数のワード線と、複数
のデータ線と、上記複数のワード線と上記複数のデータ
線との交点の所定の位置に設けられ、上記情報ビットを
記憶する情報ビット用メモリセルと、上記複数のワード
線と上記複数のデータ線との交点の所定の位置に設けら
れ、上記検査ビットを記憶する検査ビット用メモリセル
と、上記複数のデータ線を順次選択するデータ線選択手
段と、上記情報ビット用メモリセルおよび上記検査ビッ
ト用メモリセルから読み出された読み出しデータを訂正
する復号手段と、上記復号手段の誤り訂正動作を停止さ
せる誤り訂正動作停止手段と、上記データ線選択手段に
タイミング信号を供給するタイミング発生手段とを有
し、上記タイミング発生手段は、上記誤り訂正動作停止
手段からの制御信号が第1の状態の時には上記検査ビッ
トに対応する分のタイミング信号を自発的に発生し、上
記制御信号が上記第1の状態と異なる第2の状態の時に
は上記検査ビットに対応する分のタイミング信号を外部
クロックに同期して発生する半導体メモリにおいて、 上記制御信号を上記第1の状態にして上記符号化手段に
情報ビットを入力し、しかる後に上記復号手段の誤り訂
正動作を停止させ、上記制御信号を上記第2の状態にし
て、上記検査ビット用メモリセルに蓄えられたデータを
読み出すことにより、上記符号化手段のテストをする工
程を有することを特徴とする半導体メモリのテスト方
法。
3. Encoding means for adding check bits based on an error correction code to information bits, a plurality of word lines, a plurality of data lines, and intersections of the plurality of word lines and the plurality of data lines. An information bit memory cell, which is provided at a predetermined position and stores the information bit, and a check bit, which is provided at a predetermined position at the intersection of the plurality of word lines and the plurality of data lines, and stores the check bit. Memory cell, data line selecting means for sequentially selecting the plurality of data lines, decoding means for correcting read data read from the information bit memory cell and the check bit memory cell, and the decoding means. The error correction operation stopping means for stopping the error correction operation and the timing generating means for supplying a timing signal to the data line selecting means. When the control signal from the error correction operation stopping means is in the first state, the generating means spontaneously generates a timing signal corresponding to the check bit, and the control signal is different from the first state. In the state of 2, in a semiconductor memory that generates a timing signal corresponding to the check bit in synchronization with an external clock, the control signal is set to the first state and the information bit is input to the encoding means, Thereafter, the error correction operation of the decoding means is stopped, the control signal is set to the second state, and the data stored in the check bit memory cell is read to test the encoding means. A method for testing a semiconductor memory, comprising:
【請求項4】情報ビットに誤り訂正符号に基づく検査ビ
ットを付加する符号化手段と、複数のワード線と、複数
のデータ線と、上記複数のワード線と上記複数のデータ
線との交点の所定の位置に設けられ、上記情報ビットを
記憶する情報ビット用メモリセルと、上記複数のワード
線と上記複数のデータ線との交点の所定の位置に設けら
れ、上記検査ビットを記憶する検査ビット用メモリセル
と、上記複数のデータ線を順次選択するデータ線選択手
段と、上記情報ビット用メモリセルおよび上記検査ビッ
ト用メモリセルから読み出された読み出しデータを訂正
する復号手段と、上記復号手段の誤り訂正動作を停止さ
せる誤り訂正動作停止手段と、上記データ線選択手段に
タイミング信号を供給するタイミング発生手段とを有
し、上記タイミング発生手段は、上記誤り訂正動作停止
手段からの制御信号が第1の状態の時には上記検査ビッ
トに対応する分のタイミング信号を自発的に発生し、上
記制御信号が上記第1の状態と異なる第2の状態の時に
は上記検査ビットに対応する分のタイミング信号を外部
クロックに同期して発生する半導体メモリにおいて、 上記制御信号を上記第2の状態にして上記情報ビット用
メモリセル及び上記検査ビット用メモリセルに上記半導
体メモリの外部からのデータを書き込み、しかる後に上
記復号手段の誤り訂正動作を停止させない状態で、上記
復号手段により訂正されたデータを読み出すことによ
り、上記復号手段のテストをする工程を有することを特
徴とする半導体メモリのテスト方法。
4. An encoding means for adding a check bit based on an error correction code to an information bit, a plurality of word lines, a plurality of data lines, and an intersection of the plurality of word lines and the plurality of data lines. An information bit memory cell, which is provided at a predetermined position and stores the information bit, and a check bit, which is provided at a predetermined position at the intersection of the plurality of word lines and the plurality of data lines, and stores the check bit. Memory cell, data line selecting means for sequentially selecting the plurality of data lines, decoding means for correcting read data read from the information bit memory cell and the check bit memory cell, and the decoding means. The error correction operation stopping means for stopping the error correction operation and the timing generating means for supplying a timing signal to the data line selecting means. When the control signal from the error correction operation stopping means is in the first state, the generating means spontaneously generates a timing signal corresponding to the check bit, and the control signal is different from the first state. In a semiconductor memory that generates a timing signal corresponding to the check bit in synchronization with an external clock in the state of 2, the control signal is set to the second state and the memory cell for the information bit and the check bit A step of writing the data from the outside of the semiconductor memory into the memory cell, and thereafter testing the decoding means by reading the data corrected by the decoding means without stopping the error correction operation of the decoding means. A method for testing a semiconductor memory, comprising:
JP60139792A 1985-04-17 1985-06-26 Semiconductor memory and its testing method Expired - Lifetime JPH0746517B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP60139792A JPH0746517B2 (en) 1985-06-26 1985-06-26 Semiconductor memory and its testing method
US06/853,230 US4726021A (en) 1985-04-17 1986-04-17 Semiconductor memory having error correcting means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60139792A JPH0746517B2 (en) 1985-06-26 1985-06-26 Semiconductor memory and its testing method

Publications (2)

Publication Number Publication Date
JPS621198A JPS621198A (en) 1987-01-07
JPH0746517B2 true JPH0746517B2 (en) 1995-05-17

Family

ID=15253530

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60139792A Expired - Lifetime JPH0746517B2 (en) 1985-04-17 1985-06-26 Semiconductor memory and its testing method

Country Status (1)

Country Link
JP (1) JPH0746517B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172649A (en) * 2004-12-17 2006-06-29 Fujitsu Ltd Semiconductor memory

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02260200A (en) * 1989-03-30 1990-10-22 Sharp Corp Plural-bit parallel function test method in semiconductor storage having plural-bit parallel test function
JP2009093714A (en) 2007-10-04 2009-04-30 Panasonic Corp Semiconductor memory device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5593598A (en) * 1979-01-05 1980-07-16 Nec Corp Memory unit
JPS5622292A (en) * 1979-07-30 1981-03-02 Nippon Telegr & Teleph Corp <Ntt> Memory element
JPS58185097A (en) * 1982-04-23 1983-10-28 Hitachi Ltd Error detecting and correcting device
JPS6011952A (en) * 1983-07-01 1985-01-22 Mitsubishi Electric Corp Semiconductor memory device with error correcting means

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006172649A (en) * 2004-12-17 2006-06-29 Fujitsu Ltd Semiconductor memory
JP4578226B2 (en) * 2004-12-17 2010-11-10 富士通セミコンダクター株式会社 Semiconductor memory

Also Published As

Publication number Publication date
JPS621198A (en) 1987-01-07

Similar Documents

Publication Publication Date Title
US4726021A (en) Semiconductor memory having error correcting means
US7203115B2 (en) Semiconductor memory and method for operating the same
US6009548A (en) Error correcting code retrofit method and apparatus for multiple memory configurations
US7275200B2 (en) Transparent error correcting memory that supports partial-word write
US7426683B2 (en) Semiconductor memory device equipped with error correction circuit
US5148398A (en) Semiconductor memory device with built-in test circuit and method for testing the same
JPS6061837A (en) Error corrector
JPS6273500A (en) Semiconductor memory device
JP3039455B2 (en) Semiconductor memory device test method and semiconductor memory device
EP0186719A1 (en) Device for correcting errors in memories
US5966389A (en) Flexible ECC/parity bit architecture
US4926426A (en) Error correction check during write cycles
JPS6255180B2 (en)
JPS60133599A (en) Semiconductor memory device
JPS6116351A (en) Single error correction circuit for system memory
US7656322B2 (en) Semiconductor memory device having error correction function
JP2669303B2 (en) Semiconductor memory with bit error correction function
US4905242A (en) Pipelined error detection and correction apparatus with programmable address trap
JP2003059290A (en) Semiconductor memory
JPH0544760B2 (en)
JPH0746517B2 (en) Semiconductor memory and its testing method
TWI748507B (en) Data access system, and method for operating a data access system
JPH02270200A (en) Semiconductor memory
US4949343A (en) Error detecting circuit for a decoder
JPH05128895A (en) Semiconductor device

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term