JPH08329689A - Flash memory and its erasing method - Google Patents

Flash memory and its erasing method

Info

Publication number
JPH08329689A
JPH08329689A JP13396195A JP13396195A JPH08329689A JP H08329689 A JPH08329689 A JP H08329689A JP 13396195 A JP13396195 A JP 13396195A JP 13396195 A JP13396195 A JP 13396195A JP H08329689 A JPH08329689 A JP H08329689A
Authority
JP
Japan
Prior art keywords
erase
memory
register
command
registers
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.)
Granted
Application number
JP13396195A
Other languages
Japanese (ja)
Other versions
JP2739838B2 (en
Inventor
Noboru Sato
▲昇▼ 佐藤
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP13396195A priority Critical patent/JP2739838B2/en
Publication of JPH08329689A publication Critical patent/JPH08329689A/en
Application granted granted Critical
Publication of JP2739838B2 publication Critical patent/JP2739838B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)

Abstract

PURPOSE: To shorten the erase processing time for blocks including the one for a block to be erased which might occur additionally during the erase processing action. CONSTITUTION: Erase addition registers, Ra1 to Ra4, and erase permission registers, Rb1 to Rb4, which correspond to memory blocks, MB1 to MB4, respectively are provided. A command analyzer circuit 1 is provided which receives an erase block setting command to set an erase addition register which correspond to the erase block address and receives an erase command to output its control signal. A control circuit 2 is provided which receives the control signal to check the setting condition of the erase addition registers, Ra1 to Ra4, sets the erase permission registers which correspond to the set erase addition register to erase in a single unit of memory blocks corresponding to the set erase addition register and controls verify. Through the erase addition registers, Ra1 to Ra4, setting processing and packaged erase processing of erase blocks are parallelly conducted.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はフラッシュメモリおよび
その消去方法に関し、特に一括消去単位の複数のメモリ
ブロックを備えたフラッシュメモリおよびその消去法方
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a flash memory and an erasing method thereof, and more particularly to a flash memory having a plurality of memory blocks in a batch erasing unit and an erasing method thereof.

【0002】[0002]

【従来の技術】フラッシュメモリにデータを書き込む場
合は、データの書込みを行う前に消去処理を行うことが
必要である。この消去処理は、フラッシュメモリのチッ
プ全体またはメモリブロック単位に行われる。チップ全
体を一括消去する方法はデータを一新する場合は有効で
あるが、一部データの書換えを行う場合は書換え不要な
領域も消去してしまうため、データを再格納する必要が
あり、書換え速度が遅くなってしまう。メモリブロック
単位に消去する場合は、書換え不要な領域まで消去して
再格納する必要がなくなるので、その分書換え時間の短
縮と消去回数の低減という効果を持つ。また、複数のメ
モリブロックのうちの所定のメモリブロックを消去する
場合は、消去対象の選択された複数のメモリブロックを
同時に消去するという工夫がなされている。
2. Description of the Related Art When writing data to a flash memory, it is necessary to perform an erasing process before writing the data. This erasing process is performed for the entire chip of the flash memory or for each memory block. The method of batch erasing the entire chip is effective when renewing the data, but when rewriting part of the data, the area that does not need to be rewritten is also erased, so it is necessary to store the data again. The speed becomes slow. When erasing in memory block units, there is no need to erase and re-store areas that do not require rewriting, and therefore, the rewriting time can be shortened and the number of times of erasing can be reduced. In addition, when erasing a predetermined memory block of the plurality of memory blocks, a device is devised to simultaneously erase the plurality of selected memory blocks to be erased.

【0003】消去対象の選択された複数のメモリブロッ
クを同時に消去する場合、これら複数のメモリブロック
にタグを付けて行う方法が特開昭57−150178号
公報、特開平2−292798号公報などで開示されて
いる。
In the case of simultaneously erasing a plurality of selected memory blocks to be erased, a method of tagging the plurality of memory blocks is disclosed in JP-A-57-150178 and JP-A-2-292798. It is disclosed.

【0004】図6はこれらのうちの新しい技術である特
開平2−292798号公報を参照してまとめたフラッ
シュメモリ(第1の例)のブロック図である。
FIG. 6 is a block diagram of a flash memory (first example) summarized with reference to Japanese Patent Laid-Open No. 2-292798, which is a new technique among them.

【0005】このフラッシュメモリは、複数のメモリセ
ルを配置し対応する消去許可信号(EE1〜EE4)が
活性化レベルのとき、印加された消去電圧パルスVeに
従って複数のメモリセルを一括消去し、リードライト制
御信号(図示省略)に従って所定されたアドレス(この
アドレス指定手段は図示省略)のメモリセルに対してデ
ータの書込み,読出しを行う一括消去単位の複数のメモ
リセルブロックMB1〜MB4と、これら複数のメモリ
ブロックMB1〜MB4それぞれと対応して設けられセ
ット状態のとき活性化レベルの消去許可信号(EE1〜
EE4)を対応するメモリブロックに供給する複数の消
去許可レジスタRb1〜Rb4と、コントローラ31,
シリアルインタフェース32,コマンドレジスタ33,
コマンドデコーダ34,アドレスレジスタ35,アドレ
スデコーダ36および論理ゲート37を備え、上位シス
テムから伝達されたコマンドCMDが消去ブロック設定
コマンドのとき伝達された消去ブロックアドレスAEB
と対応する消去許可レジスタ(Rb1〜Rb4)をセッ
トしてグローバル消去コマンドに従って消去電圧パルス
Veを出力し、図示されていないベリファイ手段により
消去状態のベリファイが良と判定されたメモリブロック
と対応する消去許可レジスタをクリアして全ての消去許
可レジスタがクリアされると消去処理動作を終了する制
御部30とを有する構成となっている。
In this flash memory, when a plurality of memory cells are arranged and the corresponding erase enable signals (EE1 to EE4) are at the activation level, the plurality of memory cells are collectively erased in accordance with the applied erase voltage pulse Ve and read. A plurality of memory cell blocks MB1 to MB4 in a batch erase unit for writing / reading data to / from a memory cell at an address (this addressing means is not shown) specified according to a write control signal (not shown), and a plurality of these memory cell blocks MB1 to MB4. Corresponding to the memory blocks MB1 to MB4, and the erase enable signals (EE1 to EE1) of the activation level in the set state.
A plurality of erase enable registers Rb1 to Rb4 for supplying EE4) to the corresponding memory block, the controller 31,
Serial interface 32, command register 33,
An erase block address AEB transmitted when the command CMD transmitted from the host system is an erase block setting command, including a command decoder 34, an address register 35, an address decoder 36 and a logic gate 37.
The erase enable registers (Rb1 to Rb4) corresponding to the above are set, the erase voltage pulse Ve is output according to the global erase command, and the erase corresponding to the memory block for which the verify of the erase state is determined to be good by the verifying means (not shown). The control unit 30 terminates the erase processing operation when the permission register is cleared and all the erase permission registers are cleared.

【0006】次に、このフラッシュメモリの動作及びデ
ータの消去方法について、図7に示されたフローチャー
トを併せて参照し説明する。
Next, the operation of this flash memory and the data erasing method will be described with reference to the flowchart shown in FIG.

【0007】消去対象となるメモリブロックの選択と消
去処理動作とは、コントローラ31のコントロールの下
に行われる。コントローラ31からのコマンド情報はシ
リアルインタフェース32を介してコマンドレジスタ3
3によって捕捉され、コマンドデコーダ34によってデ
コードされ、コマンドデコーダ34は種々の制御信号を
出力する。同様にアドレス情報はアドレスレジスタ35
によって捕捉され、アドレスデコーダ36によってデコ
ードされる。
The selection of the memory block to be erased and the erase processing operation are performed under the control of the controller 31. The command information from the controller 31 is transferred to the command register 3 via the serial interface 32.
3 and is decoded by the command decoder 34, the command decoder 34 outputs various control signals. Similarly, the address information is stored in the address register 35.
And is decoded by the address decoder 36.

【0008】制御部30によって消去ブロック設定コマ
ンドがデコードされると、ステップS51で消去処理動
作が開始され、消去すべきメモリブロックのアドレス
(消去ブロックアドレス)が伝達され、これをデコード
してこのアドレスと対応する消去許可レジスタ(消去タ
グ)をセットする(ステップS52,S53)。そし
て、その他に消去すべきメモリブロックがあればステッ
プS51,S52をくり換えし、なければ次のステップ
に進む(S53)。セットされた消去許可レジスタから
は活性化レベルの消去許可信号が出力され、消去対象の
メモリブロックが選択される。
When the erase block setting command is decoded by the control unit 30, the erase processing operation is started in step S51, and the address (erase block address) of the memory block to be erased is transmitted. The erase permission register (erase tag) corresponding to is set (steps S52 and S53). If there are other memory blocks to be erased, steps S51 and S52 are repeated, and if not, the process proceeds to the next step (S53). An erase enable signal of an activation level is output from the set erase enable register, and the memory block to be erased is selected.

【0009】次に、制御部31によりグローバル消去コ
マンドがデコードされると、消去動作が開始され(S5
5)、制御部30からメモリブロックMB1〜MB4に
消去電圧パルスVeが印加され、セットされた消去許可
レジスタ(例えばRb1,Rb3)と対応する(すなわ
ち活性化レベルの消去許可信号EE1,EE3と対応す
る)メモリブロック(MB1,MB3)のメモリセルが
同時に一括消去される(S56)。
Next, when the global erase command is decoded by the control unit 31, the erase operation is started (S5
5) The erase voltage pulse Ve is applied from the control unit 30 to the memory blocks MB1 to MB4 and corresponds to the set erase enable registers (for example, Rb1 and Rb3) (that is, to the activation level erase enable signals EE1 and EE3). The memory cells of the memory blocks (MB1, MB3) are simultaneously erased (S56).

【0010】次に、制御部30は、図示されていないベ
リファイ手段に対し消去状態をベリファイするための制
御信号を出力し、ベリファイ手段は消去対象のメモリブ
ロック(MB1,MB3)のデータを読出してベリファ
イを行う(S57)。そして、ベリファイ結果が良(O
K)と判定されメモリブロックと対応する消去許可レジ
スタはクリアされ(S58〜S60)、ベリファイ結果
が良ではないと判定されたメモリブロックに対してはス
テップ56からの動作がくり返えされる。
Next, the control section 30 outputs a control signal for verifying the erased state to a verifying means (not shown), and the verifying means reads the data of the memory blocks (MB1, MB3) to be erased. Verify is performed (S57). And the verify result is good (O
K), the erase enable register corresponding to the memory block is cleared (S58 to S60), and the operation from step 56 is repeated for the memory block determined to have a bad verify result.

【0011】そして、全てのメモリブロック(MB1〜
MB4)がベリファイOK(消去許可レジスタがクリア
状態)になるとグローバル消去コマンドを引上げて消去
処理動作を終了し(S61〜S63)、1つでもベリフ
ァイOKでないメモリブロックがあるとステップS56
からの動作がくり換えされる。ここで、ベリファイOK
となったメモリブロックと対応する消去許可レジスタを
クリアするのは、このメモリブロックに必要以上の消去
電圧パルスが印加されることによるストレスから保護す
るためである。
All the memory blocks (MB1 to MB1)
When MB4) is verified OK (erasure permission register is in a clear state), the global erase command is pulled up to end the erase processing operation (S61 to S63), and if at least one memory block is not verified OK, step S56.
The operation from is repeated. Here, verify OK
The reason why the erase enable register corresponding to the memory block is cleared is to protect the memory block from stress caused by application of an erase voltage pulse more than necessary.

【0012】ところで、このフラッシュメモリでは、そ
の消去処理動作が大別して、消去対象のメモリブロック
を設定する消去ブロック設定動作と、設定された消去対
象のメモリブロックに対し一括消去を行いそのベリファ
イを行う消去動作及びそのベリファイ動作の2つの動作
から構成されているが、消去動作及びそのベリファイ動
作に先立って消去対象のメモリブロックの全メモリセル
に所定のデータを書込むプリプログラムを行い、消去前
の各メモリセルの記憶内容を同一にし、消去処理動作後
のメモリセルのしきい値電圧のばらつきを抑えるように
したフラッシュメモリも提案されている。
By the way, in this flash memory, the erasing processing operation is roughly divided into an erasing block setting operation for setting a memory block to be erased and a batch erasing to the set memory block to be erased and its verification is performed. It consists of two operations, an erase operation and its verify operation. Prior to the erase operation and its verify operation, pre-program is performed to write predetermined data to all the memory cells of the memory block to be erased. A flash memory has also been proposed in which the memory contents of the respective memory cells are made the same and the variation in threshold voltage of the memory cells after the erase processing operation is suppressed.

【0013】このようなフラッシュメモリの一例(第2
の例)のブロック図を図8に示す。
An example of such a flash memory (second
8) is a block diagram of FIG.

【0014】メモリアレイMA1〜MAnそれぞれは、
複数のメモリセルを配置し活性化状態のとき印加された
消去電圧パルスVeに従ってこれら複数のメモリセルを
一括消去し、指定されたアドレスのメモリセルに対しデ
ータの書込み、読出しを行う。
Each of the memory arrays MA1 to MAn is
When a plurality of memory cells are arranged and in the activated state, the plurality of memory cells are collectively erased according to the erase voltage pulse Ve applied, and data is written to or read from the memory cell at the specified address.

【0015】アドレスバッファ回路11は、外部からの
アドレス信号ADを取込んで出力する。また、制御信号
バッファ回路15も同様に、外部からの制御信号,コマ
ンド等CMDを取込んで出力する。
The address buffer circuit 11 takes in and outputs an address signal AD from the outside. Similarly, the control signal buffer circuit 15 also takes in and outputs CMD such as external control signals and commands.

【0016】制御回路16xは、メモリセルアレイMA
1〜MAnそれぞれと対応する消去許可レジスタRb1
〜Rbn(消去タグ)を備え、外部からの消去コマンド
を受付けて消去コマンド処理を開始し、アドレスバッフ
ァ回路11からの消去ブロックアドレスと対応する消去
許可レジスタをセットし、このセットされた消去許可レ
ジスタと対応するメモリアレイを選択するためのブロッ
ク選択信号を出力すると共にプリプログラム制御信号及
びプリプログラム・ベリファイ制御信号を所定のタイミ
ングで順次出力し、プリプログラム・ベリファイ制御結
果が良になるとセットされた消去許可レジスタから消去
許可信号(EE1〜EEn)を出力すると共に消去電圧
パルスVeを出力した後、消去・ベリファイ制御信号を
出力し、消去・ベリファイ判定結果が良になると対応す
る消去許可レジスタをクリアして全ての消去許可レジス
タRb1〜Rbnがクリアされると消去コマンド処理を
終了して次のコマンドを受付ける。
The control circuit 16x has a memory cell array MA.
1 to MAn corresponding to the erase permission registers Rb1
.About.Rbn (erase tag), receives an erase command from the outside, starts the erase command process, sets the erase enable register corresponding to the erase block address from the address buffer circuit 11, and sets the erase enable register. The block selection signal for selecting the corresponding memory array is output and the pre-program control signal and the pre-program verify control signal are sequentially output at a predetermined timing, and it is set when the pre-program verify control result is good. After the erase enable signals (EE1 to EEn) are output from the erase enable register and the erase voltage pulse Ve is output, the erase / verify control signal is output, and when the erase / verify determination result is good, the corresponding erase enable register is cleared. All erase enable registers Rb1 to Rbn To end the erase command processing to be cleared accepts the following command.

【0017】アドレスラッチ回路12x,XデコーダD
X,Yデコーダ13及びYセレクタ14は、アドレスバ
ッファ回路11からのアドレス信号、制御回路16xか
らのブロック選択信号及び制御信号に従って複数のメモ
リアレイMA1〜MAnのうちの所定のメモリセルアレ
イを活性化し、またこれらメモリセルアレイのアドレス
を指定する。
Address latch circuit 12x, X decoder D
The X, Y decoder 13 and the Y selector 14 activate a predetermined memory cell array of the plurality of memory arrays MA1 to MAn according to the address signal from the address buffer circuit 11, the block selection signal and the control signal from the control circuit 16x, It also specifies the addresses of these memory cell arrays.

【0018】ソース線スイッチSS1〜SSnは、活性
化レベルの消去許可信号(EE1〜EEn)と対応する
メモリセルアレイに消去電圧パルスVeを印加する。
The source line switches SS1 to SSn apply the erase voltage pulse Ve to the memory cell array corresponding to the erase enable signals (EE1 to EEn) of the activation level.

【0019】入出力バッファ回路17は、外部からの書
込み用のデータDIを取込んで出力し、増幅された読出
しデータを外部へ出力する。
The input / output buffer circuit 17 takes in and outputs write data DI from the outside, and outputs the amplified read data to the outside.

【0020】ラッチ回路18は、制御回路16xからの
プリプログラム制御信号に従って入出力バッファ回路1
7からのプリプログラム用のデータをラッチして出力
し、消去ベリファイ制御信号に従って消去レベルのデー
タをラッチして出力する。
The latch circuit 18 is provided in the input / output buffer circuit 1 in accordance with the preprogram control signal from the control circuit 16x.
The pre-programming data from 7 is latched and output, and the erase level data is latched and output according to the erase verify control signal.

【0021】書込回路19は、プリプログラム制御信号
に従ってラッチ回路18からのデータをYセレクタ14
を介してメモリセルアレイMA1〜MAnに供給する。
The write circuit 19 transfers the data from the latch circuit 18 to the Y selector 14 according to the preprogram control signal.
Are supplied to the memory cell arrays MA1 to MAn via.

【0022】センス増幅器20は、プリプログラム・ベ
リファイ制御信号及び消去・ベリファイ制御信号に従っ
て、Yセレクタ14を介して伝達されたメモリセルアレ
イMA1〜MAnの読出しデータを増幅し、入出力バッ
ファ回路17に伝達する。
The sense amplifier 20 amplifies the read data of the memory cell arrays MA1 to MAn transmitted through the Y selector 14 according to the preprogram / verify control signal and the erase / verify control signal, and transmits the amplified data to the input / output buffer circuit 17. To do.

【0023】比較器21は、ラッチ回路18からのデー
タとセンス増幅器20からのデータとを比較し、これら
が一致したとき、良のレベルのベリファイ制定信号を制
御回路16xに伝達する。
The comparator 21 compares the data from the latch circuit 18 with the data from the sense amplifier 20, and when they match, transmits a verify establishment signal of a good level to the control circuit 16x.

【0024】次に、このフラッシュメモリのデータの消
去動作及び消去方法について、図9に示されたフローチ
ャートを併せて参照し説明する。
Next, the data erasing operation and the erasing method of this flash memory will be described with reference to the flow chart shown in FIG.

【0025】制御回路16xは、消去コマンドを受付け
ると(消去コマンドをデコードすると)消去コマンド処
理を開始し(ステップS71,S72)、まず、アドレ
スバッファ回路11から消去ブロックアドレスを入力し
てこの消去ブロックアドレスと対応する消去許可レジス
タをセットする(S73,S74)。また、他に消去す
べきメモリセルアレイがあればステップS73に戻って
同様の動作をくり返えし、なければ(消去すべきメモリ
セルアレイと対応するすべての消去許可レジスタがセッ
トされていれば)次のステップに進む(S75)。
When the control circuit 16x receives the erase command (when the erase command is decoded), it starts the erase command processing (steps S71 and S72). First, the erase block address is input from the address buffer circuit 11 to erase the erase block. The erase enable register corresponding to the address is set (S73, S74). If there is another memory cell array to be erased, the process returns to step S73 and the same operation is repeated. If not (if all erase enable registers corresponding to the memory cell array to be erased are set), (Step S75).

【0026】次に、セットされた消去許可レジスタと対
応するメモリセルアレイを1つずつ指定(選択)して全
メモリセルに所定のデータを書込んでプリプログラムを
行い、このプリプログラムの状態をベリファイする(S
76,S77)。このプリプログラム及びベリファイは
ベリファイOKとなるまで続けられる(S78,S7
7)。セットされた消去許可レジスタと対応する全ての
メモリセルアレイのベリファイOKとなりプリプログラ
ムが終了すると(S79)次のステップS80に進む。
Next, the memory cell arrays corresponding to the set erase enable registers are designated (selected) one by one, and predetermined data is written in all the memory cells to perform pre-programming, and the state of this pre-programming is verified. Do (S
76, S77). This pre-programming and verification are continued until verification is OK (S78, S7).
7). When all the memory cell arrays corresponding to the set erase enable register have been verified OK and pre-programming is completed (S79), the process proceeds to the next step S80.

【0027】ステップS80では、セットされた消去許
可レジスタと対応するメモリセルアレイ全て、すなわ
ち、活性化レベルの消去許可信号(EE1〜EEn)と
対応するメモリセルアレイ全てに、ソース線スイッチ
(SS1〜SSn)を介して消去電圧パルスVeを印加
してこれらメモリセルアレイのメモリセルを一括消去す
る。続いてステップS81では、セットされた消去許可
レジスタと対応するメモリセルアレイを1つずつ指定し
て消去状態のベリファイを行い、ベリファイOKであれ
ば対応する消去許可レジスタをクリアし(S82,S8
3)、セットされた消去許可レジスタと対応するメモリ
セルアレイ全てのベリファイが終了したがどうかを確認
する(S84)。またベリファイOKでない場合は消去
許可レジスタをクリアすることなく全てのベリファイが
終了したかどうか確認する。
In step S80, the source line switches (SS1 to SSn) are supplied to all the memory cell arrays corresponding to the set erase enable register, that is, all the memory cell arrays corresponding to the erase level enable signals (EE1 to EEn) at the activation level. An erasing voltage pulse Ve is applied to erase the memory cells of these memory cell arrays at once. Then, in step S81, the erase state is verified by designating the memory cell arrays corresponding to the set erase permission registers one by one, and if the verification is OK, the corresponding erase permission register is cleared (S82, S8).
3) Then, it is confirmed whether or not the verification of all the memory cell arrays corresponding to the set erase enable register is completed (S84). If the verification is not OK, it is confirmed whether all the verifications have been completed without clearing the erase enable register.

【0028】ステップS84で全てのベリファイが終了
していなければステップS81に戻ってこのステップか
らの動作をくり返えし、全てのベリファイが終了してい
れば、消去許可レジスタ全てがクリアされているかどう
かを確認し(S85)、全てクリアされていれば消去コ
マンド処理を終了して次のコマンドを待つ(S86)。
クリアされていないものがあれば、消去状態となってい
ないので、ステップS80に戻ってこのステップからの
動作をくり返えす。
If all the verifications have not been completed in step S84, the process returns to step S81 and the operation from this step is repeated. If all the verifications have been completed, has all erase enable registers been cleared? It is confirmed (S85), and if all are cleared, the erase command processing is terminated and the next command is waited (S86).
If there is something that has not been cleared, it means that it is not in the erased state, and the process returns to step S80 and the operation from this step is repeated.

【0029】なお、これらフラッシュメモリについての
説明は、主に消去処理に関するものなっているが、これ
らフラッシュメモリが通常のデータの書込み、読出しの
ための機能を有していることは当然である。
The description of these flash memories mainly relates to the erasing process, but it goes without saying that these flash memories have the functions of normal data writing and reading.

【0030】上述したフラッシュメモリの消去方法で
は、ブロック単位で消去する構成となっているため、一
度に多数のメモリセルを消去できるが、消去電圧パルス
の一定期間の印加、および消去状態の確認(ベリファ
イ)を繰り返すことによって消去処理が行われており、
一般的なマイクロプロセッサ等のリード,ライトサイク
ルに比較して、非常に長い時間を要する。特に、これら
フラッシュメモリおよびその消去方法は、1つの消去コ
マンドによる消去処理動作が終了するまで、新たな消去
ブロックを追加できない。
In the above-described flash memory erasing method, since a large number of memory cells can be erased at one time because the erase operation is performed in block units, the erase voltage pulse is applied for a certain period and the erase state is confirmed ( The erase process is performed by repeating (verify),
It takes a very long time as compared with the read and write cycles of general microprocessors. In particular, these flash memories and their erasing methods cannot add new erase blocks until the erase processing operation by one erase command is completed.

【0031】このために、従来から様々な工夫がなされ
ている。たとえば、特開平5−54682公報を参照す
ると、ブロック毎に読出し用Xデコーダを設けること
で、消去ブロック以外のブロックに対して、読出し動作
を並行して行う事が出来るようになっている。また、イ
ンテル28F016SAのユーザーズマニュアルによる
と、消去動作実行中に特定のコマンドを受け付けると消
去処理動作を一時停止して、消去処理実行中のブロック
以外のブロックのリード/ライトを行った後、消去処理
動作再開用のコマンドにより消去処理動作を再開する機
能を持っている。また、28F016SAのユーザーズ
マニュアルによれば、コマンドキューを持ち、消去処理
動作中に次のコマンドを受け付ける機能も持つようにし
ている。
For this reason, various measures have been conventionally made. For example, referring to Japanese Unexamined Patent Application Publication No. 5-54682, by providing a read X decoder for each block, the read operation can be performed in parallel for blocks other than the erase block. According to the Intel 28F016SA user's manual, when a specific command is accepted during the execution of the erase operation, the erase processing operation is suspended and the blocks other than the block in which the erase processing is being executed are read / written, and then the erase processing is performed. It has the function of restarting the erase processing operation by the command for operation restart. Further, according to the user's manual of 28F016SA, it has a command queue and has a function of accepting the next command during the erase processing operation.

【0032】しかし、これらのフラッシュメモリでも、
消去処理動作実行中のブロックの他に新たに消去すべき
ブロックを追加するすることはできず、この消去処理動
作中のブロックの消去処理が終了しないと新たな消去ブ
ロックの消去処理を実行することはできない。
However, even with these flash memories,
It is not possible to add a block to be newly erased in addition to the block in which the erase processing operation is being executed, and the erase processing of a new erase block must be executed unless the erase processing of the block in the erase processing operation is completed. I can't.

【0033】[0033]

【発明が解決しようとする課題】上述した従来のフラッ
シュメモリおよびその消去方法では、1つの消去処理動
作実行中のブロックの他に、新たに消去すべきブロック
が生じても、このブロックを実行中の消去処理動作に追
加することができず、新たなブロックの消去処理は、実
行中の消去処理動作が終了しないと実行できないため、
新たなブロックを含めた消去処理時間が長くなるという
問題点がある。
In the above-described conventional flash memory and its erasing method, even if a block to be erased is newly generated in addition to the block in which one erase processing operation is being executed, this block is still being executed. Cannot be added to the erase processing operation of, and the erase processing of a new block cannot be executed until the erase processing operation in progress is completed.
There is a problem that the erase processing time including a new block becomes long.

【0034】本発明の目的は、消去処理動作実行中に新
たに消去すべきブロックが生じた場合、この新たなブロ
ックを含めた消去処理時間を短縮することができるフラ
ッシュメモリおよびその消去方法を提供することにあ
る。
An object of the present invention is to provide a flash memory and an erasing method thereof which can shorten the erasing processing time including the new block when a new block to be erased occurs during execution of the erasing processing operation. To do.

【0035】[0035]

【課題を解決するための手段】本発明の第1のフラッシ
ュメモリは、複数のメモリセルを配置し対応する消去許
可信号が活性化レベルのとき印加された消去電圧パルス
に従って前記複数のメモリセルを一括消去しリードライ
ト制御信号に従って指定されたアドレスのメモリセルに
対しデータの書込み、読出しを行う一括消去単位の複数
のメモリブロックと、これら複数のメモリブロックそれ
ぞれと対応して設けられた複数の消去追加レジスタおよ
び消去許可レジスタと、伝達されたコマンドが消去ブロ
ック設定コマンドのとき伝達された消去ブロックアドレ
スと対応する前記消去追加レジスタをセットし消去コマ
ンドのとき消去コマンド処理信号を出力するコマンド解
析部と、前記消去コマンド処理信号を受け、前記複数の
消去追加レジスタのうちにセット状態のものがあればそ
のセット状態の消去追加レジスタと対応する前記消去許
可レジスタをセットして活性化レベルの前記消去許可信
号を出力させると共にこの消去追加レジスタをクリア
し、前記複数の消去許可レジスタのうちにセット状態の
ものがあるとき前記複数のメモリブロックに前記消去電
圧パルスを印加した後前記リードライト制御信号を出力
して一括消去されたメモリブロックの消去状態をベリフ
ァイ制御し、このベリファイの結果が良と判定されたと
きこのメモリブロックと対応する消去許可レジスタをク
リアする制御部とを有している。
In a first flash memory of the present invention, a plurality of memory cells are arranged and the plurality of memory cells are arranged in accordance with an erase voltage pulse applied when a corresponding erase enable signal is at an activation level. A plurality of memory blocks in a batch erase unit for performing batch erase and writing / reading data to / from a memory cell at an address specified according to a read / write control signal, and a plurality of erases provided corresponding to each of the plurality of memory blocks An additional register and an erase enable register, and a command analysis unit that sets the erase additional register corresponding to the erase block address transmitted when the transmitted command is an erase block setting command and outputs an erase command processing signal when the erase command is an erase command. Receiving the erase command processing signal, the plurality of erase additional registers If there is any one in the set state, the erase enable register corresponding to the erase add register in the set state is set to output the erase enable signal at the activation level and the erase add register is cleared to When the erase enable register has a set state, the erase voltage pulse is applied to the plurality of memory blocks, and then the read / write control signal is output to verify-control the erase state of the collectively erased memory blocks. And a control unit that clears the erase enable register corresponding to this memory block when the result of this verification is determined to be good.

【0036】本発明の第1のフラッシュメモリの消去方
法は、一括消去単位の複数のメモリブロックと、これら
複数のメモリブロックそれぞれと対応して設けられた複
数の消去追加レジスタおよび消去許可レジスタとを備え
たフラッシュメモリの消去方法であって、伝達されたコ
マンドが消去ブロック設定コマンドのとき伝達された消
去ブロックアドレスと対応する前記消去追加レジスタを
セットする第1の手順と、伝達されたコマンドが消去コ
マンドのとき、前記複数の消去追加レジスタのうちにセ
ット状態のものがあればそのセット状態の消去追加レジ
スタと対応する前記消去許可レジスタをセットすると共
にこの消去追加レジスタをクリアし、セット状態のもの
がなければそのまま次の手順に進む第2の手順と、前記
複数の消去許可レジスタのうちにセット状態のものがあ
れば前記複数のメモリブロックに消去電圧パルスを供給
してセット状態の消去追加レジスタと対応するメモリブ
ロックの一括消去を行いセット状態のものがなければ消
去コマンド処理を終了する第3の手順と、この第3の手
順により一括消去されたメモリブロックの消去状態をベ
リファイする第4の手順と、この第4の手順によるベリ
ファイの結果が良と判定されたメモリブロックと対応す
る前記消去許可レジスタをクリアし良と判定されなかっ
たときには前記第2の手順に戻る第5の手順とを含んで
構成される。
A first flash memory erasing method of the present invention comprises a plurality of memory blocks in a batch erasing unit and a plurality of erasing addition registers and erasing permission registers provided corresponding to the plurality of memory blocks, respectively. A method of erasing a flash memory, comprising: a first step of setting the erase additional register corresponding to an erase block address transmitted when the transmitted command is an erase block setting command; At the time of a command, if there is a set state among the plurality of erase addition registers, the erase enable register corresponding to the set erase addition register is set and the erase addition register is cleared to set the erase addition register. If there is not, the second procedure to proceed directly to the next procedure and If one of the memory cells is in the set state, an erase voltage pulse is supplied to the plurality of memory blocks to collectively erase the memory blocks corresponding to the erased additional registers in the set state. And a fourth procedure for verifying the erased state of the memory blocks collectively erased by the third procedure, and a memory block for which the result of the verification by the fourth procedure is determined to be good. And a fifth step of returning to the second step when it is not determined that the erasure permission register corresponding to is cleared.

【0037】本発明の第2のフラッシュメモリは、複数
のメモリセルを配置し活性化状態のとき、印加された消
去電圧パルスに従って前記複数のメモリセルを一括消去
し指定されたアドレスのメモリセルに対しデータの書込
み、読出しを行う一括消去単位の複数のメモリブロック
と、これら複数のメモリブロックそれぞれと対応する複
数の消去追加レジスタおよび有効フラグを備え消去コマ
ンドを受付けて前記複数の有効フラグがクリア状態であ
れば伝達された消去ブロックアドレスと対応する消去追
加レジスタをセットしてこのセット状態の消去追加レジ
スタと対応する前記メモリブロック1つずつ順次活性化
すると共にプリプログラム制御信号を順次出力しベリフ
ァイ判定信号が良の判定レベルと対応する有効フラグを
セットしてセット状態の消去追加レジスタと対応する有
効フラグ全てがセット状態となったとき前記消去コマン
ドの処理を終了して次の消去コマンドの受付け可能状態
となる第1の制御部と、前記プリプログラム制御信号に
従って活性化状態の前記メモリブロックの複数のメモリ
セル全てに所定のレベルのデータを書込むプリプログラ
ムを実行しベリファイ制御信号に従って前記プリプログ
ラムの状態をベリファイしてその結果が良と判定された
とき良の判定レベルの前記ベリファイ判定信号を出力す
るプリプログラム・ベリファイ部と、前記複数のメモリ
ブロックそれぞれと対応する複数の消去許可レジスタを
備え前記複数の有効フラグのうちにセット状態のものが
あればそのセット状態の有効フラグと対応する前記消去
許可レジスタをセットしてこの有効フラグおよび対応す
る前記消去追加レジスタをクリアしこのセット状態の消
去許可レジスタと対応する前記メモリブロックを活性化
して前記消去電圧パルスを印加し消去ベリファイ制御信
号を出力し消去ブリファイ判定信号が良の判定レベルと
対応する前記消去許可レジスタをクリアする第2の制御
部と、前記消去ベリファイ制御信号に従って活性化状態
の前記メモリブロックの消去状態のベリファイを行いそ
の結果が良と判定されたとき良の判定レベルの前記消去
ベリファイ判定信号を出力する消去ベリファイ部とを有
している。
According to the second flash memory of the present invention, when a plurality of memory cells are arranged and in an activated state, the plurality of memory cells are collectively erased in accordance with the applied erase voltage pulse to become a memory cell of a designated address. A plurality of memory blocks in a batch erase unit for writing and reading data, and a plurality of erase additional registers and valid flags corresponding to each of these memory blocks are provided, and an erase command is accepted to clear the plurality of valid flags. If so, the erase addition register corresponding to the transmitted erase block address is set, the memory blocks corresponding to the erase addition register in the set state are sequentially activated one by one, and the pre-program control signal is sequentially output to verify-verify. Set by setting the valid flag corresponding to the judgment level that the signal is good A first control unit that completes the processing of the erase command and becomes ready to receive the next erase command when all the valid flags corresponding to the erase addition register of the state are set, and according to the preprogram control signal. When a pre-program is executed to write data of a predetermined level to all the memory cells of the activated memory block and the pre-program state is verified according to a verify control signal and the result is judged to be good. If there is a set state among the plurality of valid flags, the pre-program / verify unit that outputs the verify determination signal of the determination level and a plurality of erase enable registers corresponding to each of the plurality of memory blocks are provided. Set the valid flag in the set state and the corresponding erase enable register to enable this Lag and corresponding erase addition register are cleared, the erase enable register in this set state and the corresponding memory block are activated, the erase voltage pulse is applied, the erase verify control signal is output, and the erase verify determination signal is determined to be good. A second control unit that clears the erase enable register corresponding to the level, and the erase state of the activated memory block is verified according to the erase verify control signal, and when the result is determined to be good, the result is determined to be good. And an erase verify unit that outputs the erase verify determination signal of the level.

【0038】本発明の第2のフラッシュメモリの消去方
法は、一括消去単位の複数のメモリブロックと、これら
複数のメモリブロックそれぞれと対応する複数の消去追
加レジスタ,有効フラグおよび消去許可レジスタを備え
たフラッシュメモリの消去方法であって、消去コマンド
を受付けて前記複数の有効フラグがクリア状態であれば
伝達された消去ブロックアドレスと対応する前記消去追
加レジスタをセットする第1の手順と、セット状態の消
去追加レジスタと対応する前記メモリブロックを1つず
つ活性化しプリプログラムおよびそのベリファイを行う
第2手順と、この第2の手順によるベリファイの結果が
良であれば対応する前記有効フラグをセットしてセット
状態の前記追加レジスタと対応する有効フラグ全てがセ
ット状態となったとき前記消去コマンドの処理を終了し
て次の消去コマンドの受付けを行いベリファイの結果が
良でなれば前記第2の手順に戻る第3の手順と、前記複
数の有効フラグのうちにセット状態のものがあればその
セット状態の有効フラグと対応する前記消去許可レジス
タをセットしてこの有効フラグおよび対応する消去追加
レジスタをクリアしセット状態のものがなければそのま
ま次の手順に進む第4の手順と、セット状態の消去許可
レジスタと対応する前記メモリブロックを活性化して消
去電圧パルスを印加しこのメモリブロックを一括消去す
る第5の手順と、セット状態の消去許可レジスタと対応
するメモリブロックを1つずつ指定して消去状態のベリ
ファイを行いその結果が良であれば対応する消去許可レ
ジスタをクリアし良でなければそのまま次の手順に進む
第6の手順と、セット状態の前記消去許可レジスタと対
応するメモリブロック全ての消去ベリファイ結果が良で
あれば前記第4の手順に戻り良でないものがあれば前記
第5の手順に戻る第7の手順とを含んで構成される。
A second flash memory erasing method of the present invention comprises a plurality of memory blocks in a batch erasing unit and a plurality of erasing addition registers, a valid flag and an erasing permission register corresponding to each of the plurality of memory blocks. A method of erasing a flash memory, comprising: a first step of receiving an erase command and setting the erase addition register corresponding to the transmitted erase block address if the valid flags are in a clear state; A second procedure for activating the memory blocks corresponding to the erase additional registers one by one to perform pre-programming and its verification, and if the result of the verification by the second procedure is good, set the corresponding valid flag. All valid flags corresponding to the additional registers in the set state have been set When the processing of the erase command is completed, the next erase command is accepted, and the verification result is good, the third procedure of returning to the second procedure and the setting of the valid state of the plurality of valid flags are performed. If there is one, the valid flag in the set state and the corresponding erase enable register corresponding to the set flag are set, and the valid flag and the corresponding erase addition register are cleared. If there is no set state, the process proceeds to the next step as it is. And a fifth step of activating the memory block corresponding to the erase enable register in the set state and applying an erase voltage pulse to erase the memory block at once, and the memory block corresponding to the erase enable register in the set state Verify the erased state by specifying each one and if the result is good, clear the corresponding erase enable register and if not, The sixth step to proceed to the next step, and if the erase verify results of all the memory blocks corresponding to the set erase enable register are good, return to the fourth step and if there are some bad, the fifth step And a seventh procedure for returning to the procedure.

【0039】[0039]

【実施例】次に本発明の実施例について図面を参照して
説明する。
Next, an embodiment of the present invention will be described with reference to the drawings.

【0040】図1は本発明の第1のフラッシュメモリの
一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the first flash memory of the present invention.

【0041】このフラッシュメモリは、複数のメモリセ
ルを配置し対応する消去許可信号(EE1〜EE4)が
活性化レベルのとき印加された消去電圧パルスVeに従
って上記複数のメモリセルを一括消去しリードライト制
御信号RWに従って指定されたアドレス(アドレス指定
手段は図示省略)のメモリセルに対しデータの書込み、
読出しを行う一括消去単位の複数のメモリブロックMB
1〜MB4と、これら複数のメモリブロックMB1〜M
B4それぞれと対応して設けられた複数の消去追加レジ
スタRa1〜Ra4(消去追加タグ)及びセット状態の
とき活性化レベルの消去許可信号EE1〜EE4それぞ
れ出力する複数の消去許可レジスタRb1〜Rb4(消
去タグ)と、伝達されたコマンドCMDが消去ブロック
設定コマンドのとき、伝達された消去ブロックアドレス
AEBと対応する消去追加レジスタ(Ra1〜Ra4)
をセットし消去コマンドのとき消去コマンド処理信号を
出力するコマンド解析回路1と、このコマンド解析回路
1からの消去コマンド信号を受け、消去追加レジスタR
a1〜Ra4のうちにセット状態のものがあればそのセ
ット状態の消去追加レジスタ(例えばRa1,Ra3)
と対応する消去許可レジスタ(Rb1,Rb3)をセッ
トしてこの消去追加レジスタ(Ra1,Ra3)をクリ
アし、複数の消去許可レジスタRb1〜Rb4のうちに
セット状態のものがあれば(Rb1,Rb3)複数のメ
モリブロックMB1〜MB4に消去電圧パルスVeを印
加した後、リードライト制御信号RWを出力して一括消
去されたメモリブロック(MB1,MB3)の消去状態
をベリファイ制御し、このベリファイ結果信号VRが良
の判定レベルのとき対応する消去許可レジスタ(Rb
1,Rb3)をクリアする制御回路2と、リードライト
制御信号RWに従って一括消去されたメモリブロックの
ベリファイを行いベリファイ結果信号VRを出力するベ
リファイ部3とを有する構成となっている。
In this flash memory, a plurality of memory cells are arranged and the plurality of memory cells are collectively erased in accordance with the erase voltage pulse Ve applied when the corresponding erase enable signals (EE1 to EE4) are at the activation level, and read / write. Writing data to a memory cell at an address (address designation means not shown) designated according to the control signal RW,
Multiple memory blocks MB in batch erase unit for reading
1 to MB4 and the plurality of memory blocks MB1 to M
A plurality of erase enable registers Ra1 to Ra4 (erase add tags) provided corresponding to B4 respectively and a plurality of erase enable registers Rb1 to Rb4 (erase output) which respectively output the erase enable signals EE1 to EE4 of the activation level in the set state. Tag) and the transmitted command CMD is an erase block setting command, an erase additional register (Ra1 to Ra4) corresponding to the transmitted erase block address AEB.
Is set and an erase command processing signal is output when the erase command is issued, and an erase command register 1 receives the erase command signal from the command analysis circuit 1 and an erase additional register R
If any of a1 to Ra4 is in the set state, the erase addition register in the set state (for example, Ra1 and Ra3)
The erasure enable registers (Rb1, Rb3) corresponding to are set to clear the erasure addition registers (Ra1, Ra3), and if any of the erasure enable registers Rb1 to Rb4 is in the set state (Rb1, Rb3). ) After applying the erase voltage pulse Ve to the plurality of memory blocks MB1 to MB4, the read / write control signal RW is output to verify the erase state of the memory blocks (MB1, MB3) that are collectively erased. When VR is a good judgment level, the corresponding erase enable register (Rb
1, Rb3) are cleared, and a verify unit 3 that verifies the memory blocks collectively erased according to the read / write control signal RW and outputs a verify result signal VR.

【0042】次に、このフラッシュメモリの動作および
消去方法について、図2に示されたフローチャートを併
せて参照し説明する。
Next, the operation and erasing method of this flash memory will be described with reference to the flow chart shown in FIG.

【0043】上位システムから送られてきたコマンドC
MDがコマンド解析回路1でデコードされ(ステップS
1)、このコマンドが消去ブロック設定コマンドである
と消去されるブロック(消去対象ブロック、以下単に消
去ブロックという)の設定が開始される(S2)。続い
て、コマンド解析回路1は、送られてくる消去ブロック
アドレスAEBを入力し(S3)、この消去ブロックア
ドレスAEBと対応する消去追加レジスタ(例えばRa
1,Ra3)をセットする(S4)。これで消去ブロッ
クの設定終了する(S5)。もし、他のブロックも消去
する場合には、送られてくる消去ブロック設定コマンド
によってステップS1からの動作をくり返す。
Command C sent from the host system
The MD is decoded by the command analysis circuit 1 (step S
1) If the command is an erase block setting command, setting of a block to be erased (erasure target block, hereinafter simply referred to as erase block) is started (S2). Then, the command analysis circuit 1 inputs the sent erase block address AEB (S3), and adds the erase block address AEB to the erase addition register (for example, Ra).
1, Ra3) is set (S4). This completes the setting of the erase block (S5). If other blocks are to be erased, the operation from step S1 is repeated according to the erase block setting command sent.

【0044】一方、送られてきたコマンドCMDが消去
コマンドである(S6)と、コマンド解析回路1は消去
コマンド処理信号を制御回路2に伝達し、制御回路2の
制御のもとに消去コマンド処理が開始される(S7)。
On the other hand, if the command CMD sent is an erase command (S6), the command analysis circuit 1 transmits an erase command processing signal to the control circuit 2 and the erase command processing is performed under the control of the control circuit 2. Is started (S7).

【0045】制御回路2は、まず、消去追加レジスタR
a1〜Ra4のうちにセット状態のものがあるかどうか
をチェックし(S8)、セット状態のものがあればその
セット状態の消去追加レジスタ(Ra1,Ra3)と対
応する消去許可レジスタ(Rb1,Rb3)をセットし
てこの消去追加レジスタ(Ra1,Ra3)をクリアす
る(S9)。なければそのまま次のステップに進む。
The control circuit 2 firstly, the erase addition register R
It is checked whether or not there is a set state among a1 to Ra4 (S8), and if there is a set state, the erase addition registers (Ra1, Ra3) in the set state and the corresponding erase permission registers (Rb1, Rb3). ) Is set to clear the erase addition registers (Ra1, Ra3) (S9). If not, proceed directly to the next step.

【0046】続いて、制御回路2は、消去許可レジスタ
Rb1〜Rb4のうちにセット状態のものがあるかどう
かをチェックし(S10)、セット状態のものがあれ
ば、メモリブロックMB1〜MB4に消去電圧パルスV
eを供給してセット状態の消去許可レジスタ(Rb1,
Rb3)、すなわち活性化レベルの消去許可信号(EE
1,EE3)と対応するメモリブロック(MB1,MB
3)に消去電圧パルスVeを印加してこれらメモリブロ
ックを一括消去し(S11)、続いて消去状態のベリフ
ァイを行う(S12)。
Then, the control circuit 2 checks whether or not there is a set state among the erase permission registers Rb1 to Rb4 (S10), and if there is a set state, erases the memory blocks MB1 to MB4. Voltage pulse V
is supplied to the erase enable register (Rb1,
Rb3), that is, an activation level erase enable signal (EE
1, EE3) and the corresponding memory block (MB1, MB
An erase voltage pulse Ve is applied to 3) to erase these memory blocks collectively (S11), and then the erase state is verified (S12).

【0047】そして、消去状態のベリファイがOKとな
ったメモリブロックがあるかどうかチェックし(S1
3)、ベリファイOKとなったメモリブロックがあれば
このメモリブロックと対応する消去許可レジスタをクリ
アし(S14)、ステップS7に戻って上述の動作をく
り返す。またベリファイOKのメモリブロックがない場
合もステップS7に戻る。
Then, it is checked whether or not there is a memory block whose erase state verification is OK (S1
3) If there is a memory block for which verification is OK, the erase permission register corresponding to this memory block is cleared (S14), and the process returns to step S7 to repeat the above-mentioned operation. If there is no verify-OK memory block, the process returns to step S7.

【0048】ステップS10において、セットされた消
去許可レジスタがなければ(なくなれば)、消去処理を
行う必要がないので、消去コマンド処理を終了する。
In step S10, if there is no erase enable register that has been set (if there is no such erase register), there is no need to perform erase processing, so the erase command processing ends.

【0049】ここで、コマンド解析回路1は、制御回路
2の動作とは関係なく、消去ブロック設定コマンド及び
消去コマンドを随時受付けてデコードし、消去ブロック
設定コマンドであれば消去ブロックアドレスと対応する
消去追加レジスタをセットし、消去コマンドであれば消
去コマンド処理信号を制御回路2に対し出力する。一
方、制御回路2は、1つの消去コマンド処理信号を受付
けると、消去追加レジスタRa1〜Ra4のセット状態
のチェック(S8)から始まる一連の消去処理動作をく
り返し行い、セット状態の消去許可レジスタがなくなれ
ばその消去コマンド処理を終了する。
Here, the command analysis circuit 1 accepts and decodes the erase block setting command and the erase command at any time regardless of the operation of the control circuit 2, and if the erase block setting command is the erase block address, the erase corresponding to the erase block address. The additional register is set, and if it is an erase command, an erase command processing signal is output to the control circuit 2. On the other hand, when the control circuit 2 receives one erase command processing signal, the control circuit 2 repeats a series of erase processing operations starting from the check of the set state of the erase additional registers Ra1 to Ra4 (S8), and the erase enable register in the set state disappears. If so, the erase command processing ends.

【0050】従って、制御回路2の制御のもとに行なわ
れる消去コマンド処理動作の実行中であっても、これと
並行してコマンド解析回路1による消去ブロック設定動
作が行なわれ、消去追加レジスタがセットされて、この
セットされた消去追加レジスタと対応する消去許可レジ
スタが新たにセットされ、実行中の消去コマンド処理の
中に消去対象のメモリブロックが追加される。
Therefore, even while the erase command processing operation performed under the control of the control circuit 2 is being executed, the erase block setting operation by the command analysis circuit 1 is performed in parallel with this, and the erase additional register is set. When set, the erase enable register corresponding to the set erase addition register is newly set, and the memory block to be erased is added to the erase command process being executed.

【0051】従って、従来例のように、新たに消去対象
のメモリブロックが追加された場合、実行中のメモリブ
ロックの消去処理が終了してから、改めて新たに追加さ
れたメモリブロックに対する消去ブロックの設定処理、
消去処理動作を再開する、という動作をくり返えさなく
て済むので、その分、消去処理時間を短縮することがで
き、また、これらメモリブロックに対する全体の消去処
理時間を短縮することができる。
Therefore, when a memory block to be erased is newly added as in the conventional example, the erase block for the newly added memory block is deleted after the erase process of the memory block being executed is completed. Setting process,
Since it is not necessary to repeat the operation of restarting the erase processing operation, the erase processing time can be shortened accordingly, and the entire erase processing time for these memory blocks can be shortened.

【0052】図3は本発明の第2のフラッシュメモリの
一実施例を示すブロックである。
FIG. 3 is a block diagram showing an embodiment of the second flash memory of the present invention.

【0053】この実施例のフラッシュメモリが図8に示
された従来のフラッシュメモリと相違する点は、Xデコ
ーダDXに代えてメモリブロックMA1〜MAnそれぞ
れと対応するXデコーダDX1〜DXnも設け、制御回
路16xに代えて、メモリセルアレイMA1〜MAnそ
れぞれと対応する複数の消去追加レジスタRa1〜Ra
n及び有効フラグF1〜Fnを備え消去コマンドを受付
けて有効フラグF1〜Fnがクリア状態であれば伝達さ
れた消去ブロックアドレスと対応する消去追加レジスタ
をセットしてこのセット状態の消去追加レジスタと対応
するメモリセルアレイを1つずつ順次活性化すると共に
プリプログラム制御信号及びベリファイ制御信号を順次
出力し、ベリファイ判定信号が良の判定レベルと対応す
る有効フラグをセットしてセット状態の消去追加レジス
タと対応する有効フラグが全てセット状態となったとき
消去コマンド処理を終了して次の消去コマンドの受付け
状態となる第1の制御回路16aを設け、図8と対応す
る入出力バッファ回路17,ラッチ回路18,書込回路
19a,センス増幅器20a,及び比較器21aを、制
御回路16aの制御のもとにセット状態の消去追加レジ
スタと対応するメモリブセルアレイに対し所定のデータ
を書込んでプリプログラムを行った後そのベリファイを
行ってベリファイ判定信号を制御回路16aに供給する
回路とし、メモリセルアレイMA1〜MAnそれぞれと
対応する消去許可レジスタRb1〜Rbnを備え有効フ
ラグF1〜Fnのうちにセット状態のものがあればその
セット状態の有効フラグと対応する消去許可レジスタを
セットしてこの有効フラグ及び対応する消去追加レジス
タをクリアし、セット状態の消去許可レジスタと対応す
るメモリセルアレイを活性化して消去電圧パルスVeを
ソース線スイッチ回路(SS1〜SSn)を介して印加
し消去ベリファイ制御信号を出力し、消去ベリファイ判
定信号が良の判定レベルと対応する消去許可レジスタを
クリアする第2の制御回路16bを設け、かつ書込回路
19b,センス増幅器20b,比較器21b,及びYデ
コーダ13bを設けてこれら回路により、制御回路16
bからの消去ベリファイ制御信号に従って活性化状態の
メモリセルアレイに対する消去状態のベリファイを行い
その判定結果が良と判定されたとき良の判定レベルの消
去ベリファイ判定信号を制御回路16bに伝達するよう
にした点にある。
The flash memory of this embodiment is different from the conventional flash memory shown in FIG. 8 in that instead of the X decoder DX, X decoders DX1 to DXn corresponding to the memory blocks MA1 to MAn are also provided and controlled. Instead of the circuit 16x, a plurality of erase additional registers Ra1 to Ra corresponding to the memory cell arrays MA1 to MAn, respectively.
n and valid flags F1 to Fn, the erase command is received, and if the valid flags F1 to Fn are in the clear state, the erase additional register corresponding to the transmitted erase block address is set to correspond to the erase additional register in this set state. The memory cell arrays are sequentially activated one by one, and the pre-program control signal and the verify control signal are sequentially output, and the valid flag corresponding to the verify level of the verify determination signal is set to correspond to the erase addition register in the set state. When all the valid flags to be set are in the set state, the first control circuit 16a which finishes the erase command processing and enters the next erase command acceptance state is provided, and the input / output buffer circuit 17 and the latch circuit 18 corresponding to FIG. , The write circuit 19a, the sense amplifier 20a, and the comparator 21a are controlled by the control circuit 16a. Based on the above, a circuit for supplying a verify determination signal to the control circuit 16a by writing predetermined data to the memory cell array corresponding to the erase addition register in the set state and performing pre-programming is performed. Erasing enable registers Rb1 to Rbn corresponding to the cell arrays MA1 to MAn are provided, and if any of the valid flags F1 to Fn is in the set state, the valid flag in the set state and the corresponding erase enable register are set to set the valid flag. And, the corresponding erase additional register is cleared, the erase enable register in the set state and the corresponding memory cell array are activated, the erase voltage pulse Ve is applied through the source line switch circuits (SS1 to SSn), and the erase verify control signal is output. Then, the erase verify determination signal corresponds to a good determination level. A second control circuit 16b for clearing the allowed registers provided, and write circuit 19b, sense amplifier 20b, the comparator 21b, and these circuits provided Y decoder 13b, the control circuit 16
According to the erase verify control signal from b, the erase state is verified with respect to the activated memory cell array, and when the result of the determination is determined to be good, the erase verify determination signal of the good determination level is transmitted to the control circuit 16b. In point.

【0054】すなわち、このフラッシュメモリは、第1
の制御回路16a及び入出力バッファ回路17,ラッチ
回路18,書込回路19a,センス増幅器20a,比較
器21aによって消去対象ブロックの設定,プリプログ
ラム及びそのベリファイを行って有効フラグをセットし
てその後の処理を第2の制御回路16b及び書込回路1
9b,センス増幅器20b,比較器21bに移し、これ
ら回路による消去動作及びそのベリファイを行うように
したものである。
That is, this flash memory is the first
The control circuit 16a and the input / output buffer circuit 17, the latch circuit 18, the write circuit 19a, the sense amplifier 20a, and the comparator 21a perform setting of the erase target block, pre-programming and verification thereof, and set a valid flag, and thereafter. The processing is performed by the second control circuit 16b and the writing circuit 1.
9b, the sense amplifier 20b, and the comparator 21b, and the erase operation and its verification by these circuits are performed.

【0055】次に、このフラッシュメモリの動作及び消
去動作について図4,図5に示されたフローチャートを
併せて参照し説明する。
Next, the operation and erase operation of this flash memory will be described with reference to the flow charts shown in FIGS.

【0056】まず、制御回路16aが消去コマンドを受
付けると消去コマンド処理を開始し(ステップS21,
S22)、有効フラグがクリアされている状態(S2
3)で次のステップに進む。そして、伝達された消去ブ
ロックアドレスを入力して対応する消去追加レジスタを
セットする(S24,S25)。更に、消去すべきメモ
リセルアレイがあれば伝達された消去ブロックアドレス
と対応する消去追加レジスタをセットし(S24,S2
5)なければ次に進む(S26)。
First, when the control circuit 16a receives an erase command, the erase command process is started (step S21,
S22), the state where the valid flag is cleared (S2
Go to the next step in 3). Then, the transmitted erase block address is input and the corresponding erase additional register is set (S24, S25). Further, if there is a memory cell array to be erased, the erase additional register corresponding to the transmitted erase block address is set (S24, S2).
5) If not, proceed to next step (S26).

【0057】次に、セット状態の消去追加レジスタと対
応するメモリセルアレイを1つずつ指定し(S27)プ
リプログラム及びそのベリファイを行い(S28)、ベ
リファイOK(S29)となるまでプリプログラム及び
そのベリファイを実行する。
Next, the memory cell arrays corresponding to the erase addition registers in the set state are designated one by one (S27), pre-programming and verification thereof are performed (S28), and pre-programming and verification thereof are performed until verification OK (S29). To execute.

【0058】セット状態の消去追加レジスタと対応する
メモリセルアレイ全てのベリファイがOKとなってプリ
プログラムが終了すると対応する有効フラグをセットし
(S30,S31)、消去コマンド処理を終了して次の
消去コマンドを待つ(S32)。すなわち、1つの消去
コマンドによるプリプログラムが終了すると(そのベリ
ファイを含む)、有効フラグをセットしてその後の処理
を第2の制御回路16bに移し、第1の制御回路16a
は次の消去コマンドの待ち状態となる。
When the verification of all the memory cell arrays corresponding to the erased additional register in the set state becomes OK and the pre-programming ends, the corresponding valid flag is set (S30, S31), the erase command processing ends, and the next erase is performed. Wait for a command (S32). That is, when the pre-programming by one erase command is completed (including its verification), the valid flag is set, and the subsequent processing is moved to the second control circuit 16b, and the first control circuit 16a.
Waits for the next erase command.

【0059】一方、第2の制御回路16bは、電源が投
入されると消去動作を開始し(S33)、有効フラグR
a1〜Ranがセットされているかどうかをチェックし
(S34)、セット状態の消去追加レジスタ(有効フラ
グ)と対応する消去許可レジスタをセットしてこの消去
追加レジスタ及び有効フラグをクリアする(S35,S
36)。また、有効フラグがセットされていなければそ
のまま次のステップに進む。
On the other hand, the second control circuit 16b starts the erase operation when the power is turned on (S33), and the valid flag R is set.
It is checked whether or not a1 to Ran are set (S34), and the erase enable register corresponding to the set erase add register (valid flag) is set to clear the erase add register and the valid flag (S35, S).
36). If the valid flag is not set, the process directly proceeds to the next step.

【0060】次に、セット状態の消去許可レジスタと対
応するメモリセルアレイにソース線スイッチを介して消
去電圧パルスVeを印加して一括消去し(S37)、セ
ット状態の消去許可レジスタと対応するメモリセルアレ
イを1つずつ指定して消去状態のベリファイを行い(S
38)、ベリファイOKであれば消去が完了したとして
対応する消去許可レジスタをクリアし(S40)、次の
消去電圧パルスVeが印加されないようにする。また、
ベリファイOKでなければそのまま次のステップ(S4
1)に進む。
Next, the erase voltage pulse Ve is applied to the memory cell array corresponding to the set state erase enable register via the source line switch to erase all at once (S37), and the memory cell array corresponding to the set state erase enable register. Are specified one by one to verify the erased state (S
38) If the verify is OK, it is determined that the erase is completed and the corresponding erase enable register is cleared (S40) so that the next erase voltage pulse Ve is not applied. Also,
If verification is not OK, the next step (S4)
Proceed to 1).

【0061】ステップS41では、セット状態の消去許
可レジスタと対応する全てのメモリセルアレイのベリフ
ァイが終了したかどうかをチェックするものであり、全
て終了していなければ、すなわち、まだベリファイが済
んでいないものがあればステップS38に戻ってそのベ
リファイを行い、全て終了していればステップS34に
戻ってステップS34からの動作をくり返えす。
In step S41, it is checked whether or not the verification of all the memory cell arrays corresponding to the erase enable register in the set state has been completed. If not, that is, the verification has not been completed yet. If there is, the process returns to step S38 to perform the verification, and if all have been completed, the process returns to step S34 to repeat the operation from step S34.

【0062】このフラッシュメモリ及びその消去方法で
は、電源が投入されると、第2の制御回路16bの制御
のもとに、有効フラグのセット状態のチェック、そのセ
ット状態の消去許可レジスタへの移し代え、セット状態
の消去レジスタと対応するメモリセルアレイの一括消去
及びそのベリファイが、常時、くり返して行なわれてお
り、一方で、第1の制御回路16aの制御のもとに、消
去コマンドの受付け、消去ブロックの設定、プリプログ
ラム及びそのベリファイ有効フラグのセットを含む消去
コマンド処理が第1の制御回路16bの動作には関係な
く並行して行なわれている。
In this flash memory and its erasing method, when the power is turned on, under the control of the second control circuit 16b, the set state of the valid flag is checked and the set state is transferred to the erase enable register. Instead, the batch erasing of the memory cell array corresponding to the erase register in the set state and the verification thereof are constantly repeated, while the erase command is accepted under the control of the first control circuit 16a. Erase command processing including setting of the erase block, pre-programming and setting of its verify valid flag is performed in parallel regardless of the operation of the first control circuit 16b.

【0063】従って、1つの消去コマンドに対する処理
が第1の制御回路16aの制御のもとに行なわれる処理
だけで済み、第2の制御回路16bの制御のもとに行な
われる消去動作及びそのベリファイを含まないので、1
つの消去コマンドに対する処理時間が短かくなり、新た
に消去対象のメモリセルアレイ(メモリブロック)が追
加されても、この短かい処理時間の消去コマンドによ
り、一連の消去処理動作の中に取り入れることができ
る。
Therefore, the processing for one erase command is only performed under the control of the first control circuit 16a, and the erase operation and its verification performed under the control of the second control circuit 16b. Is not included, so 1
Even if a processing time for one erase command becomes short and a memory cell array (memory block) to be erased is newly added, this erase command with a short processing time can be incorporated in a series of erase processing operations. .

【0064】従って、新たに追加された消去対象のメモ
リセルアレイに対しても、その消去処理時間を短縮する
ことができ、これらメモリセルアレイ全体の消去処理時
間を短縮することができる。
Therefore, the erase processing time can be shortened even for the newly added memory cell array to be erased, and the erase processing time of the entire memory cell array can be shortened.

【0065】なお、メモリセルアレイMA1〜MAnそ
れぞれと対応してXデコーダDX1〜DXnを設け、2
つのYデコーダ13a,13bを設けることにより、第
1及び第2の制御のもとに行われる、消去ブロック設
定,プリプログラム及びそのベリファイ処理動作と、消
去動作(消去電圧パルス印加)及びそのベリファイ動作
とを、独立して行うことができる。
X decoders DX1 to DXn are provided corresponding to the memory cell arrays MA1 to MAn, respectively.
By providing two Y decoders 13a and 13b, erase block setting, pre-program and its verify processing operation, erase operation (erase voltage pulse application) and its verify operation performed under the first and second controls. And can be done independently.

【0066】[0066]

【発明の効果】以上説明したように本発明は、消去追加
レジスタ,有効フラグを介して、消去対象のメモリブロ
ックの設定を含む処理動作と、この消去対象のメモリブ
ロックに対する消去動作を含む処理動作とを並行して行
う構成としたので、新たに追加となった消去対象のメモ
リブロックを含む消去処理時間を短縮することができる
効果がある。
As described above, according to the present invention, the processing operation including the setting of the memory block to be erased through the erase addition register and the valid flag, and the processing operation including the erase operation to the memory block to be erased. Since the configuration is performed in parallel, there is an effect that the erase processing time including the newly added memory block to be erased can be shortened.

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

【図1】本発明の第1のフラッシュメモリの一実施例を
示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a first flash memory of the present invention.

【図2】図1に示されたフラッシュメモリの動作及び消
去方法を説明するためのフローチャートである。
2 is a flowchart illustrating an operation and an erasing method of the flash memory shown in FIG.

【図3】本発明の第2のフラッシュメモリの一実施例を
示すブロック図である。
FIG. 3 is a block diagram showing an embodiment of a second flash memory of the present invention.

【図4】図3に示されたフラッシュメモリの動作及び消
去方法を説明するための第1のフローチャートである。
4 is a first flowchart illustrating an operation and an erasing method of the flash memory shown in FIG.

【図5】図3に示されたフラッシュメモリの動作及び消
去方法を説明するための第2のフローチャートである。
5 is a second flowchart illustrating an operation and an erasing method of the flash memory shown in FIG.

【図6】従来のフラッシュメモリの第1のブロック図で
ある。
FIG. 6 is a first block diagram of a conventional flash memory.

【図7】図6に示されたフラッシュメモリの動作及び消
去方法を説明するためのフローチャートである。
FIG. 7 is a flowchart illustrating an operation and an erase method of the flash memory shown in FIG.

【図8】従来のフラッシュメモリの第2の例のブロック
図である。
FIG. 8 is a block diagram of a second example of a conventional flash memory.

【図9】図8に示されたフラッシュメモリの動作及び消
去方法を説明するためのフローチャートである。
9 is a flowchart illustrating an operation and an erasing method of the flash memory shown in FIG.

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

1 コマンド解析回路 2 制御回路 3 ベリファイ部 11 アドレスバッファ回路 12,12x アドレスラッチ回路 13,13a,13b Yデコーダ 14 Yセレクタ 15 制御信号バッファ回路 16a,16b,16x 制御回路 17 入出力バッファ回路 18 ラッチ回路 19,19a,19b 書込回路 20,20a,20b センス増幅器 21,21a,21b 比較器 30 制御部 DX,DX1〜DXn Xデコーダ F1〜Fn 有効フラグ MA1〜MAn メモリセルアレイ MB1〜MB4 メモリブロック Ra1〜Ra4,Ran 消去追加レジスタ Rb1〜Rb4,Rbn 消去許可レジスタ SS1〜SSn ソース線スイッチ 1 Command Analysis Circuit 2 Control Circuit 3 Verify Section 11 Address Buffer Circuit 12, 12x Address Latch Circuit 13, 13a, 13b Y Decoder 14 Y Selector 15 Control Signal Buffer Circuit 16a, 16b, 16x Control Circuit 17 Input / Output Buffer Circuit 18 Latch Circuit 19, 19a, 19b Write circuit 20, 20a, 20b Sense amplifier 21, 21, 21a, 21b Comparator 30 Control section DX, DX1 to DXn X decoder F1 to Fn valid flag MA1 to MAn Memory cell array MB1 to MB4 Memory block Ra1 to Ra4 , Ran Erase additional register Rb1 to Rb4, Rbn Erase enable register SS1 to SSn Source line switch

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数のメモリセルを配置し対応する消去
許可信号が活性化レベルのとき印加された消去電圧パル
スに従って前記複数のメモリセルを一括消去しリードラ
イト制御信号に従って指定されたアドレスのメモリセル
に対しデータの書込み、読出しを行う一括消去単位の複
数のメモリブロックと、これら複数のメモリブロックそ
れぞれと対応して設けられた複数の消去追加レジスタお
よび消去許可レジスタと、伝達されたコマンドが消去ブ
ロック設定コマンドのとき伝達された消去ブロックアド
レスと対応する前記消去追加レジスタをセットし消去コ
マンドのとき消去コマンド処理信号を出力するコマンド
解析部と、前記消去コマンド処理信号を受け、前記複数
の消去追加レジスタのうちにセット状態のものがあれば
そのセット状態の消去追加レジスタと対応する前記消去
許可レジスタをセットして活性化レベルの前記消去許可
信号を出力させると共にこの消去追加レジスタをクリア
し、前記複数の消去許可レジスタのうちにセット状態の
ものがあるとき前記複数のメモリブロックに前記消去電
圧パルスを印加した後前記リードライト制御信号を出力
して一括消去されたメモリブロックの消去状態をベリフ
ァイ制御し、このベリファイの結果が良と判定されたと
きこのメモリブロックと対応する消去許可レジスタをク
リアする制御部とを有することを特徴とするフラッシュ
メモリ。
1. A memory having a plurality of memory cells arranged therein, wherein the plurality of memory cells are collectively erased in accordance with an erase voltage pulse applied when a corresponding erase enable signal is at an activation level, and a memory having an address designated by a read / write control signal. Multiple memory blocks in batch erase unit for writing / reading data to / from cells, multiple erase addition registers and erase enable registers provided corresponding to each of these multiple memory blocks, and erased transmitted commands A command analysis unit that sets the erase addition register corresponding to the erase block address transmitted in the case of a block setting command and outputs an erase command processing signal in the case of an erase command; and a plurality of erase additions that receive the erase command processing signal. If any of the registers is in the set state, clear that set state. When the erase enable register corresponding to the last erase enable register is set to output the erase enable signal of the activation level and the erase add register is cleared, and there is a set state among the plurality of erase enable registers. After applying the erase voltage pulse to the plurality of memory blocks, the read / write control signal is output to verify the erase state of the collectively erased memory blocks. When the result of the verify is determined to be good, the memory A flash memory comprising a block and a control unit for clearing a corresponding erase enable register.
【請求項2】 一括消去単位の複数のメモリブロック
と、これら複数のメモリブロックそれぞれと対応して設
けられた複数の消去追加レジスタおよび消去許可レジス
タとを備えたフラッシュメモリの消去方法であって、伝
達されたコマンドが消去ブロック設定コマンドのとき伝
達された消去ブロックアドレスと対応する前記消去追加
レジスタをセットする第1の手順と、伝達されたコマン
ドが消去コマンドのとき、前記複数の消去追加レジスタ
のうちにセット状態のものがあればそのセット状態の消
去追加レジスタと対応する前記消去許可レジスタをセッ
トすると共にこの消去追加レジスタをクリアし、セット
状態のものがなければそのまま次の手順に進む第2の手
順と、前記複数の消去許可レジスタのうちにセット状態
のものがあれば前記複数のメモリブロックに消去電圧パ
ルスを供給してセット状態の消去追加レジスタと対応す
るメモリブロックの一括消去を行いセット状態のものが
なければ消去コマンド処理を終了する第3の手順と、こ
の第3の手順により一括消去されたメモリブロックの消
去状態をベリファイする第4の手順と、この第4の手順
によるベリファイの結果が良と判定されたメモリブロッ
クと対応する前記消去許可レジスタをクリアし良と判定
されなかったときには前記第2の手順に戻る第5の手順
とを含むことを特徴とするフラッシュメモリの消去方
法。
2. A method of erasing a flash memory, comprising: a plurality of memory blocks in a batch erase unit; and a plurality of erase addition registers and erase enable registers provided corresponding to the plurality of memory blocks, respectively. A first step of setting the erase additional register corresponding to an erase block address transmitted when the transmitted command is an erase block setting command; and a plurality of erase additional registers of the plurality of erase additional registers when the transmitted command is an erase command. If there is one in the set state, the erase enable register corresponding to the erase additional register in the set state is set and the erase additional register is cleared, and if there is no one in the set state, the process proceeds to the next step as it is. Procedure, and if there is a set state among the erase enable registers, A third procedure for supplying an erase voltage pulse to a certain number of memory blocks to erase all the memory blocks corresponding to the erase addition registers in the set state and ending the erase command processing if there is no one in the set state. The fourth procedure of verifying the erased state of the memory blocks collectively erased by the procedure of 1. and the clearing of the erase enable register corresponding to the memory block for which the result of the verification by the fourth procedure is determined to be good. And a fifth step of returning to the second step when the determination is not made.
【請求項3】 複数のメモリセルを配置し活性化状態の
とき、印加された消去電圧パルスに従って前記複数のメ
モリセルを一括消去し指定されたアドレスのメモリセル
に対しデータの書込み、読出しを行う一括消去単位の複
数のメモリブロックと、これら複数のメモリブロックそ
れぞれと対応する複数の消去追加レジスタおよび有効フ
ラグを備え消去コマンドを受付けて前記複数の有効フラ
グがクリア状態であれば伝達された消去ブロックアドレ
スと対応する消去追加レジスタをセットしてこのセット
状態の消去追加レジスタと対応する前記メモリブロック
1つずつ順次活性化すると共にプリプログラム制御信号
を順次出力しベリファイ判定信号が良の判定レベルと対
応する有効フラグをセットしてセット状態の消去追加レ
ジスタと対応する有効フラグ全てがセット状態となった
とき前記消去コマンドの処理を終了して次の消去コマン
ドの受付け可能状態となる第1の制御部と、前記プリプ
ログラム制御信号に従って活性化状態の前記メモリブロ
ックの複数のメモリセル全てに所定のレベルのデータを
書込むプリプログラムを実行しベリファイ制御信号に従
って前記プリプログラムの状態をベリファイしてその結
果が良と判定されたとき良の判定レベルの前記ベリファ
イ判定信号を出力するプリプログラム・ベリファイ部
と、前記複数のメモリブロックそれぞれと対応する複数
の消去許可レジスタを備え前記複数の有効フラグのうち
にセット状態のものがあればそのセット状態の有効フラ
グと対応する前記消去許可レジスタをセットしてこの有
効フラグおよび対応する前記消去追加レジスタをクリア
しこのセット状態の消去許可レジスタと対応する前記メ
モリブロックを活性化して前記消去電圧パルスを印加し
消去ベリファイ制御信号を出力し消去ブリファイ判定信
号が良の判定レベルと対応する前記消去許可レジスタを
クリアする第2の制御部と、前記消去ベリファイ制御信
号に従って活性化状態の前記メモリブロックの消去状態
のベリファイを行いその結果が良と判定されたとき良の
判定レベルの前記消去ベリファイ判定信号を出力する消
去ベリファイ部とを有することを特徴とするフラッシュ
メモリ。
3. When a plurality of memory cells are arranged and in an activated state, the plurality of memory cells are collectively erased in accordance with an applied erase voltage pulse, and data is written to or read from a memory cell at a designated address. An erase block having a plurality of memory blocks in a batch erase unit, a plurality of erase addition registers corresponding to each of the plurality of memory blocks, and a valid flag, and receiving an erase command and transmitting the plurality of valid flags if the valid flags are in a clear state. The erase additional register corresponding to the address is set, and the memory blocks corresponding to the erase added register in the set state are sequentially activated one by one, and the pre-program control signal is sequentially output, and the verify determination signal corresponds to the good determination level. Set the valid flag to A first control unit that completes the processing of the erase command when all the effect flags are in the set state and is ready to receive the next erase command; and the memory block in the activated state according to the pre-program control signal. When a preprogram for writing a predetermined level of data to all of a plurality of memory cells is executed and the state of the preprogram is verified according to a verify control signal and the result is judged to be good, the verify decision signal of a good decision level And a plurality of erase enable registers corresponding to each of the plurality of memory blocks, and if any of the plurality of valid flags is in the set state, it corresponds to the valid flag in the set state. The erase enable register is set to set this valid flag and the corresponding erase add register. The erase enable register in the set state is activated to activate the memory block, the erase voltage pulse is applied, the erase verify control signal is output, and the erase enable determination signal corresponds to a good determination level. A second control unit that clears a register, and the erase verify determination signal having a good determination level when the erase state of the activated memory block is verified according to the erase verify control signal and the result is determined to be good. And an erase verify unit for outputting
【請求項4】 一括消去単位の複数のメモリブロック
と、これら複数のメモリブロックそれぞれと対応する複
数の消去追加レジスタ,有効フラグおよび消去許可レジ
スタを備えたフラッシュメモリの消去方法であって、消
去コマンドを受付けて前記複数の有効フラグがクリア状
態であれば伝達された消去ブロックアドレスと対応する
前記消去追加レジスタをセットする第1の手順と、セッ
ト状態の消去追加レジスタと対応する前記メモリブロッ
クを1つずつ活性化しプリプログラムおよびそのベリフ
ァイを行う第2手順と、この第2の手順によるベリファ
イの結果が良であれば対応する前記有効フラグをセット
してセット状態の前記追加レジスタと対応する有効フラ
グ全てがセット状態となったとき前記消去コマンドの処
理を終了して次の消去コマンドの受付けを行いベリファ
イの結果が良でなれば前記第2の手順に戻る第3の手順
と、前記複数の有効フラグのうちにセット状態のものが
あればそのセット状態の有効フラグと対応する前記消去
許可レジスタをセットしてこの有効フラグおよび対応す
る消去追加レジスタをクリアしセット状態のものがなけ
ればそのまま次の手順に進む第4の手順と、セット状態
の消去許可レジスタと対応する前記メモリブロックを活
性化して消去電圧パルスを印加しこのメモリブロックを
一括消去する第5の手順と、セット状態の前記消去許可
レジスタと対応するメモリブロックを1つずつ指定して
消去状態のベリファイを行いその結果が良であれば対応
する消去許可レジスタをクリアし良でなければそのまま
次の手順に進む第6の手順と、セット状態の前記消去許
可レジスタと対応するメモリブロック全ての消去ベリフ
ァイ結果が良であれば前記第4の手順に戻り良でないも
のがあれば前記第5の手順に戻る第7の手順とを含むこ
とを特徴とするフラッシュメモリの消去方法。
4. A method of erasing a flash memory, comprising: a plurality of memory blocks in a batch erase unit; and a plurality of erase additional registers, a valid flag, and an erase enable register corresponding to each of the plurality of memory blocks. If the plurality of valid flags are in the clear state, the first step of setting the erase additional register corresponding to the transmitted erase block address, and the memory block corresponding to the erase additional register in the set state are set to 1 A second procedure of activating each one and performing pre-programming and its verification, and if the result of the verification by this second procedure is good, the corresponding valid flag is set to set the valid flag corresponding to the additional register in the set state. When all are in the set state, the processing of the erase command is terminated and the next erase is performed. Corresponds to the third procedure for accepting the command and returning to the second procedure if the result of verification is not good, and the valid flag in the set state if any of the valid flags is in the set state. If the erase enable register is set and the valid flag and the corresponding erase addition register are cleared, and there is no one in the set state, the procedure proceeds to the next step as it is, and the memory corresponding to the erase enable register in the set state. The fifth step of activating blocks and applying an erase voltage pulse to erase all the memory blocks at once, and verifying the erase state by designating the memory blocks corresponding to the erase enable registers in the set state one by one If the result is good, clear the corresponding erase enable register and if it is not good, proceed directly to the next step. If the erase verify results of all the memory blocks corresponding to the erase enable register are good, the procedure returns to the fourth procedure, and if there is a bad result, the seventh procedure returns to the fifth procedure. How to erase flash memory.
JP13396195A 1995-05-31 1995-05-31 Flash memory and erasing method thereof Expired - Lifetime JP2739838B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13396195A JP2739838B2 (en) 1995-05-31 1995-05-31 Flash memory and erasing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13396195A JP2739838B2 (en) 1995-05-31 1995-05-31 Flash memory and erasing method thereof

Publications (2)

Publication Number Publication Date
JPH08329689A true JPH08329689A (en) 1996-12-13
JP2739838B2 JP2739838B2 (en) 1998-04-15

Family

ID=15117133

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13396195A Expired - Lifetime JP2739838B2 (en) 1995-05-31 1995-05-31 Flash memory and erasing method thereof

Country Status (1)

Country Link
JP (1) JP2739838B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100479170B1 (en) * 2002-06-14 2005-03-28 주식회사 포인칩스 Access control device for memory and method thereof
KR100594786B1 (en) * 1998-12-28 2006-07-03 후지쯔 가부시끼가이샤 Non-volatile semiconductor memory device and erasing method for said device
US7564720B2 (en) 2006-07-18 2009-07-21 Spansion Llc Nonvolatile storage and erase control

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100594786B1 (en) * 1998-12-28 2006-07-03 후지쯔 가부시끼가이샤 Non-volatile semiconductor memory device and erasing method for said device
KR100479170B1 (en) * 2002-06-14 2005-03-28 주식회사 포인칩스 Access control device for memory and method thereof
US7564720B2 (en) 2006-07-18 2009-07-21 Spansion Llc Nonvolatile storage and erase control

Also Published As

Publication number Publication date
JP2739838B2 (en) 1998-04-15

Similar Documents

Publication Publication Date Title
KR100472741B1 (en) Bank architecture for a non-volatile memory enabling simultaneous reading and writing
US6542956B1 (en) Latched address multi-chunk write to EEPROM
US20050041478A1 (en) Method of controlling the operation of non-volatile semiconductor memory chips
KR102566994B1 (en) Method for performing multi-chip debugging and multi-chip system adopting the same
US20040003167A1 (en) Microcomputer
JPH07201191A (en) Nonvolatile semiconductor memory device
US6912598B1 (en) Non-volatile memory with functional capability of simultaneous modification of the content and burst mode read or page mode read
JPH03137900A (en) Nonvolatile semiconductor memory
KR100528110B1 (en) Semiconductor device
KR970051345A (en) Flash memory device and program method using the same
JP3405651B2 (en) Nonvolatile semiconductor memory device
JP2739838B2 (en) Flash memory and erasing method thereof
US5559738A (en) Semiconductor data storage apparatus
WO2007023545A1 (en) Memory device having redundancy repairing function
JP2002230983A (en) Non-volatile semiconductor memory, and its automatic erasing method and automatic write-in method
KR20090011195A (en) Flash memory device and method of programming the same
KR100852923B1 (en) Semiconductor memory
KR20070048384A (en) Method of processing bad block in memory map
US6298412B1 (en) Microcomputer and method of determining completion of writing in the microcomputer
US20240161829A1 (en) Memory device related to a program operation, method of operating the memory device, and storage device including the memory device
JP2003228991A (en) Semiconductor memory device and electronic information equipment
US20030103392A1 (en) Method of controlling the operation of non-volatile semiconductor memory chips
US20240170078A1 (en) Memory device related to a verify operation and method of operating the memory device
KR100325702B1 (en) Circuit and method of erasing a flash memeory cell
US20240161839A1 (en) Memory device for performing program operation and method of operating the same

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19971224

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080123

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090123

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100123

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110123

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110123

Year of fee payment: 13

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110123

Year of fee payment: 13

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110123

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120123

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130123

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130123

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140123

Year of fee payment: 16

EXPY Cancellation because of completion of term