JP2008171565A - Nonvolatile semiconductor memory device - Google Patents
Nonvolatile semiconductor memory device Download PDFInfo
- Publication number
- JP2008171565A JP2008171565A JP2008089710A JP2008089710A JP2008171565A JP 2008171565 A JP2008171565 A JP 2008171565A JP 2008089710 A JP2008089710 A JP 2008089710A JP 2008089710 A JP2008089710 A JP 2008089710A JP 2008171565 A JP2008171565 A JP 2008171565A
- Authority
- JP
- Japan
- Prior art keywords
- data
- memory device
- semiconductor memory
- area
- word line
- 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
Links
Images
Landscapes
- Read Only Memory (AREA)
Abstract
Description
本発明は、セキュリティが必要なデータを格納できる不揮発性半導体記憶装置に関する。 The present invention relates to a nonvolatile semiconductor memory device that can store data requiring security.
デジタルスチルカメラをはじめとする携帯型情報機器の普及に伴い、外部記憶装置であるフラッシュメモリカードの需要が大きくなっている。フラッシュメモリカードは記憶媒体としてフラッシュメモリを搭載した、PCカードまたはそれ以下のサイズの記憶装置である。 With the spread of portable information devices such as digital still cameras, the demand for flash memory cards as external storage devices is increasing. A flash memory card is a PC card or a storage device of a size smaller than that, which is equipped with a flash memory as a storage medium.
フラッシュメモリは電気的に書き換え可能であり、高集積化に適した不揮発性半導体メモリである。フラッシュメモリの主な用途は、フラッシュメモリカードにおける記憶媒体のほかに、PC(Personal Computer)のBIOSの格納、携帯電話のプログラムやデータ(アドレス帳など)の格納に用いられている。 A flash memory is an electrically rewritable nonvolatile semiconductor memory suitable for high integration. The main use of the flash memory is used for storing a BIOS of a PC (Personal Computer), a program of a mobile phone and data (such as an address book) in addition to a storage medium in a flash memory card.
フラッシュメモリはその用途に応じて、AND型、NOR型など様々なセルアレイ構造が提案され、それぞれ特徴をもっている。 Various cell array structures such as an AND type and a NOR type have been proposed for flash memories according to their use, and each has its own characteristics.
AND型フラッシュメモリは、高集積・低電圧化に適したフラッシュメモリであり、ファイルストレージ系の記憶媒体として使われることが多い。AND型フラッシュメモリの公知例としては特許文献1(特開平6−77437号公報)がある。消去は、制御ゲートに高電圧を印加し、ソースおよびドレインおよび基板を接地し、ファウラー・ノルトハイム電流によりチャネルから浮遊ゲートに電子を注入することで行う。その結果、フラッシュメモリセルのしきい値が高くなる。書き込みは、制御ゲートに負電圧、ドレインに低電圧を印加し、ソースを開放、基板を接地して行う。このとき、ファウラー・ノルトハイム電流により浮遊ゲートからドレインへ電子が引き抜かれ、メモリセルのしきい値が低くなる。AND型フラッシュメモリにおいては、メモリセルのしきい値が高い状態が消去状態であり、このときメモリセルが記憶する値は‘1’である。また、しきい値が低い状態が書き込み状態であり、このときメモリセルが記憶する値は‘0’である。 An AND flash memory is a flash memory suitable for high integration and low voltage, and is often used as a storage medium for file storage. As a known example of the AND type flash memory, there is Patent Document 1 (Japanese Patent Laid-Open No. 6-77437). Erasing is performed by applying a high voltage to the control gate, grounding the source, drain, and substrate, and injecting electrons from the channel to the floating gate with a Fowler-Nordheim current. As a result, the threshold value of the flash memory cell increases. Writing is performed by applying a negative voltage to the control gate and applying a low voltage to the drain, opening the source, and grounding the substrate. At this time, electrons are extracted from the floating gate to the drain by the Fowler-Nordheim current, and the threshold value of the memory cell is lowered. In the AND type flash memory, a state in which the threshold value of the memory cell is high is an erased state, and the value stored in the memory cell at this time is “1”. Further, a state in which the threshold is low is a write state, and the value stored in the memory cell at this time is '0'.
また、近年、フラッシュメモリチップの大容量化に伴い、音楽データや電子書籍データを格納する用途への期待が高まっている。フラッシュメモリにこれらのデータを格納する際の問題点は、フラッシュメモリカードに格納するコンテンツに対する著作権保護である。 In recent years, with the increase in capacity of flash memory chips, there is an increasing expectation for uses for storing music data and electronic book data. A problem in storing these data in the flash memory is copyright protection for the content stored in the flash memory card.
コンテンツの著作権保護を実現する一つの方法として、フラッシュメモリチップ内部に固有の識別番号を設け、この識別番号を利用する方法がある。つまり、他の識別番号を持ったフラッシュメモリチップにはコンテンツをコピーできない、または他の識別番号のフラッシュメモリチップにコピーができても正しく再生することができない、といった方法で不正コピーを防止することできる。
フラッシュメモリと同一チップ内に設ける識別番号は、書き換えが不可能でなくてはならない。識別番号をマスクROM領域に格納すると、チップの出荷後にユーザ側で識別番号を書き込むといったことができない。一方、従来のフラッシュメモリ領域に識別番号を格納すると、消去や上書きにより自由に改ざんされてしまう。 The identification number provided in the same chip as the flash memory must be rewritable. If the identification number is stored in the mask ROM area, the identification number cannot be written on the user side after the chip is shipped. On the other hand, when the identification number is stored in the conventional flash memory area, it is freely tampered with by erasing or overwriting.
識別番号のようにセキュリティが必要なデータを、フラッシュメモリ領域に格納するときの課題は、(1)識別番号を書き込む前に最低1回は消去できる、(2)1回書き込みを行った後は再び書き込むことができない、または、(3)識別番号の上書きが検出された場合は他のデータを読み書きできない、ようなフラッシュメモリを実現することである。 The issues when storing data that requires security, such as identification numbers, in the flash memory area are: (1) can be erased at least once before writing the identification number; (2) after writing once It is to realize a flash memory that cannot be written again, or (3) cannot read or write other data when overwriting of an identification number is detected.
本発明の目的は、所定回数だけ消去した後は、再び消去することができない記憶領域を有する不揮発性半導体記憶装置を実現することである。 An object of the present invention is to realize a nonvolatile semiconductor memory device having a storage area that cannot be erased again after being erased a predetermined number of times.
本発明の他の目的は、1度書き込んだ後は、再び書き込みができない記憶領域を有する不揮発性半導体記憶装置を実現することである。 Another object of the present invention is to realize a nonvolatile semiconductor memory device having a storage area in which writing cannot be performed again after writing once.
本発明のさらに他の目的は、データの上書きが検出された場合は他のデータを読み書きできない不揮発性半導体記憶装置を実現することである。 Still another object of the present invention is to realize a nonvolatile semiconductor memory device that cannot read / write other data when overwriting of data is detected.
上記目的を達成するために、
複数個の消去単位領域で構成され、消去単位領域ごとに通常のデータ領域と、消去単位領域全体の管理情報を記憶する管理情報領域とを有する記憶領域と、
外部より入力したアドレス値により、ワード線またはデータ線またはソース線を選択し所定の電圧を印加する選択装置と、
消去・書き込み・読み出し等の動作を制御する動作制御装置と、
不揮発性半導体記憶装置の状態を記憶する一時記憶装置とを有する不揮発性半導体記憶装置において、
記憶領域の一部または全部の領域内の、消去単位領域の管理情報領域に、消去単位領域を1度消去したことを示す情報を有し、この情報が所定の値であるとき、選択装置に対する動作制御装置の制御により、一部または全部の領域のワード線またはデータ線またはソース線に対して、消去に必要な電圧の印加を抑止する手段を設ける。
To achieve the above objective,
A storage area composed of a plurality of erasing unit areas, and having a normal data area for each erasing unit area and a management information area for storing management information of the entire erasing unit area;
A selection device that selects a word line, a data line, or a source line according to an address value input from the outside and applies a predetermined voltage;
An operation control device for controlling operations such as erasing, writing, and reading;
In a nonvolatile semiconductor memory device having a temporary storage device that stores a state of the nonvolatile semiconductor memory device,
In the management information area of the erase unit area in a part or all of the storage area, there is information indicating that the erase unit area has been erased once. When this information is a predetermined value, Under the control of the operation control device, means for suppressing application of a voltage necessary for erasing is provided to a word line, data line or source line in a part or all of the region.
また、本発明の他の目的を達成するために、
記憶領域の一部または全部の領域内の、消去単位領域の管理情報領域に、消去単位領域に1度書き込みを行ったことを示す情報を有し、この情報が所定の値であるとき、選択装置に対する動作制御装置の制御により、一部または全部の領域のワード線またはデータ線またはソース線に対して、書き込みに必要な電圧の印加を抑止する手段を設ける。
In order to achieve another object of the present invention,
In the management information area of the erase unit area in a part or all of the storage area, there is information indicating that data has been written once in the erase unit area, and this information is selected when it is a predetermined value. Means for suppressing application of a voltage necessary for writing to a word line, a data line, or a source line in a part or all of the region is provided by control of the operation control device for the device.
また、本発明のさらに他の目的を達成するために、
通常データの各ビットと1対1の写像関係にあるデータを生成する装置を有し、記憶領域内の一部または全部の領域に対して、同一の書き込み単位領域に、通常データおよび写像関係のデータを書き込む領域を有し、他のデータ領域に対して書き込みおよび読み出しを行うとき、予め通常データおよび写像関係のデータが互いに写像関係にあるかを検証し、写像関係にない場合は前記データ領域への書き込みおよび読み出しを不可能に設定する手段を設ける。
In order to achieve yet another object of the present invention,
It has a device that generates data having a one-to-one mapping relationship with each bit of normal data, and the normal data and mapping relationship are stored in the same writing unit area for a part or all of the storage area. It has an area for writing data, and when writing and reading to other data areas, it is verified in advance whether normal data and mapping-related data are in a mapping relationship with each other. Means are provided for making writing to and reading from impossible.
本発明により、不揮発性半導体記憶装置の記憶領域内に、所定の回数以上は消去ができない、さらには、1度しか書き込みができない領域を設けることができる。 According to the present invention, it is possible to provide an area that cannot be erased a predetermined number of times or more and can be written only once in the storage area of the nonvolatile semiconductor memory device.
また、再消去禁止領域内の同じ書き込み単位領域に、通常データとその反転データを書き込むことで、通常データの改ざんが容易に検出することができるようになる。これを利用して、通常データの改ざんが検出された場合はチップ内の他のデータにアクセスできなくするといった応用が可能となる。 Further, by writing normal data and its inverted data in the same write unit area in the re-erasure prohibition area, it becomes possible to easily detect alteration of normal data. By utilizing this, when alteration of normal data is detected, it becomes possible to make an application in which other data in the chip cannot be accessed.
以上により、フラッシュメモリチップ内に、チップ固有の識別番号などセキュリティが必要なデータを格納することができる効果が得られる。 As described above, there is an effect that data requiring security such as an identification number unique to the chip can be stored in the flash memory chip.
(第1の実施例)
まず、本発明の第一の実施例を説明する。図2は、AND型フラッシュメモリチップ201のブロック構成を示す。以下、AND型フラッシュメモリチップ201を構成する各ブロックについて説明する。
(First embodiment)
First, a first embodiment of the present invention will be described. FIG. 2 shows a block configuration of the AND type
AND型フラッシュメモリのセルアレイ群202は8面のセルアレイで構成する。データの消去・書き込み・読み出しは、8面のセルアレイで並列に行われる。セルアレイはフラッシュメモリセルを平面的に配列したものである。図3にAND型フラッシュメモリのセルアレイの構造を示す。ドレイン側とソース側にそれぞれ選択トランジスタ(301、302、303、及び304、305、306)が設けられ、この2つの選択トランジスタの間にM個のフラッシュメモリセルが並列に接続されている。この1組の選択トランジスタではさんだ記憶領域、すなわち図3において点線で囲まれた記憶領域を、以下メモリブロックと呼ぶ。また、共通ソース線には接地電圧Vssが印加されている。
The
AND型フラッシュメモリは、選択したワード線に接続された全てのフラッシュメモリセルに対して、消去・書き込み・読み出しを行う。例えば、図3でワード線W2に接続されたメモリセル群M2を選択した場合を考える。 The AND flash memory performs erasing, writing, and reading with respect to all the flash memory cells connected to the selected word line. For example, consider the case where the memory cell group M2 connected to the word line W2 is selected in FIG.
消去動作は、ドレイン側およびソース側の選択トランジスタのゲートSDおよびSSに電源電圧Vcc、ワード線W2に高電圧Vpp、データ線D1〜D528に接地電圧Vssを印加して行う。書き込み動作は、ドレイン側の選択トランジスタのゲートSDに電源電圧Vcc、ソース側の選択トランジスタのゲートSSに接地電圧Vss、ワード線W2に負電圧Vnn、データ線に電源電圧Vccを印加して行う。読み出し動作は、ドレイン側およびソース側の選択トスタランジのゲートSDおよびSSに電源電圧Vcc、ワード線W2に電源電圧Vcc、データ線D1からD528に所定の正電圧を印加して行う。 The erase operation is performed by applying the power supply voltage Vcc to the gates SD and SS of the selection transistors on the drain side and the source side, the high voltage Vpp to the word line W2, and the ground voltage Vss to the data lines D1 to D528. The write operation is performed by applying the power supply voltage Vcc to the gate SD of the selection transistor on the drain side, the ground voltage Vss to the gate SS of the selection transistor on the source side, the negative voltage Vnn to the word line W2, and the power supply voltage Vcc to the data line. The read operation is performed by applying a power supply voltage Vcc to the gates SD and SS of the selected transistor on the drain side and the source side, a power supply voltage Vcc to the word line W2, and a predetermined positive voltage to the data lines D1 to D528.
セルアレイ内の一本のワード線(Wn)には528個のフラッシュメモリセルが接続されている。また、本実施例では1つのフラッシュメモリセルにつき1ビットデータを記憶する。セルアレイ群202は8面のセルアレイで構成するので、消去・書き込み・読み出しの単位は528バイトとなる。
528 flash memory cells are connected to one word line (Wn) in the cell array. In this embodiment, 1-bit data is stored for each flash memory cell. Since the
図32にセルアレイ群202のデータ構成を示す。一本のワード線ごとにアドレスが割り当てられている。また、1つのアドレスに対応する528バイトのデータは、512バイトのセクタデータ領域と、セクタデータを管理する情報を格納する16バイトの管理情報領域とで構成する。セクタデータを512バイトとしたのは、磁気ディスクのセクタサイズと同じにするためである。行アドレス0は消去禁止領域である。また行アドレス1〜16383は消去可能領域である。
FIG. 32 shows the data structure of the
図2の行デコーダ203は、セルアレイ群202内のワード線を選択し所定の電圧を印加する。図33に示すように、行デコーダ203は、消去禁止領域のワード線選択回路100、および消去可能領域のワード線選択回路101、およびメモリブロック選択回路102、103で構成する。
The
消去禁止領域のワード線選択回路100、および消去可能領域のワード線選択回路101は、行アドレスをデコードしてワード線を選択し、ワード線に印加する電圧を制御する。図33には示していないが、行アドレスは行アドレスバッファ204を介して行デコーダ203に入力する。行アドレスが0のとき、消去禁止領域のワード線選択回路100がワード線を選択する。また行アドレスが1から16383のとき、消去可能領域のワード線選択回路101が行アドレスに対応するワード線を選択する。消去可能領域のワード線選択回路101には、ワード線電圧Vwおよび接地電圧Vssが、消去禁止領域のワード線選択回路100には、接地電圧Vssのみが図2に示す内部電源発生回路213より供給される。
The word
消去禁止領域のワード線選択回路100の内部構成を図34に、また、消去可能領域のワード線選択回路101のうち、1本のワード線に対応する回路を図35に示す。チップ外部より行アドレスとして0を入力すると、消去禁止領域内のワード線が選択される。このとき、コントロール回路211からの制御信号ERSに応じてワード線に印加する電圧が変化する。すなわち、制御信号ERSが‘H’レベルのときワード線には接地電圧Vssが印加され、制御信号ERSが‘L’レベルのときワード線にはワード線電圧Vwが印加される。また、消去可能領域内のワード線は選択されていないので接地電圧Vssが印加される。
FIG. 34 shows an internal configuration of the word
一方、行アドレスとして1から16383を入力すると、消去可能領域内の行アドレスに対応したワード線が選択される。このとき消去可能領域のワード線選択回路101は、選択したワード線にはワード線電圧Vwを印加する。また、消去禁止領域のワード線選択回路100、消去可能領域のワード線選択回路101ともに非選択のワード線に対しては接地電圧Vssを印加する。
On the other hand, when 1 to 16383 is input as the row address, the word line corresponding to the row address in the erasable area is selected. At this time, the word
メモリブロック選択回路102、103は、行アドレスをデコードしてメモリブロックを選択する。図33には示していないが、メモリブロック選択回路102、103には行アドレスが入力する。また、電源電圧Vcc、接地電圧Vssが供給される。メモリブロック選択回路102、103は、コントロール回路211からの制御信号に応じて、ドレイン側およびソース側の選択トランジスタのゲートに印加する電圧を制御する。消去動作および読み出し動作において、メモリブロック選択回路102、103は、ドレイン側およびソース側の選択トランジスタのゲートに電源電圧Vccを印加する。また、書き込み動作において、メモリブロック選択回路102、103は、ドレイン側の選択トランジスタのゲートに電源電圧Vccを印加し、ソース側の選択トランジスタのゲートに接地電圧Vssを印加する。
Memory
ラッチ回路205は、書き込み時は書き込みデータを保持し、読み出し時はセンスアンプとして読み出し電圧を増幅し保持する役割をもつ。列アドレスカウンタ206は、チップ外部から入力された列アドレスのバッファになるとともに、コントロール回路211からの制御信号により列アドレスをインクリメントし、アクセスする列アドレスを変化させる。列デコーダ207は、列アドレスをデコードし、アクセスするデータ線を選択するための信号を出力する。列ゲート208は、列デコーダ207の出力によりアクセスするデータ線を選択する。
The
入力データ制御回路209は、消去動作または読み出し動作において、コントロール回路211からの制御信号に応じてセルアレイ群202内のデータ線に印加する電圧を制御する。書き込み動作の場合は、マルチプレクサ210からの入力データをそのまま列ゲート208へ伝える。マルチプレクサ210は、コントロール回路211からの制御信号により、バスの切替を行う。コントロール回路211はチップ内部の動作を制御する回路である。コントロール回路211はチップ外部より各種制御信号を入力する。また、コントロール回路211は各動作について所定のタイミングで、チップ内の各ブロックへ制御信号を出力する。
The input
ステータスレジスタ212はフラッシュメモリチップ201の動作状態または動作結果を示す。ステータスレジスタ212のビット構成を図7に示す。ステータスレジスタは8ビットで構成されている。第0ビット(R_B)は、‘0’のときチップはビジー状態であり、‘1’のときチップはレディー状態である。ビット2(EER)は、‘1’のとき消去エラーであることを示す。ビット3(PER)は、‘1’のとき書き込みエラーであることを示す。ビット4(EIH)は、‘1’のとき消去禁止領域に対して消去コマンドを発行したためエラーであることを示す。その他のビットは予備ビットである。
The
内部電源発生回路213は、チップ外部より電源電圧Vccおよび接地電圧Vssを入力する。電源電圧Vccは、例えば3.3Vの単一電源である。また、接地電圧Vssは0Vである。内部電源発生回路213は、コントロール回路211からの制御信号に応じて、電源電圧Vccから高電圧Vppへの昇圧、または負電圧Vnnへの降圧を行い、ワード線電圧Vwとして出力する。ここで高電圧Vppは例えば12V、負電圧Vnnは例えば−7Vである。内部電源発生回路213は、電源電圧Vccおよび接地電圧Vssを各ブロックへ出力し、また、ワード線電圧Vwについては行デコーダ203へ出力する。
The internal
以下、図2を用いて、AND型フラッシュメモリチップ201の入出力信号を説明する。
Hereinafter, input / output signals of the AND type
I/Oは8本で構成されるデータ信号バスである。コマンドの入力やデータの入出力は、データ入出力信号端子I/Oを介して1バイトずつ行われる。ADDRはアドレス信号バスであり、行アドレスと列アドレスで構成する。/CEはチップ選択信号である。信号名の前の‘/’は信号が負論理であることを示す。/OEは、メモリデータやステータスレジスタを読み出す場合にアサートする信号である。 I / O is a data signal bus composed of eight lines. Command input and data input / output are performed byte by byte via the data input / output signal terminal I / O. ADDR is an address signal bus, and is composed of a row address and a column address. / CE is a chip selection signal. '/' In front of the signal name indicates that the signal is negative logic. / OE is a signal to be asserted when reading memory data or a status register.
/WEは、外部から入力したコマンドやアドレスをラッチする信号である。SCは、書き込みや読み出しにおいて、データを1バイトずつラッチする信号である。R/Bは、フラッシュメモリチップ201内部が消去中または書き込み中でビジー状態のとき、‘0’を出力する。一方レディー状態のときはハイインピーダンスを出力する。
/ WE is a signal for latching an externally input command or address. SC is a signal for latching data byte by byte in writing and reading. R / B outputs “0” when the
以下、このAND型フラッシュメモリチップ201の消去動作、書き込み動作、読み出し動作について説明する。
Hereinafter, the erase operation, write operation, and read operation of the AND
まず、消去動作の手順について説明する。 First, the erase operation procedure will be described.
(1)チップ外部より/CEをアサートした後、消去コマンドを入力する。消去コマンドは、マルチプレクサ210を介してコントロール回路211に入力する。
(1) After / CE is asserted from outside the chip, an erase command is input. The erase command is input to the
(2)チップ外部よりアドレス(行アドレス+列アドレス)を入力する。入力したアドレスのうち、行アドレスは行アドレスバッファ204およびコントロール回路211に、列アドレスは列アドレスカウンタ206に入力する。
(2) An address (row address + column address) is input from outside the chip. Of the inputted addresses, the row address is inputted to the
(3)コントロール回路211は制御信号ERSを‘1’にセットする。
(3) The
(4)チップ外部より消去開始コマンドを入力する。 (4) An erase start command is input from outside the chip.
(5)入力した行アドレスが0であるかどうかに関わらず、行アドレス0のワード線には接地電圧Vssが印加される。つまりワード線と基板との間で電位差が生じないので消去を行うことができない。
(5) Regardless of whether or not the input row address is 0, the ground voltage Vss is applied to the word line of the
書き込み動作については、行アドレスが指定するワード線が消去禁止領域にあるか消去可能領域にあるかに関わらず、選択したワード線には負電圧Vnnを印加し、非選択のワード線には接地電圧Vssを印加する。よって、消去禁止領域・消去可能領域の区別なくデータの書き込みを行うことができる。 For write operations, the negative voltage Vnn is applied to the selected word line and the unselected word line is grounded regardless of whether the word line specified by the row address is in the erasure prohibited area or the erasable area. Apply voltage Vss. Therefore, data can be written without distinction between the erasure prohibited area and the erasable area.
読み出し動作についても、行アドレスが指定するワード線が消去禁止領域にあるか消去可能領域にあるかに関わらず、選択したワード線には電源電圧Vccを印加し、非選択のワード線には接地電圧Vssを印加する。よって、消去禁止領域・消去可能領域の区別なくデータの読み出しを行うことができる。 In the read operation, the power supply voltage Vcc is applied to the selected word line and the unselected word line is grounded regardless of whether the word line specified by the row address is in the erasure prohibited area or the erasable area. Apply voltage Vss. Therefore, data can be read without distinction between the erasure prohibited area and the erasable area.
本実施例により、1回たりとも消去できない消去禁止領域を設けることができる。しかし、フラッシュメモリチップの製造後の選別処理では消去動作を行うのが一般的である。 According to this embodiment, it is possible to provide an erase prohibition area that cannot be erased even once. However, the erasing operation is generally performed in the sorting process after manufacturing the flash memory chip.
そこで第二の実施例として、1回だけ消去可能なAND型フラッシュメモリについて説明する。 Therefore, as a second embodiment, an AND flash memory that can be erased only once will be described.
(第二の実施例)
以下、第一の実施例と異なる個所を中心に説明する。
(Second embodiment)
The following description will focus on the points different from the first embodiment.
図4にセルアレイ群202のデータ構成を示す。
FIG. 4 shows the data structure of the
行アドレス0は再消去禁止領域である。再消去禁止領域の管理情報領域は、1バイトの消去済バイトを格納する。このバイトに対しては、チップ201外部から読み書きを行うことはできない。行アドレス1〜16383は消去可能領域である。消去可能領域の管理情報領域にも消去済バイトを格納する領域を有するが使用しない。
図1は、第二の実施例におけるセルアレイとその周辺の詳細を示す。 FIG. 1 shows details of the cell array and its periphery in the second embodiment.
図1に示す再消去禁止領域のワード線選択回路100、および消去可能領域のワード線選択回路101は、行アドレスをデコードしてワード線を選択し、ワード線に印加する電圧を制御する。図1には示していないが、行アドレスは行アドレスバッファ204を介して行デコーダ203に入力する。行アドレスが0のとき、再消去禁止領域のワード線選択回路100がワード線を選択する。また行アドレスが1から16383のとき、消去可能領域のワード線選択回路101が行アドレスに対応するワード線を選択する。再消去禁止領域のワード線選択回路100および消去可能領域のワード線選択回路101には、ワード線電圧Vwおよび接地電圧Vssが内部電源発生回路213より供給される。
The word
再消去禁止領域のワード線選択回路100の内部構成を図5に、また、消去可能領域のワード線選択回路101のうち、1本のワード線に対応する回路を図6に示す。チップ外部より行アドレスとして0を入力すると、再消去禁止領域内のワード線が選択される。このとき再消去禁止領域のワード線選択回路100が行アドレス0に対応するワード線に印加する電圧は、外部からの制御信号EPHにより異なる。図1に示すように、各セルアレイのデータ線D528に対応するラッチが記憶する値がすべて‘1’のとき、制御信号EPHは‘1’となる。EPHが‘0’のとき、ワード線にはワード線電圧Vwを印加し、EPHが‘1’のとき、ワード線には接地電圧Vssを印加する。また、消去可能領域内のワード線は選択されていないので接地電圧Vssが印加される。
FIG. 5 shows an internal configuration of the word
一方、行アドレスとして1から16383を入力すると、消去可能領域内の行アドレスに対応したワード線が選択される。このとき消去可能領域のワード線選択回路101は、選択したワード線にはワード線電圧Vwを印加する。また、再消去禁止領域のワード線選択回路100、消去可能領域のワード線選択回路101ともに非選択のワード線に対しては接地電圧Vssを印加する。
On the other hand, when 1 to 16383 is input as the row address, the word line corresponding to the row address in the erasable area is selected. At this time, the word
メモリブロック選択回路102、103は、行アドレスをデコードしてメモリブロックを選択する。図1には示していないが、メモリブロック選択回路102、103には行アドレスが入力する。また、電源電圧Vcc、接地電圧Vssが供給される。
Memory
以下、AND型フラッシュメモリチップ201の消去動作、書き込み動作、読み出し動作について説明する。
Hereinafter, the erase operation, write operation, and read operation of the AND
まず、消去動作について図8から図11を用いて説明する。以下、図8を用いて消去動作の詳細な手順を示す。 First, the erase operation will be described with reference to FIGS. The detailed procedure of the erase operation will be described below using FIG.
(ステップ801)チップ外部より/CEをアサートした後、消去コマンドを入力する。消去コマンドは、マルチプレクサ210を介してコントロール回路211に入力する。
(Step 801) After / CE is asserted from outside the chip, an erase command is input. The erase command is input to the
(ステップ802)チップ外部よりアドレス(行アドレス+列アドレス)を入力する。入力したアドレスのうち、行アドレスは行アドレスバッファ204およびコントロール回路211に、列アドレスは列アドレスカウンタ206に入力する。
(Step 802) An address (row address + column address) is input from outside the chip. Of the inputted addresses, the row address is inputted to the
(ステップ803)コントロール回路211は入力した行アドレスが0であるかどうかを判定する。
(Step 803) The
(ステップ804)行アドレスが0でないとき、チップ外部より消去開始コマンドを入力する。 (Step 804) When the row address is not 0, an erase start command is input from the outside of the chip.
(ステップ805)一方、行アドレスが0であるとき、コントロール回路211は、まず制御信号CNFを‘1’にセットする。つぎに、内部電源発生回路213および入力データ制御回路209に読み出しを行うための制御信号を出して、管理情報領域の消去済バイトをラッチ回路205へ読み出す。この間、R/B信号は‘0’を出力し、チップ内部がビジー状態であることを示す。読み出し終了後、コントロール回路211は制御信号CNFを‘0’にセットする。
(Step 805) On the other hand, when the row address is 0, the
(ステップ806)ステップ805の処理終了後、チップ外部より消去開始コマンドを入力する。 (Step 806) After the processing of step 805 is completed, an erase start command is input from the outside of the chip.
(ステップ807)消去済バイト内の全ビットのうち少なくとも1ビットが‘0’である場合(すなわち、消去を一度も行っていない場合)、または、ステップ804の処理終了後、コントロール回路211は、内部電源発生回路213および入力データ制御回路209に消去を行うための制御信号を出力する。このとき、選択したワード線には高電圧Vppを印加し、データ線D1からD528には接地電圧Vssを印加する。これにより、選択したワード線に接続されたフラッシュメモリセルの消去が開始する。フラッシュメモリセルを消去している間、出力信号R/Bは‘0’であり、チップ内部がビジー状態であることを示す。また、消去中に/OEをアサートすると、ステータスレジスタ212の内容を読み出すことができる。このとき、図7のビット0(R_B)は‘0’である。
(Step 807) When at least one bit among all the bits in the erased byte is “0” (that is, when erasing has never been performed), or after the processing of Step 804 is finished, the control circuit 211 A control signal for erasing is output to internal power
(ステップ808)消去が終わると、出力信号R/Bがハイインピーダンス、すなわちレディー状態に戻る。この後、/OEをアサートしてステータスレジスタ212を読み出すと、図7のビット0(R_B)は‘1’、ビット4(EIH)は‘0’である。
(Step 808) When erasing is finished, the output signal R / B returns to high impedance, that is, ready state. Thereafter, when / OE is asserted and the
(ステップ809)消去済バイトの全ビットが‘1’である場合(すなわち、一度消去を行っている場合)、内部電源発生回路213および入力データ制御回路209に消去を行うための制御信号を出力する。このとき、選択したワード線には接地電圧Vssが印加され、基板との間で電位差が生じないので消去を行うことができない。ここで、出力信号R/Bはハイインピーダンス状態である。また、ここでステータスレジスタ212を読み出すと、図7のビット0(R_B)は‘1’、ビット4(EIH)は‘1’である。
(Step 809) When all the bits of the erased byte are “1” (that is, when erasing is performed once), a control signal for erasing is output to the internal
図9に消去可能領域へ消去コマンドを発行したときのタイミングチャートを示す。図10に再消去禁止領域へ最初に消去コマンドを発行したときのタイミングチャートを示す。図11に再消去禁止領域へ2回目以降に消去コマンドを発行したときのタイミングチャートを示す。書き込み動作、読み出し動作については、アドレスを入力した後、コントロール回路211は行アドレスが0であるかを判定したり、消去済バイトをラッチ回路205へ読み出すことはしない。
FIG. 9 shows a timing chart when an erase command is issued to the erasable area. FIG. 10 shows a timing chart when the erase command is first issued to the re-erasure prohibited area. FIG. 11 shows a timing chart when the erase command is issued to the re-erasure prohibited area for the second time and thereafter. As for the write operation and the read operation, after inputting the address, the
書き込み動作については、行アドレスが指定するワード線が再消去禁止領域にあるか消去可能領域にあるかに関わらず、選択したワード線には負電圧Vnnを印加し、非選択のワード線には接地電圧Vssを印加する。よって、再消去禁止領域・消去可能領域の区別なくデータの書き込みを行うことができる。 For the write operation, a negative voltage Vnn is applied to the selected word line and a non-selected word line is applied to the selected word line regardless of whether the word line specified by the row address is in the re-erasure prohibited area or the erasable area. Apply ground voltage Vss. Therefore, data can be written without distinction between the re-erasure prohibited area and the erasable area.
読み出し動作についても、行アドレスが指定するワード線が再消去禁止領域にあるか消去可能領域にあるかに関わらず、選択したワード線には電源電圧Vccを印加し、非選択のワード線には接地電圧Vssを印加する。よって、再消去禁止領域・消去可能領域の区別なくデータの読み出しを行うことができる。 In the read operation, the power supply voltage Vcc is applied to the selected word line regardless of whether the word line specified by the row address is in the re-erasure prohibited area or the erasable area, and the non-selected word line is applied. Apply ground voltage Vss. Therefore, data can be read without distinction between the re-erasure prohibited area and the erasable area.
本実施例により、AND型フラッシュメモリの一部のメモリ領域に対して、1回だけ消去可能な領域を設けることができる。 According to the present embodiment, an erasable area can be provided only once in a part of the memory area of the AND type flash memory.
本実施例では再消去禁止領域に対して許容する消去回数は1回であった。これを拡張して、所定の回数だけ消去した後に消去を禁止することもできる。このとき、管理情報領域には消去済バイトの代わりに消去回数を格納する。消去回数は、コントロール回路211が入力データ制御回路209を制御して書き込む。
In this embodiment, the number of erasures allowed for the re-erasure prohibited area is one. This can be expanded to prohibit erasure after erasing a predetermined number of times. At this time, the number of erasures is stored in the management information area instead of the erased bytes. The number of times of erasure is written by the
また、本実施例ではAND型フラッシュメモリについて説明したが、本実施例の効果はAND型に限るものではない。DINOR型、NOR型、NAND型など他のフラッシュメモリセル構造でも同様にして再消去禁止領域を設けることができる。 In the present embodiment, the AND type flash memory has been described. However, the effect of the present embodiment is not limited to the AND type. In other flash memory cell structures such as DINOR type, NOR type, and NAND type, the re-erasure prohibition region can be provided in the same manner.
また、本実施例と同様な効果は、図36に示すようなフラッシュメモリチップ群311とカードコントローラチップ312で構成されるフラッシュメモリカード310でも得ることができる。つまり、消去バイトを読み出し、再消去禁止領域への消去を制御する手段をカードコントローラチップ312の中に内蔵していてもよい。また、カードコントローラチップ312内のカードステータスレジスタ313を利用して、再消去エラーを表示させることもできる。これにより、カードステータスレジスタ313の内容をノート型PCなどのホスト機器から読み出すことができる。このとき、フラッシュメモリチップ群311は従来のフラッシュメモリチップで構成してよい。
The same effect as that of the present embodiment can also be obtained by a
(第三の実施例)
つぎに、第三の実施例を図12から図19を用いて説明する。本実施例は、第一の実施例で説明した再消去禁止領域を発展させ、さらに上書きを防止する機能を持たせる。すなわち、1回だけ消去可能であることに加え、1回だけ書き込み可能な領域を実現することが目的である。
(Third embodiment)
Next, a third embodiment will be described with reference to FIGS. This embodiment develops the re-erasure prohibition area described in the first embodiment and further has a function of preventing overwriting. That is, in addition to being erasable only once, it is an object to realize an area that can be written only once.
図13に、本実施例におけるセルアレイ群202のデータ構成を示す。行アドレス0は再消去・再書き込み禁止領域である。行アドレス0の管理情報領域には、消去済バイトに加え、1バイトの書き込み済バイトを格納する。この書き込み済バイトには、チップ201外部から読み書きすることができない。
FIG. 13 shows the data configuration of the
書き込み動作において、コントロール回路211は、書き込み済バイトを読み込んで、全ビットデータが‘0’であるかどうかを判定し、行デコーダ203への制御信号OTPをセットする。また、再消去・再書き込み禁止領域に対する最初の書き込み動作において、コントロール回路211は入力データ制御回路209を制御して、書き込み済バイトの全ビットに ‘0’を格納する。
In the write operation, the
図15にステータスレジスタ212のビット構成を示す。第一の実施例でのステータスレジスタのビット構成に対して、ビット5に再書き込みエラービット(PIH)が新たに追加される。再消去・再書き込み禁止領域に対して、2回目以降に書き込みコマンドを発行した場合は、ビット5(PIH)が‘1’にセットされる。
FIG. 15 shows the bit configuration of the
書き込み動作について図16から図19を用いて説明する。以下、図16を用いて書き込み動作の手順を説明する。 The write operation will be described with reference to FIGS. Hereinafter, the procedure of the write operation will be described with reference to FIG.
(ステップ1601)チップ外部より/CEをアサートした後、書き込みコマンドを入力する。書き込みコマンドは、マルチプレクサ210を介してコントロール回路211に入力する。
(Step 1601) After / CE is asserted from outside the chip, a write command is input. The write command is input to the
(ステップ1602)チップ外部よりアドレス(行アドレス+列アドレス)を入力する。入力したアドレスのうち、行アドレスは行アドレスバッファ204およびコントロール回路211に、列アドレスは列アドレスカウンタ206に入力する。
(Step 1602) An address (row address + column address) is input from outside the chip. Of the inputted addresses, the row address is inputted to the
(ステップ1603)コントロール回路211は入力した行アドレスが0であるかどうかを判定する。
(Step 1603) The
(ステップ1604)行アドレスが0でないと判定した場合、チップ外部より書き込みデータを1バイトずつ入力する。このとき、最大526バイトまで入力することができる。入力されたデータはラッチ回路205に記憶される。
(Step 1604) When it is determined that the row address is not 0, write data is input byte by byte from the outside of the chip. At this time, a maximum of 526 bytes can be input. The input data is stored in the
(ステップ1605)入力終了後、チップ外部より書き込み開始コマンドを入力する。 (Step 1605) After the input is completed, a write start command is input from the outside of the chip.
(ステップ1606)一方、ステップ1603にて行アドレスが0であると判定した場合、コントロール回路211は、まず制御信号CNFを‘1’にセットする。つぎに、内部電源発生回路213および入力データ制御回路209に読み出しを行うための制御信号を出力し、管理情報領域の消去済バイトおよび書き込み済バイトをラッチ回路205へ読み込む。この間、出力信号R/Bは‘0’を出力し、チップ内部がビジー状態であることを示す。読み出し終了後、コントロール回路211は制御信号CNFを‘0’にセットする。
(Step 1606) On the other hand, if it is determined in Step 1603 that the row address is 0, the
(ステップ1607)チップ外部より書き込みデータを1バイトずつ入力する。このとき、最大526バイトまで入力することができる。入力されたデータはラッチ回路205にラッチされる。入力終了後、入力データ制御回路209は、セルアレイ群202内のデータ線D527に対応する8個のラッチに‘0’をラッチする。
(Step 1607) Write data is input byte by byte from outside the chip. At this time, a maximum of 526 bytes can be input. The input data is latched by the
(ステップ1608)チップ外部より書き込み開始コマンドを入力する。 (Step 1608) A write start command is input from outside the chip.
(ステップ1609)消去済バイトの全ビットが‘1’かつ書き込み済バイトの全ビットが‘0’を満足しない場合、または、ステップ1605の処理終了後、コントロール回路211は、内部電源発生回路213および入力データ制御回路209に書き込みを行うための制御信号を出力する。このとき、選択したワード線には負電圧Vnnを印加する。データ線に印加される電圧は、ラッチ回路205が記憶する値に対応する。これにより、選択したワード線に接続されたフラッシュメモリセルの書き込みが開始する。再消去・再書き込み禁止領域の最初の書き込みにおいては、管理情報領域内の書き込み済バイトの全ビットに‘0’が書き込まれる。この間、出力信号R/Bは‘0’であり、チップ内部がビジー状態であることを示す。また、書き込み中に/OEをアサートすると、ステータスレ
ジスタ212の内容を読み出すことができる。このとき、図15のビット0(R_B)は‘0’である。
(Step 1609) When all the bits of the erased byte do not satisfy “1” and all the bits of the written byte satisfy “0”, or after the processing of Step 1605 ends, the
(ステップ1610)書き込みが終了すると、出力信号R/Bがハイインピーダンス、すなわちレディー状態に戻る。この後、/OEをアサートしてステータスレジスタ212を読み出すと、図15のビット0(R_B)は‘1’、ビット5(PIH)は‘0’である。
(Step 1610) When the writing is completed, the output signal R / B returns to the high impedance, that is, ready state. Thereafter, when / OE is asserted and the
(ステップ1611)消去済バイトの全ビットが‘1’かつ書き込み済バイトの全ビットが‘0’である場合(すなわち、消去および書き込みをすでに行った場合)、コントロール回路211は、内部電源発生回路213および入力データ制御回路209に書き込みを行うための制御信号を出力する。このとき、選択したワード線には接地電圧Vssを印加され、接地電圧Vssまたは電源電圧Vccに印加されているデータ線との間で電位差が生じない、または電位差が小さいので書き込みが発生しない。ここで、出力信号R/Bはハイインピーダンス状態である。また、ステータスレジスタ212を読み出すと、図15のビット0(R_B)は‘1’、ビット5(PIH)は‘1’である。
(Step 1611) When all the bits of the erased byte are “1” and all the bits of the written byte are “0” (that is, when erasing and writing have already been performed), the
図17に消去・書き込み可能領域へ書き込みコマンドを発行したときのタイミングチャートを示す。図18に再消去・再書き込み禁止領域へ最初に書き込みコマンドを発行したときのタイミングチャートを示す。図19に再消去・再書き込み禁止領域へ2回目以降に書き込みコマンドを発行したときのタイミングチャートを示す。消去動作、読み出し動作については第一の実施例と同様である。 FIG. 17 shows a timing chart when a write command is issued to the erasable / writable area. FIG. 18 shows a timing chart when a write command is first issued to the re-erase / re-write prohibited area. FIG. 19 shows a timing chart when a write command is issued to the re-erase / rewrite prohibited area for the second time and thereafter. The erase operation and read operation are the same as in the first embodiment.
本実施例により、AND型フラッシュメモリの一部のメモリ領域に対して、1回だけ書き込み可能な領域を設けることができる。再消去・再書き込み禁止領域のデータに対して、消去だけでなく、書き込みを許容しないことで、上書きによるデータの破壊を防止することができる。 According to this embodiment, it is possible to provide an area in which data can be written only once in a part of the memory area of the AND type flash memory. By not permitting not only erasing but also writing to the data in the re-erase / re-write prohibited area, it is possible to prevent data destruction due to overwriting.
本実施例についても、同様な効果を図36に示すようなフラッシュメモリチップ群311とカードコントローラチップ312で構成されるフラッシュメモリカード310でも得ることができる。
Also in this embodiment, the same effect can be obtained with a
(第四の実施例)
つぎに、第四の実施例を図20から図31を用いて説明する。本実施例は、第二の実施例の再消去禁止領域を第三の実施例とは異なる形式で発展させたものである。
(Fourth embodiment)
Next, a fourth embodiment will be described with reference to FIGS. In this embodiment, the erasure prohibition area of the second embodiment is developed in a different form from that of the third embodiment.
図20は、AND型フラッシュメモリチップ901のブロック構成を示す。以下、本実施例で新規に追加されたブロック、および、第一の実施例で説明したブロックと機能が異なるブロックについて説明する。
FIG. 20 shows a block configuration of an AND type
セルアレイ群902は、第一の実施例と同様に8面のセルアレイで構成される。図21にセルアレイ群902のデータ構成を示す。
The
行アドレス0は、第二の実施例と同様に528ビット×8=528バイトの再消去禁止領域である。再消去禁止領域のセクタデータ領域は、256バイト以内の識別番号を格納する領域と、256バイト以内の識別番号の反転データを格納する領域とで構成する。識別番号の反転データとは、識別番号を‘0’,‘1’の2進数で表現したとき、‘0’を‘1’に、‘1’を‘0’に反転したデータである。行アドレス1から行アドレス16383は消去可能領域であり、セクタデータ領域にはユーザデータを格納する。
The
行デコーダ903は、第二の実施例と同様に、再消去禁止領域のワード線選択回路、消去可能領域のワード線選択回路、メモリブロック選択回路で構成する。再消去禁止領域のワード線選択回路を図22に示す。チップ外部から入力した行アドレスが0でなくても、コントローラ回路211からの制御信号RIDによりワード線を選択し、読み出しに必要な電源電圧Vccを印加できるようにしている。また、消去可能領域のワード線選択回路は、図1の消去可能領域のワード線選択回路101と同一である。よって、ワード線ごとの回路は図6と同一である。また、メモリブロック選択回路も図1のメモリブロック選択回路102、103と同一である。
Similar to the second embodiment, the
データ線電圧制御回路906は、図2の入力データ制御回路209に相当する。データ線電圧制御回路906は、消去・書き込み・読み出しの各動作において、コントロール回路211からの制御信号OPRに応じて、データ線に印加する電圧を制御する。
The data line
図23に反転/照合回路907、マルチプレクサ904、905、ゲート回路908、ラッチ回路205の詳細図を示す。
FIG. 23 is a detailed diagram of the inversion /
反転/照合回路907は2つの役割をもつ。一つの役割は、識別番号の書き込みにおいて反転/照合回路907内部で識別番号の反転データを生成し、識別番号とその反転データをデータ線へ出力することである。もう一つの役割は、ユーザデータのアクセスにおいて、アクセス前に識別番号の改ざんのチェックを行うことである。ここで言うチェックとは、識別番号領域と反転データ領域に格納された2つのデータを読み出して、互いが反転関係にあるかどうかを検証することである。2つのデータが反転関係にある場合は、ゲート回路908内のMOSスイッチがONになるのでユーザデータの読み出し/書き込みが可能となる。逆に、2つのデータが反転の関係にない場合は、ゲート回路908内のMOSスイッチがOFFになるのでユーザデータの読み出し/書き込みが不可能となる。
The inversion /
マルチプレクサ904、905は、再消去禁止領域に対する入出力または消去可能領域に対する入出力の切替制御を行う。切替制御はコントロール回路211からの制御信号UDIDにより行う。
The
ステータスレジスタ212のビット構成を図24に示す。第一の実施例のときと比較して、ビット5(TMP)が新規に追加されている。ビット5(TMP)が‘1’のとき、識別番号が上書きされているためユーザデータにアクセスできないことを示す。
The bit configuration of the
以下、識別番号のアクセス手順を説明する。ここでは、図25を用いて識別番号の書き込みを例に手順を説明する。 The access procedure for the identification number will be described below. Here, the procedure will be described using the writing of the identification number as an example with reference to FIG.
(ステップ2501)チップ外部より/CEをアサートした後、書き込みコマンドを入力する。書き込みコマンドは、マルチプレクサ210を介してコントロール回路211へ入力する。
(Step 2501) After / CE is asserted from outside the chip, a write command is input. The write command is input to the
(ステップ2502)チップ外部よりアドレス(ただし、行アドレス=0)を入力する。入力したアドレスのうち、行アドレスは行アドレスバッファ204とコントロール回路211に、列アドレスは列アドレスカウンタ206に入力する。
(Step 2502) An address (however, row address = 0) is input from outside the chip. Of the inputted addresses, the row address is inputted to the
(ステップ2503)コントロール回路211は、マルチプレクサ904、905への制御信号UDIDを‘0’にセットする。
(Step 2503) The
(ステップ2504)コントロール回路211は、行アドレスが0であると判定したあと、行デコーダ903への制御信号RIDを‘0’にセットする。
(Step 2504) After determining that the row address is 0, the
(ステップ2505)チップ外部より識別番号および管理情報を1バイトずつ入力する。このとき、入力可能な最大バイト数は(256+15)=271バイトである。入力した識別番号および識別番号の反転データは、反転/照合回路907内部のラッチ回路に記憶される。また、管理情報はラッチ回路205に記憶される。
(Step 2505) An identification number and management information are input byte by byte from the outside of the chip. At this time, the maximum number of bytes that can be input is (256 + 15) = 271 bytes. The input identification number and inverted data of the identification number are stored in a latch circuit in the inversion /
(ステップ2506)チップ外部より書き込み開始コマンドを入力する。 (Step 2506) A write start command is input from outside the chip.
(ステップ2507)コントローラ回路211は、内部電源発生回路213およびデータ線電圧制御回路906に、書き込みを行うための制御信号を出力する。このとき、行デコーダ903内の再消去禁止領域のワード線選択回路は、選択したワード線に負電圧Vnnを印加する。また、データ線電圧制御回路906はデータ線に電圧を印加せず、データ線には反転/照合回路907内部のラッチ、およびラッチ回路205が記憶する値に応じた電圧が印加される。これにより、行アドレス0への書き込みが開始する。この間、出力信号R/Bは‘0’であり、チップ内部がビジー状態であることを示す。また、書き込み中に/OEをアサートすると、ステータスレジスタ212の内容を読み出すことができる。このとき、図24のビット0(R_B)は‘0’である。
(Step 2507) The
(ステップ2508)書き込みが終了すると、出力信号R/Bがハイインピーダンス、すなわちレディー状態に戻る。この後、/OEをアサートしてステータスレジスタ212を読み出すと、図24のビット0(R_B)は‘1’である。
(Step 2508) When the writing is completed, the output signal R / B returns to the high impedance, that is, ready state. Thereafter, when / OE is asserted and the
以上の手順により、識別番号およびその反転データがそれぞれの領域に書き込まれる。図28に識別番号の書き込みタイミングチャートを示す。 Through the above procedure, the identification number and its inverted data are written in each area. FIG. 28 shows an identification number writing timing chart.
つづいて、ユーザデータのアクセス手順を説明する。ここでは、ユーザデータの書き込みを例に、図26を用いて手順を説明する。 Next, the user data access procedure will be described. Here, an example of writing user data will be described with reference to FIG.
(ステップ2601)チップ外部より/CEをアサートした後、書き込みコマンドを入力する。書き込みコマンドは、マルチプレクサ210を介してコントロール回路211へ入力する。
(Step 2601) After / CE is asserted from outside the chip, a write command is input. The write command is input to the
(ステップ2602)チップ外部よりアドレス(ただし、行アドレス≠0)を入力する。入力したアドレスのうち、行アドレスは行アドレスバッファ204とコントロール回路211に、列アドレスは列アドレスカウンタ206に入力する。
(Step 2602) An address (however, a row address ≠ 0) is input from outside the chip. Of the inputted addresses, the row address is inputted to the
(ステップ2603)コントロール回路211は、マルチプレクサ904、905への制御信号UDIDを‘0’にセットする。
(Step 2603) The
(ステップ2604)コントロール回路211は、行アドレスが0でないと判定したあと、行デコーダ903への制御信号RIDを‘1’にセットする。このとき、再消去禁止領域のワード線選択回路は行アドレス0のワード線に電源電圧Vccを印加する。また、データ線電圧制御回路906は、コントロール回路211からの制御信号により、データ線に所定の正電圧を印加して識別番号領域および反転データ領域のデータを反転/照合回路907内のラッチへ読み出す。この間、出力信号R/Bは‘0’を出力し、チップがビジー状態であることを示す。
(Step 2604) After determining that the row address is not 0, the
反転/照合回路907内では、ラッチに読み出された識別番号および反転データが反転関係にあるかどうかを判定する。
In the inversion /
一般にフラッシュメモリでは、書き込みコマンドでは、単方向にしかデータの書き込みができない。例えば、AND型フラッシュメモリでは、書き込み状態でメモリセルが記憶する値が‘0’で、消去状態では‘1’である。このとき、書き込みコマンドによる記憶データの変化は‘1’から‘0’の単方向にしか起こらない。つまり、メモリセル記憶する情報が‘0’であるとき、書き込みコマンドにより‘1’にすることはできない。この性質を利用して、すでに格納されている通常データとその反転データに対して上書きを行った場合、図27のように上書き後の2つのデータは反転関係でなくなる。よって、2つのデータが反転関係にあるかどうかを調べることで、識別番号が上書きされているかどうかを知ることができる。判定の結果、2つのデータが反転関係にある場合はゲート回路908のMOSトランジスタ群がONになる。反転関係にない場合はMOSトランジスタ群がOFFになる。
Generally, in a flash memory, data can be written only in one direction by a write command. For example, in the AND flash memory, the value stored in the memory cell in the written state is ‘0’, and in the erased state, the value is ‘1’. At this time, the change of the storage data by the write command occurs only in one direction from “1” to “0”. That is, when the information stored in the memory cell is “0”, it cannot be set to “1” by the write command. If this property is used to overwrite the already stored normal data and its inverted data, the two data after overwriting are not in an inverted relationship as shown in FIG. Therefore, it is possible to know whether or not the identification number has been overwritten by checking whether or not the two data are in an inverted relationship. As a result of the determination, when the two data are in an inverted relationship, the MOS transistor group of the
(ステップ2605)コントローラ回路211は、行デコーダ903への制御信号RIDを‘0’に、マルチプレクサ904、905への制御信号UDIDを‘1’にセットする。また、出力信号R/Bをハイインピーダンスに戻し、チップがレディー状態であることを示す。
(Step 2605) The
(ステップ2606)チップ外部よりユーザデータおよび管理情報を1バイトずつ入力する。このとき、入力可能な最大バイト数は527バイトである。入力したユーザデータはラッチ回路205に記憶される。
(Step 2606) User data and management information are input byte by byte from outside the chip. At this time, the maximum number of bytes that can be input is 527 bytes. The input user data is stored in the
(ステップ2607)チップ外部から書き込み開始コマンドを入力する。コントローラ回路211は、内部電源発生回路213およびデータ線電圧制御回路906に、書き込みを行うための制御信号を出力する。このとき、行デコーダ903内の消去可能領域のワード線選択回路は、選択したワード線に負電圧Vnnを印加する。また、データ線電圧制御回路906はデータ線に電圧を印加しない。
(Step 2607) A write start command is input from the outside of the chip. The
(ステップ2608)識別番号が上書きされていない、すなわち、ゲート回路908内のMOSトランジスタ群がONになっていれば、データ線にはラッチ回路205内部のラッチが記憶する値に応じた電圧が印加され、ユーザデータを書き込める。このとき、出力信号R/Bは‘0’である。また、/OEをアサートするとステータスレジスタ212の内容を読み出すことができる。このとき、図24のビット0(R_B)は‘0’、ビット5(TMP)は‘0’である。
(Step 2608) If the identification number is not overwritten, that is, if the MOS transistor group in the
(ステップ2609)書き込みが終了すると、出力信号R/Bがハイインピーダンス、すなわちレディー状態に戻る。この後、/OEをアサートしてステータスレジスタ212を読み出すと、図24のビット0(R_B)は‘1’、ビット5(TMP)は‘0’である。
(Step 2609) When the writing is completed, the output signal R / B returns to the high impedance, that is, ready state. Thereafter, when / OE is asserted and the
(ステップ2610)一方識別番号が上書きされている、すなわち、ゲート回路908内のMOSトランジスタ群がOFFになっていれば、ユーザデータ領域にデータを書き込むことはできない。このとき、出力信号R/Bはハイインピーダンスである。また、/OEをアサートするとステータスレジスタ212の内容を読み出すことができる。このとき、図24のビット0(R_B)は‘1’、ビット5(TMP)は‘1’である。
(Step 2610) On the other hand, if the identification number is overwritten, that is, if the MOS transistor group in the
図29に識別番号が改ざんされていない場合のユーザデータの書き込みタイミングチャートを示す。また、図30に識別番号が改ざんされている場合のユーザデータの書き込みタイミングチャートを示す。 FIG. 29 shows a write timing chart of user data when the identification number has not been tampered with. FIG. 30 shows a timing chart for writing user data when the identification number is falsified.
本実施例では識別番号の上書きを防止することはできないが、識別番号が改ざんされたことを検出できる。さらに識別番号が改ざんされていた場合、ユーザデータにアクセスできなくなるといった応用が可能となり、ユーザデータにセキュリティ機能を持たせることができる。 In this embodiment, the identification number cannot be overwritten, but it can be detected that the identification number has been tampered with. Furthermore, when the identification number has been tampered with, it becomes possible to apply such that the user data cannot be accessed, and the user data can have a security function.
また本実施例と同様な効果は、図31に示すようなフラッシュメモリチップ群311とカードコントローラチップ312で構成されるフラッシュメモリカード310でも得ることができる。つまり、反転データを生成する手段や、通常データと反転データが反転の関係にあるかどうかを照合する手段を、カードコントローラチップ312の中に内蔵していてもよい。また、カードコントローラチップ312内のカードステータスレジスタ313を利用して、再消去エラーや上書きエラーを表示させることもできる。これにより、カードステータスレジスタ313の内容をノート型PCなどのホスト機器から読み出すことができる。このとき、フラッシュメモリチップ群311は従来のフラッシュメモリチップで構成してよい。
The same effect as that of the present embodiment can also be obtained with a
201 AND型フラッシュメモリチップ
202 セルアレイ群
203 行デコーダ
211 コントロール回路
212 ステータスレジスタ
907 反転/照合回路
201 AND type
Claims (7)
外部より入力したアドレス値によりワード線またはデータ線またはソース線を選択し所定の電圧を印加する選択装置と、
消去・書き込み・読み出し等の動作を制御する動作制御装置と、
不揮発性半導体記憶装置の状態を記憶する一時記憶装置とを有する不揮発性半導体記憶装置において、
通常データの各ビットと1対1の写像関係にあるデータを生成する装置を有し、前記記憶領域内の一部または全部の領域に対して、同一の書き込み単位領域に、前記通常データおよび前記写像関係のデータを書き込むことを特徴とする不揮発性半導体記憶装置。 A storage area composed of a plurality of erasing unit areas, and having a normal data area for each erasing unit area and a management information area for storing management information of the entire erasing unit area;
A selection device for selecting a word line, a data line or a source line according to an address value inputted from the outside and applying a predetermined voltage;
An operation control device for controlling operations such as erasing, writing, and reading;
In a nonvolatile semiconductor memory device having a temporary storage device that stores the state of the nonvolatile semiconductor memory device,
A device that generates data having a one-to-one mapping relationship with each bit of normal data, and the normal data and the write data in the same write unit area with respect to a part or all of the storage area A non-volatile semiconductor memory device, wherein mapping-related data is written.
前記通常データの各ビットと1対1の写像関係にあるデータは、前記通常データの1の補数データ、すなわち‘0’/‘1’に関する反転データであることを特徴とする不揮発性半導体記憶装置。 The nonvolatile semiconductor memory device according to claim 1,
Nonvolatile semiconductor memory device characterized in that the data having a one-to-one mapping relationship with each bit of the normal data is 1's complement data of the normal data, that is, inverted data related to '0' / '1' .
前記通常データが、不揮発性半導体記憶装置に固有な識別番号であることを特徴とする不揮発性半導体記憶装置。 The nonvolatile semiconductor memory device according to claim 1,
The non-volatile semiconductor memory device, wherein the normal data is an identification number unique to the non-volatile semiconductor memory device.
前記通常データおよび前記写像関係のデータを格納する領域以外のデータ領域に対して書き込みおよび読み出しを行うとき、予め前記通常データおよび前記写像関係のデータが互いに写像関係にあるかを検証し、互いに写像関係にある場合は書き込みおよび読み出しが可能に設定し、互いに写像関係にない場合は前記データ領域への書き込みおよび読み出しが不可能に設定する手段を有することを特徴とする不揮発性半導体記憶装置。 The nonvolatile semiconductor memory device according to claim 1,
When writing to and reading from the data area other than the area for storing the normal data and the mapping data, the normal data and the mapping data are verified in advance and mapped to each other. A non-volatile semiconductor memory device comprising means for setting writing and reading to be possible when in a relationship, and setting to make writing and reading to the data area impossible when not in a mapping relationship with each other.
前記通常データおよび前記写像関係のデータが互いに写像関係にない場合は書き込みおよび読み出しが不可能であることを装置外部に知らせる手段を有することを特徴とする不揮発性半導体記憶装置。 The nonvolatile semiconductor memory device according to claim 4,
A non-volatile semiconductor memory device comprising means for informing the outside of the device that writing and reading are impossible when the normal data and the mapping data are not mapped to each other.
前記書き込みおよび読み出しが不可能であることを不揮発性半導体記憶装置の外部に知らせる手段が、前記一時記憶装置であることを特徴とする不揮発性半導体記憶装置。 The nonvolatile semiconductor memory device according to claim 5,
The non-volatile semiconductor memory device, wherein the means for notifying the outside of the non-volatile semiconductor memory device that writing and reading are impossible is the temporary memory device.
前記書き込みおよび読み出しが不可能であることを不揮発性半導体記憶装置の外部に知らせる手段が、1本または複数本の専用出力ピンから出力する信号値であることを特徴とする不揮発性半導体記憶装置。 The nonvolatile semiconductor memory device according to claim 5,
The non-volatile semiconductor memory device, wherein the means for informing the outside of the non-volatile semiconductor memory device that writing and reading are impossible is a signal value output from one or a plurality of dedicated output pins.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008089710A JP2008171565A (en) | 2008-03-31 | 2008-03-31 | Nonvolatile semiconductor memory device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2008089710A JP2008171565A (en) | 2008-03-31 | 2008-03-31 | Nonvolatile semiconductor memory device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP28382799A Division JP2001109666A (en) | 1999-10-05 | 1999-10-05 | Non-volatile semiconductor storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008171565A true JP2008171565A (en) | 2008-07-24 |
Family
ID=39699475
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008089710A Withdrawn JP2008171565A (en) | 2008-03-31 | 2008-03-31 | Nonvolatile semiconductor memory device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008171565A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011096047A1 (en) * | 2010-02-02 | 2011-08-11 | 株式会社日立製作所 | Semiconductor memory and data processing method |
-
2008
- 2008-03-31 JP JP2008089710A patent/JP2008171565A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2011096047A1 (en) * | 2010-02-02 | 2011-08-11 | 株式会社日立製作所 | Semiconductor memory and data processing method |
JP5377669B2 (en) * | 2010-02-02 | 2013-12-25 | 株式会社日立製作所 | Semiconductor memory device |
US9318178B2 (en) | 2010-02-02 | 2016-04-19 | Hitachi, Ltd. | Semiconductor storage device and data processing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4806814B2 (en) | Multilevel programming in non-volatile memory devices | |
US9159427B2 (en) | Memory devices and their operation with different sets of logical erase blocks | |
US6288940B1 (en) | Non-volatile semiconductor memory device | |
JP2005108273A (en) | Nonvolatile semiconductor memory device | |
KR100939146B1 (en) | Non-volatile semiconductor memory system and data write method thereof | |
US8607120B2 (en) | Semiconductor memory device for performing additional ECC correction according to cell pattern and electronic system including the same | |
US7203791B2 (en) | Flash memory device with partial copy-back mode | |
JPH11176178A (en) | Non-volatile semiconductor storage and ic memory card using it | |
JP2003217288A (en) | Flash memory in which read-disturbance is relaxed | |
US9489143B2 (en) | Method for accessing flash memory and associated controller and memory device | |
US9019780B1 (en) | Non-volatile memory apparatus and data verification method thereof | |
TWI228256B (en) | Flash memory device with stable source line regardless of bit line coupling and loading effect | |
JP2010135036A (en) | Nonvolatile memory, memory control device, memory control system, and control method of nonvolatile memory | |
US7532517B2 (en) | Non-volatile one time programmable memory | |
US6826081B2 (en) | Nonvolatile semiconductor memory device, nonvolatile semiconductor memory device-integrated system, and defective block detecting method | |
JP2006164408A (en) | Nonvolatile semiconductor memory device, and data erasure method therefor | |
JP5734492B1 (en) | Semiconductor memory device | |
US8275934B2 (en) | Nonvolatile memory device and cache read method using the same | |
JP2001109666A (en) | Non-volatile semiconductor storage device | |
JP2008171565A (en) | Nonvolatile semiconductor memory device | |
JP2004030849A (en) | Semiconductor nonvolatile memory having rewritable function for part of data | |
JP2007188547A (en) | Nonvolatile semiconductor memory device | |
JP4332108B2 (en) | Memory controller, flash memory system, and flash memory control method | |
JP2004273117A (en) | Semiconductor device mounting composite flash memory thereon, and portable device | |
JPH08221320A (en) | Semiconductor memory and information system using the memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20081117 |