JPH117794A - Error correction circuit and semiconductor memory device - Google Patents

Error correction circuit and semiconductor memory device

Info

Publication number
JPH117794A
JPH117794A JP9158347A JP15834797A JPH117794A JP H117794 A JPH117794 A JP H117794A JP 9158347 A JP9158347 A JP 9158347A JP 15834797 A JP15834797 A JP 15834797A JP H117794 A JPH117794 A JP H117794A
Authority
JP
Japan
Prior art keywords
data
memory cell
memory
transistor
error correction
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.)
Withdrawn
Application number
JP9158347A
Other languages
Japanese (ja)
Inventor
Nobuhiro Tomari
伸広 泊
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.)
Oki Electric Industry Co Ltd
Oki Micro Design Miyazaki Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Oki Micro Design Miyazaki Co 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 Oki Electric Industry Co Ltd, Oki Micro Design Miyazaki Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP9158347A priority Critical patent/JPH117794A/en
Publication of JPH117794A publication Critical patent/JPH117794A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain an error correction circuit whose circuit constitution is simple and by which the bit error of an arbitrary memory cell can be corrected. SOLUTION: When data is to be stored, e.g. a memory cell unit 100 is selected, and word data D7 to D0 are stored. At this time, the same data Dk [where (k) represents any integer out of 0 to 7] is stored in nonvolatile memory transistors TM1k, TM2k. When data is to be read out, word lines WL0, WL1 are set to '1' by an address decoder ADR0, and cell selection transistors TW1k, TW2k are turned on simultaneously. Memory transistors TM's are turned on when stored data is '0', and they are turned off when the data is '1'. The TM's are degraded in such a way that the stored data is changed surely from '0' to '1'. Data in which stored data in transistors TM1k, TM2k are ANDed are outputted to a bit line BL0k. As a result, even when any TM is degraded, read-out data can be corrected.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、誤り訂正回路およ
び誤り訂正機能を有する半導体記憶装置に関し、EEP
ROM等の電気的に書き込みが可能な不揮発性の半導体
記憶装置のメモリセル劣化によるビット誤りを訂正でき
る誤り訂正回路に関する。
The present invention relates to an error correction circuit and a semiconductor memory device having an error correction function, and more particularly to an EEP.
The present invention relates to an error correction circuit capable of correcting a bit error due to deterioration of a memory cell of an electrically writable nonvolatile semiconductor memory device such as a ROM.

【0002】[0002]

【従来の技術】従来、このような半導体記憶装置として
は、例えば、データ8ビットに対して、少なくとも4ビ
ットの誤り訂正ビット(パリティビット)を持ち、8ビ
ット中の1ビットの誤りに対してのみ訂正が可能な誤り
訂正回路を備えたものがあった。また、特開平1−13
3300号公報に開示されたものがあった。これは、セ
ンス電圧を変えて同一のメモリセルから複数回データを
読み出し、前記複数回読み出したデータの値と1つのパ
リティビットとに基づいて誤り訂正回路によりビット誤
りを訂正するものであった。
2. Description of the Related Art Conventionally, such a semiconductor memory device has, for example, at least four error correction bits (parity bits) for eight data bits and one error bit out of eight bits. Some have been provided with an error correction circuit that can correct only. Also, Japanese Patent Application Laid-Open No. 1-13
There was one disclosed in Japanese Patent No. 3300. In this method, data is read from the same memory cell a plurality of times by changing the sense voltage, and a bit error is corrected by an error correction circuit based on the value of the data read a plurality of times and one parity bit.

【0003】[0003]

【発明が解決しようとする課題】しかしながら上記従来
の半導体記憶装置においては、メモリセルアレイ以外の
領域に誤り訂正回路を設けなければならず、また誤り訂
正回路の回路構成が複雑であるため、例えば誤り訂正機
能持たない半導体記憶装置を誤り訂正機能を有する半導
体記憶装置に変更しようとする場合には、大幅な設計変
更が必要であるという問題があった。また読み出しに時
間がかかるという問題があった。また1ワード中の1ビ
ットについてのみ訂正が可能であり、同一ワード中に2
ビットの誤りが発生すると、誤り訂正ができないという
問題があった。さらにメモリセルアレイにおいて、誤り
訂正をするメモリセル(冗長メモリセル)の領域(冗長
領域)と誤り訂正をしないメモリセル(非冗長メモリセ
ル)の領域(非冗長領域)とを用途に応じて設定するこ
とができないという問題があった。
However, in the above-mentioned conventional semiconductor memory device, an error correction circuit must be provided in a region other than the memory cell array, and the circuit configuration of the error correction circuit is complicated. When attempting to change a semiconductor memory device having no correction function to a semiconductor memory device having an error correction function, there is a problem that a significant design change is required. There is also a problem that it takes time to read. Only one bit in one word can be corrected, and two bits in the same word can be corrected.
When a bit error occurs, there is a problem that error correction cannot be performed. Further, in the memory cell array, a region (redundant region) of a memory cell (redundant memory cell) for performing error correction and a region (non-redundant region) of a memory cell (non-redundant memory cell) for which error correction is not performed are set according to applications. There was a problem that it was not possible.

【0004】本発明はこのような従来の問題を解決する
ものであり、簡単な回路構成で任意のメモリセルのビッ
ト誤りを訂正することができる誤り訂正回路および半導
体記憶装置を提供することを目的とする。さらにメモリ
セルアレイの冗長領域と非冗長領域とを用途に応じてプ
ログラマブルに変更することができる半導体記憶装置を
提供することを目的とする。
An object of the present invention is to solve such a conventional problem and to provide an error correction circuit and a semiconductor memory device which can correct a bit error of an arbitrary memory cell with a simple circuit configuration. And It is still another object of the present invention to provide a semiconductor memory device capable of programmably changing a redundant region and a non-redundant region of a memory cell array according to a use.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
めに本発明の誤り訂正回路は、第1〜第N(Nは2以上
の整数)のメモリセルに同じデータを記憶し、前記第1
〜第Nのメモリセルに記憶したN個のデータのANDま
たはORをとったデータを誤り訂正データとして出力す
ることを特徴とする。
In order to achieve the above object, an error correction circuit according to the present invention stores the same data in first to Nth (N is an integer of 2 or more) memory cells, 1
To N-number of data stored in the N-th memory cell are output as error correction data.

【0006】請求項2記載の誤り訂正回路は、請求項1
において、前記第1〜第Nのメモリセルのデータ出力電
極を共通接続し、前記第1〜第Nのメモリセルから前記
N個のデータを同時に出力させることにより、前記AN
DまたはORをとったデータを生成することを特徴とす
る。
An error correction circuit according to a second aspect of the present invention is the first aspect of the invention.
, The data output electrodes of the first to Nth memory cells are connected in common, and the N data are simultaneously output from the first to Nth memory cells, whereby the AN
It is characterized by generating data in which D or OR is taken.

【0007】請求項3記載の誤り訂正回路は、請求項2
において、前記メモリセルが、電気的にデータの消去お
よび書き込みが可能な不揮発性のメモリセルであること
を特徴とする。
The error correction circuit according to the third aspect is the second aspect.
, Wherein the memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.

【0008】請求項4記載の誤り訂正回路は、請求項3
において、前記第1〜第Nのメモリセルと、ビットライ
ンと、同時に第1のレベルとなる第1〜第Nのワードラ
インとを備え、前記第k(kは1〜Nまでのいずれかの
整数)のメモリセルは、第kのセル選択トランジスタ
と、第kのメモリトランジスタから成り、第kのセル選
択トランジスタは、前記第kのワードラインに接続され
たゲートと、前記ビットラインに接続された第1電極
と、第2電極とを有し、前記ワードラインが第1のレベ
ルのときONし、前記ワードラインが第2のレベルのと
きOFFするトランジスタであり、前記第kのメモリト
ランジスタは、センス電圧が入力されるコントロールゲ
ートと、データを記憶するフローティングゲートと、前
記第kのセル選択トランジスタの前記第2電極に接続さ
れた第1電極と、アレイグランドに接続された第2電極
とを有する不揮発性のメモリトランジスタであることを
特徴とする。
An error correction circuit according to a fourth aspect of the present invention is the third aspect of the invention.
Wherein the memory cell includes the first to N-th memory cells, a bit line, and first to N-th word lines which are simultaneously at a first level, and the k-th (k is any one of 1 to N) (Integer) memory cell includes a k-th cell selection transistor and a k-th memory transistor, and the k-th cell selection transistor is connected to the gate connected to the k-th word line and to the bit line. A transistor having a first electrode and a second electrode, the transistor being turned on when the word line is at a first level, and being turned off when the word line is at a second level. A control gate to which a sense voltage is input, a floating gate for storing data, a first electrode connected to the second electrode of the k-th cell selection transistor, Characterized in that it is a non-volatile memory transistor having a second electrode connected to the ground.

【0009】本発明の請求項5記載の半導体記憶装置
は、第1〜第N(Nは2以上の整数)のメモリセルを有
する誤り訂正回路が複数形成されたメモリセルアレイを
備え、データ記憶の際に、入力された1つのデータに対
して誤り訂正回路を1つ選択し、この誤り訂正回路に前
記データを記憶させ、またデータ読み出しの際に、前記
データを記憶させた誤り訂正回路を選択し、この誤り訂
正回路から前記データを読み出し、前記選択された誤り
訂正回路は、データ記憶の際に、前記第1〜第Nのメモ
リセルに同じ前記入力データを記憶し、データ読み出し
の際に、前記第1〜第Nのメモリセルに記憶されている
N個のデータのANDまたはORをとったデータを誤り
訂正データとして出力するものであることを特徴とす
る。
According to a fifth aspect of the present invention, there is provided a semiconductor memory device including a memory cell array in which a plurality of error correction circuits having first to Nth (N is an integer of 2 or more) memory cells are formed. At this time, one error correction circuit is selected for one input data, the data is stored in the error correction circuit, and the error correction circuit storing the data is selected when reading the data. Then, the data is read from the error correction circuit, and the selected error correction circuit stores the same input data in the first to Nth memory cells at the time of data storage. , And outputs data obtained by ANDing or ORing the N pieces of data stored in the first to Nth memory cells as error correction data.

【0010】請求項6記載の半導体記憶装置は、請求項
5において、前記誤り訂正回路が、前記第1〜第Nのメ
モリセルのデータ出力電極を同一のビットラインに接続
し、前記第1〜第Nのメモリセルから前記N個のデータ
を同時に出力させることにより、前記ANDまたはOR
をとったデータを前記ビットライン上に生成するもので
あることを特徴とする。
According to a sixth aspect of the present invention, in the semiconductor memory device according to the fifth aspect, the error correction circuit connects the data output electrodes of the first to Nth memory cells to the same bit line, and By simultaneously outputting the N data from the Nth memory cell, the AND or OR
Is generated on the bit line.

【0011】請求項7記載の半導体記憶装置は、請求項
6において、前記メモリセルが、電気的にデータの消去
および書き込みが可能な不揮発性のメモリセルであるこ
とを特徴とする。
According to a seventh aspect of the present invention, in the semiconductor memory device according to the sixth aspect, the memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.

【0012】請求項8記載の半導体記憶装置は、請求項
7において、前記複数の誤り訂正回路と、前記誤り訂正
回路ごとに設けられたビットラインと、前記誤り訂正回
路ごとに設けられた第1〜第Nのワードラインと、前記
第1〜第Nのワードラインを同時に第1のレベルとする
ことにより、前記複数の誤り訂正回路のいずれかを選択
するワード選択手段とを備え、前記誤り訂正回路の前記
第k(kは1〜Nまでのいずれかの整数)のメモリセル
は、第kのセル選択トランジスタと第kのメモリトラン
ジスタから成り、第kのセル選択トランジスタは、前記
第kのワードラインに接続されたゲートと、前記ビット
ラインに接続された第1電極と、第2電極とを有し、前
記ワードラインが第1のレベルのときONし、前記ワー
ドラインが第2のレベルのときOFFするトランジスタ
であり、前記第kのメモリトランジスタは、センス電圧
が入力されるコントロールゲートと、データを記憶する
フローティングゲートと、前記第kのセル選択トランジ
スタの前記第2電極に接続された第1電極と、アレイグ
ランドに接続された第2電極とを有する不揮発性のメモ
リトランジスタであることを特徴とする。
The semiconductor memory device according to claim 8 is the semiconductor memory device according to claim 7, wherein the plurality of error correction circuits, a bit line provided for each error correction circuit, and a first line provided for each error correction circuit. To the N-th word line and word selecting means for selecting any of the plurality of error correction circuits by simultaneously setting the first to N-th word lines to the first level. The k-th (k is any integer from 1 to N) memory cell of the circuit includes a k-th cell selection transistor and a k-th memory transistor, and the k-th cell selection transistor is the k-th cell selection transistor. A gate connected to a word line; a first electrode connected to the bit line; and a second electrode. The gate is turned on when the word line is at a first level. A k-th memory transistor connected to a control gate to which a sense voltage is input, a floating gate for storing data, and the second electrode of the k-th cell selection transistor. A non-volatile memory transistor having a first electrode and a second electrode connected to an array ground.

【0013】請求項9記載の半導体記憶装置は、誤り訂
正回路を構成する第1〜第N(Nは2以上の整数)の冗
長メモリセルと、非冗長メモリセルとが形成されたメモ
リセルアレイと、前記第1〜第Nの冗長メモリセルのデ
ータ出力電極および前記非冗長メモリセルのデータ出力
電極が共通接続されたビットラインとを備え、データ記
憶の際に、入力された1つのデータに対して前記誤り訂
正回路または非冗長メモリセルを選択し、この誤り訂正
回路または非冗長メモリセルに前記データを記憶させ、
またデータ読み出しの際に、前記データを記憶させた誤
り訂正回路または非冗長メモリセルを選択し、この誤り
訂正回路または非冗長メモリセルから前記データを読み
出し、前記誤り訂正回路は、データ記憶の際に、前記第
1〜第Nの冗長メモリセルに同じ前記入力データを記憶
し、データ読み出しの際に、前記第1〜第Nの冗長メモ
リセルに記憶されているN個のデータのANDまたはO
Rをとったデータを誤り訂正データとして前記ビットラ
イン上に生成するものであることを特徴とする。
According to a ninth aspect of the present invention, in the semiconductor memory device, a memory cell array in which first to Nth (N is an integer of 2 or more) redundant memory cells and a non-redundant memory cell forming an error correction circuit are formed. And a bit line to which the data output electrodes of the first to Nth redundant memory cells and the data output electrodes of the non-redundant memory cells are connected in common. Selecting the error correction circuit or the non-redundant memory cell, storing the data in the error correction circuit or the non-redundant memory cell,
Further, at the time of data reading, an error correction circuit or a non-redundant memory cell storing the data is selected, and the data is read from the error correction circuit or the non-redundant memory cell. The same input data is stored in the first to Nth redundant memory cells, and at the time of data reading, AND or O of N data stored in the first to Nth redundant memory cells is performed.
Data obtained by taking R is generated as error correction data on the bit line.

【0014】請求項10記載の半導体記憶装置は、請求
項9において、前記メモリセルが、電気的にデータの消
去および書き込みが可能な不揮発性のメモリセルである
ことを特徴とする。
According to a tenth aspect of the present invention, in the semiconductor memory device according to the ninth aspect, the memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.

【0015】請求項11記載の半導体記憶装置は、請求
項10において、前記誤り訂正回路と、前記非冗長メモ
リセルと、前記ビットラインと、前記誤り訂正回路に対
して設けられた第1〜第Nのワードラインと、前記非冗
長メモリセルに対して設けられた第(N+1)のワード
ラインと、前記第1〜第(N+1)のワードラインを選
択するワード選択手段とを備え、前記第k(kは1〜N
までのいずれかの整数)の冗長メモリセルは、第kのセ
ル選択トランジスタと第kのメモリトランジスタから成
り、また前記非冗長メモリセルは、第(N+1)のセル
選択トランジスタと第(N+1)のメモリトランジスタ
から成り、前記第i(iは1〜(N+1)までのいずれ
かの整数)のセル選択トランジスタは、前記第iのワー
ドラインに接続されたゲートと、前記ビットラインに接
続された第1電極と、第2電極とを有し、前記ワードラ
インが第1のレベルのときONし、前記ワードラインが
第2のレベルのときOFFするトランジスタであり、前
記第iのメモリトランジスタは、センス電圧が入力され
るコントロールゲートと、データを記憶するフローティ
ングゲートと、前記第kのセル選択トランジスタの前記
第2電極に接続された第1電極と、アレイグランドに接
続された第2電極とを有する不揮発性のメモリトランジ
スタであり、前記ワード選択手段は、前記第1〜第Nの
ワードラインを同時に第1のレベルとすることにより前
記誤り訂正回路を選択し、また前記第(N+1)のワー
ドラインを第1のレベルとすることにより前記非冗長メ
モリセルを選択することを特徴とする。
The semiconductor memory device according to claim 11 is the semiconductor memory device according to claim 10, wherein the error correction circuit, the non-redundant memory cell, the bit line, and the first to An Nth word line, a (N + 1) th word line provided for the non-redundant memory cell, and word selecting means for selecting the first to (N + 1) th word lines. (K is 1 to N
) Is a kth cell selection transistor and a kth memory transistor, and the non-redundant memory cell is a (N + 1) th cell selection transistor and a (N + 1) th cell selection transistor. The i-th (i is an integer from 1 to (N + 1)) cell select transistor, comprising a memory transistor, a gate connected to the i-th word line, and a i-th cell select transistor connected to the bit line. A transistor having one electrode and a second electrode, being turned on when the word line is at a first level, and turned off when the word line is at a second level; A control gate to which a voltage is input, a floating gate for storing data, and a second electrode connected to the second electrode of the kth cell selection transistor. A non-volatile memory transistor having a first electrode and a second electrode connected to an array ground, wherein the word selecting means simultaneously sets the first to Nth word lines to a first level. And the non-redundant memory cell is selected by setting the (N + 1) th word line to the first level.

【0016】本発明の請求項12記載の半導体記憶装置
は、第1〜第N(Nは2以上の整数)のメモリセルが形
成されたメモリセルアレイと、前記第1〜第Nのメモリ
セルのデータ出力電極が共通接続されたビットラインと
を備え、外部からの設定が第1の設定のときに、前記1
〜第Mのメモリセルから第k(は1〜Nのいずれかの整
数)のメモリセルを非冗長メモリセルとして選択し、外
部からの設定が第2の設定のときに、前記1〜第Nのメ
モリセルを冗長メモリセルとして同時に選択し、データ
記憶の際に、入力されたデータを前記冗長メモリセルか
らなる誤り訂正回路または前記非冗長メモリセルに記憶
させ、またデータ読み出しの際に、前記データを記憶さ
せた誤り訂正回路または非冗長メモリセルから前記デー
タを読み出し、前記誤り訂正回路は、データ記憶の際
に、前記第1〜第Nの冗長メモリセルに同じ前記入力デ
ータを記憶し、データ読み出しの際に、前記第1〜第N
の冗長メモリセルに記憶されているM個のデータのAN
DまたはORをとったデータを誤り訂正データとして前
記ビットライン上に生成するものであることを特徴とす
る。
According to a twelfth aspect of the present invention, there is provided a semiconductor memory device, comprising: a memory cell array in which first to Nth (N is an integer of 2 or more) memory cells are formed; A data output electrode including a bit line connected in common, and when the external setting is the first setting,
The kth (where n is an integer from 1 to N) memory cells are selected as non-redundant memory cells from the Mth to Mth memory cells, and when the external setting is the second setting, the first to Nth memory cells are selected. Memory cells are simultaneously selected as redundant memory cells, and at the time of data storage, input data is stored in an error correction circuit composed of the redundant memory cells or the non-redundant memory cells. The data is read from the error correction circuit or the non-redundant memory cell storing the data, and the error correction circuit stores the same input data in the first to Nth redundant memory cells during data storage; When reading data, the first to Nth
Of M data stored in the redundant memory cell
Data obtained by taking D or OR is generated as error correction data on the bit line.

【0017】請求項13記載の半導体記憶装置は、請求
項12において、前記メモリセルが、電気的にデータの
消去および書き込みが可能な不揮発性のメモリセルであ
ることを特徴とする。
According to a thirteenth aspect of the present invention, in the semiconductor memory device according to the twelfth aspect, the memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.

【0018】請求項14記載の半導体記憶装置は、請求
項13において、前記第1〜第Nのメモリセルと、前記
ビットラインと、第1〜第Nのワードラインと、前記第
1、第2の設定に従って前記第1〜第Nのワードライン
を選択するワード選択手段とを備え、前記第k(kは1
〜Nまでのいずれかの整数)のメモリセルは、第kのセ
ル選択トランジスタと第kのメモリトランジスタから成
り、前記第kのセル選択トランジスタは、前記第kのワ
ードラインに接続されたゲートと、前記ビットラインに
接続された第1電極と、第2電極とを有し、前記ワード
ラインが第1のレベルのときONし、前記ワードライン
が第2のレベルのときOFFするトランジスタであり、
前記第kのメモリトランジスタは、センス電圧が入力さ
れるコントロールゲートと、データを記憶するフローテ
ィングゲートと、前記第kのセル選択トランジスタの前
記第2電極に接続された第1電極と、アレイグランドに
接続された第2電極とを有する不揮発性のメモリトラン
ジスタであり、前記ワード選択手段は、第1の設定のと
きに、前記第kのワードラインを第1のレベルとするこ
とにより前記第kのメモリセルを選択し、第2の設定の
ときに、前記1〜第Nのワードラインを同時に第1のレ
ベルとすることにより前記第1〜第Nのメモリセルを同
時に選択することを特徴とする。
A semiconductor memory device according to a fourteenth aspect is the semiconductor memory device according to the thirteenth aspect, wherein the first to Nth memory cells, the bit lines, the first to Nth word lines, and the first and second memory cells are provided. And word selecting means for selecting the first to Nth word lines in accordance with the setting of (k).
) Of the memory cell includes a k-th cell selection transistor and a k-th memory transistor, and the k-th cell selection transistor has a gate connected to the k-th word line. A first electrode connected to the bit line, and a second electrode, the transistor being turned on when the word line is at a first level, and turned off when the word line is at a second level.
The k-th memory transistor has a control gate to which a sense voltage is input, a floating gate for storing data, a first electrode connected to the second electrode of the k-th cell selection transistor, and an array ground. A non-volatile memory transistor having a second electrode connected thereto, wherein the word selecting means sets the k-th word line to a first level during a first setting, thereby setting the k-th word line to a first level. A memory cell is selected, and at the time of the second setting, the first to Nth word lines are simultaneously set to the first level to simultaneously select the first to Nth memory cells. .

【0019】本発明の請求項15の半導体記憶装置は、
第1〜第M(Mは3以上の整数)のメモリセルが形成さ
れたメモリセルアレイと、前記第1〜第Mのメモリセル
のデータ出力電極が共通接続されたビットラインとを備
え、外部からの設定が第1の設定のときに、前記1〜第
Mのメモリセルから第p(pは1〜Mのいずれかの整
数)のメモリセルを非冗長メモリセルとして選択し、外
部からの設定が第2の設定のときに、前記1〜第Mのメ
モリセルから第1〜q(qは2〜(M−1)のいずれか
の整数)のメモリセルを冗長メモリセルとして同時に選
択するか、または第r(rは(q+1)〜Mまでのいず
れかの整数))のメモリセルを非冗長メモリセルとして
選択し、外部からの設定が第3の設定のときに、前記1
〜第Mのメモリセルを誤り訂正回路を構成する冗長メモ
リセルとして同時に選択し、データ記憶の際に、入力さ
れたデータを前記冗長メモリセルからなる誤り訂正回路
または前記非冗長メモリセルに記憶させ、またデータ読
み出しの際に、前記データを記憶させた誤り訂正回路ま
たは非冗長メモリセルから前記データを読み出し、前記
誤り訂正回路は、データ記憶の際に、前記冗長メモリセ
ルに同じ前記入力データを記憶し、データ読み出しの際
に、前記冗長メモリセルに記憶されているM個のデータ
のANDまたはORをとったデータを誤り訂正データと
して前記ビットライン上に生成するものであることを特
徴とする。
According to a fifteenth aspect of the present invention, there is provided a semiconductor memory device comprising:
A memory cell array in which first to Mth (M is an integer of 3 or more) memory cells are formed; and a bit line to which data output electrodes of the first to Mth memory cells are commonly connected. Is set to the first setting, the p-th (p is an integer from 1 to M) memory cell is selected as a non-redundant memory cell from the first to M-th memory cells, and an external setting is performed. Is the second setting, whether the first to qth memory cells (q is any integer from 2 to (M−1)) are simultaneously selected as redundant memory cells from the first to Mth memory cells. Or the r-th (r is an integer from (q + 1) to M) memory cell is selected as a non-redundant memory cell, and when the external setting is the third setting,
To M-th memory cells are simultaneously selected as redundant memory cells constituting an error correction circuit, and when data is stored, input data is stored in the error correction circuit including the redundant memory cells or the non-redundant memory cell. Also, at the time of data reading, the data is read from the error correction circuit or the non-redundant memory cell storing the data, and the error correction circuit stores the same input data in the redundant memory cell at the time of data storage. When storing and reading data, data obtained by ANDing or ORing the M data stored in the redundant memory cell is generated on the bit line as error correction data. .

【0020】請求項16記載の半導体記憶装置は、請求
項15において、前記メモリセルが、電気的にデータの
消去および書き込みが可能な不揮発性のメモリセルであ
ることを特徴とする。
A semiconductor memory device according to a sixteenth aspect is the semiconductor memory device according to the fifteenth aspect, wherein the memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.

【0021】請求項17記載の半導体記憶装置は、請求
項16において、前記第1〜第Mのメモリセルと、前記
ビットラインと、第1〜第Mのワードラインと、前記第
1〜第3の設定に従って前記第1〜第Mのワードライン
を選択するワード選択手段とを備え、前記第s(sは1
〜Mまでのいずれかの整数)のメモリセルは、第sのセ
ル選択トランジスタと第sのメモリトランジスタから成
り、前記第sのセル選択トランジスタは、前記第sのワ
ードラインに接続されたゲートと、前記ビットラインに
接続された第1電極と、第2電極とを有し、前記ワード
ラインが第1のレベルのときONし、前記ワードライン
が第2のレベルのときOFFするトランジスタであり、
前記第sのメモリトランジスタは、センス電圧が入力さ
れるコントロールゲートと、データを記憶するフローテ
ィングゲートと、前記第kのセル選択トランジスタの前
記第2電極に接続された第1電極と、アレイグランドに
接続された第2電極とを有する不揮発性のメモリトラン
ジスタであり、前記ワード選択手段は、第1の設定のと
きに、前記第pのワードラインを第1のレベルとするこ
とにより前記第pのメモリセルを選択し、第2の設定の
ときに、前記第1〜qのワードラインを同時に選択する
か、または前記第rのワードラインを選択することによ
り、前記第1〜qのメモリセルを同時に選択するか、ま
たは前記第rのメモリセルを選択し、第3の設定のとき
に、前記1〜第Mのワードラインを同時に第1のレベル
とすることにより前記第1〜第Mのメモリセルを同時に
選択することを特徴とする。
A semiconductor memory device according to a seventeenth aspect is the semiconductor memory device according to the sixteenth aspect, wherein the first to Mth memory cells, the bit lines, the first to Mth word lines, and the first to third Mth memory cells are provided. Word selecting means for selecting the first to Mth word lines in accordance with the setting of
S-th memory cell includes an s-th cell selection transistor and an s-th memory transistor, wherein the s-th cell selection transistor has a gate connected to the s-th word line. A first electrode connected to the bit line, and a second electrode, the transistor being turned on when the word line is at a first level, and turned off when the word line is at a second level.
The s-th memory transistor has a control gate to which a sense voltage is input, a floating gate for storing data, a first electrode connected to the second electrode of the k-th cell selection transistor, and an array ground. A non-volatile memory transistor having a second electrode connected thereto, wherein the word selecting means sets the p-th word line to a first level at the time of a first setting, thereby setting the p-th word line to a first level. By selecting a memory cell and, at the time of the second setting, simultaneously selecting the first to q-th word lines or selecting the r-th word line, By selecting the memory cells at the same time or selecting the r-th memory cell, and setting the first to M-th word lines to the first level at the time of the third setting. And selects the serial first to the memory cells of the M simultaneously.

【0022】[0022]

【発明の実施の形態】本発明の第1の実施形態を説明す
る前に、誤り訂正機能を持たないEEPROMについて
説明する。図1は誤り訂正機能を持たないEEPROM
の構成を示す図である。ここでは、アドレスデータを2
ビット構成とし、ワードデータを8ビット(1バイト)
構成とする。アドレスデータのアドレスビットをA1、
A0とし、ワードデータのワードビットをD7、D6…
D0とする。アドレスビットA0はコラム選択のための
データであり、アドレスビットA1はロー選択のための
データである。尚、図1にはデータの読み出し動作をす
るための回路のみ示してあり、データの記憶動作をする
ための回路は図示していない。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Before describing a first embodiment of the present invention, an EEPROM having no error correction function will be described. Figure 1 shows an EEPROM without error correction function
FIG. 3 is a diagram showing the configuration of FIG. Here, the address data is 2
8-bit (1 byte) word data with bit configuration
Configuration. The address bits of the address data are A1,
A0, and the word bits of the word data are D7, D6,.
D0. Address bit A0 is data for column selection, and address bit A1 is data for row selection. FIG. 1 shows only a circuit for performing a data read operation, and does not illustrate a circuit for performing a data storage operation.

【0023】図1に示すEEPROMは、メモリセルア
レイ5と、2本のアドレスバスAB0、AB1と、ロー
デコード部2と、コラムデコード部3と、センスアンプ
部4と、8本のデータバスDB0、DB1…DB7(D
B1〜DB6は図示省略)とを有する。アドレスバスA
B0にはアドレスビットA0が入力され、アドレスバス
AB1にはアドレスビットA1が入力される。
The EEPROM shown in FIG. 1 has a memory cell array 5, two address buses AB0 and AB1, a row decode unit 2, a column decode unit 3, a sense amplifier unit 4, and eight data buses DB0, DB1 ... DB7 (D
B1 to DB6 are not shown). Address bus A
Address bit A0 is input to B0, and address bit A1 is input to address bus AB1.

【0024】ローデコード部2は、アドレスビットA1
に応じてワードラインWL0またはWL1を選択するも
のであり、アドレスデコーダADR0およびADR1を
有する。アドレスデコーダADR0の出力端子はワード
ラインWL0に接続されており、またアドレスデコーダ
ADR1の出力端子はワードラインWL1に接続されて
いる。
The row decode unit 2 includes an address bit A1
To select the word line WL0 or WL1 in accordance with the address decoder A, and has address decoders ADR0 and ADR1. The output terminal of the address decoder ADR0 is connected to the word line WL0, and the output terminal of the address decoder ADR1 is connected to the word line WL1.

【0025】コラムデコード部3は、アドレスビットA
1に応じてビットラインBL00、BL01…BL07
またはビットラインBL10、BL11…BL17を選
択するものであり、アドレスデコーダADC0およびA
DC1と、コラム選択トランジスタTC00、TC01
…TC07、TC10、TC11…TC17(TC01
〜TC06およびTC11…TC16は図示省略)とを
有する。
The column decode unit 3 has an address bit A
The bit lines BL00, BL01,.
Alternatively, bit lines BL10, BL11... BL17 are selected, and address decoders ADC0 and ADC0 are selected.
DC1 and column select transistors TC00, TC01
... TC07, TC10, TC11 ... TC17 (TC01
TC06 and TC11... TC16 are not shown).

【0026】メモリセルアレイ5には、それぞれ8ビッ
トのデータ記憶容量を有する同一構成のメモリセルユニ
ット500、501、510、511がマトリクス状に
配置されている。図1にはメモリセルユニット500、
501の内部構成のみを図示してある。メモリセルユニ
ット500は、セル選択トランジスタTW0、TW1…
TW7(TW1〜TW6は図示省略)と、メモリトラン
ジスタTM0、TM1…TM7、(TM1〜TM6は図
示省略)と、センスワード選択トランジスタTSWとを
有する。メモリトランジスタTMは、フローティングゲ
ートとコントロールゲートとを有し、フローティングゲ
ートに電荷を注入し、あるいはフローティングゲートか
ら電荷を引き抜くことにより、1ビットのデータを記憶
するトランジスタである。メモリトランジスタTMk
(kは0〜7のいずれかの整数)にはワードビットDk
が記憶される。
In the memory cell array 5, memory cell units 500, 501, 510, and 511 having the same configuration and having a data storage capacity of 8 bits are arranged in a matrix. FIG. 1 shows a memory cell unit 500,
Only the internal configuration of 501 is shown. The memory cell unit 500 includes cell selection transistors TW0, TW1,.
TW7 (TW1 to TW6 are not shown), memory transistors TM0, TM1,..., TM7 (TM1 to TM6 are not shown), and a sense word select transistor TSW. The memory transistor TM is a transistor that has a floating gate and a control gate, and stores 1-bit data by injecting charges into or extracting charges from the floating gate. Memory transistor TMk
(K is an integer from 0 to 7) is a word bit Dk
Is stored.

【0027】メモリセルユニット500において、セル
選択トランジスタTW0〜TW7およびセンスワード選
択トランジスタTSWのゲート電極はいずれもワードラ
インWL0に接続されている。セル選択トランジスタT
Wkのドレイン電極はビットラインBL0kに接続され
ている。センスワード選択トランジスタTSWのドレイ
ン電極はセンスラインSL0に接続されている。セル選
択トランジスタTWkのソース電極はメモリトランジス
タTMkのドレイン電極に接続されている。センスワー
ド選択トランジスタTSWのソース電極はメモリトラン
ジスタTM0〜TM7の共通接続されたコントロールゲ
ート電極に接続されている。メモリトランジスタTMの
ソース電極は、アレイグラウンドAGに接続されてい
る。
In the memory cell unit 500, the gate electrodes of the cell selection transistors TW0 to TW7 and the sense word selection transistor TSW are all connected to the word line WL0. Cell selection transistor T
The drain electrode of Wk is connected to the bit line BL0k. The drain electrode of the sense word select transistor TSW is connected to the sense line SL0. The source electrode of the cell selection transistor TWk is connected to the drain electrode of the memory transistor TMk. The source electrode of the sense word select transistor TSW is connected to the commonly connected control gate electrodes of the memory transistors TM0 to TM7. The source electrode of the memory transistor TM is connected to the array ground AG.

【0028】メモリセルユニット500において、対と
なるセル選択トランジスタTWkとメモリトランジスタ
TMkは、それぞれメモリセルを構成する。従ってメモ
リセルユニット500は8個のメモリセルを有する。セ
ル選択トランジスタTWkとメモリトランジスタTMk
からなるメモリセルは、データ記憶動作においてメモリ
セルユニット500が選択されたときに、ワードビット
DkをメモリトランジスタTMkに記憶し、またデータ
読み出し動作においてメモリセルユニット500が選択
されたときに、メモリトランジスタTMkに記憶された
ワードビットDkをビットラインBL0kに出力する。
In memory cell unit 500, a pair of cell select transistor TWk and memory transistor TMk form a memory cell. Therefore, the memory cell unit 500 has eight memory cells. Cell select transistor TWk and memory transistor TMk
Are stored in memory transistor TMk when memory cell unit 500 is selected in a data storage operation, and are stored in memory transistor TMk when memory cell unit 500 is selected in a data read operation. The word bit Dk stored in TMk is output to bit line BL0k.

【0029】メモリセルユニット501、510、51
0の内部構成は、メモリセルユニット500と同じであ
る。ただし、メモリセルユニット501、510、51
0とメモリセルユニット500とは以下の点で異なる。
メモリセルユニット501および511において、セル
選択トランジスタTWkのドレイン電極はビットライン
BL1kに接続されており、センスワード選択トランジ
スタTSWのドレイン電極はセンスラインSL1に接続
されている。またメモリセルユニット110および11
1において、セル選択トランジスタTWのゲート電極お
よびセンスワード選択トランジスタTSWのゲート電極
はワードラインWL1に接続されている。
The memory cell units 501, 510, 51
0 has the same internal configuration as that of the memory cell unit 500. However, the memory cell units 501, 510, 51
0 and the memory cell unit 500 are different in the following points.
In the memory cell units 501 and 511, the drain electrode of the cell selection transistor TWk is connected to the bit line BL1k, and the drain electrode of the sense word selection transistor TSW is connected to the sense line SL1. Also, memory cell units 110 and 11
In 1, the gate electrode of the cell selection transistor TW and the gate electrode of the sense word selection transistor TSW are connected to the word line WL1.

【0030】メモリセルアレイ5においては、アドレス
データA0、A1に応じてロー(ワードラインWL)お
よびコラム(ビットラインBL)がそれぞれ選択される
ことにより、メモリセルユニット500、501、51
0、510のいずれかが選択される。例えば、アドレス
ビットA0が”0”、A1が”1”のときは、アドレス
デコーダADR1からのロー選択信号R1が”1”とな
り、コラム選択トランジスタTC00〜TC07がON
することにより、メモリセルユニット510が選択さ
れ、メモリセルユニット510のセル選択トランジスタ
TW0〜TW7およびセンスワード選択トランジスタT
SWがONする。
In the memory cell array 5, the row (word line WL) and the column (bit line BL) are selected according to the address data A0 and A1, respectively, so that the memory cell units 500, 501 and 51 are selected.
0 or 510 is selected. For example, when the address bits A0 are "0" and A1 is "1", the row selection signal R1 from the address decoder ADR1 becomes "1", and the column selection transistors TC00 to TC07 are turned on.
Thereby, the memory cell unit 510 is selected, and the cell selection transistors TW0 to TW7 and the sense word selection transistor TW of the memory cell unit 510 are selected.
SW turns on.

【0031】センスアンプ部4は、メモリセルアレイ5
の選択されたメモリセルユニットに記憶されているワー
ドビットD0〜D7が”1”であるか”0”であるかを
検出し、このワードビットD0〜D7をデータバスDB
0〜DB7にそれぞれ出力するものであり、同一構成の
8個のセンスアンプSA0、SA1…SA7(SA1〜
SA6は図示省略)を有する。尚、図1に示すEEPR
OMは、さらに、データの記憶動作の際に、ワードライ
ンWLを選択し、選択したワードラインWLに所定の電
圧を印加するロー制御回路、データの記憶動作の際に、
選択されたビットラインBLに所定の電圧を印加するコ
ラム制御回路、データの記憶動作および読み出し動作の
際に選択されたビットラインBLに対応するセンスライ
ンSLに所定のセンス電圧を印加するセンス制御回路、
外部からの命令に従ってデータの記憶動作およびデータ
の読み出し動作を制御する主制御回路、等を有する。
The sense amplifier unit 4 includes a memory cell array 5
, The word bits D0 to D7 stored in the selected memory cell unit are detected as "1" or "0", and these word bits D0 to D7 are transferred to the data bus DB.
0 to DB7, and eight sense amplifiers SA0, SA1,.
SA6 is not shown). The EEPR shown in FIG.
The OM further selects a word line WL during a data storage operation, applies a predetermined voltage to the selected word line WL, and performs a data storage operation during a data storage operation.
A column control circuit for applying a predetermined voltage to a selected bit line BL, and a sense control circuit for applying a predetermined sense voltage to a sense line SL corresponding to the selected bit line BL during data storage and read operations ,
A main control circuit for controlling a data storage operation and a data read operation in accordance with an external command;

【0032】第1の実施形態 図2は本発明の第1の実施形態のEEPROMの構成を
示す図である。このEEPROMは、記憶データの誤り
訂正機能を有する。ここでは、アドレスデータを2ビッ
ト構成とし、ワードデータを8ビット(1バイト)構成
とする。アドレスビットをA0、A1とし、ワードビッ
トをD0、D1…D7とする。アドレスビットA0はコ
ラム選択のためのビットデータであり、アドレスビット
A1はロー選択のためのビットデータである。尚、図1
と図2において同一符号を付したものは同じものを示
す。
First Embodiment FIG. 2 is a diagram showing a configuration of an EEPROM according to a first embodiment of the present invention. This EEPROM has an error correction function for stored data. Here, the address data has a 2-bit configuration, and the word data has an 8-bit (1 byte) configuration. Address bits are A0 and A1, and word bits are D0, D1... D7. Address bit A0 is bit data for column selection, and address bit A1 is bit data for row selection. FIG.
2 and the same reference numerals in FIG. 2 indicate the same components.

【0033】図2に示す第1の実施形態のEEPROM
は、メモリセルアレイ1と、2本のアドレスバスAB
0、AB1と、ローデコード部2と、コラムデコード部
3と、センスアンプ部4と、8本のデータバスDB0〜
DB7(DB1〜DB6は図示省略)とを有する。アド
レスバスAB0にはアドレスビットA0が入力され、ア
ドレスバスAB1にはアドレスビットA1が入力され
る。データバスDBk(kは0〜7のいずれかの整数)
はワードビットDkを取り扱うバスである。尚、図2に
はデータの読み出し動作をするための回路のみ示してあ
り、データの記憶動作をするための回路は図示していな
い。
An EEPROM according to the first embodiment shown in FIG.
Is a memory cell array 1 and two address buses AB.
0, AB1, a row decode unit 2, a column decode unit 3, a sense amplifier unit 4, and eight data buses DB0 to DB0.
DB7 (DB1 to DB6 are not shown). Address bit A0 is input to address bus AB0, and address bit A1 is input to address bus AB1. Data bus DBk (k is an integer from 0 to 7)
Is a bus that handles word bits Dk. FIG. 2 shows only a circuit for performing a data read operation, and does not illustrate a circuit for performing a data storage operation.

【0034】ローデコード部2は、その入力端子がとも
にアドレスバスAB1に接続されているアドレスデコー
ダADR0およびADR1を有する。アドレスデコーダ
ADR0の出力端子はワードラインWL0およびWL1
に接続され、またアドレスデコーダADR1の出力端子
はワードラインWL2およびWL3に接続されている。
アドレスデコーダADR0は入力されたアドレスビット
A1に応じてロー選択信号R0を出力し、またアドレス
デコーダADR1は、入力されたアドレスビットA1に
応じてロー選択信号R1を出力する。アドレスビットA
1が”0”のとき、ロー選択信号R0は”1”、R1
は”0”となり、ワードラインWL0およびWL1が選
択される。またアドレスビットA1が”0”のとき、ロ
ー選択信号R0は”0”、R1は”1”となり、ワード
ラインWL2およびWL3が選択される。
Row decoder 2 has address decoders ADR0 and ADR1 whose input terminals are both connected to address bus AB1. The output terminals of the address decoder ADR0 are word lines WL0 and WL1.
And the output terminal of the address decoder ADR1 is connected to word lines WL2 and WL3.
The address decoder ADR0 outputs a row selection signal R0 according to the input address bit A1, and the address decoder ADR1 outputs a row selection signal R1 according to the input address bit A1. Address bit A
When 1 is "0", the row selection signal R0 is "1", R1
Becomes "0", and the word lines WL0 and WL1 are selected. When the address bit A1 is "0", the row selection signal R0 is "0", R1 is "1", and the word lines WL2 and WL3 are selected.

【0035】コラムデコード部3は、その入力端子がと
もにアドレスバスAB1に接続されているアドレスデコ
ーダADC0およびADC1と、コラム選択トランジス
タTC00〜TC07、TC10〜TC17(TC01
〜TC06およびTC11〜TC16は図示省略)とを
有する。アドレスデコーダADC0は入力されたアドレ
スビットA1に応じてコラム選択信号C0を出力し、ま
たアドレスデコーダADC1は、入力されたアドレスビ
ットA1に応じてコラム選択信号C1を出力する。アド
レスビットA1が”0”のとき、コラム選択信号C0
は”1”、C1は”0”となる。アドレスビットA1
が”1”のとき、コラム選択信号C0は”0”、C1
は”1”となる。
The column decoder 3 has address decoders ADC0 and ADC1 whose input terminals are both connected to the address bus AB1, and column select transistors TC00 to TC07, TC10 to TC17 (TC01).
To TC06 and TC11 to TC16 are not shown). The address decoder ADC0 outputs a column selection signal C0 according to the input address bit A1, and the address decoder ADC1 outputs a column selection signal C1 according to the input address bit A1. When the address bit A1 is "0", the column selection signal C0
Is "1" and C1 is "0". Address bit A1
Is "1", the column selection signal C0 is "0", C1
Becomes "1".

【0036】コラム選択トランジスタTC00〜TC0
7のゲート電極は共通接続されており、この共通ゲート
電極はアドレスデコーダADC0の出力端子に接続され
ている。またコラム選択トランジスタTC10〜TC1
7のゲート電極は共通接続されており、この共通ゲート
電極はアドレスデコーダADC1の出力端子に接続され
ている。コラム選択トランジスタTC0k(kは0〜7
のいずれかの整数)のソース電極は、ビットラインBL
0kの端部に接続されており、コラム選択トランジスタ
TC1kのソース電極は、ビットラインBL1kの端部
に接続されている。コラム選択トランジスタTC0kの
ドレイン電極とコラム選択トランジスタTC1kのドレ
イン電極とは共通接続されている。コラム選択トランジ
スタTC00〜TC07、TC10〜TC17は、共通
ゲート電極に入力されるコラム選択信号が”1”のとき
ONし、”0”のときOFFする。アドレスビットA1
が”0”のとき(コラム選択信号C0が”1”、C1
が”0”のとき)、コラム選択トランジスタTC00〜
TC07はON、TC10〜TC17はOFFとなり、
ビットラインBL00〜BL07が選択される。またア
ドレスビットA1が”1”のとき(コラム選択信号C0
が”0”、C1が”1”のとき)、コラム選択トランジ
スタTC00〜TC07はOFF、TC10〜TC17
はONとなり、ビットラインBL10〜BL17が選択
される。
Column select transistors TC00 to TC0
7 are commonly connected, and this common gate electrode is connected to the output terminal of the address decoder ADC0. In addition, column selection transistors TC10 to TC1
The gate electrodes 7 are commonly connected, and this common gate electrode is connected to the output terminal of the address decoder ADC1. Column selection transistor TC0k (k is 0 to 7)
Source electrode of the bit line BL
0k, and the source electrode of the column select transistor TC1k is connected to the end of the bit line BL1k. The drain electrode of the column selection transistor TC0k and the drain electrode of the column selection transistor TC1k are commonly connected. The column selection transistors TC00 to TC07 and TC10 to TC17 turn on when the column selection signal input to the common gate electrode is "1" and turn off when the column selection signal is "0". Address bit A1
Is "0" (the column selection signal C0 is "1", C1
Is “0”), the column selection transistors TC00 to TC00
TC07 is ON, TC10 to TC17 are OFF,
Bit lines BL00 to BL07 are selected. When the address bit A1 is "1" (the column selection signal C0
Is "0" and C1 is "1"), the column selection transistors TC00 to TC07 are OFF, and TC10 to TC17.
Becomes ON, and the bit lines BL10 to BL17 are selected.

【0037】メモリセルアレイ1には、それぞれ16ビ
ットのデータ記憶容量を有する同一構成のメモリセルユ
ニット100、101、110、111がマトリクス状
に配置されている。図2にはメモリセルユニット100
の内部構成のみを図示してある。メモリセルユニット1
00は、セル選択トランジスタTW10、TW11…T
W17、TW20、TW21…TW27(TW11〜T
W16およびTW21〜TW26は図示省略)と、メモ
リトランジスタTM10、TM11…TM17、TM2
0、TM21…TM27(TM11〜TM16およびT
M21〜TM26は図示省略)と、センスワード選択ト
ランジスタTSW1およびTSW2とを有する。
In the memory cell array 1, memory cell units 100, 101, 110, and 111 having the same configuration and having a data storage capacity of 16 bits are arranged in a matrix. FIG. 2 shows the memory cell unit 100.
Is shown only in FIG. Memory cell unit 1
00 denotes cell selection transistors TW10, TW11.
W17, TW20, TW21... TW27 (TW11 to TW27)
W16 and TW21 to TW26 are not shown), and memory transistors TM10, TM11... TM17, TM2
0, TM21 ... TM27 (TM11 to TM16 and T
M21 to M26 are not shown), and sense word select transistors TSW1 and TSW2.

【0038】メモリセルユニット100において、セル
選択トランジスタTW10〜TW17およびセンスワー
ド選択トランジスタTSW1のゲート電極はワードライ
ンWL0に共通接続されており、セル選択トランジスタ
TW20〜TW27およびセンスワード選択トランジス
タTSW2のゲート電極はワードラインWL1に共通接
続されている。セル選択トランジスタTW1kおよびT
W2kのドレイン電極は、ビットラインBL0kに共通
接続されている。センスワード選択トランジスタTSW
1およびTSW2のドレイン電極は、センスラインSL
0に共通接続されている。セル選択トランジスタTW1
kのソース電極は、メモリトランジスタTM1kのドレ
イン電極に接続されており、セル選択トランジスタTW
2kのソース電極は、メモリトランジスタTM2kのド
レイン電極に接続されている。センスワード選択トラン
ジスタTSW1のソース電極はメモリトランジスタTM
10〜TM17の共通接続されたコントロールゲート電
極に接続されており、またセンスワード選択トランジス
タTSW2のソース電極はメモリトランジスタTM20
〜TM27の共通接続されたコントロールゲート電極に
接続されている。メモリトランジスタTMのソース電極
は、アレイグラウンドAGに共通接続されている。アレ
イグラウンドAGは、このEEPROMのグランドと分
離されている。セル選択トランジスタTWおよびセンス
ワード選択トランジスタTSWは、アドレスビットA1
が”0”(ロー選択信号R0が”1”)のとき、すなわ
ちワードラインWL0およびWL1が選択されたときO
Nし、アドレスビットA1が”1”(ロー選択信号R0
が”0”)のときOFFする。
In the memory cell unit 100, the gate electrodes of the cell selection transistors TW10 to TW17 and the sense word selection transistor TSW1 are commonly connected to a word line WL0, and the gate electrodes of the cell selection transistors TW20 to TW27 and the sense word selection transistor TSW2. Are commonly connected to a word line WL1. Cell select transistors TW1k and TW1k
The drain electrode of W2k is commonly connected to the bit line BL0k. Sense word select transistor TSW
1 and TSW2 are connected to the sense line SL
0 is commonly connected. Cell selection transistor TW1
k is connected to the drain electrode of the memory transistor TM1k, and the cell selection transistor TW
The 2k source electrode is connected to the drain electrode of the memory transistor TM2k. The source electrode of the sense word select transistor TSW1 is the memory transistor TM
10 to TM17 are connected to the commonly connected control gate electrodes, and the source electrode of the sense word select transistor TSW2 is connected to the memory transistor TM20.
To TM27 which are commonly connected to the control gate electrode. The source electrodes of the memory transistors TM are commonly connected to an array ground AG. The array ground AG is separated from the EEPROM ground. The cell selection transistor TW and the sense word selection transistor TSW are connected to the address bit A1.
Is "0" (the row selection signal R0 is "1"), that is, when the word lines WL0 and WL1 are selected, O
N, the address bit A1 becomes “1” (the row selection signal R0
Is OFF when is "0").

【0039】メモリセルユニット100において、対と
なるセル選択トランジスタTW1kとメモリトランジス
タTM1kとはメモリセルMC1kを構成し、また対と
なるセル選択トランジスタTW2kとメモリトランジス
タTM2kとはメモリセルMC2kを構成する。従って
メモリセルユニット100は16個のメモリセルMC1
0〜MC17、MC20〜MC27を有する。
In the memory cell unit 100, the paired cell select transistor TW1k and the memory transistor TM1k constitute a memory cell MC1k, and the paired cell select transistor TW2k and the memory transistor TM2k constitute a memory cell MC2k. Therefore, the memory cell unit 100 has 16 memory cells MC1
0 to MC17 and MC20 to MC27.

【0040】ここで、上記のセル選択トランジスタTW
とメモリトランジスタTMからなるメモリセルMCにつ
いて説明する。図3はこのメモリセルMCの詳細構成を
示す図である。図3において、セル選択トランジスタT
Wは、図2のワードラインWLに接続されるゲート電極
61と、図2のビットラインBLに接続されるドレイン
電極62と、ソース電極63とを有する。またメモリト
ランジスタTMは、フローティングゲート71と、図2
のセンスワード選択トランジスタTSWを介してセンス
ラインSLに接続されるコントロールゲート72と、セ
ル選択トランジスタTWのソース電極63に接続される
ドレイン電極73と、図2のアレイグラウンドに接続さ
れるソース電極74とを有する。メモリトランジスタT
Mは、フローティングゲート71に電荷を注入し、ある
いはフローティングゲート71から電荷を引き抜くこと
により、1ビットのデータを記憶するトランジスタであ
り、電気的に記憶データの書き換えが可能な不揮発性の
メモリトランジスタである。メモリトランジスタTM
は、例えば、ポリシリコンのフローティングゲート71
の上に絶縁膜を介してポリシリコンのコントロールゲー
ト72を積層形成し、フローティングゲート71の下面
とトランジスタのチャネル表面との間にトンネル酸化膜
を形成した構造を有し、このような構造をFLOTOX
(フローティングトンネルオキサイド)型と称する。
Here, the above-mentioned cell selection transistor TW
And a memory cell MC including the memory transistor TM will be described. FIG. 3 is a diagram showing a detailed configuration of the memory cell MC. In FIG. 3, the cell selection transistor T
W has a gate electrode 61 connected to the word line WL in FIG. 2, a drain electrode 62 connected to the bit line BL in FIG. 2, and a source electrode 63. The memory transistor TM has a floating gate 71 and a floating gate 71 shown in FIG.
The control gate 72 connected to the sense line SL via the sense word select transistor TSW, the drain electrode 73 connected to the source electrode 63 of the cell select transistor TW, and the source electrode 74 connected to the array ground of FIG. And Memory transistor T
M is a transistor that stores 1-bit data by injecting charges into or extracting charges from the floating gate 71, and is a non-volatile memory transistor that can electrically rewrite stored data. is there. Memory transistor TM
Is, for example, a floating gate 71 of polysilicon.
A polysilicon control gate 72 is formed on the semiconductor device via an insulating film, and a tunnel oxide film is formed between the lower surface of the floating gate 71 and the channel surface of the transistor. Such a structure is called FLOTOX.
(Floating tunnel oxide) type.

【0041】メモリトランジスタTMにおいて、フロー
ティングゲート71に電荷を注入することを「データを
書き込む」と称し、フローティングゲート71から電荷
を引き抜くことを「データを消去する」と称する。ここ
では、データの書き込みとデータ”0”を対応させ、デ
ータの消去とデータ”1”とを対応させる。すなわちデ
ータ”0”をメモリトランジスタTMに記憶させる(メ
モリトランジスタTMのデータを”0”に書き換える)
ということは、メモリトランジスタTMにデータを書き
込むことを意味し、またデータ”1”をメモリトランジ
スタTMに記憶させる(メモリトランジスタTMのデー
タを”1”に書き換える)ということは、メモリトラン
ジスタTMのデータを消去ことを意味する。
In the memory transistor TM, injecting charges into the floating gate 71 is referred to as "writing data", and extracting charges from the floating gate 71 is referred to as "erasing data". Here, data writing is associated with data “0”, and data erasing is associated with data “1”. That is, data “0” is stored in the memory transistor TM (data of the memory transistor TM is rewritten to “0”).
This means that data is written to the memory transistor TM, and that the data “1” is stored in the memory transistor TM (the data of the memory transistor TM is rewritten to “1”). Means to erase.

【0042】データの書き込みによりメモリトランジス
タTMにデータ”0”を記憶させるときには、例えば、
ワードラインWL(ゲート電極61)およびセンスライ
ンSL(コントロールゲート71)を20[V]、ビッ
トラインBL(ドレイン電極62)およびアレイグラウ
ンドAG(ソース電極74)を0[V]にする。このと
きセル選択トランジスタTWがONするのでドレイン電
極73は0[V]となる。これによりメモリトランジス
タTMのソースおよびドレインからフローティングゲー
ト71に電荷が注入される。
When data "0" is stored in the memory transistor TM by writing data, for example,
The word line WL (gate electrode 61) and sense line SL (control gate 71) are set to 20 [V], and the bit line BL (drain electrode 62) and array ground AG (source electrode 74) are set to 0 [V]. At this time, since the cell selection transistor TW is turned on, the drain electrode 73 becomes 0 [V]. As a result, charges are injected from the source and drain of the memory transistor TM into the floating gate 71.

【0043】また、データの消去によりメモリトランジ
スタTMにデータ”1”を記憶させるときには、例え
ば、ワードラインWLおよびビットラインBLを20
[V]、センスラインSLを0[V]、アレイグラウン
ドAGを開放にする。このときセル選択トランジスタT
WがONするので、メモリトランジスタTMのドレイン
電極73は20[V]となる。これによりフローティン
グゲート71からドレインに電荷が引き抜かれる。メモ
リトランジスタTMは、コントロールゲート72に印加
される電圧が、しきい値電圧以下のときONし、しきい
値電圧以上のときOFFする。メモリトランジスタTM
においては、データが書き込まれたときのしきい値電圧
Vt0は、データが消去されたときのしきい値電圧Vt
1に比べて低くなる。
When data "1" is stored in the memory transistor TM by erasing the data, for example, the word line WL and the bit line BL are set to 20 bits.
[V], the sense line SL is set to 0 [V], and the array ground AG is opened. At this time, the cell selection transistor T
Since W is turned ON, the drain electrode 73 of the memory transistor TM becomes 20 [V]. As a result, charges are extracted from the floating gate 71 to the drain. The memory transistor TM turns on when the voltage applied to the control gate 72 is equal to or lower than the threshold voltage, and turns off when the voltage is equal to or higher than the threshold voltage. Memory transistor TM
, The threshold voltage Vt0 when data is written is the threshold voltage Vt0 when data is erased.
It is lower than 1.

【0044】また、メモリトランジスタTMの記憶デー
タを読み出すときには、例えば、ワードラインWLを5
[V]、センス電圧(センスラインSLの電圧)を2
[V]、アレイグラウンドAGを0[V]にする。セン
ス電圧は上記のしきい値電圧Vt0とVt1の間の電圧
になるように設定する。このときセル選択トランジスタ
TWはONする。またメモリトランジスタTMは、記憶
データが”0”のときONし、記憶データが”1”のと
きOFFのままである。従って、ビットラインBLは、
記憶データが”0”のとき0[V]となり、記憶データ
が”1”のとき開放となる。すなわちデータの読み出し
においては、記憶データ”1”とトランジスタTWのO
FFとを対応させ、記憶データ”0”とトランジスタT
WのONとを対応させる。
When data stored in the memory transistor TM is read, for example, the word line WL is
[V], the sense voltage (the voltage of the sense line SL) is 2
[V], the array ground AG is set to 0 [V]. The sense voltage is set to be a voltage between the threshold voltages Vt0 and Vt1. At this time, the cell selection transistor TW turns on. The memory transistor TM is turned on when the storage data is “0”, and remains off when the storage data is “1”. Therefore, the bit line BL is
When the storage data is "0", it becomes 0 [V], and when the storage data is "1", it becomes open. That is, in the data reading, the storage data “1” and the O
FF and the stored data “0” and the transistor T
Corresponds to ON of W.

【0045】メモリセルユニット100において、セル
選択トランジスタTW1kおよびメモリトランジスタT
M1kからなるメモリセルMC1kと、セル選択トラン
ジスタTW2kおよびメモリトランジスタTM2kから
なるメモリセルMC2kとは、本発明の誤り訂正回路E
Ckを構成している。従ってメモリセルユニット100
は、8個の誤り訂正回路EC0、EC1…EC7を有す
る。メモリセルMC1kとMC2kとは、同じビットラ
インBL0kに接続しており、データ記憶動作において
メモリセルユニット100が選択されたときに、ワード
ビットDkをメモリトランジスタTM1kおよびTM2
kにそれぞれ記憶し、またデータ読み出し動作において
メモリセルユニット100が選択されたときに、メモリ
トランジスタTM1kに記憶されたワードビットDk
と、メモリトランジスタTM2kに記憶されたワードビ
ットDkとを、ともにビットラインBL0kに出力す
る。すなわち同一データを記憶し、記憶しているデータ
を同じビットラインに同時に出力する。
In memory cell unit 100, cell selection transistor TW1k and memory transistor TW
The memory cell MC1k composed of M1k and the memory cell MC2k composed of the cell selection transistor TW2k and the memory transistor TM2k are connected to the error correction circuit E of the present invention.
Ck. Therefore, the memory cell unit 100
Has eight error correction circuits EC0, EC1... EC7. The memory cells MC1k and MC2k are connected to the same bit line BL0k, and when the memory cell unit 100 is selected in the data storage operation, the word bit Dk is changed to the memory transistors TM1k and TM2k.
k, and when the memory cell unit 100 is selected in the data read operation, the word bit Dk stored in the memory transistor TM1k is stored.
And the word bit Dk stored in the memory transistor TM2k are both output to the bit line BL0k. That is, the same data is stored, and the stored data is simultaneously output to the same bit line.

【0046】メモリセルユニット101、110、11
0の内部構成は、メモリセルユニット100と同じであ
る。ただしワードラインWL等との接続においてメモリ
セルユニット101、110、110とメモリセルユニ
ット100とは以下の点で異なる。メモリセルユニット
101および111において、セル選択トランジスタT
W1kおよびTW2kのドレイン電極はビットラインB
L1kに接続されており、センスワード選択トランジス
タTSWのドレイン電極はセンスラインSL1に接続さ
れている。またメモリセルユニット110および111
において、セル選択トランジスタTW10〜TW17の
ゲート電極およびセンスワード選択トランジスタTSW
1のゲート電極は、ワードラインWL2に共通接続され
ており、セル選択トランジスタTW20〜TW27のゲ
ート電極およびセンスワード選択トランジスタTSW2
のゲート電極は、ワードラインWL3に共通接続されて
いる。
Memory cell units 101, 110, 11
0 has the same internal configuration as the memory cell unit 100. However, the memory cell units 101, 110, 110 differ from the memory cell unit 100 in connection with the word line WL and the like in the following points. In the memory cell units 101 and 111, the cell selection transistor T
The drain electrodes of W1k and TW2k are bit lines B
L1k, and the drain electrode of the sense word select transistor TSW is connected to the sense line SL1. Also, the memory cell units 110 and 111
, The gate electrodes of the cell selection transistors TW10 to TW17 and the sense word selection transistor TSW
1 is commonly connected to the word line WL2, and the gate electrodes of the cell selection transistors TW20 to TW27 and the sense word selection transistor TSW2
Are commonly connected to a word line WL3.

【0047】メモリセルアレイ1においては、アドレス
データA0、A1に応じてロー(ワードラインWL)お
よびコラム(ビットラインBL)がそれぞれ選択される
ことにより、メモリセルユニット100、101、11
0、110のいずれかが選択される。例えば、アドレス
ビットA0が論理レベル”0”、A1が論理レベル”
1”のときは、アドレスデコーダADR1からのロー選
択信号R1が”1”となり、コラム選択トランジスタT
C00〜TC07がONすることにより、メモリセルユ
ニット110が選択され、メモリセルユニット110の
セル選択トランジスタTW10〜TW17、TW20〜
TW27、およびセンスワード選択トランジスタTSW
1、TSW2がONする。
In the memory cell array 1, the row (word line WL) and the column (bit line BL) are selected according to the address data A0 and A1, respectively, so that the memory cell units 100, 101 and 11 are selected.
Either 0 or 110 is selected. For example, address bit A0 is at logic level "0", and A1 is at logic level "
1 ", the row selection signal R1 from the address decoder ADR1 becomes" 1 "and the column selection transistor T
When C00 to TC07 are turned on, the memory cell unit 110 is selected, and the cell selection transistors TW10 to TW17 and TW20 to TW20 to TW20 of the memory cell unit 110 are selected.
TW27 and sense word select transistor TSW
1. TSW2 turns ON.

【0048】センスアンプ部4は、同一構成の8個のセ
ンスアンプSA0〜SA7(SA1〜SA6は図示省
略)を有する。センスアンプSAk(kは0〜7のいず
れかの整数)は、ワードビットDkが”1”であるか”
0”であるかを検出するものであり、その入力端子IN
はコラム選択トランジスタTC0kおよびTC1kの共
通ドレイン電極に接続されており、その出力端子OUT
はデータバスDBkに接続されている。
The sense amplifier unit 4 has eight sense amplifiers SA0 to SA7 (SA1 to SA6 are not shown) having the same configuration. The sense amplifier SAk (k is an integer from 0 to 7) determines whether the word bit Dk is “1”.
0 "is detected, and the input terminal IN
Is connected to the common drain electrode of the column selection transistors TC0k and TC1k, and has an output terminal OUT
Are connected to the data bus DBk.

【0049】図4はセンスアンプSAの内部構成を示す
図である。図4においてセンスアンプSAは、入力端子
INと正電源VDDとの間に設けられた抵抗Rと、入力
端子INと出力端子OUTとの間に直列に設けられた2
つのインバータINV1、INV2からなる。センスア
ンプSAは、検出データが”0”のとき、”L”レベル
を出力し、検出データが”1”のとき、”H”レベルを
出力する。メモリセルトランジスタTMがデータ消去さ
れている(TMにデータ”1”が記憶されている)とき
は、メモリセルトランジスタTMはOFFであり、ビッ
トラインBLは開放となるので、入力端子INは抵抗R
により電源VDDにプルアップされ、”H”レベルとな
る。またメモリセルトランジスタTMにデータ書き込み
されている(TMにデータ”0”が記憶されている)と
きは、メモリセルトランジスタTMはONであり、ビッ
トラインBLは0[V]となるので、抵抗Rからメモリ
セルに電流が流れ、入力端子INは抵抗Rによりインバ
ータINV2のスレッショルド電圧よりも低くなり、出
力端子OUTは”L”レベルとなる。
FIG. 4 is a diagram showing the internal configuration of the sense amplifier SA. In FIG. 4, the sense amplifier SA includes a resistor R provided between the input terminal IN and the positive power supply VDD, and a resistor R provided in series between the input terminal IN and the output terminal OUT.
It consists of two inverters INV1 and INV2. The sense amplifier SA outputs an “L” level when the detection data is “0”, and outputs an “H” level when the detection data is “1”. When data is erased from the memory cell transistor TM (data “1” is stored in TM), the memory cell transistor TM is OFF and the bit line BL is open, so that the input terminal IN is connected to the resistor R
, And is pulled up to the power supply VDD, and becomes “H” level. When data is written to the memory cell transistor TM (data “0” is stored in TM), the memory cell transistor TM is ON and the bit line BL becomes 0 [V]. , A current flows through the memory cell, the input terminal IN becomes lower than the threshold voltage of the inverter INV2 due to the resistance R, and the output terminal OUT becomes “L” level.

【0050】すなわち、図2に示す第1の実施形態のE
EPROMが図1のEEPROMと異なる点は、ローデ
コード部2の1つのアドレスデコーダADRに2本のワ
ードラインWLを接続することにより2本のワードライ
ンWLを同時に選択できるように構成されており、メモ
リセルアレイ1のメモリセルユニット100、101、
110、111が、同時に選択される2本のワードライ
ンWLにそれぞれ接続され、同一のビットラインに接続
された2つのメモリセルからなる誤り訂正回路ECによ
り構成されているという点である。以下、メモリセルユ
ニット100、101、110、111のメモリセルの
ように、誤り訂正回路を構成するメモリセルを冗長メモ
リセルと称する。メモリセルユニット100、101、
110、111の誤り訂正回路ECは2ビットの冗長メ
モリセルからなるので2ビット冗長の誤り訂正回路と称
する。またメモリセルユニット100、101、11
0、111のように、誤り訂正回路により構成されてお
り、1ビットの入力データを複数(この場合は2つ)の
冗長メモリセルに記憶させるメモリセルユニット(1ワ
ードの入力データを記憶するメモリセルの単位)を冗長
メモリセルユニットと称する。これに対し、図1のEE
PROMのメモリセルユニット500、501、51
0、511のように1ビットの入力データを1つのメモ
リセルに記憶するメモリセルユニットを非冗長メモリセ
ルユニットと称する。またメモリセルユニット500、
501、510、511のメモリセルのように、誤り訂
正回路を構成しないメモリセルを非冗長メモリセルと称
する。
That is, E of the first embodiment shown in FIG.
The EPROM is different from the EEPROM of FIG. 1 in that two word lines WL are connected to one address decoder ADR of the row decoding unit 2 so that two word lines WL can be simultaneously selected. The memory cell units 100 and 101 of the memory cell array 1
110 and 111 are connected to two word lines WL selected at the same time, respectively, and are constituted by an error correction circuit EC composed of two memory cells connected to the same bit line. Hereinafter, the memory cells forming the error correction circuit, such as the memory cells of the memory cell units 100, 101, 110, and 111, are referred to as redundant memory cells. The memory cell units 100, 101,
Since the error correction circuits EC of 110 and 111 are composed of 2-bit redundant memory cells, they are referred to as 2-bit redundant error correction circuits. Also, the memory cell units 100, 101, 11
A memory cell unit (memory for storing one-word input data) which is constituted by an error correction circuit like 0 and 111 and stores 1-bit input data in a plurality of (two in this case) redundant memory cells. Cell unit) is referred to as a redundant memory cell unit. On the other hand, EE in FIG.
PROM memory cell units 500, 501, 51
Memory cell units that store 1-bit input data in one memory cell, such as 0 and 511, are referred to as non-redundant memory cell units. Also, the memory cell unit 500,
Memory cells that do not form an error correction circuit, such as the memory cells 501, 510, and 511, are referred to as non-redundant memory cells.

【0051】ここで本発明の誤り訂正回路ECにおける
記憶データの誤り訂正原理について説明する。メモリセ
ルの不具合によりメモリセルから読み出したデータが誤
りとなる場合には、”0”として記憶されたデータが”
1”として読み出される場合と、”1”として記憶され
たデータが”0”として読み出される場合とがある。メ
モリセルが、”0”として記憶したデータを”1”とし
て出力するようにのみ不具合を生ずるものである、ある
いは”1”として記憶したデータを”0”として出力す
るようにのみ不具合を生ずるものであるときには、1ビ
ットの入力データを複数のメモリセルに記憶させ、デー
タ読み出しの際にこれらのメモリセルに記憶されている
データのANDあるいはORをとったデータを読み出し
データとすれば、上記メモリセルの不具合による読み出
しデータの誤りを訂正することができる。その理由は、
上記複数のメモリセル全てに不具合が生ずる可能性は極
めて低く、同一データを記憶した複数のメモリセルのう
ちのいずれかに不具合が生じても、上記複数のメモリセ
ルのそれぞれの記憶データのANDあるいはORをとっ
たデータは正常なメモリセルの記憶データと同じものと
なり、不具合を生じたメモリセルのデータの反転データ
となるからである。例えば、”0”として記憶したデー
タを”1”として出力するようにのみ不具合を生ずるメ
モリセルを用いた場合には、上記複数のメモリセルのそ
れぞれの記憶データのANDをとれば、いずれかのメモ
リセルで不具合が発生しても、正しいデータを読み出す
ことができる。図3に示したメモリセルMCは、”0”
として記憶したデータを”1”として出力するようにの
み不具合を生じ、”1”として記憶したデータを”0”
として出力するように不具合を生ずることがない。
Here, the principle of error correction of stored data in the error correction circuit EC of the present invention will be described. If the data read from the memory cell becomes erroneous due to a memory cell failure, the data stored as "0" is replaced by "0".
There is a case where the data is read as "1" and a case where the data stored as "1" is read as "0", which is a problem only in that the memory cell outputs the data stored as "0" as "1". When data is read out or when the data stored as "1" has a problem such that it is output only as "0", the 1-bit input data is stored in a plurality of memory cells and the data is read out. By using the data obtained by ANDing or ORing the data stored in these memory cells as the read data, it is possible to correct the error in the read data due to the failure of the memory cell.
It is extremely unlikely that a failure occurs in all of the plurality of memory cells. Even if a failure occurs in any of the plurality of memory cells storing the same data, AND or AND of the storage data of each of the plurality of memory cells is performed. This is because the ORed data becomes the same as the storage data of the normal memory cell, and is the inverted data of the data of the memory cell in which a failure has occurred. For example, in the case where a memory cell which causes a problem only to output data stored as "0" as "1" is used, if the storage data of each of the plurality of memory cells is ANDed, any one of Even if a failure occurs in the memory cell, correct data can be read. The memory cell MC shown in FIG.
A problem occurs only in that data stored as "1" is output as "1", and data stored as "1" is output as "0".
There is no problem such that the output is performed as the output.

【0052】図3に示したメモリセルにおける不具合
は、メモリトランジスタTMのコントロールゲート71
に注入した電荷が抜けることによってのみ生じる。すな
わち、メモリセルMCにおける不具合はメモリトランジ
スタTMがデータ書き込み状態(”0”を記憶した状
態)からデータ消去状態(”1”を記憶した状態)に変
化してしまうことにより発生し、これと逆の変化は発生
しない。またデータ読み出しの際に、”0”を記憶した
メモリトランジスタTMはONとなり、”1”を記憶し
たメモリトランジスタTMはOFFとなるので、誤り訂
正回路を構成する複数のメモリセルMCの出力端子(セ
ル選択トランジスタTWのレイン端子62)を共通接続
する(同一のビットラインBLに接続する)ことによ
り、上記複数のメモリセルMCのそれぞれの記憶データ
のANDをとったデータを上記共通接続端子(上記ビッ
トラインBL)に出力することができる。メモリセルM
Cを2つ用いて構成した誤り訂正回路においてデータ誤
りが発生する確率は、図3に示したメモリセルを単独で
用いた場合の数千分の1となる。
The problem in the memory cell shown in FIG. 3 is that the control gate 71 of the memory transistor TM
This is caused only by the loss of the charge injected into the device. That is, a defect in the memory cell MC occurs when the memory transistor TM changes from a data write state (a state storing “0”) to a data erase state (a state storing “1”), and vice versa. Does not occur. When reading data, the memory transistor TM storing "0" is turned on and the memory transistor TM storing "1" is turned off. Therefore, the output terminals (a) of the plurality of memory cells MC forming the error correction circuit ( By commonly connecting (connecting to the same bit line BL) the rain terminal 62 of the cell selection transistor TW, data obtained by ANDing the storage data of each of the plurality of memory cells MC is transferred to the common connection terminal (the above-described common connection terminal). Bit line BL). Memory cell M
The probability of a data error occurring in an error correction circuit configured using two C's is one thousandth of that in the case where the memory cell shown in FIG. 3 is used alone.

【0053】次に図2に示した第1の実施形態のEEP
ROMの動作について説明する。まず、データの記憶動
作について説明する。アドレスデータA1、A0に基づ
いて、いずれかのメモリセルユニットを選択し、選択さ
れたメモリセルユニットの全てのメモリトランジスタT
Mのデータを消去し、そのあとデータバスDB7〜DB
0から入力されたワードデータD7〜D0をメモリトラ
ンジスタTMに書き込む。すなわち、全てのメモリトラ
ンジスタTMのフローティングゲート71に電荷を注入
し、そのあと”1”のワードビットDkに対応するメモ
リトランジスタTMのコントロールゲート71から電荷
を引き抜く。ワードビットDkは、2つのメモリトラン
ジスタTM1kおよびTM2kに記憶される。例えば、
アドレスビットA1が”0”、A0が”0”であるとき
は、以下のようにして、メモリセルユニット100が選
択され、入力されたワードデータD7〜D0がメモリセ
ル100に記憶される。
Next, the EEP of the first embodiment shown in FIG.
The operation of the ROM will be described. First, the data storage operation will be described. One of the memory cell units is selected based on the address data A1 and A0, and all the memory transistors T of the selected memory cell unit are selected.
M data is erased, and then data buses DB7 to DB
The word data D7 to D0 input from 0 are written to the memory transistor TM. That is, charges are injected into the floating gates 71 of all the memory transistors TM, and thereafter, charges are extracted from the control gate 71 of the memory transistor TM corresponding to the word bit Dk of “1”. Word bit Dk is stored in two memory transistors TM1k and TM2k. For example,
When the address bit A1 is "0" and A0 is "0", the memory cell unit 100 is selected as follows, and the input word data D7 to D0 are stored in the memory cell 100.

【0054】アドレスデコーダADC0が”1”のコラ
ム選択信号C0を出力し、コラム選択トランジスタTC
00〜TC07がONし、ビットラインBL00〜BL
07が選択される。また図示しないロー制御回路により
ワードラインWL0およびWL1が選択され、これらの
ワードラインWL0、WL1にメモリトランジスタTM
のデータ消去のための所定の電圧(図3の説明において
上述した電圧)を印加する。また図示しないセンス制御
回路によりセンスラインSL0が選択される。選択され
たビットラインBL00〜BL07、ワードラインWL
0、WL1、センスラインSL0には、図示しないコラ
ム選択回路、ロー制御回路、センス制御回路によりメモ
リトランジスタTMのデータ消去のための所定の電圧
(図3の説明において上述した電圧)が印加され、これ
によりメモリセルユニット100のセル選択トランジス
タTW10〜TW17、TW20〜TW27、センスワ
ード選択トランジスタTSW1、TSW2がONし、メ
モリセルユニット100のメモリトランジスタTM10
〜TM17、TM20〜TM27のフローティングゲー
ト71から電荷が引き抜かれる(メモリセルユニット1
00の全てのメモリトランジスタTMに”1”が記憶さ
れる)。次にロー制御回路、センス制御回路は、ワード
ラインWL0、WL1、センスラインSL0に、メモリ
トランジスタTMにデータを書き込むための所定の電圧
(図3の説明において上述した電圧)を印加する。また
コラム制御回路は、”1”のワードビットDkに対応す
るビットラインBLkに、メモリトランジスタTMにデ
ータを書き込むための所定の電圧(図3の説明において
上述した電圧)を印加する。例えば、ワードビットD7
〜D4が”0”、D3〜D0が”1”のときは、ビット
ラインBL07〜BL04にデータ書き込みのための電
圧が印加される。これにより、メモリセルユニット10
0のメモリトランジスタTM17〜TM14、TM27
〜TM24のフローティングゲート71に電荷が注入さ
れる(メモリセルユニット100のこれらのメモリトラ
ンジスタTMに”0”が記憶される)。以上により、メ
モリセルユニット100のメモリセルMC17〜MC1
4、MC27〜MC24に”0”が記憶され、MC13
〜MC10、MC23〜MC20に”1”が記憶され
る。すなわち誤り訂正回路ECkを構成するメモリセル
MC1kとMC2kには、同一データDkが記憶され
る。尚、他のメモリセルユニットが選択されたときのデ
ータの記憶動作も上記と同様である。
The address decoder ADC0 outputs the column selection signal C0 of "1", and the column selection transistor TC
00 to TC07 are turned on, and bit lines BL00 to BL07 are turned on.
07 is selected. The word lines WL0 and WL1 are selected by a row control circuit (not shown), and the memory transistors TM are connected to these word lines WL0 and WL1.
A predetermined voltage (the voltage described above with reference to FIG. 3) for erasing data is applied. The sense control circuit (not shown) selects the sense line SL0. Selected bit lines BL00-BL07, word line WL
0, WL1, and a sense line SL0, a predetermined voltage (the voltage described above in FIG. 3) for erasing data of the memory transistor TM is applied by a column selection circuit, a row control circuit, and a sense control circuit (not shown). As a result, the cell selection transistors TW10 to TW17 and TW20 to TW27 of the memory cell unit 100 and the sense word selection transistors TSW1 and TSW2 are turned on, and the memory transistor TM10 of the memory cell unit 100 is turned on.
To TM17 and TM20 to TM27 from the floating gate 71 (memory cell unit 1).
“1” is stored in all the memory transistors TM of 00). Next, the row control circuit and the sense control circuit apply a predetermined voltage (the voltage described above with reference to FIG. 3) for writing data to the memory transistor TM to the word lines WL0 and WL1 and the sense line SL0. In addition, the column control circuit applies a predetermined voltage (the voltage described above in the description of FIG. 3) for writing data to the memory transistor TM to the bit line BLk corresponding to the word bit Dk of “1”. For example, the word bit D7
When D4 is "0" and D3 to D0 are "1", a voltage for writing data is applied to the bit lines BL07 to BL04. Thereby, the memory cell unit 10
0 memory transistors TM17 to TM14, TM27
To the floating gate 71 of TM24 ("0" is stored in these memory transistors TM of the memory cell unit 100). As described above, the memory cells MC17 to MC1 of the memory cell unit 100
4, “0” is stored in MC27 to MC24, and MC13
"1" is stored in .about.MC10 and MC23 to MC20. That is, the same data Dk is stored in the memory cells MC1k and MC2k forming the error correction circuit ECk. The data storage operation when another memory cell unit is selected is the same as described above.

【0055】次に、データの読み出し動作について説明
する。アドレスデータA1、A0に基づいて、いずれか
のメモリセルユニットを選択し、選択されたメモリセル
ユニットに記憶されたワードデータD7〜D0を読み出
す。例えば、アドレスビットA1が”0”、A0が”
0”であるときは、以下のようにして、メモリセルユニ
ット100が選択され、メモリセルユニット100に記
憶されているワードデータD7〜D0がデータバスDB
7〜DB0に読み出される。
Next, the data read operation will be described. One of the memory cell units is selected based on the address data A1 and A0, and the word data D7 to D0 stored in the selected memory cell unit are read. For example, if the address bit A1 is "0" and A0 is "
0 ", the memory cell unit 100 is selected as follows, and the word data D7 to D0 stored in the memory cell unit 100 are transferred to the data bus DB.
7 to DB0.

【0056】アドレスデコーダADR0が”1”のロー
選択信号R0を出力し、ワードラインWL0およびWL
1が選択され、メモリセルユニット100のセル選択ト
ランジスタTW10〜TW17、TW20〜TW27、
センスワード選択トランジスタTSW1、TSW2がO
Nする。またアドレスデコーダADC0が”1”のコラ
ム選択信号C0を出力し、コラム選択トランジスタTC
00〜TC07がONし、ビットラインBL00〜BL
07が選択される。また制御回路によりセンスラインS
L0が選択され、センスラインSL0にセンスライン電
圧が印加される。センスライン電圧は、図3の説明にお
いて上述したように、例えば2[V]である。またアレ
イグラウンドAGには図3の説明において上述したよう
に0[V]が印加される。これにより、メモリセルユニ
ット100において、”0”を記憶しているメモリトラ
ンジスタTMはONし、”1”を記憶しているメモリト
ランジスタTMはOFFしたままとなる。メモリセルユ
ニット100のメモリセルトランジスタTM17〜TM
14、TM27〜TM24に”0”が記憶され、TM1
3〜TM10、TM23〜TM20に”1”が記憶され
ているものとすると、メモリトランジスタTM17〜T
M14、TM27〜TM24がONする。これによりビ
ットラインBL07〜BL04にはセンスアンプSA7
〜SA4の入力端子INから電流が流れ、センスアンプ
SA7〜SA4はワードビットD7〜D4として”0”
を検出する。またビットラインBL03〜BL00は解
放となり、これらには電流が流れず、センスアンプSA
3〜SA0はワードビットD3〜D0として”1”を検
出する。センスアンプSA7〜SA0は検出したワード
ビットD7〜D0をそれぞれデータバスDB7〜DB0
に出力する。すなわち、メモリトランジスタTMが正常
であるときは、”0”を記憶したメモリトランジスタT
M1kおよびTM2kはともにONし、センスアンプS
Akは”0”を検出する。また”1”を記憶したメモリ
トランジスタTM1kおよびTM2kはともにOFFの
ままであり、センスアンプSAkは”1”を検出する。
The address decoder ADR0 outputs a row selection signal R0 of "1", and the word lines WL0 and WL0 are output.
1 is selected, and the cell selection transistors TW10 to TW17, TW20 to TW27,
When the sense word select transistors TSW1 and TSW2 are O
N. Further, the address decoder ADC0 outputs the column selection signal C0 of "1", and the column selection transistor TC
00 to TC07 are turned on, and bit lines BL00 to BL07 are turned on.
07 is selected. Also, the sense line S is controlled by the control circuit.
L0 is selected, and a sense line voltage is applied to the sense line SL0. As described above in the description of FIG. 3, the sense line voltage is, for example, 2 [V]. Further, 0 [V] is applied to the array ground AG as described above in the description of FIG. As a result, in the memory cell unit 100, the memory transistor TM storing "0" is turned on, and the memory transistor TM storing "1" is kept off. Memory cell transistors TM17 to TM of memory cell unit 100
14, "0" is stored in TM27 to TM24, and TM1
Assuming that "1" is stored in TM3 to TM10 and TM23 to TM20, the memory transistors TM17 to TM17
M14 and TM27 to TM24 are turned ON. As a result, the sense amplifier SA7 is connected to the bit lines BL07 to BL04.
A current flows from the input terminals IN of .about.SA4, and the sense amplifiers SA7 to SA4 become "0" as word bits D7 to D4.
Is detected. Also, the bit lines BL03 to BL00 are released, no current flows through them, and the sense amplifier SA
3 to SA0 detect "1" as word bits D3 to D0. The sense amplifiers SA7 to SA0 transfer the detected word bits D7 to D0 to the data buses DB7 to DB0, respectively.
Output to That is, when the memory transistor TM is normal, the memory transistor T storing "0"
M1k and TM2k are both turned on, and the sense amplifier S
Ak detects "0". Further, both the memory transistors TM1k and TM2k storing "1" remain OFF, and the sense amplifier SAk detects "1".

【0057】ここで、”0”を記憶させたメモリトラン
ジスタTM1kとTM2kのいずれか、例えばメモリト
ランジスタTM17で、フローティングゲート71から
電荷が抜け、その記憶データが”1”に変化してしまっ
たとする(メモリトランジスタTMは上述したように、
記憶データ”0”が”1”となるようにのみ不具合を生
じる)。このとき、メモリトランジスタTM17はOF
Fのままとなってしまうが、TM17とともに誤り訂正
回路EC7を構成するTM27は正常にONするので、
ビットラインBL07にはセンスアンプSA7から正常
に電流が流れ、センスアンプSA7は、正しいデータ”
0”を検出する。センスアンプSA7はメモリトランジ
スタTM17とTM27に記憶されているデータのAN
Dをとったデータを検出したこととなり、これにより正
しいデータを読み出すことができたことになる。すなわ
ち、メモリセルMC1kとMC2kに同一データDkを
記憶しておき、メモリセルMC1kとMC2kに記憶さ
れているデータのANDをとったデータを読み出しデー
タとすることにより、メモリトランジスタTM1kとT
M2kのいずれかに不具合が生じても、正常なメモリト
ランジスタTMに記憶された正しいデータを読み出すこ
とができる。上記メモリトランジスタTM1kとTM2
kに同一データを記憶する手段は特別に設ける必要はな
く、メモリセルMC1kとMC2kとが同時に選択され
るように、例えばワードラインW0とW1とを同一のア
ドレスデコーダADR0に接続するだけで良い。上記A
NDをとったデータを生成する手段は、メモリセルMC
1kとMC2kのデータ出力電極が接続された同一のビ
ットラインBLkであり、特別に設ける必要はない。
Here, it is assumed that, in one of the memory transistors TM1k and TM2k storing "0", for example, the memory transistor TM17, charge is removed from the floating gate 71, and the stored data changes to "1". (As described above, the memory transistor TM
A defect occurs only so that the stored data "0" becomes "1"). At this time, the memory transistor TM17 is turned off.
F, but TM27, which constitutes the error correction circuit EC7 together with TM17, normally turns on.
A current normally flows from the sense amplifier SA7 to the bit line BL07, and the sense amplifier SA7 outputs the correct data.
0 "is detected. The sense amplifier SA7 performs an AND operation on the data stored in the memory transistors TM17 and TM27.
This means that data having the value D is detected, which means that correct data can be read. That is, the same data Dk is stored in the memory cells MC1k and MC2k, and data obtained by ANDing the data stored in the memory cells MC1k and MC2k is used as read data, whereby the memory transistors TM1k and T2
Even if a failure occurs in any of M2k, correct data stored in the normal memory transistor TM can be read. The memory transistors TM1k and TM2
A means for storing the same data in k does not need to be specially provided. For example, word lines W0 and W1 may be connected to the same address decoder ADR0 so that memory cells MC1k and MC2k are simultaneously selected. A above
Means for generating the ND data is the memory cell MC
This is the same bit line BLk to which the data output electrodes of 1k and MC2k are connected, and does not need to be specially provided.

【0058】このように第1の実施形態によれば、同じ
データを複数のメモリセルに記憶させておき、データ読
み出しの際に、上記複数のメモリセルに記憶されている
それぞれのデータのANDをとったデータを読み出しデ
ータとすることにより、メモリセルの誤り率が非常に低
くなり、誤り訂正機能を持たないEEPROMにおい
て、複数のメモリセルのワードラインが同時に”1”と
なるようにワードラインを接続するという非常に簡単な
回路構成で誤り訂正が可能となる。
As described above, according to the first embodiment, the same data is stored in a plurality of memory cells, and when data is read, the AND of each of the data stored in the plurality of memory cells is changed. By using the read data as the read data, the error rate of the memory cell becomes extremely low. In an EEPROM having no error correction function, the word lines of a plurality of memory cells are simultaneously set to "1". Error correction is possible with a very simple circuit configuration of connection.

【0059】第2の実施形態 上記第1の実施形態のように、メモリセルアレイの全て
の領域を2ビット冗長領域とすると、メモリセルアレイ
のデータ記憶容量が図1のEEPROMの2倍必要とな
りチップ面積の増大を招く。また3ビット冗長領域にす
ると3倍必要になる。通常はメモリセルアレイのある特
定領域のみに低い誤り率を求めることが多い。第2の実
施形態は、メモリセルアレイの特定の領域だけを冗長領
域としてこの領域に誤り訂正回路を設け、その他の領域
を非冗長領域とすることにより、チップ面積の増加も防
ぎ、かつ特定領域の誤り率の低下を達成できるようにし
たことを特徴とする。
Second Embodiment If the entire area of the memory cell array is a 2-bit redundant area as in the first embodiment, the data storage capacity of the memory cell array is twice as large as that of the EEPROM of FIG. Increase. Further, if the area is a 3-bit redundant area, it is required three times. Usually, a low error rate is often required only for a specific area of the memory cell array. In the second embodiment, an error correction circuit is provided in a specific area of a memory cell array as a redundant area and an error correction circuit is provided in this area, and the other area is set as a non-redundant area. It is characterized in that the error rate can be reduced.

【0060】図5は本発明の第2の実施形態のEEPR
OMの構成を示す図である。ここでは、アドレスデータ
を3ビット構成、ワードデータを8ビット構成とする。
アドレスビットをA2、A1、A0とし、ワードビット
をD7、D6…D1とする。アドレスビットA0はコラ
ム選択のためのビットデータであり、アドレスビットA
2、A1はロー選択のためのビットデータである。尚、
図5と図2において同一符号を付したものは同じものを
示す。
FIG. 5 shows an EEPR according to a second embodiment of the present invention.
It is a figure showing composition of OM. Here, the address data has a 3-bit configuration, and the word data has an 8-bit configuration.
Address bits are A2, A1, and A0, and word bits are D7, D6,. Address bit A0 is bit data for selecting a column.
2. A1 is bit data for row selection. still,
In FIG. 5 and FIG. 2, the same reference numerals denote the same components.

【0061】図5に示す第2の実施形態のEEPROM
は、メモリセルアレイ6と、3本のアドレスバスAB
0、AB1、AB2と、ローデコード部7と、コラムデ
コード部3と、センスアンプ部4と、8本のデータバス
DB0〜DB7(DB1〜DB6は図示省略)とを有す
る。アドレスバスAB0にはアドレスビットA0が入力
され、アドレスバスAB1にはアドレスビットA1が入
力される。アドレスバスAB2にはアドレスビットA2
が入力される。尚、図5にはデータの読み出し動作をす
るための回路のみ示してあり、データの記憶動作をする
ための回路は図示していない。
The EEPROM of the second embodiment shown in FIG.
Is a memory cell array 6 and three address buses AB.
0, AB1, AB2, a row decode unit 7, a column decode unit 3, a sense amplifier unit 4, and eight data buses DB0 to DB7 (DB1 to DB6 are not shown). Address bit A0 is input to address bus AB0, and address bit A1 is input to address bus AB1. Address bus AB2 has address bits A2
Is entered. Note that FIG. 5 shows only a circuit for performing a data read operation, and does not illustrate a circuit for performing a data storage operation.

【0062】ローデコード部7は、その第1の入力端子
がアドレスバスAB1に共通接続され、その第2の入力
端子がアドレスバスAB2に共通接続されているアドレ
スデコーダADR2、ADR3、ADR4、ADR5を
有する。アドレスデコーダADR2の出力端子はワード
ラインWL0およびWL1に接続され、アドレスデコー
ダADR3の出力端子はワードラインWL2に接続さ
れ、アドレスデコーダADR4の出力端子はワードライ
ンWL3に接続され、アドレスデコーダADR5の出力
端子はワードラインWL4に接続されている。アドレス
デコーダADR2〜ADR5は、入力されたアドレスビ
ットA2、A1に応じてそれぞれロー選択信号R0、R
1、R2、R3を出力する。
The row decoder 7 has address decoders ADR2, ADR3, ADR4, and ADR5 whose first input terminals are commonly connected to an address bus AB1 and whose second input terminals are commonly connected to an address bus AB2. Have. The output terminal of address decoder ADR2 is connected to word lines WL0 and WL1, the output terminal of address decoder ADR3 is connected to word line WL2, the output terminal of address decoder ADR4 is connected to word line WL3, and the output terminal of address decoder ADR5. Are connected to the word line WL4. The address decoders ADR2 to ADR5 supply row selection signals R0, R0 in response to the input address bits A2, A1, respectively.
1, R2 and R3 are output.

【0063】図6はアドレスデコーダADR2〜ADR
5の内部構成を示す図であり、(a)はADR2、
(b)はADR3、(c)はADR4、(d)はADR
5をそれぞれ示す。ADR2は、インバータINV3、
INV4と、アンドゲートAND1とを有し、ロー選択
信号R0を出力する。AND1の第1の入力端子にはI
NV3を介してアドレスビットA1が入力され、AND
1の第2の入力端子にはINV4を介してアドレスビッ
トA2が入力される。ADR3は、インバータINV5
と、アンドゲートAND2とを有し、ロー選択信号R1
を出力する。AND2の第1の入力端子にはアドレスビ
ットA1が入力され、AND2の第2の入力端子にはI
NV5を介してアドレスビットA2が入力される。AD
R4は、インバータINV6と、アンドゲートAND3
とを有し、ロー選択信号R2を出力する。AND3の第
1の入力端子にはINV6を介してアドレスビットA1
が入力され、AND3の第2の入力端子にはアドレスビ
ットA2が入力される。ADR5は、アンドゲートAN
D4からなり、ロー選択信号R3を出力する。AND4
の第1の入力端子にはアドレスビットA1が入力され、
AND4の第2の入力端子にはアドレスビットA2が入
力される。アドレスビットA2、A1が”0、0”のと
き、ロー選択信号R0は”1”、R2〜R4は”0”と
なり、ワードラインWL0およびWL1が選択される。
同様に、A2、A1が”0、1”のときには、R1のみ
が”1”となり、ワードラインWL2が選択される。A
2、A1が”1、0”のときには、R2のみが”1”と
なり、ワードラインWL3が選択される。A2、A1
が”1、1”のときには、R3のみが”1”となり、ワ
ードラインWL4が選択される。
FIG. 6 shows address decoders ADR2 to ADR.
5 is a diagram showing an internal configuration of ADR2, FIG.
(B) is ADR3, (c) is ADR4, (d) is ADR
5 are shown. ADR2 is connected to inverter INV3,
It has an INV4 and an AND gate AND1, and outputs a row selection signal R0. The first input terminal of AND1 has I
Address bit A1 is input via NV3, and AND
The address bit A2 is input to the first second input terminal via INV4. ADR3 is the inverter INV5
And an AND gate AND2, and a row selection signal R1
Is output. An address bit A1 is input to a first input terminal of AND2, and I2 is input to a second input terminal of AND2.
Address bit A2 is input via NV5. AD
R4 has an inverter INV6 and an AND gate AND3.
And outputs a row selection signal R2. A first input terminal of AND3 has an address bit A1 via INV6.
Is input, and an address bit A2 is input to a second input terminal of the AND3. ADR5 is AND gate AN
D4, and outputs a row selection signal R3. AND4
The address bit A1 is input to the first input terminal of
The address bit A2 is input to a second input terminal of the AND4. When the address bits A2 and A1 are "0, 0", the row selection signal R0 is "1", R2 to R4 are "0", and the word lines WL0 and WL1 are selected.
Similarly, when A2 and A1 are "0, 1", only R1 becomes "1", and the word line WL2 is selected. A
When 2, A1 is "1, 0", only R2 becomes "1", and the word line WL3 is selected. A2, A1
Is "1, 1", only R3 becomes "1", and the word line WL4 is selected.

【0064】図5に戻り、メモリセルアレイ6には、そ
れぞれ16ビットのデータ容量を有する同一構成の冗長
メモリセルユニット100、101と、8ビットのデー
タ容量を有する同一構成の非冗長メモリセルユニット5
10、511、520、521、530、531がマト
リクス状に配置されている。図5にはメモリセルユニッ
ト100の内部構成のみを図示してある。冗長メモリセ
ルユニット100、101は、それぞれ図2に示した同
一符号の冗長メモリセルユニットと同じである。また非
冗長メモリセルユニット510、511は図1に示した
同一符号の非冗長メモリセルユニットと同じである。非
冗長メモリセルユニット520、521における8個の
セル選択トランジスタのゲート電極およびセル選択トラ
ンジスタのゲート電極は、ワードラインWL2に接続さ
れ、非冗長メモリセルユニット530、531における
8個のセル選択トランジスタのゲート電極およびセル選
択トランジスタのゲート電極は、ワードラインWL3に
接続されている。また非冗長メモリセルユニット52
0、530におけるセル選択トランジスタTWkのドレ
イン電極は、ビットラインBL0kに接続されており、
また非冗長メモリセルユニット521、531における
セル選択トランジスタTWkのドレインは、ビットライ
ンBL1kに接続されている。
Returning to FIG. 5, the memory cell array 6 has redundant memory cell units 100 and 101 of the same configuration each having a data capacity of 16 bits, and non-redundant memory cell units 5 of the same configuration having a data capacity of 8 bits.
10, 511, 520, 521, 530, and 531 are arranged in a matrix. FIG. 5 shows only the internal configuration of the memory cell unit 100. The redundant memory cell units 100 and 101 are the same as the redundant memory cell units of the same reference numerals shown in FIG. The non-redundant memory cell units 510 and 511 are the same as the non-redundant memory cell units of the same reference numerals shown in FIG. The gate electrodes of the eight cell selection transistors and the gate electrodes of the cell selection transistors in the non-redundant memory cell units 520 and 521 are connected to the word line WL2, and are connected to the eight cell selection transistors in the non-redundant memory cell units 530 and 531. The gate electrode and the gate electrode of the cell selection transistor are connected to the word line WL3. The non-redundant memory cell unit 52
0, 530, the drain electrode of the cell selection transistor TWk is connected to the bit line BL0k,
The drains of the cell selection transistors TWk in the non-redundant memory cell units 521 and 531 are connected to the bit line BL1k.

【0065】すなわち図5に示す第2の実施形態のEE
PROMは、メモリセルアレイ6を冗長領域と非冗長領
域とに分割し、冗長領域に冗長メモリセルユニット11
0および111を設け、非冗長領域に非冗長メモリユニ
ット510、511、520、521、530、531
を設けたものであり、上記第1の実施形態のEEPRO
M(図2参照)のように、メモリセルアレイ1の全領域
を冗長領域としたものとは異なる。またワードラインW
L0およびWL1、WL2、WL3、WL4を択一的に
選択するために、コラム選択のためのアドレスビットを
2ビットとし、アドレスバスAB2を設け、ローデコー
ド部7が2ビットのアドレスデータをデコードできるよ
うにしている。
That is, the EE of the second embodiment shown in FIG.
The PROM divides the memory cell array 6 into a redundant area and a non-redundant area, and the redundant memory cell unit 11
0 and 111 are provided, and non-redundant memory units 510, 511, 520, 521, 530, and 531 are provided in the non-redundant area.
EEPRO of the first embodiment.
This is different from M (see FIG. 2) in which the entire area of the memory cell array 1 is a redundant area. Word line W
To selectively select L0 and WL1, WL2, WL3, WL4, the address bits for column selection are set to 2 bits, an address bus AB2 is provided, and the row decode unit 7 can decode 2-bit address data. Like that.

【0066】次に図5に示す本発明の第2の実施形態の
EEPROMの動作を説明する。まず、データ読み出し
動作について説明する。アドレスデータA2、A1、A
0に基づいて、いずれかのメモリセルユニットを選択
し、選択されたメモリセルユニットに記憶されたワード
データD7〜D0を読み出す。
Next, the operation of the EEPROM according to the second embodiment of the present invention shown in FIG. 5 will be described. First, the data read operation will be described. Address data A2, A1, A
0, one of the memory cell units is selected, and the word data D7 to D0 stored in the selected memory cell unit are read.

【0067】アドレスデータA2、A1、A0=”0、
0、0”であるときは、以下のようにして、冗長メモリ
セルユニット100が選択される。アドレスデータA
2、A1=”0、0”なので、アドレスデコーダADR
2において、アンドゲートAND1の2つの入力端子が
ともに”1”となり、ロー選択信号R0が”1”とな
る。アドレスデコーダADR3〜ADR5のアンドゲー
トAND2〜AND4の2つの入力端子のいずれかは”
0”となり、ロー選択信号R1〜R3は”0”となる。
これにより、ワードラインWL0およびWL1が選択さ
れる。またアドレスデータA0=”0”なので、アドレ
スデコーダADC0は”1”のコラム選択信号C0を出
力し、コラム選択トランジスタTC00〜TC07がO
Nし、ビットラインBL00〜BLが選択される。これ
以降のデータ読み出し動作は上記第1の実施形態と同様
であり、誤り訂正回路ECk(kは0〜7のいずれかの
正数)を構成する2つのメモリセルMC1kおよびMC
2kに記憶されているそれぞれのデータのANDをとっ
たデータがワードデータDkとして読み出される。また
アドレスデータA2、A1、A0=”0,0,1”であ
るときは、冗長メモリセルユニット100が選択され
る。冗長メモリセルユニット101からのデータの読み
出し動作は、上記冗長メモリセルユニット100からの
データ読み出し動作と同様である。
Address data A2, A1, A0 = “0,
When it is 0, 0 ", the redundant memory cell unit 100 is selected as follows. Address data A
2. Since A1 = "0,0", the address decoder ADR
In 2, the two input terminals of the AND gate AND1 both become "1", and the row selection signal R0 becomes "1". One of the two input terminals of the AND gates AND2 to AND4 of the address decoders ADR3 to ADR5 is "
0 ", and the row selection signals R1 to R3 become" 0 ".
As a result, the word lines WL0 and WL1 are selected. Since the address data A0 is "0", the address decoder ADC0 outputs a "1" column selection signal C0, and the column selection transistors TC00 to TC07 output O.
N, and the bit lines BL00 to BL are selected. The subsequent data read operation is the same as in the first embodiment, and two memory cells MC1k and MC1k constituting an error correction circuit ECk (k is any positive number from 0 to 7)
Data obtained by ANDing the respective data stored in 2k is read as word data Dk. When the address data A2, A1, A0 = "0, 0, 1", the redundant memory cell unit 100 is selected. The operation of reading data from the redundant memory cell unit 101 is the same as the operation of reading data from the redundant memory cell unit 100.

【0068】また、アドレスデータA2、A1、A0
=”0,1,0”であるときは、以下のようにして、非
冗長メモリセルユニット510が選択される。アドレス
データA2、A1=”0,1”なので、アドレスデコー
ダADR3において、アンドゲートAND2の2つの入
力端子がともに”1”となり、ロー選択信号R1が”
1”となる。アドレスデコーダADR2、ADR4、A
DR5のアンドゲートAND1、AND3、AND4の
2つの入力端子のいずれかは”0”となり、ロー選択信
号R0、R2、R3は”0”となる。これにより、ワー
ドラインWL2が選択される。またアドレスデータA0
=”0”なので、ビットラインBL00〜BL07が選
択される。これ以降のデータ読み出し動作は図1のEE
PROMと同様であり、非冗長メモリセルユニット51
0のメモリセルトランジスタTMkに記憶されているデ
ータがワードデータDkとして読み出される。またアド
レスデータA2、A1、A0=”0,1,1”、”1,
0,0”、”1,0,0”、”1,1,0”、”1,
1,0”であるときは、非冗長メモリセルユニット51
0、511、520、521、530、531がそれぞ
れ選択される。尚、冗長メモリセルユニット100、1
01におけるデータ記憶動作は、上記第1の実施形態と
同様であり、非冗長メモリセルユニット100、101
におけるデータ記憶動作は、上記第1の実施形態と同様
であり、また非冗長メモリセルユニット510、51
1、520、521、530、531におけるデータ記
憶動作は、図1のEEPROMと同様である。
The address data A2, A1, A0
When "0, 1, 0", the non-redundant memory cell unit 510 is selected as follows. Since the address data A2, A1 = "0, 1", in the address decoder ADR3, the two input terminals of the AND gate AND2 both become "1" and the row selection signal R1 becomes "1".
1 ". Address decoders ADR2, ADR4, A
One of the two input terminals of the AND gates AND1, AND3, and AND4 of DR5 becomes "0", and the row selection signals R0, R2, R3 become "0". As a result, the word line WL2 is selected. Address data A0
Since "0", the bit lines BL00 to BL07 are selected. The subsequent data read operation is performed by the EE of FIG.
Similar to the PROM, the non-redundant memory cell unit 51
The data stored in the 0 memory cell transistor TMk is read as word data Dk. Address data A2, A1, A0 = “0, 1, 1”, “1,
0,0 "," 1,0,0 "," 1,1,0 "," 1,
1, 0 ", the non-redundant memory cell unit 51
0, 511, 520, 521, 530, and 531 are selected, respectively. The redundant memory cell units 100, 1
01 is the same as that of the first embodiment, and the non-redundant memory cell units 100 and 101
Are the same as in the first embodiment, and the non-redundant memory cell units 510 and 51
The data storage operation in 1, 520, 521, 530, 531 is the same as in the EEPROM of FIG.

【0069】3ビットのアドレスデータA2、A1、A
0に対して、上記第1の実施形態のようにメモリセルア
レイの全ての領域を冗長領域とした場合には、メモリセ
ルアレイに16バイトのメモリセルが必要となる。しか
しアドレスA2、A1、A0=”0,0,0”、”0,
0,1”の2つの領域だけを冗長領域として冗長メモリ
セルユニット100、101を配置し、この2つの領域
の誤り率を低下させ、その他の領域を非冗長領域として
非冗長メモリセルユニット510、511、520、5
21、530、531を配置にした図5に示す第2の実
施形態の場合には、メモリセルアレイを10バイトのメ
モリセルで構成できる。
3-bit address data A2, A1, A
On the other hand, when the entire area of the memory cell array is a redundant area as in the first embodiment, 16 bytes of memory cells are required in the memory cell array. However, addresses A2, A1, A0 = "0, 0, 0", "0,
The redundant memory cell units 100 and 101 are arranged with only the two areas 0, 1 "as the redundant areas, the error rate of these two areas is reduced, and the other areas are set as the non-redundant areas. 511, 520, 5
In the case of the second embodiment shown in FIG. 5 in which 21, 530, and 531 are arranged, the memory cell array can be composed of 10-byte memory cells.

【0070】このように第2の実施形態によれば、メモ
リセルアレイを冗長領域と非冗長領域に分けることによ
り、チップ面積の増加を防ぎ、しかも誤り率の低下も達
成できる。また冗長領域としたい複数のメモリセルに対
応する複数のワードラインが同時に選択されるように接
続を変更するだけで、冗長領域と非冗長領域からなるメ
モリセルアレイを簡単に実現することができる。
As described above, according to the second embodiment, by dividing the memory cell array into a redundant region and a non-redundant region, an increase in chip area can be prevented, and a reduction in error rate can be achieved. Further, a memory cell array including a redundant region and a non-redundant region can be easily realized only by changing the connection so that a plurality of word lines corresponding to a plurality of memory cells desired to be a redundant region are simultaneously selected.

【0071】尚、同様にして、非常にセキュリティを要
するメモリセルアレイの特定領域を、3バイト冗長領
域、あるいは4バイト冗長領域とすることも可能であ
る。
Similarly, the specific area of the memory cell array requiring extremely security can be a 3-byte redundant area or a 4-byte redundant area.

【0072】第3の実施形態 上記第2の実施形態においては、メモリセルアレイにお
ける冗長領域が予め決まっていたので、用途によって冗
長領域の変更ができない。また、冗長ビット数(1つの
誤り訂正回路を構成するメモリセル数)も固定なので、
さらに誤り率を低くする場合(例えば、3ビット冗長)
への変更ができない。第3の実施形態はプログラマブル
にロー選択のアドレスデコードを制御することによっ
て、上記の問題を解決したことを特徴とするものであ
る。
Third Embodiment In the second embodiment, since the redundant area in the memory cell array is predetermined, the redundant area cannot be changed depending on the application. Also, since the number of redundant bits (the number of memory cells constituting one error correction circuit) is fixed,
When the error rate is further reduced (for example, 3-bit redundancy)
Cannot be changed to The third embodiment is characterized in that the above-mentioned problem is solved by controlling the address decoding of the row selection in a programmable manner.

【0073】図7は本発明の第3の実施形態のEEPR
OMの構成を示す図である。アドレスビットA0はコラ
ム選択のためのビットデータであり、アドレスビットA
2、A1はロー選択のためのビットデータである。尚、
図7と図2または図5とにおいて同一符号を付したもの
は同じものを示す。
FIG. 7 shows an EEPR according to a third embodiment of the present invention.
It is a figure showing composition of OM. Address bit A0 is bit data for selecting a column.
2. A1 is bit data for row selection. still,
7 and FIG. 2 or FIG. 5 indicate the same components.

【0074】図7に示す第3の実施形態のEEPROM
は、メモリセルアレイ8と、3本のアドレスバスAB
0、AB1、AB2と、ローデコード部9と、コラムデ
コード部3と、センスアンプ部4と、8本のデータバス
DB0〜DB7(DB1〜DB6は図示省略)とを有す
る。尚、図7にはデータの読み出し動作をするための回
路のみ示してあり、データの記憶動作をするための回路
は図示していない。
An EEPROM according to the third embodiment shown in FIG.
Is a memory cell array 8 and three address buses AB.
0, AB1, AB2, a row decode unit 9, a column decode unit 3, a sense amplifier unit 4, and eight data buses DB0 to DB7 (DB1 to DB6 are not shown). Note that FIG. 7 shows only a circuit for performing a data read operation, and does not illustrate a circuit for performing a data storage operation.

【0075】ローデコード部9は、デコーダコントロー
ル回路DCと、アドレスデコーダADR6、ADR7、
ADR8とを有する。デコーダコントロール回路DC
は、外部からの設定に従って”0”または”1”のコン
トロール信号E1、E2、E3を出力する。ここで
は、”0”と”L”レベルを対応させ、”1”と”H”
レベルを対応させる。
The row decoder 9 comprises a decoder control circuit DC and address decoders ADR6, ADR7,
ADR8. Decoder control circuit DC
Outputs control signals E1, E2, E3 of "0" or "1" according to the setting from the outside. Here, “0” and “L” level are associated, and “1” and “H”
Make the levels correspond.

【0076】アドレスデコーダADR6の2つの入力端
子には、アドレスビットA2、A1がそれぞれ入力さ
れ、ADR6の出力端子はワードラインWL0に接続さ
れている。このADR6はロー選択信号R0を出力す
る。アドレスデコーダADR7の3つの入力端子には、
アドレスビットA2、A1、ロー選択信号R0、コント
ロール信号E1がそれぞれ入力され、ADR7の出力端
子はワードラインWL1に接続されている。このADR
7はロー選択信号R1を出力する。アドレスデコーダA
DR8の6つの入力端子には、アドレスビットA2、A
1、ロー選択信号R0、R1、コントロール信号E2、
E3がそれぞれ入力され、ADR8の出力端子はワード
ラインWL2に接続されている。このADR8はロー選
択信号R2を出力する。
Address bits A2 and A1 are respectively input to two input terminals of the address decoder ADR6, and an output terminal of the ADR6 is connected to the word line WL0. The ADR 6 outputs a row selection signal R0. The three input terminals of the address decoder ADR7 are:
Address bits A2, A1, a row selection signal R0, and a control signal E1 are input, and an output terminal of ADR7 is connected to word line WL1. This ADR
7 outputs a row selection signal R1. Address decoder A
The six input terminals of DR8 have address bits A2, A2
1, row selection signals R0, R1, control signal E2,
E3 is input, and the output terminal of ADR8 is connected to word line WL2. The ADR 8 outputs a row selection signal R2.

【0077】図8はアドレスデコーダADR6〜ADR
8の内部構成を示す図であり、(a)はADR6、
(b)はADR7、(c)はADR8をそれぞれ示して
いる。アドレスデコーダADR6は、インバータINV
7、INV8と、アンドゲートAND5とを有する。A
ND5の第1の入力端子にはINV7を介してアドレス
ビットA1が入力され、AND5の第2の入力端子には
INV8を介してアドレスビットA2が入力される。
FIG. 8 shows address decoders ADR6 to ADR.
8A and 8B are diagrams showing the internal configuration of ADR6, FIG.
(B) shows ADR7, and (c) shows ADR8. The address decoder ADR6 is connected to the inverter INV
7, an INV8 and an AND gate AND5. A
An address bit A1 is input to a first input terminal of ND5 via INV7, and an address bit A2 is input to a second input terminal of AND5 via INV8.

【0078】アドレスデコーダADR7は、インバータ
INV9、INV10と、アンドゲートAND6〜AN
D8と、ORゲートOR1とを有する。AND6の第1
の入力端子にはアドレスビットA1が入力され、AND
6の第2の入力端子にはINV9を介してアドレスビッ
トA2が入力される。AND7の第1の入力端子にはロ
ー選択信号R1が入力され、AND7の第2の入力端子
にはコントロール信号E1が入力される。AND8の第
1の入力端子にはINV10を介してコントロール信号
E1が入力され、AND8の第2の入力端子はAND6
の出力端子に接続されている。OR1の2つの入力端子
は、AND7とAND8の出力端子にそれぞれ接続され
ている。
The address decoder ADR7 includes inverters INV9 and INV10 and AND gates AND6 to AN6.
D8 and an OR gate OR1. The first of AND6
The address bit A1 is input to the input terminal of
The address bit A2 is input to the second input terminal 6 via INV9. A low selection signal R1 is input to a first input terminal of AND7, and a control signal E1 is input to a second input terminal of AND7. A control signal E1 is input to a first input terminal of AND8 via INV10, and a second input terminal of AND8 is AND6.
Output terminal. The two input terminals of OR1 are connected to the output terminals of AND7 and AND8, respectively.

【0079】アドレスデコーダADR8は、インバータ
INV11〜INV13と、アンドゲートAND9〜A
ND15と、ORゲートOR2とを有する。AND9の
第1の入力端子にはINV11を介してアドレスビット
A1が入力され、AND9の第2の入力端子にはアドレ
スビットA2が入力される。AND10の第1の入力端
子にはコントロール信号E3が入力され、AND10の
第2の入力端子にはINV13を介してコントロール信
号E2が入力される。AND11の第1の入力端子には
INV12を介してコントロール信号E3が入力され、
第2の入力端子にはコントロール信号E2が入力され
る。AND12の第1の入力端子にはINV12を介し
てコントロール信号E3が入力され、第2の入力端子に
はINV13を介してコントロール信号E2が入力され
る。AND13の第1の入力端子にはロー選択信号R1
が入力され、AND13の第2の入力端子はAND10
の出力端子に接続されている。AND14の第1の入力
端子にはロー選択信号R0が入力され、AND14の第
2の入力端子はAND11の出力端子に接続されてい
る。AND15の第1の入力端子はAND9の出力端子
に接続されており、AND15の第2の入力端子はAN
D12の出力端子に接続されている。OR2の3つの入
力端子は、AND13、AND14、AND15の出力
端子にそれぞれ接続されている。
The address decoder ADR8 includes inverters INV11-INV13 and AND gates AND9-A.
ND15 and an OR gate OR2. An address bit A1 is input to a first input terminal of AND9 via INV11, and an address bit A2 is input to a second input terminal of AND9. The control signal E3 is input to a first input terminal of the AND10, and the control signal E2 is input to the second input terminal of the AND10 via the INV13. A control signal E3 is input to a first input terminal of AND11 via INV12,
The control signal E2 is input to the second input terminal. The control signal E3 is input to the first input terminal of the AND12 via the INV12, and the control signal E2 is input to the second input terminal via the INV13. The first input terminal of the AND 13 has a row selection signal R1
And the second input terminal of AND13 is AND10
Output terminal. A row selection signal R0 is input to a first input terminal of the AND 14, and a second input terminal of the AND 14 is connected to an output terminal of the AND 11. A first input terminal of AND15 is connected to an output terminal of AND9, and a second input terminal of AND15 is connected to AN15.
It is connected to the output terminal of D12. The three input terminals of OR2 are connected to the output terminals of AND13, AND14, and AND15, respectively.

【0080】このアドレスデコーダADR6〜ADR8
は、コントロール信号E1〜E3の設定に応じて異なる
動作をする。コントロール信号E1、E2、E3=”
L,L,L”の設定を第1の設定とする。E1、E2、
E3=”H,L,L”、”L,H,L”、または”L,
L,H”、の設定を第2の設定とする。E1,E2,E
3=”H,H,L”または”H,L,H”のときの動作
を第3の設定とする。第1の設定のときは、アドレスビ
ットA2、A1に応じてワードラインWL0〜WL2の
いずれか1本を選択する。第2の設定のときは、アドレ
スビットA2、A1に応じて3本のワードラインのうち
の2本を同時に選択する。例えば、E1、E2、E3
=”L,H,L”のときは、ワードラインWL0とWL
2が同時に選択される。第3の設定のときは、アドレス
ビットA2、A1に応じて3本のワードラインを同時に
選択する。
The address decoders ADR6 to ADR8
Performs different operations according to the settings of the control signals E1 to E3. Control signals E1, E2, E3 = "
L, L, L "are set as first settings. E1, E2,
E3 = “H, L, L”, “L, H, L” or “L,
L, H ", as the second setting. E1, E2, E
The operation when 3 = “H, H, L” or “H, L, H” is the third setting. In the first setting, one of the word lines WL0 to WL2 is selected according to the address bits A2 and A1. At the time of the second setting, two of the three word lines are simultaneously selected according to the address bits A2 and A1. For example, E1, E2, E3
= ”L, H, L”, the word lines WL0 and WL
2 are simultaneously selected. At the time of the third setting, three word lines are simultaneously selected according to the address bits A2 and A1.

【0081】図7に戻り、メモリセルアレイ8には、そ
れぞれ24ビットのデータ容量を有する同一構成のメモ
リセルユニット800および801が配置されている。
図7にはメモリセルユニット800の内部構成のみを図
示してある。メモリセルユニット800は、図2および
図5示したメモリセルユニット100において、セル選
択トランジスタTW30、TW31…TW37と、メモ
リトランジスタTM30、TM31…TM37と、セン
スワード選択トランジスタTWS3とを設けたものであ
る。同様に、メモリセルユニット801は、図2および
図5示したメモリセルユニット101において、TW3
0〜TW37と、TM30〜TM37と、TWS3とを
設けたものである。セル選択トランジスタTW30〜T
W37およびセンスワード選択トランジスタTSW3の
ゲート電極はワードラインWL2に共通接続されてい
る。メモリトランジスタTM3kは、メモリトランジス
タTM1kおよびTM2kと同じ構造である(図3参
照)。
Returning to FIG. 7, in the memory cell array 8, memory cell units 800 and 801 having the same configuration and having a data capacity of 24 bits are arranged.
FIG. 7 shows only the internal configuration of the memory cell unit 800. The memory cell unit 800 is the same as the memory cell unit 100 shown in FIGS. 2 and 5 except that the cell selection transistors TW30, TW31... TW37, the memory transistors TM30, TM31. . Similarly, the memory cell unit 801 is different from the memory cell unit 101 shown in FIGS.
0 to TW37, TM30 to TM37, and TWS3. Cell selection transistors TW30 to TW
W37 and the gate electrode of the sense word select transistor TSW3 are commonly connected to a word line WL2. Memory transistor TM3k has the same structure as memory transistors TM1k and TM2k (see FIG. 3).

【0082】すなわち、図7に示す第3の実施形態のE
EPROMは、メモリセルアレイ8に配置したメモリセ
ルユニット800、801を冗長メモリセルユニットと
非冗長メモリセルユニットのいずれで動作させるかをプ
ログラマブルに変更できるようにしたものであり、上記
第2の実施形態のEEPROM(図5参照)のように、
メモリセルアレイ6における冗長領域と非冗長領域とが
予め決められてしまっているものとは異なる。ローデコ
ード部9は、ワードラインWL0〜WL3を択一的に、
あるいは同時に選択できる構成となっている。
That is, E of the third embodiment shown in FIG.
The EPROM is configured so that the memory cell units 800 and 801 arranged in the memory cell array 8 can be operated by a redundant memory cell unit or a non-redundant memory cell unit in a programmable manner. As shown in FIG. 5 (see FIG. 5),
The redundant region and the non-redundant region in the memory cell array 6 are different from those determined in advance. The row decode unit 9 selects one of the word lines WL0 to WL3,
Alternatively, they can be selected at the same time.

【0083】次に図7に示す本発明の第3の実施形態の
EEPROMの動作を説明する。まず、データ読み出し
動作について説明する。ここでは、主にデータを読み出
すメモリを選択するまでの動作を説明する。選択したメ
モリセルからデータを読み出す動作は、上記第2の実施
形態と同様である。またデータの記憶動作におけるメモ
リセルの選択動作は、以下に示す読み出し動作における
選択動作と同様である。
Next, the operation of the EEPROM according to the third embodiment of the present invention shown in FIG. 7 will be described. First, the data read operation will be described. Here, an operation until a memory from which data is read is selected will be mainly described. The operation of reading data from the selected memory cell is the same as in the second embodiment. A memory cell selection operation in a data storage operation is similar to a selection operation in a read operation described below.

【0084】図7に示すEEPROMにおいては、アド
レスデータA2、A1、A0に基づいて、いずれかのメ
モリセルユニットを選択し、さらにワードラインWL
0、WL1、WL2のうちの全てあるいは2本あるいは
1本を選択することにより、メモリセルユニット内の2
4ビットのメモリセル、あるいは16ビットのメモリセ
ル、あるいは8ビットのメモリセルを選択し、選択され
たメモリセルに記憶されたワードデータD7〜D0を3
ビット冗長読み出し、2ビット冗長読み出し、あるいは
非冗長読み出しする。ワードラインWL0、WL1、W
L2をどのように選択するかは、デコーダコントロール
回路DCが出力するコントロール信号E1、E2、E3
が上述した第1、第2、第3のいずれの設定となってい
るかにより決まる。
In the EEPROM shown in FIG. 7, one of the memory cell units is selected based on the address data A2, A1, A0, and the word line WL is selected.
0, WL1, and WL2, or all or two of them, the 2 in the memory cell unit is selected.
A 4-bit memory cell, a 16-bit memory cell, or an 8-bit memory cell is selected, and the word data D7 to D0 stored in the selected memory cell are divided by three.
Bit redundant reading, 2-bit redundant reading, or non-redundant reading. Word lines WL0, WL1, W
How L2 is selected depends on the control signals E1, E2, E3 output from the decoder control circuit DC.
Is determined based on which of the first, second, and third settings described above.

【0085】まず、コントロール信号E1、E2、E3
が第1の設定、すなわちE1、E2、E3=”L,L,
L”であるときのデータ読み出し動作を説明する。第1
の設定は、ワードラインWL0、WL1、WL2のいず
れかを択一的に選択して非冗長読み出しを実施する設定
である。このとき、アドレスデコーダADR6(図8参
照)は、アドレスデータA2、A1=”L,L”のとき
にのみ、ロー選択信号を”1”にする。またアドレスデ
コーダADR7においては、コントロール信号E1=”
L”なので、AND7の出力が常に”L”となり、AN
D8の第1の入力端子は常に”H”となる。従ってアド
レスデコーダADR7は、AND6の出力信号をロー選
択信号R1として出力し、アドレスデータA2、A1
=”L,H”のときにのみ、ロー選択信号R1を”1”
にする。またアドレスデコーダADR8においては、コ
ントロール信号E2、E3=”L,L”なので、AND
10およびAND11の出力が常に”L”、AND12
の出力が常に”H”となり、これによりAND13およ
びAND14の出力が常に”L”、AND15の第2の
入力端子は常に”H”となる。従ってアドレスデコーダ
ADR8は、AND9の出力信号をロー選択信号R2と
して出力し、アドレスデータA2、A1=”H,L”の
ときにのみ、ロー選択信号R2を”1”にする。
First, the control signals E1, E2, E3
Are the first settings, ie, E1, E2, E3 = “L, L,
The data read operation when L "is described.
Is a setting in which one of the word lines WL0, WL1, and WL2 is alternatively selected to perform non-redundant read. At this time, the address decoder ADR6 (see FIG. 8) sets the row selection signal to "1" only when the address data A2, A1 = "L, L". In the address decoder ADR7, the control signal E1 = ""
L ”, the output of AND7 is always“ L ”, and
The first input terminal of D8 is always "H". Therefore, the address decoder ADR7 outputs the output signal of AND6 as the row selection signal R1, and outputs the address data A2, A1.
= “L, H”, the row selection signal R1 is set to “1”.
To Also, in the address decoder ADR8, since the control signals E2 and E3 = "L, L", AND
10 and AND11 are always "L", AND12
Is always "H", whereby the outputs of AND13 and AND14 are always "L", and the second input terminal of AND15 is always "H". Therefore, the address decoder ADR8 outputs the output signal of the AND9 as the row selection signal R2, and sets the row selection signal R2 to "1" only when the address data A2, A1 = "H, L".

【0086】すなわち第1の設定においては、アドレス
データA2、A1=”L,L”のとき、ワードラインW
L0が選択され、メモリセルMC10〜MC17に記憶
されているデータが非冗長読み出しされる。同様に、ア
ドレスデータA2、A1=”L,H”のとき、ワードラ
インWL1が選択されて、メモリセルMC20〜MC2
7に記憶されているデータが非冗長読み出しされ、また
アドレスデータA2、A1=”H,L”のとき、ワード
ラインWL2が選択されて、メモリセルMC30〜MC
37に記憶されているデータが非冗長読み出しされる。
That is, in the first setting, when the address data A2, A1 = "L, L", the word line W
L0 is selected, and the data stored in the memory cells MC10 to MC17 is read non-redundantly. Similarly, when the address data A2, A1 = "L, H", the word line WL1 is selected and the memory cells MC20 to MC2 are selected.
7 is read non-redundantly, and when the address data A2, A1 = "H, L", the word line WL2 is selected and the memory cells MC30-MC
The data stored in 37 is read non-redundantly.

【0087】次に、コントロール信号E1、E2、E3
が第2の設定、すなわちE1、E2、E3=”H,L,
L”、”L,H,L”、または”L,L,H”であると
きのデータ読み出し動作を説明する。第2の設定は、例
えばE1、E2、E3=”H,L,L”のときに、ワー
ドラインWL0およびWL1を同時に選択して2ビット
の冗長読み出しを実施し、またワードラインWL2を単
独で選択して非冗長読み出しを実施する設定である。E
1、E2、E3=”H,L,L”の設定において、アド
レスデコーダADR6は、アドレスデータA2、A1
=”L,L”のときにのみ、ロー選択信号R0を”1”
にする。またアドレスデコーダADR7においては、コ
ントロール信号E1=”H”なので、AND8の出力が
常に”L”となり、AND7の第1の入力端子が常に”
H”となる。従ってアドレスデコーダADR7は、AN
D7の出力信号すなわちロー選択信号R0をロー選択信
号R1として出力し、アドレスデータA2、A1にかか
わらず、ロー選択信号R0が”1”のときにのみR1
を”1”にする。またアドレスデコーダADR8は、コ
ントロール信号E2、E3=”L,L”なので、上記第
1の設定のときと同じ動作となり、アドレスデータA
2、A1=”H,L”のときにのみ、ロー選択信号R2
を”1”にする。
Next, the control signals E1, E2, E3
Are the second settings, that is, E1, E2, E3 = “H, L,
The data read operation when L "," L, H, L "or" L, L, H "is described.The second setting is, for example, E1, E2, E3 =" H, L, L " At this time, the word lines WL0 and WL1 are simultaneously selected to perform 2-bit redundant reading, and the word line WL2 is independently selected to perform non-redundant reading.
In the setting of 1, E2, E3 = "H, L, L", the address decoder ADR6 outputs the address data A2, A1.
= "L, L", the row selection signal R0 is set to "1".
To In the address decoder ADR7, since the control signal E1 = "H", the output of the AND8 is always "L" and the first input terminal of the AND7 is always "H".
H ”. Therefore, the address decoder ADR7 outputs
The output signal of D7, that is, the row selection signal R0 is output as the row selection signal R1, and R1 is output only when the row selection signal R0 is "1" regardless of the address data A2 and A1.
To “1”. Further, the address decoder ADR8 performs the same operation as that of the first setting because the control signals E2 and E3 = "L, L", and the address data A
2. Only when A1 = "H, L", the row selection signal R2
To “1”.

【0088】すなわち第2の設定においては、アドレス
データA2、A1=”L,L”のとき、ワードラインW
L0およびWL1が同時に選択され、メモリセルMC1
0〜MC17、MC20〜MC27に記憶されているワ
ードデータD0〜D7が冗長読み出しされる。またアド
レスデータA2、A1=”H,L”のとき、ワードライ
ンWL2が選択され、メモリセルMC30〜MC37に
記憶されているデータが非冗長読み出しされる。尚、上
記と同様にして、E1、E2、E3=”L,H,L”の
設定においては、アドレスデータA2、A1=”L,
L”のとき、ワードラインWL0およびWL2が同時に
選択される。またE1、E2、E3=”L,L,H”の
設定においては、アドレスデータA2、A1=”L,
H”のとき、ワードラインWL1およびWL2が同時に
選択される。
That is, in the second setting, when the address data A2, A1 = "L, L", the word line W
L0 and WL1 are simultaneously selected, and memory cell MC1 is selected.
Word data D0 to D7 stored in 0 to MC17 and MC20 to MC27 are redundantly read. When the address data A2, A1 = "H, L", the word line WL2 is selected, and the data stored in the memory cells MC30 to MC37 is read non-redundantly. In the same manner as above, when setting E1, E2, E3 = “L, H, L”, the address data A2, A1 = “L,
When "L", the word lines WL0 and WL2 are simultaneously selected. When E1, E2, E3 = "L, L, H", the address data A2, A1 = "L,
When "H", the word lines WL1 and WL2 are simultaneously selected.

【0089】次に、コントロール信号E1、E2、E3
が第3の設定、すなわちE1,E2,E3=”H,H,
L”または”H,L、H”であるときのデータ読み出し
動作を説明する。この第3の設定は、ワードラインWL
0、WL1、WL2を同時に選択して3ビットの冗長読
み出しを実施する設定である。E1、E2、E3=”
H,H,L”の設定において、アドレスデコーダADR
6は、アドレスデータA2、A1=”L,L”のときに
のみ、ロー選択信号を”1”にする。またアドレスデコ
ーダADR7は、コントロール信号E1=”H”なの
で、上記第2の設定(E1、E2、E3=”H,L,
L”)のときと同じ動作となり、アドレスデータA2、
A1にかかわらず、ロー選択信号R0が”1”のときに
のみR1を”1”にする。またアドレスデコーダADR
8においては、コントロール信号E2、E3=”H,
L”なので、AND10およびAND12の出力が常
に”L”、AND11の出力が常に”H”となり、これ
によりAND13およびAND15の出力が常に”
L”、AND14の第2の入力端子は常に”L”とな
る。従ってアドレスデコーダADR8は、ロー選択信号
R0をR2として出力し、アドレスデータA2、A1
=”L,L”のときにのみ、ロー選択信号R2を”1”
にする。
Next, the control signals E1, E2, E3
Are the third setting, that is, E1, E2, E3 = “H, H,
A description will be given of a data read operation when the word line WL is "L" or "H, L, H."
This is a setting in which 0, WL1, and WL2 are simultaneously selected to perform 3-bit redundant reading. E1, E2, E3 = "
In the setting of "H, H, L", the address decoder ADR
No. 6 sets the row selection signal to "1" only when the address data A2, A1 = "L, L". Since the address decoder ADR7 has the control signal E1 = "H", the second setting (E1, E2, E3 = "H, L,
L "), the address data A2,
Regardless of A1, R1 is set to "1" only when the row selection signal R0 is "1". Address decoder ADR
8, the control signals E2 and E3 = "H,
Since the output of AND10 and AND12 is always "L" and the output of AND11 is always "H", the outputs of AND13 and AND15 are always "L".
L ", the second input terminal of the AND 14 is always" L. "Therefore, the address decoder ADR8 outputs the row selection signal R0 as R2, and outputs the address data A2, A1.
= "L, L", the row selection signal R2 is set to "1".
To

【0090】すなわち第3の設定においては、アドレス
データA2、A1=”L,L”のとき、ワードラインW
L0、WL1、およびWL2が同時に選択され、メモリ
セルMC10〜MC17、MC20〜MC27、MC3
0〜MC37に記憶されているワードデータD0〜D7
が3ビット冗長読み出しされる。尚、E1、E2、E3
=”H,L、H”の設定においても上記と同じである。
That is, in the third setting, when the address data A2, A1 = "L, L", the word line W
L0, WL1, and WL2 are simultaneously selected, and the memory cells MC10 to MC17, MC20 to MC27, MC3
0 to word data D0 to D7 stored in MC37.
Is read out three bits redundantly. In addition, E1, E2, E3
The same applies to the setting of "H, L, H".

【0091】このように第3の実施形態によれば、ワー
ドラインをどのように選択するかを、外部から制御でき
るようにすることにより、冗長領域を自由に選択するこ
とができ、しかも冗長ビット数も自由に選択できる。
As described above, according to the third embodiment, how the word line is selected can be externally controlled, so that the redundant area can be freely selected, and the redundant bit can be selected. The number can be freely selected.

【0092】[0092]

【発明の効果】以上説明したように本発明の誤り訂正回
路および半導体記憶装置によれば、同じデータを複数の
メモリセルに記憶させ、この複数のメモリセルに記憶さ
れたデータのANDをとったデータを読み出しデータと
することにより、簡単な回路構成で任意のメモリセルの
ビット誤りを訂正することができるという効果がある。
As described above, according to the error correction circuit and the semiconductor memory device of the present invention, the same data is stored in a plurality of memory cells, and the data stored in the plurality of memory cells is ANDed. By using data as read data, there is an effect that a bit error of an arbitrary memory cell can be corrected with a simple circuit configuration.

【0093】さらに請求項9ないし17に記載の半導体
記憶装置によれば、メモリセルアレイを冗長領域と非冗
長領域に分けることにより、チップ面積の増加を防ぐこ
とができるという効果がある。
Further, according to the semiconductor memory device of the ninth to seventeenth aspects, dividing the memory cell array into a redundant area and a non-redundant area has an effect that an increase in chip area can be prevented.

【0094】またさらに請求項12ないし17に記載の
半導体記憶装置によれば、ワードラインをどのように選
択するかを、外部から制御できるようにすることによ
り、冗長領域を自由に選択することができ、しかも冗長
ビット数も自由に選択できるという効果がある。
Furthermore, according to the semiconductor memory device of the twelfth to seventeenth aspects, it is possible to externally control how the word line is selected, so that the redundant area can be freely selected. And the number of redundant bits can be freely selected.

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

【図1】誤り訂正機能を持たないEEPROMの構成を
示す図である。
FIG. 1 is a diagram showing a configuration of an EEPROM having no error correction function.

【図2】本発明の第1の実施形態のEEPROMの構成
を示す図である。
FIG. 2 is a diagram showing a configuration of an EEPROM according to the first embodiment of the present invention.

【図3】EEPROMにおけるメモリセルの詳細構成を
示す図である。
FIG. 3 is a diagram showing a detailed configuration of a memory cell in the EEPROM.

【図4】EEPROMにおけるセンスアンプの内部構成
を示す図である。
FIG. 4 is a diagram showing an internal configuration of a sense amplifier in the EEPROM.

【図5】本発明の第2の実施形態のEEPROMの構成
を示す図である。
FIG. 5 is a diagram showing a configuration of an EEPROM according to a second embodiment of the present invention.

【図6】本発明の第2の実施形態のEEPROMにおけ
るローデコード部のアドレスデコーダの構成を示す図で
ある。
FIG. 6 is a diagram illustrating a configuration of an address decoder of a row decode unit in an EEPROM according to a second embodiment of the present invention.

【図7】本発明の第3の実施形態のEEPROMの構成
を示す図である。
FIG. 7 is a diagram showing a configuration of an EEPROM according to a third embodiment of the present invention.

【図8】本発明の第3の実施形態のEEPROMにおけ
るローデコード部のアドレスデコーダの構成を示す図で
ある。
FIG. 8 is a diagram showing a configuration of an address decoder of a row decode unit in an EEPROM according to a third embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1,6,8 メモリセルアレイ、 2,7,9 ローデ
コード部、 TM メモリトランジスタ、 TW セル
選択トランジスタ、 BL ビットライン、WL ワー
ドライン、 ADR アドレスデコーダ。
1,6,8 memory cell array, 2,7,9 row decode unit, TM memory transistor, TW cell select transistor, BL bit line, WL word line, ADR address decoder.

Claims (17)

【特許請求の範囲】[Claims] 【請求項1】 第1〜第N(Nは2以上の整数)のメモ
リセルに同じデータを記憶し、 前記第1〜第Nのメモリセルに記憶したN個のデータの
ANDまたはORをとったデータを誤り訂正データとし
て出力することを特徴とする誤り訂正回路。
1. The same data is stored in first to Nth (N is an integer of 2 or more) memory cells, and the N data stored in the first to Nth memory cells are ANDed or ORed. An error correction circuit for outputting the corrected data as error correction data.
【請求項2】 前記第1〜第Nのメモリセルのデータ出
力電極を共通接続し、前記第1〜第Nのメモリセルから
前記N個のデータを同時に出力させることにより、前記
ANDまたはORをとったデータを生成することを特徴
とする請求項1記載の誤り訂正回路。
2. The AND or OR circuit is connected by commonly connecting data output electrodes of the first to Nth memory cells and simultaneously outputting the N data from the first to Nth memory cells. 2. The error correction circuit according to claim 1, wherein the generated error data is generated.
【請求項3】 前記メモリセルは、 電気的にデータの消去および書き込みが可能な不揮発性
のメモリセルであることを特徴とする請求項2記載の誤
り訂正回路。
3. The error correction circuit according to claim 2, wherein said memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.
【請求項4】 前記第1〜第Nのメモリセルと、 ビットラインと、 同時に第1のレベルとなる第1〜第Nのワードラインと
を備え、 前記第k(kは1〜Nまでのいずれかの整数)のメモリ
セルは、 第kのセル選択トランジスタと、第kのメモリトランジ
スタから成り、 第kのセル選択トランジスタは、 前記第kのワードラインに接続されたゲートと、前記ビ
ットラインに接続された第1電極と、第2電極とを有
し、前記ワードラインが第1のレベルのときONし、前
記ワードラインが第2のレベルのときOFFするトラン
ジスタであり、前記第kのメモリトランジスタは、 センス電圧が入力されるコントロールゲートと、データ
を記憶するフローティングゲートと、前記第kのワード
選択トランジスタの前記第2電極に接続された第1電極
と、アレイグランドに接続された第2電極とを有する不
揮発性のメモリトランジスタであることを特徴とする請
求項3記載の誤り訂正回路。
4. A semiconductor device comprising: the first to Nth memory cells; a bit line; and a first to Nth word lines which are simultaneously at a first level. The memory cell of any of integers includes a k-th cell selection transistor and a k-th memory transistor, and the k-th cell selection transistor includes a gate connected to the k-th word line, and a bit line. A transistor having a first electrode connected to the word line and a second electrode, turned on when the word line is at a first level, and turned off when the word line is at a second level; The memory transistor includes a control gate to which a sense voltage is input, a floating gate for storing data, and a first electrode connected to the second electrode of the k-th word select transistor. When error correction circuit according to claim 3, characterized in that a non-volatile memory transistor having a second electrode connected to the array ground.
【請求項5】 第1〜第N(Nは2以上の整数)のメモ
リセルを有する誤り訂正回路が複数形成されたメモリセ
ルアレイを備え、 データ記憶の際に、入力された1つのデータに対して誤
り訂正回路を1つ選択し、この誤り訂正回路に前記デー
タを記憶させ、またデータ読み出しの際に、前記データ
を記憶させた誤り訂正回路を選択し、この誤り訂正回路
から前記データを読み出し、 前記選択された誤り訂正回路は、 データ記憶の際に、前記第1〜第Nのメモリセルに同じ
前記入力データを記憶し、データ読み出しの際に、前記
第1〜第Nのメモリセルに記憶されているN個のデータ
のANDまたはORをとったデータを誤り訂正データと
して出力するものであることを特徴とする半導体記憶装
置。
5. A memory cell array in which a plurality of error correction circuits each having first to Nth (N is an integer of 2 or more) memory cells are formed. Select one error correction circuit, and store the data in the error correction circuit. When reading data, select an error correction circuit in which the data is stored, and read out the data from the error correction circuit. The selected error correction circuit stores the same input data in the first to Nth memory cells when storing data, and stores the same input data in the first to Nth memory cells when reading data. A semiconductor memory device for outputting data obtained by ANDing or ORing stored N data as error correction data.
【請求項6】 前記誤り訂正回路は、 前記第1〜第Nのメモリセルのデータ出力電極を同一の
ビットラインに接続し、前記第1〜第Nのメモリセルか
ら前記N個のデータを同時に出力させることにより、前
記ANDまたはORをとったデータを前記ビットライン
上に生成するものであることを特徴とする請求項5記載
の半導体記憶装置。
6. The error correction circuit connects data output electrodes of the first to Nth memory cells to the same bit line, and simultaneously transmits the N data from the first to Nth memory cells. 6. The semiconductor memory device according to claim 5, wherein said ANDed or ORed data is generated on said bit line by outputting.
【請求項7】 前記メモリセルは、 電気的にデータの消去および書き込みが可能な不揮発性
のメモリセルであることを特徴とする請求項6記載の半
導体記憶装置。
7. The semiconductor memory device according to claim 6, wherein said memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.
【請求項8】 前記複数の誤り訂正回路と、 前記誤り訂正回路ごとに設けられたビットラインと、 前記誤り訂正回路ごとに設けられた第1〜第Nのワード
ラインと、 前記第1〜第Nのワードラインを同時に第1のレベルと
することにより、前記複数の誤り訂正回路のいずれかを
選択するワード選択手段とを備え、 前記誤り訂正回路の前記第k(kは1〜Nまでのいずれ
かの整数)のメモリセルは、 第kのセル選択トランジスタと第kのメモリトランジス
タから成り、 第kのセル選択トランジスタは、 前記第kのワードラインに接続されたゲートと、前記ビ
ットラインに接続された第1電極と、第2電極とを有
し、前記ワードラインが第1のレベルのときONし、前
記ワードラインが第2のレベルのときOFFするトラン
ジスタであり、 前記第kのメモリトランジスタは、 センス電圧が入力されるコントロールゲートと、データ
を記憶するフローティングゲートと、前記第kのワード
選択トランジスタの前記第2電極に接続された第1電極
と、アレイグランドに接続された第2電極とを有する不
揮発性のメモリトランジスタであることを特徴とする請
求項7記載の半導体記憶装置。
8. The plurality of error correction circuits, a bit line provided for each of the error correction circuits, first to N-th word lines provided for each of the error correction circuits, Word selecting means for simultaneously selecting one of the plurality of error correction circuits by simultaneously setting the N word lines to the first level, wherein the k-th (k is 1 to N) The memory cell of any of integers includes a k-th cell selection transistor and a k-th memory transistor, and the k-th cell selection transistor has a gate connected to the k-th word line and a k-th memory cell. A transistor having a first electrode and a second electrode connected thereto, the transistor being turned on when the word line is at a first level, and turned off when the word line is at a second level; The k-th memory transistor includes a control gate to which a sense voltage is input, a floating gate for storing data, a first electrode connected to the second electrode of the k-th word selection transistor, and a connection to an array ground. 8. The semiconductor memory device according to claim 7, wherein the semiconductor memory device is a nonvolatile memory transistor having a second electrode.
【請求項9】 誤り訂正回路を構成する第1〜第N(N
は2以上の整数)の冗長メモリセルと、非冗長メモリセ
ルとが形成されたメモリセルアレイと、 前記第1〜第Nの冗長メモリセルのデータ出力電極およ
び前記非冗長メモリセルのデータ出力電極が共通接続さ
れたビットラインとを備え、 データ記憶の際に、入力された1つのデータに対して前
記誤り訂正回路または非冗長メモリセルを選択し、この
誤り訂正回路または非冗長メモリセルに前記データを記
憶させ、またデータ読み出しの際に、前記データを記憶
させた誤り訂正回路または非冗長メモリセルを選択し、
この誤り訂正回路または非冗長メモリセルから前記デー
タを読み出し、 前記誤り訂正回路は、 データ記憶の際に、前記第1〜第Nの冗長メモリセルに
同じ前記入力データを記憶し、データ読み出しの際に、
前記第1〜第Nの冗長メモリセルに記憶されているN個
のデータのANDまたはORをとったデータを誤り訂正
データとして前記ビットライン上に生成するものである
ことを特徴とする半導体記憶装置。
9. The first to Nth (N
Is an integer of 2 or more), a memory cell array in which a redundant memory cell and a non-redundant memory cell are formed, and a data output electrode of the first to Nth redundant memory cells and a data output electrode of the non-redundant memory cell. And a bit line connected in common. When storing data, the error correction circuit or the non-redundant memory cell is selected for one input data, and the data is stored in the error correction circuit or the non-redundant memory cell. And, at the time of data reading, select an error correction circuit or a non-redundant memory cell storing the data,
The data is read from the error correction circuit or the non-redundant memory cell. The error correction circuit stores the same input data in the first to Nth redundant memory cells when storing data, and reads the data when reading data. To
A semiconductor memory device, wherein data obtained by ANDing or ORing N data stored in the first to Nth redundant memory cells is generated on the bit line as error correction data. .
【請求項10】 前記メモリセルは、 電気的にデータの消去および書き込みが可能な不揮発性
のメモリセルであることを特徴とする請求項9記載の半
導体記憶装置。
10. The semiconductor memory device according to claim 9, wherein said memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.
【請求項11】 前記誤り訂正回路と、 前記非冗長メモリセルと、 前記ビットラインと、 前記誤り訂正回路に対して設けられた第1〜第Nのワー
ドラインと、 前記非冗長メモリセルに対して設けられた第(N+1)
のワードラインと、 前記第1〜第(N+1)のワードラインを選択するワー
ド選択手段とを備え、 前記第k(kは1〜Nまでのいずれかの整数)の冗長メ
モリセルは、第kのセル選択トランジスタと第kのメモ
リトランジスタから成り、 また前記非冗長メモリセルは、第(N+1)のセル選択
トランジスタと第(N+1)のメモリトランジスタから
成り、 前記第i(iは1〜(N+1)までのいずれかの整数)
のセル選択トランジスタは、 前記第iのワードラインに接続されたゲートと、前記ビ
ットラインに接続された第1電極と、第2電極とを有
し、前記ワードラインが第1のレベルのときONし、前
記ワードラインが第2のレベルのときOFFするトラン
ジスタであり、 前記第iのメモリトランジスタは、 センス電圧が入力されるコントロールゲートと、データ
を記憶するフローティングゲートと、前記第kのワード
選択トランジスタの前記第2電極に接続された第1電極
と、アレイグランドに接続された第2電極とを有する不
揮発性のメモリトランジスタであり、 前記ワード選択手段は、 前記第1〜第Nのワードラインを同時に第1のレベルと
することにより前記誤り訂正回路を選択し、また前記第
(N+1)のワードラインを第1のレベルとすることに
より前記非冗長メモリセルを選択することを特徴とする
請求項10記載の半導体記憶装置。
11. The error correction circuit, the non-redundant memory cell, the bit line, first to Nth word lines provided for the error correction circuit, and (N + 1) provided
And a word selection means for selecting the first to (N + 1) th word lines. The k-th (k is any integer from 1 to N) redundant memory cell is a k-th redundant memory cell. The (n + 1) th cell selection transistor and the (N + 1) th memory transistor, and the non-redundant memory cell comprises the (N + 1) th cell selection transistor and the (N + 1) th memory transistor. ))
Has a gate connected to the i-th word line, a first electrode connected to the bit line, and a second electrode, and is turned on when the word line is at a first level. And a transistor that is turned off when the word line is at a second level, the i-th memory transistor includes a control gate to which a sense voltage is input, a floating gate that stores data, and a k-th word selection. A non-volatile memory transistor having a first electrode connected to the second electrode of the transistor and a second electrode connected to an array ground, wherein the word selecting means includes the first to Nth word lines At the same time as the first level, thereby selecting the error correction circuit, and setting the (N + 1) th word line to the first level. The semiconductor memory device according to claim 10, wherein the selecting the non-redundant memory cells by setting.
【請求項12】 第1〜第N(Nは2以上の整数)のメ
モリセルが形成されたメモリセルアレイと、 前記第1〜第Nのメモリセルのデータ出力電極が共通接
続されたビットラインとを備え、 外部からの設定が第1の設定のときに、前記1〜第Mの
メモリセルから第k(は1〜Nのいずれかの整数)のメ
モリセルを非冗長メモリセルとして選択し、 外部からの設定が第2の設定のときに、前記1〜第Nの
メモリセルを冗長メモリセルとして同時に選択し、 データ記憶の際に、入力されたデータを前記冗長メモリ
セルからなる誤り訂正回路または前記非冗長メモリセル
に記憶させ、またデータ読み出しの際に、前記データを
記憶させた誤り訂正回路または非冗長メモリセルから前
記データを読み出し、 前記誤り訂正回路は、 データ記憶の際に、前記第1〜第Nの冗長メモリセルに
同じ前記入力データを記憶し、データ読み出しの際に、
前記第1〜第Nの冗長メモリセルに記憶されているM個
のデータのANDまたはORをとったデータを誤り訂正
データとして前記ビットライン上に生成するものである
ことを特徴とする半導体記憶装置。
12. A memory cell array in which first to Nth (N is an integer of 2 or more) memory cells are formed, and a bit line to which data output electrodes of the first to Nth memory cells are commonly connected. And selecting the k-th (where n is an integer of 1 to N) memory cells from the first to Mth memory cells as non-redundant memory cells when the external setting is the first setting When the external setting is the second setting, the first to Nth memory cells are simultaneously selected as redundant memory cells, and at the time of data storage, input data is error-corrected by the redundant memory cells. Alternatively, the data is stored in the non-redundant memory cell, and at the time of data reading, the data is read from the error correction circuit or the non-redundant memory cell storing the data. The same input data is stored in the first to Nth redundant memory cells, and when reading data,
A semiconductor memory device, wherein data obtained by ANDing or ORing M data stored in the first to Nth redundant memory cells is generated on the bit line as error correction data. .
【請求項13】 前記メモリセルは、 電気的にデータの消去および書き込みが可能な不揮発性
のメモリセルであることを特徴とする請求項12記載の
半導体記憶装置。
13. The semiconductor memory device according to claim 12, wherein said memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.
【請求項14】 前記第1〜第Nのメモリセルと、 前記ビットラインと、 第1〜第Nのワードラインと、 前記第1、第2の設定に従って前記第1〜第Nのワード
ラインを選択するワード選択手段とを備え、 前記第k(kは1〜Nまでのいずれかの整数)のメモリ
セルは、第kのセル選択トランジスタと第kのメモリト
ランジスタから成り、 前記第kのセル選択トランジスタは、 前記第kのワードラインに接続されたゲートと、前記ビ
ットラインに接続された第1電極と、第2電極とを有
し、前記ワードラインが第1のレベルのときONし、前
記ワードラインが第2のレベルのときOFFするトラン
ジスタであり、 前記第kのメモリトランジスタは、 センス電圧が入力されるコントロールゲートと、データ
を記憶するフローティングゲートと、前記第kのワード
選択トランジスタの前記第2電極に接続された第1電極
と、アレイグランドに接続された第2電極とを有する不
揮発性のメモリトランジスタであり、 前記ワード選択手段は、 第1の設定のときに、前記第kのワードラインを第1の
レベルとすることにより前記第kのメモリセルを選択
し、 第2の設定のときに、前記1〜第Nのワードラインを同
時に第1のレベルとすることにより前記第1〜第Nのメ
モリセルを同時に選択することを特徴とする請求項13
記載の半導体記憶装置。
14. The first to Nth memory cells, the bit line, the first to Nth word lines, and the first to Nth word lines according to the first and second settings. A word selecting means for selecting, the k-th (k is any integer from 1 to N) memory cell comprises a k-th cell selection transistor and a k-th memory transistor, and the k-th cell The selection transistor has a gate connected to the k-th word line, a first electrode connected to the bit line, and a second electrode, and turns on when the word line is at a first level; A transistor that turns off when the word line is at a second level, the k-th memory transistor includes a control gate to which a sense voltage is input, and a floating gate to store data A non-volatile memory transistor having a first electrode connected to the second electrode of the k-th word selection transistor, and a second electrode connected to an array ground; In the setting, the k-th memory cell is selected by setting the k-th word line to the first level, and in the second setting, the first to N-th word lines are simultaneously set to the first level. 14. The 1st to Nth memory cells are selected at the same time by setting to 1 level.
13. The semiconductor memory device according to claim 1.
【請求項15】 第1〜第M(Mは3以上の整数)のメ
モリセルが形成されたメモリセルアレイと、 前記第1〜第Mのメモリセルのデータ出力電極が共通接
続されたビットラインとを備え、 外部からの設定が第1の設定のときに、前記1〜第Mの
メモリセルから第p(pは1〜Mのいずれかの整数)の
メモリセルを非冗長メモリセルとして選択し、 外部からの設定が第2の設定のときに、前記1〜第Mの
メモリセルから第1〜q(qは2〜(M−1)のいずれ
かの整数)のメモリセルを冗長メモリセルとして同時に
選択するか、または第r(rは(q+1)〜Mまでのい
ずれかの整数))のメモリセルを非冗長メモリセルとし
て選択し、 外部からの設定が第3の設定のときに、前記1〜第Mの
メモリセルを誤り訂正回路を構成する冗長メモリセルと
して同時に選択し、 データ記憶の際に、入力されたデータを前記冗長メモリ
セルからなる誤り訂正回路または前記非冗長メモリセル
に記憶させ、またデータ読み出しの際に、前記データを
記憶させた誤り訂正回路または非冗長メモリセルから前
記データを読み出し、 前記誤り訂正回路は、 データ記憶の際に、前記冗長メモリセルに同じ前記入力
データを記憶し、データ読み出しの際に、前記冗長メモ
リセルに記憶されているM個のデータのANDまたはO
Rをとったデータを誤り訂正データとして前記ビットラ
イン上に生成するものであることを特徴とする半導体記
憶装置。
15. A memory cell array in which first to Mth (M is an integer of 3 or more) memory cells are formed, and a bit line to which data output electrodes of the first to Mth memory cells are commonly connected. And selecting a p-th (p is an integer from 1 to M) memory cell from the first to M-th memory cells as a non-redundant memory cell when the external setting is the first setting. When the external setting is the second setting, the first to qth (q is any integer from 2 to (M−1)) memory cells are replaced with the redundant memory cells from the first to Mth memory cells. Or the rth (r is any integer from (q + 1) to M) memory cell is selected as a non-redundant memory cell, and when the external setting is the third setting, The first to Mth memory cells are replaced by a redundant memo constituting an error correction circuit. Cells are selected at the same time, and at the time of data storage, the input data is stored in an error correction circuit comprising the redundant memory cells or the non-redundant memory cells. Reading the data from a correction circuit or a non-redundant memory cell, the error correction circuit stores the same input data in the redundant memory cell when storing data, and stores the same input data in the redundant memory cell when reading data. AND O of M data
A semiconductor memory device wherein data obtained by taking R is generated as error correction data on the bit line.
【請求項16】 前記メモリセルは、 電気的にデータの消去および書き込みが可能な不揮発性
のメモリセルであることを特徴とする請求項15記載の
半導体記憶装置。
16. The semiconductor memory device according to claim 15, wherein said memory cell is a nonvolatile memory cell capable of electrically erasing and writing data.
【請求項17】 前記第1〜第Mのメモリセルと、 前記ビットラインと、 第1〜第Mのワードラインと、 前記第1〜第3の設定に従って前記第1〜第Mのワード
ラインを選択するワード選択手段とを備え、 前記第s(sは1〜Mまでのいずれかの整数)のメモリ
セルは、第sのセル選択トランジスタと第sのメモリト
ランジスタから成り、 前記第sのセル選択トランジスタは、 前記第sのワードラインに接続されたゲートと、前記ビ
ットラインに接続された第1電極と、第2電極とを有
し、前記ワードラインが第1のレベルのときONし、前
記ワードラインが第2のレベルのときOFFするトラン
ジスタであり、 前記第sのメモリトランジスタは、 センス電圧が入力されるコントロールゲートと、データ
を記憶するフローティングゲートと、前記第kのワード
選択トランジスタの前記第2電極に接続された第1電極
と、アレイグランドに接続された第2電極とを有する不
揮発性のメモリトランジスタであり、 前記ワード選択手段は、 第1の設定のときに、前記第pのワードラインを第1の
レベルとすることにより前記第pのメモリセルを選択
し、 第2の設定のときに、前記第1〜qのワードラインを同
時に選択するか、または前記第rのワードラインを選択
することにより、前記第1〜qのメモリセルを同時に選
択するか、または前記第rのメモリセルを選択し、 第3の設定のときに、前記1〜第Mのワードラインを同
時に第1のレベルとすることにより前記第1〜第Mのメ
モリセルを同時に選択することを特徴とする請求項16
記載の半導体記憶装置。
17. The first to M-th memory cells, the bit lines, the first to M-th word lines, and the first to M-th word lines according to the first to third settings. A s-th memory cell, wherein the s-th (s is an integer from 1 to M) memory cell comprises an s-th cell selection transistor and an s-th memory transistor; The selection transistor has a gate connected to the s-th word line, a first electrode connected to the bit line, and a second electrode, and turns on when the word line is at a first level. A transistor that is turned off when the word line is at a second level, wherein the s-th memory transistor is a control gate to which a sense voltage is input, and a floating gate that stores data. A non-volatile memory transistor having a first electrode connected to the second electrode of the k-th word selection transistor, and a second electrode connected to an array ground; In the setting, the p-th word line is set to the first level to select the p-th memory cell, and in the second setting, the first to q-th word lines are simultaneously selected. Or by selecting the r-th word line, thereby simultaneously selecting the first to q-th memory cells, or selecting the r-th memory cell. 17. The method according to claim 16, wherein the first to Mth memory cells are simultaneously selected by simultaneously setting the first to Mth word lines to the first level.
13. The semiconductor memory device according to claim 1.
JP9158347A 1997-06-16 1997-06-16 Error correction circuit and semiconductor memory device Withdrawn JPH117794A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9158347A JPH117794A (en) 1997-06-16 1997-06-16 Error correction circuit and semiconductor memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9158347A JPH117794A (en) 1997-06-16 1997-06-16 Error correction circuit and semiconductor memory device

Publications (1)

Publication Number Publication Date
JPH117794A true JPH117794A (en) 1999-01-12

Family

ID=15669669

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9158347A Withdrawn JPH117794A (en) 1997-06-16 1997-06-16 Error correction circuit and semiconductor memory device

Country Status (1)

Country Link
JP (1) JPH117794A (en)

Similar Documents

Publication Publication Date Title
US8166371B2 (en) Semiconductor memory system and signal processing system
US7768828B2 (en) Flash memory device capable of storing multi-bit data and single-bit data
JP4175852B2 (en) Semiconductor memory that replaces redundant cell array normally
US7420847B2 (en) Multi-state memory having data recovery after program fail
JPH035995A (en) Nonvolatile semiconductor memory device
US5835406A (en) Apparatus and method for selecting data bits read from a multistate memory
US8023341B2 (en) Method and apparatus for address allotting and verification in a semiconductor device
JP2010192049A (en) Semiconductor memory device
JP2013084324A (en) Semiconductor memory device and semiconductor device
WO2008104049A1 (en) Decoding control with address transition detection in page erase function
US11029861B2 (en) Sense flags in a memory device
JP3974680B2 (en) Non-volatile memory device having sectorized electrically erasable and programmable redundancy
US5067111A (en) Semiconductor memory device having a majority logic for determining data to be read out
JP2002329396A (en) Flash memory with changeable bank configuration
JP4757978B2 (en) Nonvolatile memory device
JP2009146548A (en) Nonvolatile semiconductor memory device
JP2002133893A (en) Semiconductor storage device
EP1160795A1 (en) Reference cells matrix structure for reading data in a nonvolatile memory device
JPH117794A (en) Error correction circuit and semiconductor memory device
US6813735B1 (en) I/O based column redundancy for virtual ground with 2-bit cell flash memory
JP4387256B2 (en) Semiconductor memory device
KR100732633B1 (en) Flash memory device for discontinuous bit line decoding
JPH0883497A (en) Semiconductor integrated circuit device
JP2003036692A (en) Nonvolatile semiconductor memory device
TW202324435A (en) Address fault detection in a memory system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040907