JP2003036680A - Flash memory and its storage data erasing method - Google Patents

Flash memory and its storage data erasing method

Info

Publication number
JP2003036680A
JP2003036680A JP2001219560A JP2001219560A JP2003036680A JP 2003036680 A JP2003036680 A JP 2003036680A JP 2001219560 A JP2001219560 A JP 2001219560A JP 2001219560 A JP2001219560 A JP 2001219560A JP 2003036680 A JP2003036680 A JP 2003036680A
Authority
JP
Japan
Prior art keywords
sector
erase
bank
address
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2001219560A
Other languages
Japanese (ja)
Inventor
Keisuke Fuchigami
敬介 渕上
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.)
Renesas Micro Systems Co Ltd
Original Assignee
Renesas Micro Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Renesas Micro Systems Co Ltd filed Critical Renesas Micro Systems Co Ltd
Priority to JP2001219560A priority Critical patent/JP2003036680A/en
Publication of JP2003036680A publication Critical patent/JP2003036680A/en
Pending legal-status Critical Current

Links

Landscapes

  • Read Only Memory (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a flash memory in which an erasure sector of a bank unit can be specified and a command input time can be shortened. SOLUTION: When 6th cycle of a command cycle of a sector erasing function is divided into the first half cycle and the second half cycle and bank addresses being different depending on the first half and the second half are specified in 6th address hold-time, as a holding pulse of bank selection information BKLACLK is outputted from a command controller 21, and all sector information included in a specified bank are held en bloc in a sector latch circuit 22 as an erasure sector, in the sector erasing function, erasing sectors in all sectors can be specified with not only erasure specifying of only one sector but a bank unit.

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 in a non-volatile semiconductor memory device and a method of erasing stored data thereof. In particular, in a sector erasing function, an erasing sector can be designated in a bank unit, and command input time can be shortened. The present invention relates to a flash memory improved as much as possible and a stored data erasing method thereof.

【0002】[0002]

【従来の技術】近年、半導体素子の微細化技術の進展に
伴い、その半導体素子で構成するLSIも大規模化して
おり、特に半導体記憶装置の分野ではその傾向が顕著で
ある。
2. Description of the Related Art In recent years, with the progress of miniaturization technology of semiconductor elements, LSIs composed of the semiconductor elements have become large in scale, and this tendency is particularly remarkable in the field of semiconductor memory devices.

【0003】例えば、1チップに256メガビットの容
量を有する半導体メモリとしてダイナミック型ランダム
アクセスメモリ(DRAM)やシンクロナス・ダイナミ
ック・ランダムアクセス・メモリ(SDRAM)も実用
化されている。これらの揮発性メモリに対し不揮発性メ
モリの分野では、読み出し専用の半導体記憶装置として
リードオンリメモリ(ROM)があり、さらには、電気
的な書き換えが可能なEEPROM、フラッシュメモリ
も大容量化が進んでいる。フラッシュメモリは、EEP
ROMとしてブロックごとのデータまたは全ビットのデ
ータを一括消去することができるフラッシュ型EEPR
OMのことである。
For example, a dynamic random access memory (DRAM) and a synchronous dynamic random access memory (SDRAM) have been put into practical use as a semiconductor memory having a capacity of 256 Mbits per chip. In the field of non-volatile memory as opposed to these volatile memories, there is a read-only memory (ROM) as a read-only semiconductor memory device, and further, electrically rewritable EEPROMs and flash memories are also increasing in capacity. I'm out. Flash memory is EEP
Flash type EEPR that can erase all the data of each block or all bits of data as a ROM
It is OM.

【0004】このフラッシュメモリにたいして書込みや
消去などを行なう場合は、書込み命令や消去命令などの
設定コマンドをフラッシュメモリに対して与え、フラッ
シュメモリは、このコマンドに従って動作を実行する。
When writing or erasing the flash memory, a setting command such as a write command or an erase command is given to the flash memory, and the flash memory executes the operation according to the command.

【0005】一般的には、ある1つの機能動作に対し
て、動作モードのコマンドコードを入力するサイクル
と、データ内容を入力するサイクルとの2回のコマンド
サイクルにより指示を与えている。
Generally, an instruction is given to a certain one function operation by two command cycles, that is, a cycle for inputting an operation mode command code and a cycle for inputting data contents.

【0006】一方、この種の従来のフラッシュメモリは
一般にセクタ消去機能が備わっている。セクタとはメモ
リセルを1度に消去する領域毎に分割した単位をいい、
例えば、32Mビットのフラッシュメモリの場合、「5
12Kビット×64セクタ」のメモリセル構成となる。
On the other hand, this type of conventional flash memory generally has a sector erase function. A sector is a unit obtained by dividing a memory cell into areas that are erased at once,
For example, in the case of a 32 Mbit flash memory, "5
The memory cell configuration is "12 Kbits x 64 sectors".

【0007】また、フラッシュメモリはデュアル機能が
備わっている。デュアル機能とはセクタ群をバンクとい
う単位でグループ分けし、例えば、32Mフラッシュメ
モリの場合、64セクタは16セクタ×4バンク構成と
なり、1つのバンク内に含まれるセクタ群をセクタ消去
機能により消去実行中において、他の3つのバンク内の
メモリセルを読み出すことが可能な機能のことである。
言い換えれば、1つのチップ上でセクタ消去機能と読み
出しとが同時に実行できる機能である。
Further, the flash memory has a dual function. The dual function divides a sector group into units called banks. For example, in the case of a 32M flash memory, 64 sectors have a structure of 16 sectors × 4 banks, and a sector group included in one bank is erased by a sector erase function. Among them, it is a function capable of reading the memory cells in the other three banks.
In other words, the sector erase function and the read function can be simultaneously executed on one chip.

【0008】従来のフラッシュメモリの構成例を示した
図7を参照すると、従来のフラッシュメモリは、コント
ロールバッファ11と、I/Oバッファ12と、アドレ
スバッファ13と、コマンドアドレスデコーダ14と、
コマンドコントロール回路15cと、内部アドレス生成
回路16と、セクタデコーダ17と、セクタラッチ回路
24とを備える。
Referring to FIG. 7 showing a configuration example of a conventional flash memory, the conventional flash memory includes a control buffer 11, an I / O buffer 12, an address buffer 13, a command address decoder 14, and
A command control circuit 15c, an internal address generation circuit 16, a sector decoder 17, and a sector latch circuit 24 are provided.

【0009】コントロールバッファ11は、外部からの
制御信号であるチップイネーブル信号CEおよびライト
イネーブル信号WE入力し、コマンドサイクル時のコマ
ンドコードおよびアドレスを取り込むためのクロック信
号TWE、AD1LACLKを生成する回路であり、こ
れらのクロック信号の立ち下がりタイミングは、チップ
イネーブル信号CE、WEのどちらか遅い方の立ち下が
りタイミングで決定し、立ち上がりタイミングはチップ
イネーブル信号CE、WEのどちらか速い方の立ち上が
りタイミングで決定する。
The control buffer 11 is a circuit which receives a chip enable signal CE and a write enable signal WE which are external control signals, and generates clock signals TWE and AD1LACLK for fetching a command code and an address in a command cycle. The fall timing of these clock signals is determined by the later fall timing of the chip enable signals CE and WE, and the rise timing is determined by the faster rise timing of the chip enable signals CE and WE. .

【0010】I/Oバッファ12は、コマンドサイクル
時に、コマンド信号DQiから供給されるコマンドコー
ドを、コントロールバッファ11から入力するクロック
信号TWEに同期して内部へ取り込む。
The I / O buffer 12 takes in the command code supplied from the command signal DQi in the command cycle in synchronization with the clock signal TWE input from the control buffer 11.

【0011】アドレスバッファ13は、コマンドサイク
ル時、コマンド信号DQiに対応するアドレス信号Ai
から供給されるアドレスを、コントロールバッファ11
から入力するクロック信号TWEに同期してセクタ消去
用のアドレスとして内部へ取り込む。
The address buffer 13 receives the address signal Ai corresponding to the command signal DQi during the command cycle.
The address supplied from the control buffer 11
It is taken in as an address for sector erasing in synchronization with a clock signal TWE input from.

【0012】コマンドアドレスデコーダ14は、コマン
ドサイクル時、アドレス信号Aiから供給されアドレス
バッファを介して入力されたアドレスをデコード(55
5h/2AAh)し、デコード信号TA555/TA2
AAを出力する回路である。
In the command cycle, the command address decoder 14 decodes the address supplied from the address signal Ai and input through the address buffer (55).
5h / 2AAh) and decode signal TA555 / TA2
This is a circuit that outputs AA.

【0013】コマンドコントロール回路15cは、コマ
ンドサイクルにおいて、入力されるコマンドコードDQ
iとアドレス信号Aiとがサイクル毎に成立しているか
否かを確認し、第5コマンド成立後の成立信号と第6コ
マンド後の消去機能開始信号LACLKを生成する回路
である。
The command control circuit 15c receives the command code DQ input in the command cycle.
It is a circuit that confirms whether i and the address signal Ai are established in each cycle and generates an establishment signal after the fifth command is established and an erase function start signal LACLK after the sixth command.

【0014】内部アドレス生成回路16は、消去機能コ
マンド成立後、消去動作実行においてフラッシュメモリ
セルを選択するためのアドレスを、チップ内部で生成す
る回路である。
The internal address generation circuit 16 is a circuit for generating an address for selecting a flash memory cell in executing the erase operation inside the chip after the erase function command is satisfied.

【0015】セクタデコーダ17は、消去コマンド(第
6コマンド)実行時、アドレス信号Aiから入力され
た、消去するセクタのアドレスによりセクタ選択情報T
SAiを生成する。また、消去機能開始後、内部アドレ
スによりセクタ選択情報ISAiを生成する回路であ
る。
When executing the erase command (sixth command), the sector decoder 17 receives the sector selection information T according to the address of the sector to be erased, which is input from the address signal Ai.
Generate SAi. Further, it is a circuit for generating sector selection information ISAi by an internal address after the erase function is started.

【0016】セクタラッチ回路24は、消去機能におい
て、消去コマンド(第6コマンド)時の消去を行う消去
すべきセクタ選択情報TSAiをラッチする。更に消去
機能開始後、内部アドレスで生成されたアドレスでセク
タデコーダを介し選択されたセクタ(信号ISAi)と
ラッチ情報を比較し、消去セクタ情報LASAiを出力
する回路である。
In the erase function, the sector latch circuit 24 latches sector selection information TSAi to be erased for performing an erase command (sixth command). Further, after starting the erase function, the circuit compares the sector (signal ISAi) selected through the sector decoder with the latch information at the address generated by the internal address, and outputs the erase sector information LASAi.

【0017】セクタラッチ回路24の回路図を示した図
8を参照すると、セクタラッチ回路24は、電源電位V
DDおよび接地電位GND間にpチャネル型MOSトラ
ンジスタP20、nチャネル型MOSトランジスタN5
0およびnチャネル型MOSトランジスタN60を直列
接続状態で挿入接続し、pチャネル型MOSトランジス
タP20およびnチャネル型MOSトランジスタN60の
直列接続点と消去セクタ情報出力端子との間に、インバ
ータ250および260それぞれの出力端を他方の入力
端に接続したラッチを挿入接続し、このラッチの出力端
に排他的論理和回路270の一方の入力端を接続し他方
の入力端にセクタ選択情報ISAiを入力する構成を1
組としてセクタアドレス数分設け、そのセクタアドレス
数分の組をさらにバンク数分設けて構成する。
Referring to FIG. 8 which is a circuit diagram of the sector latch circuit 24, the sector latch circuit 24 has a power supply potential V
Between the DD and the ground potential GND, a p-channel MOS transistor P20 and an n-channel MOS transistor N5 are connected.
0 and n channel type MOS transistors N60 are inserted and connected in series, and inverters 250 and 260 are respectively connected between the series connection point of p channel type MOS transistor P20 and n channel type MOS transistor N60 and the erase sector information output terminal. Of the exclusive OR circuit 270 is connected to the output terminal of this latch and the sector selection information ISAi is input to the other input terminal. 1
As many sets as the number of sector addresses are provided as sets, and as many sets as the number of sector addresses are provided for the number of banks.

【0018】上述した従来のフラッシュメモリにおいて
セクタ消去機能を実行する場合のコマンド入力動作につ
いて説明する。図7および従来のセクタ消去機能の動作
説明用タイミングチャートを示した図9とを併せて参照
すると、セクタ消去機能を実行する場合、ここでは6コ
マンドサイクルで実行する例を示す。
A command input operation when the sector erase function is executed in the conventional flash memory described above will be described. Referring to FIG. 7 and FIG. 9 showing a timing chart for explaining the operation of the conventional sector erase function, an example of executing the sector erase function in six command cycles will be shown here.

【0019】まず、フラッシュメモリは、コントロール
バッファ11がチップイネーブル信号CE/ライトイネ
ーブル信号WEのどちらか遅い方の立ち下がりタイミン
グに同期して、消去コマンドサイクルを開始し、コント
ロールバッファ11出力のクロック信号TWEが論理レ
ベルのHレベルとなる。
First, in the flash memory, the control buffer 11 starts an erase command cycle in synchronization with the falling edge of the chip enable signal CE / write enable signal WE, whichever is later, and outputs the clock signal output from the control buffer 11. TWE becomes a logic level H level.

【0020】一方、アドレスバッファ13は、クロック
信号TWE=Hレベルに同期して、アドレス555hを
アドレスホールド時間の間入力し続ける。コマンドアド
レスデコーダ14は、アドレスバッファ13からアドレ
ス555hを受けると、出力信号TA555をHレベル
で出力する。
On the other hand, the address buffer 13 continues to input the address 555h during the address hold time in synchronization with the clock signal TWE = H level. Upon receiving the address 555h from the address buffer 13, the command address decoder 14 outputs the output signal TA555 at the H level.

【0021】さらに、クロック信号AD1LACLK=
Hレベルを受けて、アドレスホールド時間後もHレベル
を保持する。
Further, the clock signal AD1LACLK =
Upon receiving the H level, the H level is held even after the address hold time.

【0022】他方、I/Oバッファ12は、クロック信
号TWE=Hレベルに同期して、コマンドセット時間内
にコマンド信号DQiからコマンドコードAAhを入力
するとともに出力し、その出力されたコマンドコードA
Ahをコマンドコントロール回路15cが取り込む。
On the other hand, the I / O buffer 12 inputs and outputs the command code AAh from the command signal DQi within the command set time in synchronization with the clock signal TWE = H level, and outputs the output command code A.
The command control circuit 15c takes in Ah.

【0023】次に、チップイネーブル信号CE/ライト
イネーブル信号WEのどちらか早い方の立ち上がりタイ
ミングに同期して、クロック信号TWE=Lレベルとな
る。
Next, the clock signal TWE becomes L level in synchronization with the rising edge of the chip enable signal CE / write enable signal WE, whichever comes first.

【0024】そのクロック信号TWE=Lレベルに同期
してクロック信号AD1LACLK=Hレベルも遅れて
Lレベルになる。その時、コマンドコントロール回路1
5cは内部に保持したアドレス情報TA555とコマン
ドコードAAhとを認識し、1サイクル目のコマンドが
成立する。
In synchronization with the clock signal TWE = L level, the clock signal AD1LACLK = H level is also delayed and becomes L level. At that time, the command control circuit 1
5c recognizes the address information TA555 and the command code AAh held inside, and the command of the first cycle is established.

【0025】次に2サイクル目以降も同じように、チッ
プイネーブル信号CE/ライトイネーブル信号WEとク
ロック信号TWEに同期して、コマンドコントロール回
路15c内で保持されたアドレス情報TA2AAとコマ
ンドコード55hとを認識し、2サイクル目のコマンド
が成立する。さらにアドレス情報TA555とコマンド
コード80hとを認識し、3サイクル目のコマンドが成
立し、アドレス情報TA555とコマンドコードAAh
とを認識し、4サイクル目のコマンドが成立し、アドレ
ス情報TA2AAとコマンドコード55hとを認識し、
5サイクル目のコマンドが成立する。
Similarly in the second cycle and thereafter, the address information TA2AA and the command code 55h held in the command control circuit 15c are similarly synchronized with the chip enable signal CE / write enable signal WE and the clock signal TWE. Upon recognition, the command of the second cycle is established. Further, the address information TA555 and the command code 80h are recognized, the command of the third cycle is established, and the address information TA555 and the command code AAh
And the command of the fourth cycle is established, the address information TA2AA and the command code 55h are recognized,
The command of the fifth cycle is established.

【0026】そして、6サイクル目は、I/Oバッファ
12が、チップイネーブル信号CE/ライトイネーブル
信号WEの、どちらか遅い方の立ち上がりタイミングに
同期して消去したいセクタのアドレス(SA0)をアド
レス信号Aiから入力し、コマンドコントロール回路1
5cおよびセクタデコーダ17を介して、アドレスホー
ルド時間中入力し続ける。
Then, in the sixth cycle, the I / O buffer 12 outputs the address (SA0) of the sector to be erased in synchronization with the later rising timing of the chip enable signal CE / write enable signal WE as an address signal. Input from Ai, command control circuit 1
5c and the sector decoder 17 are continuously input during the address hold time.

【0027】セクタデコーダ17からはセクタ選択情報
TSA0=Hレベルがセレクタラッチ回路24に出力さ
れる。
The sector decoder 17 outputs sector selection information TSA0 = H level to the selector latch circuit 24.

【0028】一方、I/Oバッファ12は、クロック信
号TWE=Hレベルに同期して、アドレスホールド時間
内にコマンド信号DQiからコマンドコード30hを受
けて出力し、その出力されたコマンドコード30hをコ
マンドコントロール回路c15が取り込む。
On the other hand, the I / O buffer 12 receives and outputs the command code 30h from the command signal DQi within the address hold time in synchronization with the clock signal TWE = H level, and outputs the output command code 30h as a command. The control circuit c15 takes in.

【0029】次に、チップイネーブル信号CE/ライト
イネーブル信号WEのどちらか早い方の立ち上がりタイ
ミングに同期して、クロック信号TWE=Lレベルとな
る。そのクロック信号TWE=Lレベルに同期してクロ
ック信号AD1LACLK=Hレベルも遅れてLレベル
になる。その時、コマンドコントロール回路15cはコ
マンドコード30hを認識し、6サイクル目のコマンド
が成立する。
Next, the clock signal TWE becomes L level in synchronization with the rising edge of the chip enable signal CE / write enable signal WE, whichever comes first. In synchronization with the clock signal TWE = L level, the clock signal AD1LACLK = H level is also delayed and becomes L level. At that time, the command control circuit 15c recognizes the command code 30h, and the command of the sixth cycle is established.

【0030】それと同時に、クロック信号TWE=Lレ
ベルに同期して、コマンドコントロール回路15cのセ
レクタラッチパルスLACLKがHレベル(ワンショッ
トパルス)となり、セクタ選択情報LSA0=Hレベル
がセクタラッチ回路24に保持される。
At the same time, in synchronization with the clock signal TWE = L level, the selector latch pulse LACLK of the command control circuit 15c becomes H level (one shot pulse), and the sector selection information LSA0 = H level is held in the sector latch circuit 24. It

【0031】次に、Lレベルになるクロック信号AD1
LACLKの立ち下がりタイミングに同期して、セクタ
選択情報TSA0がLレベルになる。
Next, the clock signal AD1 which becomes L level
The sector selection information TSA0 becomes L level in synchronization with the fall timing of LACLK.

【0032】さらに、複数のセクタを消去する場合に
は、6サイクル目の30hと消去したいセクタのアドレ
スSA1〜SAiを順次入力し、消去するセクタ選択情
報TSA1〜SAiを保持する。
Furthermore, when erasing a plurality of sectors, 30h of the sixth cycle and the addresses SA1 to SAi of the sectors to be erased are sequentially input, and the sector selection information TSA1 to SAi to be erased is held.

【0033】ここで、セクタ消去機能のフローチャート
を示した図10を参照すると、セクタ消去機能のコマン
ド入力が完了することにより、消去すべきセクタ選択情
報TSAiがセクタラッチ回路24にラッチされ(ステ
ップS21)、次に内部アドレスによるセクタ選択情報
ISAiを設定する(ステップS22)。
Referring to FIG. 10 showing the flowchart of the sector erase function, the sector selection information TSAi to be erased is latched by the sector latch circuit 24 upon completion of the command input of the sector erase function (step S21). Then, the sector selection information ISAi based on the internal address is set (step S22).

【0034】セクタ選択情報ISAiにより指定された
セクタと保持されたセクタ選択情報TSAiが合致すれ
ばステップS24へ、ステップ25へ進む(ステップ2
3)。
If the sector designated by the sector selection information ISAi and the held sector selection information TSAi match, the process proceeds to step S24 and step 25 (step 2).
3).

【0035】合致するとセクタ消去機能が消去指定セク
タに対して実行される(ステップS24)。
If they match, the sector erase function is executed for the erase-designated sector (step S24).

【0036】合致しなければ、セクタ選択情報ISAi
=ISAi+1でさらにインクリメントする(ステップ
S25)。
If they do not match, sector selection information ISAi
= ISAi + 1 is further incremented (step S25).

【0037】セクタ消去機能が最後の消去指定セクタに
対して実行されたか判断し、最後の消去指定セクタなら
終了し、まだ最後でなければステップ25へ戻る(ステ
ップS26)というものである。
It is judged whether the sector erase function has been executed for the last erase-designated sector, and if it is the last erase-designated sector, it ends, and if not the last, it returns to step 25 (step S26).

【0038】一方、特開平11−273370号公報に
は、同一セクタアドレスに対して、連続してデータ読み
出し、データ書き込みまたはデータ消去を行うコマンド
が外部から入力されると、メモリチップにおけるイネー
ブルにするチップイネーブル信号を出力するようにし、
メモリチップにおける同一セクタアドレスに対して、連
続してデータ読み出し、データ書き込みまたはデータ消
去を1回のコマンドおよびセクタアドレスの入力で行う
ことができることが記載されている。
On the other hand, in Japanese Patent Laid-Open No. 11-273370, when a command for continuously reading data, writing data, or erasing data is externally input to the same sector address, it is enabled in the memory chip. Output chip enable signal,
It is described that data read, data write, or data erase can be successively performed for the same sector address in a memory chip by one time input of a command and a sector address.

【0039】さらに、メモリチップにおけるいずれか1
つのセクタアドレスに対して、データ消去を行うコマン
ドが外部から入力されると、外部から入力されるセクタ
アドレスが示すメモリにのみ、イネーブルにするチップ
イネーブル信号を出力するようにし、メモリチップにお
ける所望の1つのセクタアドレスに対するデータ消去を
も行うことが記載されている。
Further, any one of the memory chips
When a command for erasing data is externally input to one sector address, the chip enable signal for enabling is output only to the memory indicated by the externally input sector address, and the desired chip in the memory chip is output. It is described that data erase is also performed for one sector address.

【0040】しかしながら、この従来例では、本願発明
のように、消去コマンドの1サイクル期間の前半で第1
の消去アドレスのデコード情報を保持し、さらに後半で
第2の消去アドレスのデコード情報を保持し、保持され
た第1および第2の消去アドレスのデーコード情報が同
一バンクを指定しているか比較することによって、バン
ク内の1セクタの消去か、バンク内の全セクタの一括消
去かを判断する機能を備えておらず、したがって構成も
異なる。
However, in this conventional example, as in the invention of the present application, the first half of one cycle period of the erase command
Hold the decode information of the erase address of the second erase address, and further hold the decode information of the second erase address in the latter half of the second half, and compare whether the stored code information of the first and second erase addresses specifies the same bank. Therefore, it does not have a function of determining whether to erase one sector in a bank or all sectors in a bank, and therefore the configuration is different.

【0041】[0041]

【発明が解決しようとする課題】上述したように、フラ
ッシュメモリは大容量化が進み、それに伴いセクタ数が
増大している。そのため、複数のセクタを消去する場合
には、6サイクル目の30hと消去したいセクタのアド
レスSA1〜SAiを順次入力し、消去するセクタ選択
情報TSA1〜SAiを保持する。
As described above, the capacity of flash memory is increasing, and the number of sectors is increasing accordingly. Therefore, when erasing a plurality of sectors, 30h of the sixth cycle and the addresses SA1 to SAi of the sectors to be erased are sequentially input, and the sector selection information TSA1 to SAi to be erased is held.

【0042】セクタ消去機能のコマンド入力が完了する
ことにより、消去するセクタ選択情報TSAiがセクタ
ラッチ回路24にラッチされ、次に内部アドレスいよる
セクタ選択情報ISAiを設定する。セクタ選択情報I
SAiにより指定されたセクタと保持されたセクタ選択
情報TSAiが合致するまで繰り返しセクタ消去機能が
消去指定セクタに対して実行される。
When the command input of the sector erase function is completed, the sector selection information TSAi to be erased is latched in the sector latch circuit 24, and then the sector selection information ISAi according to the internal address is set. Sector selection information I
The sector erase function is repeatedly executed for the erase designated sector until the sector designated by SAi and the held sector selection information TSAi match.

【0043】つまり、6サイクル目の消去コマンド(3
0h+セクタアドレス)を消去したいセクタ数分連続し
て入力する必要があるので、コマンド入力時間の増大を
将来する結果となっていた。
That is, the erase command (3
Since it is necessary to continuously input (0h + sector address) for the number of sectors to be erased, the command input time will be increased in the future.

【0044】本発明の目的は、上述した従来の欠点に鑑
みなされたものであり、6サイクル目の消去コマンドに
おいて、アドレスホールド時間内に指定される消去アド
レスを前半および後半に2分割したタイミングで保持
し、2分割したそれぞれのアドレスが同一バンクを指定
しているかを比較し、比較結果によりさらにセクタ消去
かバンク消去か判断し、バンク消去であればバンク内の
全セクタを一括消去す機能を有することでバンク単位で
消去セクタが指定可能となり、コマンド入力時間が短縮
できるフラッシュメモリを提供することにある。
The object of the present invention is made in view of the above-mentioned conventional drawbacks. In the erase command of the sixth cycle, the erase address specified within the address hold time is divided into the first half and the second half. A function of holding and comparing whether each of the divided two addresses designates the same bank and further judging whether the sector is erased or the bank is erased based on the comparison result, and if the bank is erased, all the sectors in the bank are collectively erased. The purpose of this is to provide a flash memory in which the erase sector can be designated for each bank and the command input time can be shortened.

【0045】[0045]

【課題を解決するための手段】本発明のフラッシュメモ
リは、フラッシュメモリセルアレイのセクタ消去動作を
nサイクル期間で第1から第nコマンドにより順次実行
するとともに、前記第nコマンド実行時のアドレスホー
ルド時間内で、前記第nサイクル期間の前半で与えられ
る第1の消去アドレスのデコード情報を保持し、さらに
前記第nサイクル期間の後半で与えられる第2の消去ア
ドレスのデコード情報を保持するとともに、保持された
前記第1および前記第2の消去アドレスのデーコード情
報が同一バンクを指定しているか比較する機能を備えた
ことを特徴とする。
In a flash memory of the present invention, a sector erase operation of a flash memory cell array is sequentially executed by first to nth commands in an n cycle period, and an address hold time at the time of executing the nth command. Holds the decode information of the first erase address given in the first half of the n-th cycle period, and holds the decode information of the second erase address given in the latter half of the n-th cycle period. It is provided with a function of comparing whether the decoded data of the first and second erase addresses designated the same bank.

【0046】また、前記比較の結果が同一バンクを指定
しているときは前記バンク内の1セクタの消去と判断
し、異なるバンクを指定しているときは前記バンク内の
全セクタの一括消去と判断する消去判断機能を備えるこ
とができる。
Further, when the result of the comparison specifies the same bank, it is judged that one sector in the bank is erased, and when different banks are specified, it means that all sectors in the bank are collectively erased. An erasure judgment function for judging can be provided.

【0047】さらに、前記第1の消去アドレスで指定さ
れたバンク内全セクタの一括消去セクタ情報と前記第2
の消去アドレスで指定されたバンク情報とを保持するた
めの消去セクタ情報保持機能を備えてもよい。
Further, the batch erase sector information of all the sectors in the bank designated by the first erase address and the second erase sector information.
The erase sector information holding function for holding the bank information designated by the erase address may be provided.

【0048】本発明のフラッシュメモリの他の特徴は、
フラッシュメモリセルのセクタ消去機能コマンドの入力
時に、消去を行うセクタ情報をセクタ単位で保持させる
ための第1のコマンドコードを入力して1セクタのみの
消去セクタとして保持し、バンク単位で一括して保持さ
せる第2のコマンドコードを入力してバンク内の全ての
セクタを消去セクタとして保持するセクタ消去の機能を
備えることにある。
Another feature of the flash memory of the present invention is that
When the sector erase function command of the flash memory cell is input, the first command code for holding the sector information to be erased in sector units is input and retained as the erase sector of only one sector This is to have a sector erase function of inputting the second command code to be held and holding all the sectors in the bank as erase sectors.

【0049】本発明のフラッシュメモリの他の特徴は、
フラッシュメモリセルのセクタ消去コマンド実行時のア
ドレスホールド時間内に、消去セクタアドレスを2サイ
クルに分けて入力するとともに、第1のサイクルを消去
セクタおよびその消去セクタを含むバンク情報として保
持し、第2のサイクルを他の消去バンク情報として保持
し、これら消去セクタを含むバンク情報と他の消去バン
ク情報との比較結果に応じて同一バンクを指定している
か、異なるバンクを指定しているか認識し、同一バンク
指定ならセクタ消去、異なるバンク指定ならバンク消去
と判断する機能を備えたことにある。
Another feature of the flash memory of the present invention is that
The erase sector address is input in two cycles within the address hold time when the sector erase command of the flash memory cell is executed, and the first cycle is held as the erase sector and bank information including the erase sector. Hold the cycle of as other erase bank information, and recognize whether the same bank is designated or a different bank is designated according to the comparison result of the bank information including these erase sectors and other erase bank information, It has a function to judge sector erase if the same bank is specified and bank erase if different banks are specified.

【0050】また、消去セクタアドレスを1サイクル内
で2分割して与えることにより、1バンク内の全セクタ
の一括消去を1コマンドサイクルで実行する機能を有す
る。
Further, by providing the erase sector address divided into two in one cycle, it has a function of executing batch erase of all sectors in one bank in one command cycle.

【0051】さらに、前記消去セクタを含むバンク情報
として保持する手段は、前記第1のサイクルで消去セク
タを指定するアドレスに応じて前記消去セクタを含む消
去バンクの選択信号を生成し、かつ生成した前記選択信
号をチップイネーブルまたはライトイネーブル信号に同
期した第1のクロック信号でラッチする第1のバンクデ
コーダ手段である。
Further, the means for holding as bank information including the erase sector generates and generates a select signal of the erase bank including the erase sector in accordance with the address designating the erase sector in the first cycle. It is a first bank decoder means for latching the selection signal with a first clock signal synchronized with the chip enable or write enable signal.

【0052】さらにまた、前記他のバンク情報として保
持する手段は、前記第2のサイクルで消去セクタを指定
するアドレスに応じて前記消去セクタを含む消去バンク
の選択信号を生成し、かつ生成した前記選択信号をチッ
プイネーブルまたはライトイネーブル信号に同期した第
2のクロック信号でラッチする第2のバンクデコーダ手
段である。
Further, the means for holding as the other bank information generates the selection signal of the erase bank including the erase sector according to the address designating the erase sector in the second cycle, and the generated signal. Second bank decoder means for latching the selection signal with a second clock signal synchronized with the chip enable or write enable signal.

【0053】また、前記同一バンクを指定しているか、
前記異なるバンクを指定しているか認識する手段は、前
記セクタ消去機能コマンドの完了情報と前記比較結果の
情報とからセクタラッチかバンクラッチかを判断し、そ
の判断結果のパルス信号をそれぞれ出力するコマンド制
御手段である。
Whether the same bank is designated,
The means for recognizing whether or not the different bank is designated judges whether it is a sector latch or a bank clutch based on the completion information of the sector erase function command and the information of the comparison result, and outputs a pulse signal of the judgment result. It is a means.

【0054】さらに、前記セクタ消去または前記バンク
消去を判断すべく機能するために、前記消去コマンド時
の消去を行うための前記同一バンクまたは異なるバンク
を指示する情報をラッチするとともに、このラッチした
セクタ情報と、消去機能開始後に内部アドレス生成手段
で生成されたアドレスに基づきセクタデコーダを介し選
択されたセクタ情報とを比較し、一致した場合、前記内
部アドレスで選択されたセクタを消去すべきセクタと判
断し、そのセクタへ消去動作を行い、比較結果が異なる
場合、前記内部アドレスは次のセクタアドレスを出力し
て一致、不一致の判断を行う第1のセクタラッチ手段を
有する。
Further, in order to function to judge the sector erase or the bank erase, the information indicating the same bank or a different bank for performing the erase at the time of the erase command is latched, and the latched sector is latched. The information is compared with the sector information selected via the sector decoder based on the address generated by the internal address generation means after the start of the erase function, and if they match, the sector selected by the internal address is determined to be the sector to be erased. The internal sector has a first sector latch means for judging, performing the erasing operation on the sector, and outputting the next sector address to judge the match or non-match when the comparison result is different.

【0055】さらにまた、前記セクタ消去として機能す
るために、与えられたコマンド信号を認識し、セクタ単
位でラッチさせる場合はセクタ単位でのラッチであるこ
とを前記第1のコードで出力し、バンク単位で一括ラッ
チさせる場合はバンク単位での一括ラッチであることを
前記第2のコードで出力するコマンドコントロール手段
と、前記第1および前記第2のコードを受けてそれぞれ
に対応する第1および第2のコマンドラッチパルスを生
成するコマンドパルス生成手段と、前記第1および前記
第2のラッチパルスと消去すべきセクタアドレスをデコ
ードしたセクタ選択情報とを比較しセクタ消去制御信号
を出力する第2のセクタラッチ手段とを有する。
Furthermore, in order to function as the sector erase, when a given command signal is recognized and latched in sector units, it is output in the first code that the latch is in sector units, and the bank is output. In the case of batch latching in units, command control means for outputting the batch latch in bank units by the second code and first and second corresponding first and second codes are received. A second command pulse generating means for generating a second command latch pulse is compared with the first and second latch pulses and sector selection information obtained by decoding the sector address to be erased, and outputs a sector erase control signal. And sector latch means.

【0056】また、前記第2のセクタラッチ手段は、電
源電位および接地電位間に第1のpチャネル型MOSト
ランジスタ、第1のnチャネル型MOSトランジスタお
よび第2のnチャネル型MOSトランジスタを直列接続
状態で挿入接続し、前記第1のpチャネル型MOSトラ
ンジスタのゲートに消去期間中接地電位になる信号を与
え、第1のnチャネル型MOSトランジスタのゲートに
バンク内一括消去セクタ情報を与え、第2のnチャネル
型MOSトランジスタのゲートに前記第1の消去アドレ
スに基づく消去セクタ選択情報を与え、前記第1のpチ
ャネル型MOSトランジスタおよび第1のnチャネル型
MOSトランジスタの直列接続点と接地電位間に第3の
nチャネル型MOSトランジスタおよび第4のnチャネ
ル型MOSトランジスタを直列接続状態で挿入接続し、
第3のnチャネル型MOSトランジスタのゲートに消去
バンク情報を与え、第4のnチャネル型MOSトランジ
スタのゲートに内部アドレスに基づくセクタ選択情報を
与え、さらに前記直列接続点に、第1および第2のイン
バータそれぞれの出力端を他方の入力端に接続したラッ
チの入力端を接続し、前記ラッチの出力端に排他的論理
和回路の一方の入力端を接続し他方の入力端に内部アド
レスに基づくセクタ選択情報を入力する構成を1組とし
てセクタアドレス数分設け、そのセクタアドレス数分の
組をさらにバンク数分設けて構成する。
In the second sector latch means, the first p-channel type MOS transistor, the first n-channel type MOS transistor and the second n-channel type MOS transistor are connected in series between the power supply potential and the ground potential. Signal is supplied to the gate of the first p-channel MOS transistor at the ground potential during the erasing period, and the gate of the first n-channel MOS transistor is supplied with the batch-in-bank erase sector information. Erase sector selection information based on the first erase address is applied to the gate of the n-channel MOS transistor, and between the series connection point of the first p-channel MOS transistor and the first n-channel MOS transistor and the ground potential. To a third n-channel MOS transistor and a fourth n-channel MOS transistor. Inserted and connected the static in the series connection state,
Erase bank information is given to the gate of the third n-channel MOS transistor, sector selection information based on the internal address is given to the gate of the fourth n-channel MOS transistor, and the first and second portions are connected to the series connection point. Of each of the inverters is connected to the other input terminal of the latch, the output terminal of the latch is connected to one input terminal of the exclusive OR circuit, and the other input terminal is based on the internal address. One set of configurations for inputting sector selection information is provided for the number of sector addresses, and sets for the number of sector addresses are provided for the number of banks.

【0057】本発明のフラッシュメモリの記憶データ消
去方法は、フラッシュメモリセルのセクタ消去コマンド
実行時のアドレスホールド時間内に、アドレスバッファ
へ消去セクタアドレスを2サイクルに分けて与え、第1
のサイクルを消去セクタおよびその消去セクタを含むバ
ンク情報として保持し、第2のサイクルを他の消去バン
ク情報として保持し、保持した前記消去セクタを含むバ
ンク情報と前記他の消去バンク情報との比較結果に応じ
て同一バンクを指定しているか、異なるバンクを指定し
ているか認識し、同一バンク指定ならセクタ消去を行
い、異なるバンク指定ならバンク消去を行うことにあ
る。
According to the flash memory stored data erasing method of the present invention, the erase sector address is given to the address buffer in two cycles within the address hold time when the sector erase command of the flash memory cell is executed.
Cycle is held as erase sector and bank information including the erase sector, and the second cycle is held as other erase bank information, and the held bank information including the erase sector is compared with the other erase bank information. Depending on the result, it is recognized whether the same bank is designated or a different bank is designated, and if the same bank is designated, sector erase is performed, and if different bank is designated, bank erase is performed.

【0058】また、1バンク内の全セクタの一括消去を
1コマンドサイクルで実行させることができる。
Further, it is possible to execute the batch erase of all the sectors in one bank in one command cycle.

【0059】本発明のフラッシュメモリの記憶データ消
去方法の他の特徴は、フラッシュメモリセルアレイのセ
クタ消去動作をnサイクル期間で第1から第nコマンド
により順次実行するとともに、前記第nコマンド実行時
のアドレスホールド時間内で、前記第nサイクル期間の
前半で与えられる第1の消去アドレスのデコード情報を
第1のバンクデコーダに保持するステップと、前記第n
サイクル期間の後半で与えられる第2の消去アドレスの
デコード情報を第2のバンクデコーダに保持するステッ
プと、保持された前記第1および前記第2の消去アドレ
スのデコード情報が同一バンクを指定しているか比較回
路で比較するステップと、前記比較の結果が同一バンク
を指定しているときは前記バンク内の1セクタの消去と
判断し、異なるバンクを指定しているときは前記バンク
内の全セクタの一括消去と判断するステップと、前記判
断に基づき前記フラッシュメモリセルを消去するステッ
プとを備えることにある。
Another feature of the stored data erasing method of the flash memory of the present invention is that the sector erasing operation of the flash memory cell array is sequentially executed by the first to nth commands in the n cycle period, and at the time of executing the nth command. Holding the decode information of the first erase address given in the first half of the n-th cycle period in the first bank decoder within the address hold time;
The step of holding the decode information of the second erase address given in the second half of the cycle period in the second bank decoder and the decode information of the held first and second erase addresses specify the same bank. If the result of the comparison specifies the same bank, it is determined that one sector in the bank is erased, and if different banks are specified, all sectors in the bank are compared. And a step of erasing the flash memory cell based on the determination.

【0060】[0060]

【発明の実施の形態】まず本発明の第1の実施形態を図
面を参照しながら詳細に説明する。
BEST MODE FOR CARRYING OUT THE INVENTION First, a first embodiment of the present invention will be described in detail with reference to the drawings.

【0061】図1は本発明のフラッシュメモリの第1の
実施形態の主要部構成図であり、図2はセクタラッチ回
路22の回路図であり、図3は第1の実施形態の動作説
明用タイミングチャートである。図1および図3を参照
すると、フラッシュメモリ1は、コントロールバッファ
11と、I/Oバッファ12と、アドレスバッファ13
と、コマンドアドレスデコーダ14と、コマンドコント
ロール回路15aと、内部アドレス生成回路16と、セ
クタデコーダ17と、バンクデコーダ18と、バンクデ
コーダ19と、バンク比較回路20と、コマンドコント
ローラ21と、セクタラッチ回路22と、を備える。
FIG. 1 is a block diagram of a main part of a first embodiment of a flash memory of the present invention, FIG. 2 is a circuit diagram of a sector latch circuit 22, and FIG. 3 is a timing chart for explaining the operation of the first embodiment. It is a chart. Referring to FIGS. 1 and 3, the flash memory 1 includes a control buffer 11, an I / O buffer 12, and an address buffer 13.
A command address decoder 14, a command control circuit 15a, an internal address generation circuit 16, a sector decoder 17, a bank decoder 18, a bank decoder 19, a bank comparison circuit 20, a command controller 21, and a sector latch circuit 22. And

【0062】コントロールバッファ11は、外部からの
制御信号CE、WEからコマンドサイクル時のコマンド
コード、アドレスを取り込むクロック信号TWE、AD
1LACLK、AD2LACLKを生成する回路であ
る。
The control buffer 11 receives clock signals TWE and AD from the external control signals CE and WE for fetching a command code and an address at the time of a command cycle.
This is a circuit for generating 1LACLK and AD2LACLK.

【0063】クロック信号TWE、AD1LACLK、
AD2LACLKの立ち上がりタイミングはCE、WE
のどちらか遅い方の立ち下がりタイミングで決定し、立
ち下がりタイミングはCE、WEのどちらか速い方の立
ち上がりで決定する。
Clock signals TWE, AD1LACLK,
The rising timing of AD2LACLK is CE, WE
Whichever is later, the trailing edge is determined, and the trailing timing is determined by the leading edge of CE or WE, whichever is earlier.

【0064】I/Oバッファ12は、コマンドサイクル
時、コマンド信号DQiから供給されるコマンドコード
を、クロック信号TWEに同期して内部へ取り込む回路
である。
The I / O buffer 12 is a circuit for taking in the command code supplied from the command signal DQi in the command cycle in synchronization with the clock signal TWE.

【0065】アドレスバッファ13は、コマンドサイク
ル時、アドレス信号Aiから供給されるアドレスコード
を、クロック信号TWEに同期して内部へ取り込む回路
である。
The address buffer 13 is a circuit for fetching the address code supplied from the address signal Ai into the inside thereof in synchronization with the clock signal TWE during the command cycle.

【0066】コマンドアドレスデコーダ14は、コマン
ドサイクル時、アドレス信号Aiから供給されアドレス
バッファ13を介して入力されたアドレス、すなわち、
後述する図3におけるAiでアドレスコード555hお
よび2AAhで表し、これらのアドレスコードをデコー
ドしてデコード信号TA555およびTA2AAを出力
する回路である。
The command address decoder 14 receives the address supplied from the address signal Ai and input through the address buffer 13 during the command cycle, that is,
This circuit is represented by Ai in FIG. 3 to be described later with address codes 555h and 2AAh, decodes these address codes, and outputs decode signals TA555 and TA2AA.

【0067】コマンドコントロール回路15aは、消去
機能コマンドサイクルにおいて、入力されるコマンド信
号DQiと対応するアドレス信号Aiとの関係が、コマ
ンドサイクル毎に成立しているか否かを確認し、第5コ
マンド成立後の成立信号(コントロールバッファへ出力
する信号で、AD2LACLKを生成するフラグとな
る)と第6コマンド実行後の消去機能開始信号BKLA
CLKおよびLACLKとを生成する回路である。
In the erase function command cycle, the command control circuit 15a confirms whether or not the relationship between the input command signal DQi and the corresponding address signal Ai is established for each command cycle, and the fifth command is established. Later establishment signal (a signal to be output to the control buffer, which serves as a flag for generating AD2LACLK) and an erase function start signal BKLA after the execution of the sixth command
This is a circuit that generates CLK and LACLK.

【0068】内部アドレス生成回路16は、コマンドコ
ントロール回路15aから出力される内部アドレス生成
開始フラグに同期して内部アドレスを生成する。例えば
6サイクルの消去機能コマンドが成立した後、消去動作
実行時に、フラッシュメモリセルを選択するためのアド
レスは外部からは供給されないのでチップ内部で生成す
るための回路である。
The internal address generation circuit 16 generates an internal address in synchronization with the internal address generation start flag output from the command control circuit 15a. For example, after the erase function command for 6 cycles is established, when the erase operation is executed, the address for selecting the flash memory cell is not supplied from the outside, so it is a circuit for generating inside the chip.

【0069】但し、第6コマンド(消去コマンド)取り
込み後すぐに内部アドレスが動作するわけではなく、以
下のように動作する。
However, the internal address does not operate immediately after fetching the sixth command (erase command), but operates as follows.

【0070】複数のセクタを消去する場合、消去コマン
ド(例えば後述の30h)を繰り返し入力するが、1回
目の30h入力後、2回目の30h入力までにタイムア
ウトとしてウェイト時間を設けている。このタイムアウ
トは、フラッシュメモリのデータシートに記載されてお
り、フラッシュメモリ製品によっても異なるが一般的に
は50〜100μsecである。
When erasing a plurality of sectors, an erase command (for example, 30h which will be described later) is repeatedly input, but a wait time is provided as a timeout from the first 30h input to the second 30h input. This time-out is described in the data sheet of the flash memory, and is generally 50 to 100 μsec although it varies depending on the flash memory product.

【0071】1回目入力後、タイムアウト期間中ならば
2回目を受け付けることとなり、更に2回目入力後、ま
た新たにタイムアウト期間を設け、3回目を受付待機す
る。
After the first input, if the time-out period is reached, the second time is accepted, and after the second input, a new time-out period is set and the third time is waited for acceptance.

【0072】つまり、タイムアウト期間が終了すると、
その後は消去コマンドは受け付けなくなる。タイムアウ
ト期間終了後、内部で消去機能が動作開始し、内部アド
レスが動作する。
That is, when the timeout period ends,
After that, the erase command cannot be accepted. After the time-out period ends, the erase function internally starts and the internal address operates.

【0073】よって、コマンドコントロール回路から内
部アドレス生成回路への内部信号はタイムアウト期間が
終了したので消去動作開始のフラグ信号となる。
Therefore, the internal signal from the command control circuit to the internal address generation circuit becomes a flag signal for starting the erase operation since the time-out period has ended.

【0074】セクタデコーダ17は、消去コマンド(第
6コマンド)実行時、アドレス信号Aiから入力され
た、消去するセクタの例えば上位アドレスSA0〜SA
i、例えば下位アドレス555h〜2AAh等によりセ
クタ選択信号TSAiを生成する。また、消去機能実行
開始後、生成された内部アドレスに基づきセクタ選択信
号ISAiを生成する回路である。
When the erase command (sixth command) is executed, the sector decoder 17 receives, for example, the upper addresses SA0 to SA of the sector to be erased, which is input from the address signal Ai.
A sector selection signal TSAi is generated by i, for example, lower addresses 555h to 2AAh. Further, it is a circuit for generating the sector selection signal ISAi based on the generated internal address after the start of execution of the erase function.

【0075】バンクデコーダ18は、消去コマンド(第
6コマンド)実行時、コマンドサイクル前半の消去セク
タを指定するアドレス(例えばSA0)に応じて、消去
セクタを含む消去バンクの第1の消去バンク選択信号T
ABKiを生成し、生成した第1の消去バンク選択信号
TABKiをコントロールバッファ11からのクロック
信号AD1LACLKに同期してラッチする回路であ
る。
When executing the erase command (sixth command), the bank decoder 18 responds to an address (eg, SA0) designating the erase sector in the first half of the command cycle in response to the first erase bank selection signal of the erase bank including the erase sector. T
This is a circuit that generates ABKi and latches the generated first erase bank selection signal TABKi in synchronization with the clock signal AD1LACLK from the control buffer 11.

【0076】バンクデコーダ19は、消去コマンド(第
6コマンド)実行時、コマンドサイクル後半の消去セク
タを指定するアドレス(例えばSA50)に応じて、消
去セクタを含む消去バンクの第2の消去バンク選択信号
TBBKを生成し、生成したバンク選択信号TBBKi
をコントロールバッファ11からのクロック信号AD2
LACLKに同期して保持する回路である。
When executing the erase command (sixth command), the bank decoder 19 responds to an address (for example, SA50) designating the erase sector in the latter half of the command cycle in response to the second erase bank selection signal of the erase bank including the erase sector. TBBK is generated, and the generated bank selection signal TBBKi is generated.
The clock signal AD2 from the control buffer 11
This is a circuit for holding in synchronization with LACLK.

【0077】バンク比較回路20は、消去コマンド(第
6コマンド)実行時、バンクデコーダ18に保持された
第1のバンク選択信号TABKiとバンクデコーダ19
に保持された第2のバンク選択信号TBBKiとの比較
を行い、同一か否かを判断し、その判断結果情報TCO
MPを出力する回路である。
The bank comparison circuit 20 receives the first bank selection signal TABKi held in the bank decoder 18 and the bank decoder 19 when the erase command (sixth command) is executed.
Is compared with the second bank selection signal TBBKi held in the memory to determine whether they are the same, and the determination result information TCO
It is a circuit that outputs MP.

【0078】コマンドコントローラ21は、コマンドコ
ントロール回路15aから与えられた消去コマンド(第
6コマンド)完了情報BKLACLKとバンク比較回路
20からのバンク同一か否かの判断結果情報TCOMP
でセクタラッチかバンクラッチかを判断し、セクタラッ
チの場合は消去機能開始信号LACLKでラッチパルス
を出力し、バンクラッチの場合は消去機能開始信号BK
LACLKでラッチパルスを生成する回路である。
The command controller 21 determines whether the erase command (sixth command) completion information BKLACLK given from the command control circuit 15a and the bank from the bank comparison circuit 20 are the same or not.
Determines whether it is a sector latch or a bank clutch. In the case of a sector latch, a latch pulse is output by the erase function start signal LACLK. In the case of a bank latch, the erase function start signal BK.
It is a circuit that generates a latch pulse with LACLK.

【0079】セクタラッチ回路22は、消去機能の消去
コマンド(第6コマンド)実行時において、消去機能開
始信号LACLKおよびセクタ選択情報TSAi、また
は消去機能開始信号BKLACLKおよび第2の消去バ
ンク選択信号TABKiがHレベルになったときに得ら
れる消去セクタ情報LASAiをラッチする。更に消去
機能開始後、内部アドレス生成回路16で生成されたア
ドレスに基づきセクタデコーダ17を介し選択されたセ
クタ選択情報ISAiとラッチした消去セクタ情報LA
SAiとを比較し、一致/不一致信号を出力する回路で
ある。
When executing the erase command (sixth command) for the erase function, the sector latch circuit 22 outputs the erase function start signal LACLK and the sector selection information TSAi, or the erase function start signal BKLACLK and the second erase bank selection signal TABKi to the H level. The erase sector information LASAi obtained when the level is reached is latched. Further, after the erase function is started, the sector selection information ISAi selected through the sector decoder 17 based on the address generated by the internal address generation circuit 16 and the erased sector information LA latched
This circuit compares SAi and outputs a match / mismatch signal.

【0080】セクタ選択情報ISAiと消去セクタ情報
LASAiとが一致した場合、内部アドレスで選択され
たセクタを消去すべきセクタと判断し、そのセクタへ消
去動作を行う。また、セクタ選択情報ISAiと消去セ
クタ情報LASAiとが不一致の場合、内部アドレスは
次のセクタアドレスを出力し、改めて一致、不一致の判
断を行う。
When the sector selection information ISAi and the erase sector information LASAi match, it is determined that the sector selected by the internal address is the sector to be erased, and the erase operation is performed on that sector. When the sector selection information ISAi and the erase sector information LASAi do not match, the next sector address is output as the internal address, and it is determined again whether they match.

【0081】図2を参照すると、セクタラッチ回路22
は、電源電位VDDおよび接地電位GND間に第1のp
チャネル型MOSトランジスタP10、第1のnチャネ
ル型MOSトランジスタN10および第2のnチャネル
型MOSトランジスタN20を直列接続状態で挿入接続
する。
Referring to FIG. 2, the sector latch circuit 22
Is the first p between the power supply potential VDD and the ground potential GND.
The channel type MOS transistor P10, the first n-channel type MOS transistor N10 and the second n-channel type MOS transistor N20 are inserted and connected in series.

【0082】第1のpチャネル型MOSトランジスタP
10のゲートには消去動作時にLレベルとなる信号BR
STを与え、第1のnチャネル型MOSトランジスタN
10のゲートには消去機能開始信号LACLKを与え、
第2のnチャネル型MOSトランジスタN20のゲート
にはセクタ選択情報TSAiを与える。
First p-channel MOS transistor P
The gate of 10 has a signal BR which becomes L level during the erase operation.
ST is applied to the first n-channel MOS transistor N
An erase function start signal LACLK is given to the gate of 10.
Sector selection information TSAi is given to the gate of the second n-channel MOS transistor N20.

【0083】また、pチャネル型MOSトランジスタP
10およびnチャネル型MOSトランジスタN10の直
列接続点Aと接地電位GND間に第3のnチャネル型M
OSトランジスタN30および第4のnチャネル型MO
SトランジスタN40を直列接続状態で挿入接続する。
The p-channel type MOS transistor P
The third n-channel type M between the series connection point A of the 10 and n-channel type MOS transistor N10 and the ground potential GND.
OS transistor N30 and fourth n-channel MO
The S transistor N40 is inserted and connected in series.

【0084】第3のnチャネル型MOSトランジスタN
30のゲートには消去機能開始信号BKLACLKを与
え、第4のnチャネル型MOSトランジスタN40のゲ
ートには第1の消去バンク選択信号TABKiを与え
る。
Third n-channel MOS transistor N
An erase function start signal BKLACLK is applied to the gate of 30, and a first erase bank select signal TABKi is applied to the gate of the fourth n-channel MOS transistor N40.

【0085】さらに、直列接続点Aに、インバータ22
0の出力端およびインバータ230の入力端を共通接続
するとともに、インバータ230の出力端およびインバ
ータ220の入力端を共通接続してラッチを構成し、そ
の共通接続点B(請求項における消去セクタ情報出力端
子)の消去セクタ情報LASAiを排他的論理和回路2
40の一方の入力端に与え、他方の入力端にセクタ選択
情報ISAiを与えることにより、排他的論理和回路2
40から一致/不一致信号を出力する構成を1組として
セクタアドレス数分設け、そのセクタアドレス数分の組
をさらにバンク数分設けて構成する。
Further, the inverter 22 is connected to the serial connection point A.
The output terminal of 0 and the input terminal of the inverter 230 are connected in common, and the output terminal of the inverter 230 and the input terminal of the inverter 220 are connected in common to form a latch, and the common connection point B (erasing sector information output in the claims). Terminal) erasing sector information LASAi and exclusive OR circuit 2
40 to one of the input terminals and the other input terminal to the sector selection information ISAi to obtain the exclusive OR circuit 2
The configuration in which the coincidence / non-coincidence signal is output from 40 is provided as one set for the number of sector addresses, and the set for the number of sector addresses is provided for the number of banks.

【0086】次に、上述した構成からなる本発明のフラ
ッシュメモリにおける第1の実施形態の動作を説明す
る。
Next, the operation of the first embodiment of the flash memory of the present invention having the above-mentioned configuration will be described.

【0087】再び図1および図3を参照すると、この実
施形態では、例えば、セクタ消去機能コマンドとして6
サイクルを予め割り当てているものとして説明する。こ
の6サイクルのコマンドサイクルは、チップイネーブル
信号CE/ライトイネーブル信号WEがともにLレベ
ル、換言するとTWE=Hレベルの状態を意味する。
Referring again to FIGS. 1 and 3, in this embodiment, the sector erase function command, for example, 6
The description will be given assuming that the cycle is assigned in advance. The six command cycles mean that the chip enable signal CE / write enable signal WE are both at L level, in other words, TWE = H level.

【0088】また、本発明の特徴として、6サイクル目
の消去コマンドにおいて指定する消去用のアドレス信号
Aiは、6サイクル目のサイクル前半とサイクル後半に
分割されており、ここでは一例として、サイクル前半で
指定する消去アドレスをセクタ0,サイクル後半で指定
する消去アドレスをセクタ50とした場合を示す。その
ときの消去コマンドDQiとしてはコードを30hとし
た例を示してある。
Further, as a feature of the present invention, the erase address signal Ai designated in the erase command of the sixth cycle is divided into the first half of the cycle and the second half of the cycle. Here, as an example, the first half of the cycle is used. The case where sector 0 is the erase address specified by and the sector 50 is the erase address specified in the second half of the cycle is shown. As the erase command DQi at that time, an example in which the code is 30h is shown.

【0089】その他のセクタ消去機能コマンドサイクル
では、1サイクル目のアドレス信号Aiが555h、消
去コマンドDQiがコードAAhであり、2サイクル目
のアドレス信号Aiが2AAh、消去コマンドDQiが
コード55hである。3サイクル目のアドレス信号Ai
は555h、消去コマンドDQiがコード80hであ
り、4サイクル目のアドレス信号Aiが555h、消去
コマンドDQiがコードAAhであり、5サイクル目の
アドレス信号Aiが555h、消去コマンドDQiがコ
ードAAhであるものとして説明する。
In other sector erase function command cycles, the address signal Ai in the first cycle is 555h, the erase command DQi is code AAh, the address signal Ai in the second cycle is 2AAh, and the erase command DQi is code 55h. Address signal Ai of the third cycle
Is 555h, the erase command DQi is code 80h, the fourth cycle address signal Ai is 555h, the erase command DQi is code AAh, the fifth cycle address signal Ai is 555h, and the erase command DQi is code AAh. As described below.

【0090】セクタ消去機能コマンドサイクルの5サイ
クル目が成立した後、6コマンド目の消去サイクル前半
にチップイネーブル信号CE/ライトイネーブル信号W
Eのうちのどちらかの遅い立ち下がりタイミング、つま
り、コントロールバッファ11で生成されたクロック信
号TWEの立ち上がりタイミングに同期して、アドレス
バッファ13が、消去したいアドレス(例えばSA0)
をAiから入力する。
After the fifth cycle of the sector erase function command cycle is established, the chip enable signal CE / write enable signal W is issued in the first half of the erase cycle of the sixth command.
The address buffer 13 wants to erase an address (for example, SA0) in synchronization with either one of the late fall timings of E, that is, the rise timing of the clock signal TWE generated by the control buffer 11.
From Ai.

【0091】アドレスSA0をAiから入力後、セクタ
デコーダ17において、コントロールバッファ11から
出力されるクロック信号AD1LACLKの立ち上がり
タイミングに同期して、消去セクタが選択されると、セ
クタデコーダ17の出力のセクタ選択情報TSA0=H
レベルとなる。このHレベルはクロック信号AD1LA
CLKの立ち下がりタイミングまで保持される。
After inputting the address SA0 from Ai, the sector decoder 17 selects the erase sector in synchronization with the rising timing of the clock signal AD1LACLK output from the control buffer 11, and selects the sector output from the sector decoder 17. Information TSA0 = H
It becomes a level. This H level is the clock signal AD1LA.
It is held until the falling timing of CLK.

【0092】さらに、アドレスSA0はバンクデコーダ
18において、クロック信号AD1LACLKの立ち上
がりタイミングに同期して、消去セクタが含まれたバン
クが選択され、バンクデコーダ18の出力の第1の消去
バンク選択信号TABK0=Hレベルとなる。このHレ
ベルはクロック信号AD1LACLKの立ち下がりタイ
ミングまで保持される。
Further, the address SA0 is selected in the bank decoder 18 in synchronization with the rising timing of the clock signal AD1LACLK, and the bank including the erase sector is selected. The first erase bank selection signal TABK0 = It becomes H level. This H level is held until the falling timing of the clock signal AD1LACLK.

【0093】すなわち、セクタ選択情報TSA0および
第1の消去バンク選択信号TABK0がクロック信号A
D1LACLKにより保持されることを示している。
That is, the sector selection information TSA0 and the first erase bank selection signal TABK0 are the clock signal A.
It is shown that it is held by D1LACLK.

【0094】その後、6コマンド目の消去サイクル後半
で、かつセクタアドレスホールド時間内に、チップイネ
ーブル信号CE/ライトイネーブル信号WEのうちのど
ちらかの遅い立ち下がりタイミング、つまり、コントロ
ールバッファ11で生成されたクロック信号AD2LA
CLKの立ち上がりタイミングに同期して、アドレスバ
ッファ13が、消去しようとする消去セクタが含まれた
バンク以外のバンクに属するアドレス(例えばSA5
0)をAiから入力する。
After that, in the latter half of the sixth command erase cycle and within the sector address hold time, one of the chip enable signal CE and the write enable signal WE falls late, that is, it is generated by the control buffer 11. Clock signal AD2LA
In synchronization with the rising edge of CLK, the address buffer 13 addresses (eg, SA5) belonging to a bank other than the bank including the erase sector to be erased.
0) is input from Ai.

【0095】アドレスSA50をAiから入力後、アド
レスSA50はバンクデコーダ18において、クロック
信号AD2LACLKの立ち上がりタイミングに同期し
て、消去しようとする消去セクタが含まれたバンク以外
のバンク、つまり異なるバンクが選択され、バンクデコ
ーダ19の出力の第2の消去バンク選択信号TBBK1
=Hレベルとなる。
After the address SA50 is input from Ai, the address SA50 is selected by the bank decoder 18 in synchronization with the rising timing of the clock signal AD2LACLK, other than the bank including the erase sector to be erased, that is, a different bank. The second erase bank selection signal TBBK1 output from the bank decoder 19
= H level.

【0096】このHレベルはクロック信号AD2LAC
LKの立ち下がりタイミングまで保持される。すなわ
ち、異バンク情報としての第2の消去バンク選択信号T
BBK1がクロック信号AD2LACLKにより保持さ
れることを示している。
This H level is the clock signal AD2LAC.
It is held until the falling timing of LK. That is, the second erase bank selection signal T as different bank information
It is shown that BBK1 is held by the clock signal AD2LACLK.

【0097】そして、コマンドコード30hがDQiよ
りI/Oバッファ12を介して入力され、チップイネー
ブル信号CE/ライトイネーブル信号WEのどちらか早
い方の立ち上がりタイミング、つまり、コントロールバ
ッファ11の出力するクロック信号TWE=Lレベルに
同期して、コマンドコントロール回路15aからコマン
ドコントローラ21へ出力される。
Then, the command code 30h is inputted from the DQi via the I / O buffer 12, and the rising timing of the chip enable signal CE / write enable signal WE, whichever is earlier, that is, the clock signal output from the control buffer 11 is output. Output from the command control circuit 15a to the command controller 21 in synchronization with TWE = L level.

【0098】一方、バンク比較回路7において、第1の
消去バンク選択信号TABKiと第2の消去バンク選択
信号TBBKiとを比較し、バンクが異なれば比較結果
の判断結果情報TCOMP=Hレベルとなる。
On the other hand, the bank comparison circuit 7 compares the first erase bank selection signal TABKi with the second erase bank selection signal TBBKi, and if the banks are different, the comparison result judgment result information TCOMP = H level.

【0099】バンク比較回路7からの判断結果情報TC
OMP=Hレベルを受けたコマンドコントローラ21か
らは消去機能開始信号BKLACLK=Hレベルが,セ
クタラッチ回路22へ出力される。
Judgment result information TC from the bank comparison circuit 7
When the command controller 21 receives the OMP = H level, the erase function start signal BKLACLK = H level is output to the sector latch circuit 22.

【0100】再び図2を参照すると、ここでは異なるバ
ンクであることを示す消去機能開始信号BKLACLK
=Hレベルの1パルスを受けたセクタラッチ回路22で
は、nチャネル型MOSトランジスタN30〜N3nは
全て導通状態になり、nチャネル型MOSトランジスタ
N40〜N4nも第1の消去バンク選択信号TABK0
=Hレベルを受けて全て導通状態になり、それぞれの共
通接続接点AにはLレベルが出力される。
Referring again to FIG. 2, an erase function start signal BKLACLK indicating that the bank is different here.
In the sector latch circuit 22 which has received one pulse of = H level, all of the n-channel type MOS transistors N30 to N3n become conductive, and the n-channel type MOS transistors N40 to N4n also have the first erase bank selection signal TABK0.
= H level, all become conductive and L level is output to each common connection contact A.

【0101】このLレベルが極性反転されてHレベルと
なりラッチされることにより、消去したいセクタを含む
バンク内の全てのセクタが消去セクタとしてセクタラッ
チ回路に保持される。保持されたHレベルと内部アドレ
ス時のセクタ選択情報ISA0〜ISAiとが個別に排
他的論理和回路240から24nで比較され、消去セク
タ情報LASAi〜LASAi+7それぞれのセクタ消
去を指示するHレベルが一致信号として出力される。
When the L level is inverted in polarity and becomes the H level and latched, all sectors in the bank including the sector to be erased are held in the sector latch circuit as erased sectors. The held H level and the sector selection information ISA0 to ISAi at the time of the internal address are individually compared by the exclusive OR circuits 240 to 24n, and the H level indicating the sector erase of each of the erase sector information LASAi to LASAi + 7 is a match signal. Is output as.

【0102】次に、従来のように、6サイクル目のアド
レスホールド時間内に、6サイクル目のサイクル前半お
よびサイクル後半とも同一セクタアドレスSA0を入力
した場合を説明する。
Next, a case where the same sector address SA0 is input in the first half and the second half of the sixth cycle within the address hold time of the sixth cycle as in the conventional case will be described.

【0103】6コマンド目の消去サイクル後半で、かつ
セクタアドレスホールド時間内に、チップイネーブル信
号CE/ライトイネーブル信号WEのうちのどちらかの
遅い立ち下がりタイミング、つまり、コントロールバッ
ファ11で生成されたクロック信号AD2LACLKの
立ち上がりタイミングに同期して、アドレスバッファ1
3が、6サイクル目のサイクル前半と同じように、消去
しようとする消去セクタが含まれたバンクアドレスSA
0を再びAiから入力(変化させない)する。
In the second half of the erase cycle of the sixth command and within the sector address hold time, either the slow fall timing of the chip enable signal CE / write enable signal WE, that is, the clock generated in the control buffer 11 The address buffer 1 is synchronized with the rising timing of the signal AD2LACLK.
3 is the same as in the first half of the sixth cycle, the bank address SA including the erase sector to be erased.
0 is input (not changed) again from Ai.

【0104】アドレスSA0をAiから入力後、アドレ
スSA0はバンクデコーダ18において、クロック信号
AD2LACLKの立ち上がりタイミングに同期して、
消去しようとする消去セクタが含まれたバンクが選択さ
れ、バンクデコーダ19の出力の第2の消去バンク選択
信号TBBK0=Hレベルとなる。
After inputting the address SA0 from Ai, the address SA0 is synchronized with the rising timing of the clock signal AD2LACLK in the bank decoder 18,
The bank including the erase sector to be erased is selected, and the second erase bank selection signal TBBK0 output from the bank decoder 19 becomes H level.

【0105】このHレベルはクロック信号AD2LAC
LKの立ち下がりタイミングまで保持される。すなわ
ち、異バンク情報である第2の消去バンク選択信号TB
BK0=Hレベルが、クロック信号AD2LACLKに
より保持されることを示している。
This H level corresponds to the clock signal AD2LAC.
It is held until the falling timing of LK. That is, the second erase bank selection signal TB which is different bank information.
It indicates that BK0 = H level is held by the clock signal AD2LACLK.

【0106】そして、コマンドコード30hがコマンド
信号DQiよりI/Oバッファ12を介して入力され、
チップイネーブル信号CE/ライトイネーブル信号WE
のどちらか早い方の立ち上がりタイミング、つまり、コ
ントロールバッファ11の出力するクロック信号TWE
=Lレベルに同期して、コマンドコントロール回路15
aからコマンドコントローラ21へ出力される。
Then, the command code 30h is inputted from the command signal DQi through the I / O buffer 12,
Chip enable signal CE / write enable signal WE
Whichever comes first, that is, the clock signal TWE output from the control buffer 11
= Command control circuit 15 in synchronization with the L level
It is output from a to the command controller 21.

【0107】一方、バンク比較回路7において、第1の
消去バンク選択信号TABKiと第2の消去バンク選択
信号TBBKiとを比較し、ここではバンクが同じ、す
なわち、TABK0=1、TBBK0=1の場合である
から比較結果はLレベルとなり、判断結果情報TCOM
P=Lレベルを出力する。
On the other hand, in the bank comparison circuit 7, the first erase bank selection signal TABKi is compared with the second erase bank selection signal TBBKi. Here, if the banks are the same, that is, TABK0 = 1 and TBBK0 = 1. Therefore, the comparison result becomes the L level, and the judgment result information TCOM
Output P = L level.

【0108】バンク比較回路7からの判断結果情報TC
OMP=Lレベルを受けたコマンドコントローラ21か
らは同一バンク情報である消去機能開始信号LACLK
=Hレベルが,セクタラッチ回路22へ出力される。
Judgment result information TC from the bank comparison circuit 7
When the command controller 21 receives the OMP = L level, the erase function start signal LACLK, which is the same bank information, is sent.
= H level is output to the sector latch circuit 22.

【0109】再び図2を参照すると、コマンドコントロ
ーラ21から異バンク情報である消去機能開始信号BK
LACLK=Lレベルを受けたセクタラッチ回路22で
は、nチャネル型MOSトランジスタN30〜N3nは
全て非導通状態になる。
Referring again to FIG. 2, the erase function start signal BK which is different bank information from the command controller 21.
In the sector latch circuit 22 receiving LACLK = L level, all the n-channel type MOS transistors N30 to N3n are turned off.

【0110】一方、コマンドコントローラ21から消去
機能開始信号LACLK=Hレベルを受けたnチャネル
型MOSトランジスタN0〜N1nは全て導通状態にな
る。
On the other hand, all the n-channel type MOS transistors N0 to N1n receiving the erase function start signal LACLK = H level from the command controller 21 are rendered conductive.

【0111】nチャネル型MOSトランジスタN20〜
N2nもセクタ選択情報TSA0〜TSAiのうちTS
A0=Hレベルを受けてnチャネル型MOSトランジス
タN20が導通状態になり、その共通接続接点AにはL
レベルが出力される。
N-channel type MOS transistor N20-
N2n is also TS of the sector selection information TSA0 to TSAi
Upon receiving A0 = H level, the n-channel MOS transistor N20 becomes conductive, and its common connection contact A has L
The level is output.

【0112】このLレベルが極性反転されてHレベルと
なりラッチされることにより、消去したいセクタを含む
バンク内の1のセクタが消去セクタとしてセクタラッチ
回路に保持され、保持されたHレベルと内部アドレスい
よるセクタ選択情報ISA0とが個別に排他的論理和回
路240で比較され、消去セクタ情報LASA0のセク
タ消去を指示するHレベルが一致信号として出力され
る。
This L level is inverted in polarity and becomes H level and is latched, so that one sector in the bank including the sector to be erased is held in the sector latch circuit as an erased sector, and the held H level and internal address. The sector selection information ISA0 to be selected is individually compared by the exclusive OR circuit 240, and the H level of the erase sector information LASA0 that indicates the sector erase is output as a coincidence signal.

【0113】さらに、内部アドレスで生成されたアドレ
スにより、セレクタデコーダ17を介して選択されたセ
クタ選択情報ISA0のHレベルと消去セクタ情報LA
SA0のHレベルとが排他的論理和回路240で比較さ
れる。
Further, the H level of the sector selection information ISA0 selected via the selector decoder 17 and the erase sector information LA are selected by the address generated by the internal address.
The H level of SA0 is compared by the exclusive OR circuit 240.

【0114】比較した結果、双方ともHレベルで一致す
るので、内部アドレスで選択されたセクタを消去すべき
セクタと判断し、そのセクタへ消去動作を行う。
As a result of comparison, since both match at the H level, it is judged that the sector selected by the internal address is the sector to be erased, and the erase operation is performed to that sector.

【0115】次に、Lレベルになるクロック信号AD1
LACLKの立ち下がりタイミングに同期して、セクタ
選択情報TSA0がLレベルになる。
Next, the clock signal AD1 which becomes L level
The sector selection information TSA0 becomes L level in synchronization with the fall timing of LACLK.

【0116】さらに、複数のセクタを消去する場合に
は、6サイクル目の30hと消去したいセクタのアドレ
スSA1〜SAiを順次入力し、消去するセクタ選択情
報TSA1〜SAiを保持する。
Further, when erasing a plurality of sectors, 30h of the sixth cycle and the addresses SA1 to SAi of the sectors to be erased are sequentially input and the sector selection information TSA1 to SAi to be erased is held.

【0117】上述した第1の実施形態では、セクタ消去
機能コマンドサイクルの6サイクル目を前半のサイクル
と後半のサイクルに分け、かつ6サイクル目のアドレス
ホールド時間内で、前半と後半で異なるバンクアドレス
を指定した場合、コマンドコントローラ21から異バン
ク情報である消去機能開始信号BKLACLKの保持パ
ルスが出力され、指定バンク内に含まれる全てのセクタ
情報がセクタラッチ回路22内に消去セクタとして一括
で保持されるので、セクタ消去機能は、1セクタのみの
消去指定だけでなく、バンク単位で全セクタの消去セク
タが指定可能となり、コマンド入力時間を短縮すること
ができる。
In the first embodiment described above, the sixth cycle of the sector erase function command cycle is divided into the first half cycle and the second half cycle, and within the address hold time of the sixth cycle, different bank addresses are used in the first half and the second half. In the case of specifying, the command controller 21 outputs a holding pulse of the erase function start signal BKLACLK, which is different bank information, and all the sector information included in the designated bank is collectively held in the sector latch circuit 22 as an erase sector. Therefore, the sector erasing function can specify not only the erasing of only one sector but also the erasing sectors of all the sectors in a bank unit, and the command input time can be shortened.

【0118】例えば、1バンク消去をしたい場合、従来
は消去コマンドが16サイクル必要だったが、本実施形
態を適用すれば1サイクルで消去することができる。
For example, when it is desired to erase one bank, the erase command has conventionally required 16 cycles, but if this embodiment is applied, the erase command can be erased in one cycle.

【0119】次に、上述した実施形態を適用するフラッ
シュメモリの記憶データ消去方法を説明する。フラッシ
ュメモリの記憶データ消去方法説明用のフローチャート
を示した図4を参照すると、まず、ステップS11にお
いて、フラッシュメモリセルアレイのセクタ消去動作を
nサイクル期間で第1から第nコマンドにより順次実行
するとともに、第nコマンド実行時のアドレスホールド
時間内で、第nサイクル期間の前半で与えられる第1の
消去アドレス(例えばAi=555h)のデコード情報
をバンクデコーダ18に保持する。
Next, a method of erasing stored data in a flash memory to which the above-mentioned embodiment is applied will be described. Referring to FIG. 4, which is a flow chart for explaining a method of erasing stored data in a flash memory, first, in step S11, a sector erasing operation of a flash memory cell array is sequentially executed by first to nth commands in an n cycle period, and Within the address hold time at the time of executing the nth command, the bank decoder 18 holds the decode information of the first erase address (for example, Ai = 555h) given in the first half of the nth cycle period.

【0120】次に、ステップS12において、第nサイ
クル期間の後半で与えられる第2の消去アドレス(例え
ばAi=2AAh)のデコード情報をバンクデコーダ1
9に保持する。
Next, in step S12, the decode information of the second erase address (for example, Ai = 2AAh) given in the latter half of the nth cycle period is transferred to the bank decoder 1.
Hold at 9.

【0121】ステップS13において、保持された第1
および第2の消去アドレス555hおよび2AAhのデ
コード情報が同一バンクを指定しているかバンク比較回
路20で比較する。
In step S13, the first held
Then, the bank comparison circuit 20 compares the decode information of the second erase addresses 555h and 2AAh to specify the same bank.

【0122】ステップS14において、バンク比較回路
20での比較の結果が同一バンクを指定しているときは
バンク内の1セクタの消去と判断し、異なるバンクを指
定しているときはバンク内の全セクタの一括消去と判断
する。
In step S14, when the comparison result in the bank comparison circuit 20 specifies the same bank, it is determined that one sector in the bank is erased, and when different banks are specified, all the banks in the bank are erased. Judge as batch erase of sectors.

【0123】ステップS15において、ステップS14
での判断結果に基づき、フラッシュメモリセルの指定バ
ンク内の1セクタの消去を実行し、あるいはフラッシュ
メモリセルを指定バンク単位に一括消去する。
In step S15, step S14
Based on the result of the judgment in step 1, the erase of one sector in the specified bank of the flash memory cells is executed, or the flash memory cells are collectively erased in the specified bank unit.

【0124】上述した方法により、セクタ消去機能コマ
ンドサイクルの6サイクル目を前半のサイクルと後半の
サイクルに分け、かつ6サイクル目のアドレスホールド
時間内で、前半と後半で異なるバンクアドレスを指定し
て、セクタ消去機能は、1セクタのみの消去指定だけで
なく、バンク単位で全セクタの消去セクタが指定可能と
なり、コマンド入力時間を短縮することができる。
According to the method described above, the sixth cycle of the sector erase function command cycle is divided into the first half cycle and the second half cycle, and different bank addresses are designated in the first half and the second half within the address hold time of the sixth cycle. With the sector erasing function, not only erasing of only one sector can be designated, but also erasing sectors of all sectors can be designated in a bank unit, and command input time can be shortened.

【0125】次に、本発明の第2の実施形態を説明す
る。
Next, a second embodiment of the present invention will be described.

【0126】第2の実施形態の構成図を示した図5を参
照すると、フラッシュメモリ1は、コントロールバッフ
ァ11と、I/Oバッファ12と、アドレスバッファ1
3と、コマンドアドレスデコーダ14と、コマンドコン
トロール回路15aと、内部アドレス生成回路16と、
セクタデコーダ17と、バンクデコーダ18と、セクタ
ラッチ回路22と、コマンドパルス生成回路23とを備
える。
Referring to FIG. 5, which is a block diagram of the second embodiment, the flash memory 1 includes a control buffer 11, an I / O buffer 12, and an address buffer 1.
3, a command address decoder 14, a command control circuit 15a, an internal address generation circuit 16,
It includes a sector decoder 17, a bank decoder 18, a sector latch circuit 22, and a command pulse generation circuit 23.

【0127】すなわち、第1の実施形態との相違点は、
第1の実施形態におけるコマンドコントローラ21に代
えて、コマンドパルス生成回路23を設けたことであ
る。また、コマンドコントロール回路15bは、消去機
能開始信号として、例えばコマンド50hおよびコマン
ド30hに対応する通知信号T50およびT30をコマ
ンドパルス生成回路23にそれぞれ出力する。
That is, the difference from the first embodiment is that
A command pulse generation circuit 23 is provided in place of the command controller 21 in the first embodiment. Further, the command control circuit 15b outputs notification signals T50 and T30 corresponding to, for example, the command 50h and the command 30h to the command pulse generation circuit 23 as the erase function start signal.

【0128】さらに、セクタラッチ回路22は前述した
図3と同様の回路構成であり、セクタデコーダ17から
の消去すべきセクタ選択情報TSAi/ISAiとバン
クデコーダ18からの第1の消去バンク選択信号TAB
Kiとコマンドコントローラ21に代わるコマンドパル
ス生成回路23からの消去機能開始信号BKLACLK
を入力とする。
Further, the sector latch circuit 22 has the same circuit configuration as that of FIG. 3 described above, and includes sector selection information TSAi / ISAi to be erased from the sector decoder 17 and a first erase bank selection signal TAB from the bank decoder 18.
Ki and the erase function start signal BKLACLK from the command pulse generation circuit 23 in place of the command controller 21.
Is input.

【0129】この実施形態では、消去コマンドにおい
て、バンク単位で一括でラッチさせる場合はコマンド信
号DQiにコマンドコード50hを入力し、コマンドコ
ントロール回路15bがコマンドコード50hを認識
し、コマンドパルス生成回路23にバンク単位での一括
ラッチであることを知らせる信号が通知信号T50であ
る。セクタ単位でラッチさせる場合はコマンド信号DQ
iにコマンドコード30hを入力し、コマンドコントロ
ール回路15bがコマンドコード30hを認識し、コマ
ンドパルス生成回路23にセクタ単位でのラッチである
ことを知らせる信号が通知信号T30である。
In this embodiment, in the erase command, in the case of batch latching in bank units, the command code 50h is input to the command signal DQi, the command control circuit 15b recognizes the command code 50h, and the command pulse generating circuit 23 receives the command code 50h. The notification signal T50 is a signal for notifying that it is a batch latch in bank units. Command signal DQ when latching in sector units
The notification signal T30 is a signal that inputs the command code 30h to i, the command control circuit 15b recognizes the command code 30h, and notifies the command pulse generation circuit 23 that the latch is a sector unit.

【0130】ここで、第2の実施形態の動作説明用タイ
ミングチャートを示した図6を併せて参照すると、セク
タ消去機能コマンド5サイクル目が成立後、6コマンド
目において、チップイネーブル信号CE/ライトイネー
ブル信号WEのどちらか遅い立ち下がりタイミングに同
期して、消去したいアドレス(例えばSA0)をアドレ
ス信号Aiに入力後、アドレスバッファ13およびセク
タデコーダ17を介して消去セクタが選択され、セクタ
デコーダ17から出力される消去すべきセクタ選択情報
TSA0=Hレベルとなり、そのセクタ選択情報がクロ
ック信号AD1LACLKに同期して保持される。ま
た、バンクデコーダ18からは第1の消去バンク選択信
号TABK0=Hレベルで入力されている。
Referring also to FIG. 6 showing the timing chart for explaining the operation of the second embodiment, the chip enable signal CE / write is executed at the sixth command after the fifth cycle of the sector erase function command is established. After inputting an address to be erased (for example, SA0) to the address signal Ai in synchronization with the slower falling timing of the enable signal WE, the erase sector is selected via the address buffer 13 and the sector decoder 17, and the sector decoder 17 The outputted sector selection information TSA0 to be erased becomes H level, and the sector selection information is held in synchronization with the clock signal AD1LACLK. Further, the first erase bank selection signal TABK0 = H level is input from the bank decoder 18.

【0131】一方、コマンドコード50hがDQiより
I/Oバッファ12を介して入力され、チップイネーブ
ル信号CE/ライトイネーブル信号WEのどちらか早い
方の立ち上がりタイミングで決まるクロック信号TWE
=Lレベルに同期して、コマンドコントロール回路15
bに取り込まれ保持される。
On the other hand, the command code 50h is input from the DQi via the I / O buffer 12, and the clock signal TWE determined by the rising edge timing of the chip enable signal CE / write enable signal WE, whichever is earlier.
= Command control circuit 15 in synchronization with the L level
It is taken in and held in b.

【0132】コマンドコントロール回路15bでは、取
り込んだコマンドコード50hを通知信号T50として
コマンドパルス生成回路23に出力する。コマンドパル
ス生成回路23においては、通知信号T50を判断し、
T50であることを認識すると、バンク一括で保持する
ための消去機能開始信号BKLACLK=Hレベルとし
て出力する。
The command control circuit 15b outputs the fetched command code 50h to the command pulse generation circuit 23 as a notification signal T50. In the command pulse generation circuit 23, the notification signal T50 is judged,
When recognizing that T50, the erase function start signal BKLACLK for holding all the banks collectively is output as the H level.

【0133】消去機能開始信号BKLACLK=Hレベ
ルの1パルスを受けたセクタラッチ回路22では、nチ
ャネル型MOSトランジスタN30〜N3nは全て導通
状態になり、nチャネル型MOSトランジスタN40〜
N4nも、第1の実施形態同様に、第1の消去バンク選
択信号TABK0=Hレベルを受けて全て導通状態にな
り、それぞれの共通接続接点AにはLレベルが出力され
る。
In the sector latch circuit 22 which has received one pulse of the erase function start signal BKLACLK = H level, all the n-channel type MOS transistors N30 to N3n become conductive, and the n-channel type MOS transistors N40 to N40-.
Similarly to the first embodiment, N4n also becomes conductive when receiving the first erase bank selection signal TABK0 = H level, and L level is output to each common connection contact A.

【0134】その共通接続接点AのLレベルが極性反転
されてHレベルとなりラッチされることにより、消去し
たいセクタを含むバンク内の全てのセクタが消去セクタ
としてセクタラッチ回路に保持される。
Since the L level of the common connection contact A is inverted to the H level and latched, all the sectors in the bank including the sector to be erased are held in the sector latch circuit as erased sectors.

【0135】保持されたHレベルと内部アドレスによる
セクタ選択情報ISA0〜ISAiとが個別に排他的論
理和回路240から24nで比較され、消去セクタ情報
LASAi〜LASAi+7それぞれのセクタ消去を指
示するHレベルが一致信号として出力される。
The held H level and the sector selection information ISA0 to ISAi by the internal address are individually compared by the exclusive OR circuits 240 to 24n, and the H level indicating the sector erase of each of the erase sector information LASAi to LASAi + 7 is obtained. It is output as a coincidence signal.

【0136】一方、従来通り6サイクル目にコマンドコ
ード30hを入力した場合、コマンドコード30hがコ
マンド信号DQiよりI/Oバッファ12を介して入力
され、チップイネーブル信号CE/ライトイネーブル信
号WEのどちらか遅い方の立ち下がりタイミングで決ま
るクロック信号TWE=Hレベルに同期して、コマンド
コントロール回路15bに取り込まれ保持される。
On the other hand, when the command code 30h is input in the sixth cycle as in the conventional case, the command code 30h is input from the command signal DQi via the I / O buffer 12, and either the chip enable signal CE or the write enable signal WE is input. The signal is fetched and held in the command control circuit 15b in synchronization with the clock signal TWE = H level which is determined by the later falling timing.

【0137】コマンドコントロール回路15bでは、取
り込んだコマンドコード30hを通知信号T30として
コマンドパルス生成回路23に出力する。コマンドパル
ス生成回路23においては、通知信号T30を判断し、
T30であることを認識すると1セクタを保持するため
の消去機能開始信号LACLK=Hレベルとして出力す
る。
The command control circuit 15b outputs the fetched command code 30h to the command pulse generation circuit 23 as a notification signal T30. In the command pulse generation circuit 23, the notification signal T30 is judged,
When recognizing that T30, the erase function start signal LACLK for holding one sector is output as the LACLK = H level.

【0138】1セクタ選択情報となる消去機能開始信号
LACLK=Hレベルの1パルスを受け、消去機能開始
信号BKLACLK=Lレベルを受けたセクタラッチ回
路22では、消去機能開始信号BKLACLK=Lレベ
ルによりnチャネル型MOSトランジスタN30〜N3
nは全て非導通状態になる。
In the sector latch circuit 22 which has received one pulse of the erase function start signal LACLK = H level serving as one sector selection information and has received the erase function start signal BKLACLK = L level, the n channel is set by the erase function start signal BKLACLK = L level. Type MOS transistors N30 to N3
All n are non-conductive.

【0139】一方、コマンドコントローラ21からLA
CLK=Lレベルを受けたnチャネル型MOSトランジ
スタN0〜N1nは全て導通状態になる。
On the other hand, from the command controller 21 to LA
Upon receiving CLK = L level, all n-channel type MOS transistors N0 to N1n are rendered conductive.

【0140】nチャネル型MOSトランジスタN20〜
N2nも信号TSA0〜TSAiのうちTSA0=Hレ
ベルを受けてnチャネル型MOSトランジスタN20が
導通状態になり、その共通接続接点AにはLレベルが出
力される。
N-channel type MOS transistor N20-
N2n also receives TSA0 = H level of signals TSA0 to TSAi, n channel type MOS transistor N20 becomes conductive, and L level is output to common connection contact A thereof.

【0141】このLレベルが極性反転されてHレベルと
なりラッチされることにより、消去したいセクタを含む
バンク内の1のセクタが消去セクタとしてセクタラッチ
回路24に保持され、保持されたHレベルと内部アドレ
スISA0とが個別に排他的論理和回路240で比較さ
れ、消去セクタ情報LASA0のセクタ消去を指示する
Hレベルが一致信号として出力される。
This L level is inverted in polarity and becomes H level and is latched, so that one sector in the bank including the sector to be erased is held in the sector latch circuit 24 as an erase sector, and the held H level and internal address. ISA0 is individually compared by the exclusive OR circuit 240, and the H level indicating the sector erase of the erase sector information LASA0 is output as a coincidence signal.

【0142】上述した第2の実施形態では、一例として
コマンドコード50hおよびコマンドコード30hによ
り、バンク一括消去か1セクタ消去かを決定することが
できるので、第1の実施形態のような、バンクデコーダ
19,バンク比較回路20およびコマンドコントローラ
21を必要としない、チップ面積を小さくできるフラッ
シュメモリを提供する。
In the above-described second embodiment, as an example, it is possible to determine the bank batch erase or the one-sector erase by the command code 50h and the command code 30h. Therefore, the bank decoder as in the first embodiment is used. Provided is a flash memory which can reduce the chip area without requiring the bank comparison circuit 20, the bank comparison circuit 20, and the command controller 21.

【0143】また、第1の実施形態同様に、セクタ消去
機能は、1セクタのみの消去指定だけでなく、バンク単
位で全セクタの消去セクタが指定可能となり、コマンド
入力時間を短縮することができる。
Further, as in the first embodiment, the sector erase function can specify not only erase of one sector but also erase sectors of all sectors in a bank unit, and command input time can be shortened. .

【0144】[0144]

【発明の効果】上述したように、本発明のフラッシュメ
モリおよびその記憶データ消去方法は、セクタ消去機能
コマンドサイクルの6サイクル目を前半のサイクルと後
半のサイクルに分け、かつ6サイクル目のアドレスホー
ルド時間内で、前半と後半で異なるバンクアドレスを指
定した場合、コマンドコントローラ21から消去機能開
始信号BKLACLKの保持パルスが出力され、指定バ
ンク内に含まれる全てのセクタ情報がセクタラッチ回路
22内に消去セクタとして一括で保持されるので、セク
タ消去機能は、1セクタのみの消去指定だけでなく、バ
ンク単位で全セクタの消去セクタが指定可能となり、コ
マンド入力時間を短縮することができる。
As described above, according to the flash memory and the stored data erasing method of the present invention, the sixth cycle of the sector erase function command cycle is divided into the first half cycle and the second half cycle, and the address hold of the sixth cycle is performed. When different bank addresses are designated in the first half and the second half within the time, the holding pulse of the erase function start signal BKLACLK is output from the command controller 21, and all the sector information included in the designated bank is erased in the sector latch circuit 22. The sector erasing function can designate not only the erasing designation of only one sector but also the erasing sectors of all the sectors in a bank unit, and the command input time can be shortened.

【0145】また、予め指定した第1のコマンドコード
(例50h)および第2のコマンドコード(例30h)
により、バンク一括消去か1セクタ消去かを決定するこ
とができるので、異なる消去バンク情報を得るためのバ
ンクデコーダ手段、同一バンクか異なるバンクかを判断
するバンク比較手段を必要としないので、その分だけチ
ップ面積を小さくできるフラッシュメモリを提供する。
Also, a first command code (example 50h) and a second command code (example 30h) designated in advance are used.
Since it is possible to determine whether the bank is collectively erased or one sector is erased, there is no need for a bank decoder means for obtaining different erased bank information and a bank comparison means for determining whether the bank is the same bank or different banks. Provide a flash memory that can reduce the chip area only.

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

【図1】本発明のフラッシュメモリの第1の実施形態の
主要部構成図である。
FIG. 1 is a configuration diagram of main parts of a first embodiment of a flash memory of the present invention.

【図2】セクタラッチ回路22の回路図である。FIG. 2 is a circuit diagram of a sector latch circuit 22.

【図3】第1の実施形態の動作説明用タイミングチャー
トである。
FIG. 3 is a timing chart for explaining the operation of the first embodiment.

【図4】本発明の第1の実施形態における記憶データ消
去方法説明のフローチャートである。
FIG. 4 is a flowchart illustrating a stored data erasing method according to the first embodiment of the present invention.

【図5】第2の実施形態の構成図である。FIG. 5 is a configuration diagram of a second embodiment.

【図6】第2の実施形態の動作説明用タイミングチャー
トである。
FIG. 6 is a timing chart for explaining the operation of the second embodiment.

【図7】従来のフラッシュメモリの構成例を示す図であ
る。
FIG. 7 is a diagram showing a configuration example of a conventional flash memory.

【図8】従来のセクタラッチ回路24の回路図である。FIG. 8 is a circuit diagram of a conventional sector latch circuit 24.

【図9】従来のセクタ消去機能の動作説明用コマンドタ
イミングチャートである。
FIG. 9 is a command timing chart for explaining the operation of the conventional sector erase function.

【図10】セクタ消去機能のフローチャートである。FIG. 10 is a flowchart of a sector erase function.

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

11 コントロールバッファ 12 I/Oバッファ 13 アドレスバッファ 14 コマンドアドレスデコーダ 15a,15b,15c コマンドコントロール回路 16 内部アドレス生成回路 17 セクタデコーダ 18,19 バンクデコーダ 20 バンク比較回路 21 コマンドコントローラ 22,24 セクタラッチ回路 23 コマンドパルス生成回路 P10,…,P1n,P20 pチャネル型MOSト
ランジスタ N10,…,N1n,N20,…,N2n,N30,
…,N3n,N40,…,N4n,N50,N60
Nチャネル型MOSトランジスタ 220,…,22n,230,…,23n,250,2
60 インバータ 240,…,24n,270 排他的論理和回路 TABKi 第1の消去バンク選択信号 TBBKi 第2の消去バンク選択信号 TWE,AD1LACLK,AD1LACLK クロ
ック信号 ISAi,TSAi セクタ選択情報 BKLACLK,LACLK 消去機能開始信号 DQi コマンド信号 Ai アドレス信号 TCOMP 判断結果情報 LASAi 消去セクタ情報
11 Control Buffer 12 I / O Buffer 13 Address Buffer 14 Command Address Decoder 15a, 15b, 15c Command Control Circuit 16 Internal Address Generation Circuit 17 Sector Decoder 18, 19 Bank Decoder 20 Bank Comparison Circuit 21 Command Controller 22, 24 Sector Latch Circuit 23 Command , P1n, P20 p-channel MOS transistors N10, ..., N1n, N20, ..., N2n, N30,
..., N3n, N40, ..., N4n, N50, N60
N channel type MOS transistors 220, ..., 22n, 230, ..., 23n, 250, 2
60 inverters 240, ..., 24n, 270 exclusive OR circuit TABKi first erase bank selection signal TBBKi second erase bank selection signal TWE, AD1LACLK, AD1LACLK clock signal ISAi, TSAi sector selection information BKLACLK, LACLK erase function start signal DQi command signal Ai address signal TCOMP judgment result information LASAi erase sector information

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 フラッシュメモリセルアレイのセクタ消
去動作をnサイクル期間で第1から第nコマンドにより
順次実行するとともに、前記第nコマンド実行時のアド
レスホールド時間内で、前記第nサイクル期間の前半で
与えられる第1の消去アドレスのデコード情報を保持
し、さらに前記第nサイクル期間の後半で与えられる第
2の消去アドレスのデコード情報を保持するとともに、
保持された前記第1および前記第2の消去アドレスのデ
ーコード情報が同一バンクを指定しているか比較する機
能を備えたことを特徴とするフラッシュメモリ。
1. A sector erasing operation of a flash memory cell array is sequentially executed by first to nth commands in an n cycle period, and in the first half of the nth cycle period within an address hold time when the nth command is executed. It holds the decode information of the given first erase address, and further holds the decode information of the second erase address given in the latter half of the n-th cycle period.
A flash memory having a function of comparing whether the held data code of the first and second erase addresses designates the same bank.
【請求項2】 前記比較の結果が同一バンクを指定して
いるときは前記バンク内の1セクタの消去と判断し、異
なるバンクを指定しているときは前記バンク内の全セク
タの一括消去と判断する消去判断機能を備えた請求項1
記載のフラッシュメモリ。
2. When the result of the comparison specifies the same bank, it is determined that one sector in the bank is erased, and when different banks are specified, all sectors in the bank are collectively erased. A erasure judgment function for judging is provided.
Flash memory as described.
【請求項3】 前記第1の消去アドレスで指定されたバ
ンク内全セクタの一括消去セクタ情報と前記第2の消去
アドレスで指定されたバンク情報とを保持するための消
去セクタ情報保持機能を備える請求項1記載のフラッシ
ュメモリ。
3. An erase sector information holding function for holding the batch erase sector information of all the sectors in the bank specified by the first erase address and the bank information specified by the second erase address. The flash memory according to claim 1.
【請求項4】 フラッシュメモリセルのセクタ消去機能
コマンドの入力時に、消去を行うセクタ情報をセクタ単
位で保持させるための第1のコマンドコードを入力して
1セクタのみの消去セクタとして保持し、バンク単位で
一括して保持させる第2のコマンドコードを入力してバ
ンク内の全てのセクタを消去セクタとして保持するセク
タ消去の機能を備えることを特徴とするフラッシュメモ
リ。
4. When a sector erase function command of a flash memory cell is input, a first command code for holding sector information to be erased in sector units is input and retained as an erase sector of only one sector, and a bank A flash memory having a sector erasing function of inputting a second command code to be held collectively in units and holding all sectors in a bank as erase sectors.
【請求項5】 フラッシュメモリセルのセクタ消去コマ
ンド実行時のアドレスホールド時間内に、消去セクタア
ドレスを2サイクルに分けて入力するとともに、第1の
サイクルを消去セクタおよびその消去セクタを含むバン
ク情報として保持し、第2のサイクルを他の消去バンク
情報として保持し、これら消去セクタを含むバンク情報
と他の消去バンク情報との比較結果に応じて同一バンク
を指定しているか、異なるバンクを指定しているか認識
し、同一バンク指定ならセクタ消去、異なるバンク指定
ならバンク消去と判断する機能を備えたことを特徴とす
るフラッシュメモリ。
5. An erase sector address is input in two cycles within an address hold time when a sector erase command of a flash memory cell is executed, and the first cycle is used as an erase sector and bank information including the erase sector. Hold and hold the second cycle as other erase bank information, and specify the same bank or a different bank according to the comparison result of the bank information including these erase sectors and other erase bank information. The flash memory has a function of recognizing whether or not the same bank is designated, and determining that the sector is erased if the same bank is designated, and determining that the bank is erased if different banks are designated.
【請求項6】 消去セクタアドレスを1サイクル内で2
分割して与えることにより、1バンク内の全セクタの一
括消去を1コマンドサイクルで実行する機能を有する請
求項1〜5記載のフラッシュメモリ。
6. The erase sector address is set to 2 in one cycle.
6. The flash memory according to claim 1, wherein the flash memory has a function of collectively erasing all the sectors in one bank in one command cycle by giving the divided data.
【請求項7】 前記消去セクタを含むバンク情報として
保持する手段は、前記第1のサイクルで消去セクタを指
定するアドレスに応じて前記消去セクタを含む消去バン
クの選択信号を生成し、かつ生成した前記選択信号をチ
ップイネーブルまたはライトイネーブル信号に同期した
第1のクロック信号でラッチする第1のバンクデコーダ
手段である請求項6記載のフラッシュメモリ。
7. The means for holding as bank information including the erase sector generates and generates an erase bank selection signal including the erase sector in accordance with an address designating the erase sector in the first cycle. 7. The flash memory according to claim 6, which is first bank decoder means for latching the selection signal with a first clock signal synchronized with a chip enable or write enable signal.
【請求項8】 前記他のバンク情報として保持する手段
は、前記第2のサイクルで消去セクタを指定するアドレ
スに応じて前記消去セクタを含む消去バンクの選択信号
を生成し、かつ生成した前記選択信号をチップイネーブ
ルまたはライトイネーブル信号に同期した第2のクロッ
ク信号でラッチする第2のバンクデコーダ手段である請
求項6記載のフラッシュメモリ。
8. The means for holding as the other bank information generates a selection signal of an erase bank including the erase sector according to an address designating an erase sector in the second cycle, and the generated selection. 7. The flash memory according to claim 6, which is a second bank decoder means for latching a signal with a second clock signal synchronized with the chip enable or write enable signal.
【請求項9】 前記同一バンクを指定しているか、前記
異なるバンクを指定しているか認識する手段は、前記セ
クタ消去機能コマンドの完了情報と前記比較結果の情報
とからセクタラッチかバンクラッチかを判断し、その判
断結果のパルス信号をそれぞれ出力するコマンド制御手
段である請求項6記載のフラッシュメモリ。
9. The means for recognizing whether the same bank is designated or the different bank is designated is determined from sector latch function command completion information and the comparison result information whether it is a sector latch or a bank latch. 7. The flash memory according to claim 6, wherein the flash memory is command control means for outputting a pulse signal as a result of the determination.
【請求項10】 前記セクタ消去または前記バンク消去
を判断すべく機能するために、前記消去コマンド時の消
去を行うための前記同一バンクまたは異なるバンクを指
示する情報をラッチするとともに、このラッチしたセク
タ情報と、消去機能開始後に内部アドレス生成手段で生
成されたアドレスに基づきセクタデコーダを介し選択さ
れたセクタ情報とを比較し、一致した場合、前記内部ア
ドレスで選択されたセクタを消去すべきセクタと判断
し、そのセクタへ消去動作を行い、比較結果が異なる場
合、前記内部アドレスは次のセクタアドレスを出力して
一致、不一致の判断を行う第1のセクタラッチ手段を有
する請求項6記載のフラッシュメモリ。
10. In order to function to judge the sector erase or the bank erase, the information indicating the same bank or a different bank for performing the erase at the erase command is latched and the latched sector is latched. The information is compared with the sector information selected via the sector decoder based on the address generated by the internal address generation means after the start of the erase function, and if they match, the sector selected by the internal address is determined to be the sector to be erased. 7. The flash memory according to claim 6, further comprising first sector latch means for judging, performing an erasing operation on the sector, and outputting a next sector address as the internal address to judge whether the sector address matches or does not match when the comparison result is different. .
【請求項11】 前記セクタ消去として機能するため
に、与えられたコマンド信号を認識し、セクタ単位でラ
ッチさせる場合はセクタ単位でのラッチであることを前
記第1のコードで出力し、バンク単位で一括ラッチさせ
る場合はバンク単位での一括ラッチであることを前記第
2のコードで出力するコマンドコントロール手段と、前
記第1および前記第2のコードを受けてそれぞれに対応
する第1および第2のコマンドラッチパルスを生成する
コマンドパルス生成手段と、前記第1および前記第2の
ラッチパルスと消去すべきセクタアドレスをデコードし
たセクタ選択情報とを比較しセクタ消去制御信号を出力
する第2のセクタラッチ手段とを有する請求項4記載の
フラッシュメモリ。
11. When recognizing a given command signal to function as the sector erase and latching in sector units, it is output in the first code that the latch is in sector units, and in bank units. In the case of batch latching by the command control means for outputting the batch latch in bank units with the second code, and the first and second corresponding to the first and second codes respectively. And a second pulse latch for outputting a sector erase control signal by comparing the first and second latch pulses with sector selection information obtained by decoding the sector address to be erased. The flash memory according to claim 4, further comprising:
【請求項12】 前記第2のセクタラッチ手段は、電源
電位および接地電位間に第1のpチャネル型MOSトラ
ンジスタ、第1のnチャネル型MOSトランジスタおよ
び第2のnチャネル型MOSトランジスタを直列接続状
態で挿入接続し、前記第1のpチャネル型MOSトラン
ジスタのゲートに消去期間中接地電位になる信号を与
え、第1のnチャネル型MOSトランジスタのゲートに
バンク内一括消去セクタ情報を与え、第2のnチャネル
型MOSトランジスタのゲートに前記第1の消去アドレ
スに基づく消去セクタ選択情報を与え、前記第1のpチ
ャネル型MOSトランジスタおよび第1のnチャネル型
MOSトランジスタの直列接続点と接地電位間に第3の
nチャネル型MOSトランジスタおよび第4のnチャネ
ル型MOSトランジスタを直列接続状態で挿入接続し、
第3のnチャネル型MOSトランジスタのゲートに消去
バンク情報を与え、第4のnチャネル型MOSトランジ
スタのゲートに内部アドレスに基づくセクタ選択情報を
与え、さらに前記直列接続点に、第1および第2のイン
バータそれぞれの出力端を他方の入力端に接続したラッ
チの入力端を接続し、前記ラッチの出力端に排他的論理
和回路の一方の入力端を接続し他方の入力端に内部アド
レスに基づくセクタ選択情報を入力する構成を1組とし
てセクタアドレス数分設け、そのセクタアドレス数分の
組をさらにバンク数分設けて構成する請求項11記載の
フラッシュメモリ。
12. The second sector latch means connects a first p-channel MOS transistor, a first n-channel MOS transistor and a second n-channel MOS transistor in series between a power supply potential and a ground potential. Signal is supplied to the gate of the first p-channel MOS transistor at the ground potential during the erasing period, and the gate of the first n-channel MOS transistor is supplied with the batch-in-bank erase sector information. Erase sector selection information based on the first erase address is applied to the gate of the n-channel MOS transistor, and between the series connection point of the first p-channel MOS transistor and the first n-channel MOS transistor and the ground potential. A third n-channel MOS transistor and a fourth n-channel MOS transistor Insert and connect in series connection,
Erase bank information is given to the gate of the third n-channel MOS transistor, sector selection information based on the internal address is given to the gate of the fourth n-channel MOS transistor, and the first and second portions are connected to the series connection point. Of each of the inverters is connected to the other input terminal of the latch, the output terminal of the latch is connected to one input terminal of the exclusive OR circuit, and the other input terminal is based on the internal address. 12. The flash memory according to claim 11, wherein one set of configurations for inputting sector selection information is provided for the number of sector addresses, and sets for the number of sector addresses are provided for the number of banks.
【請求項13】 フラッシュメモリセルのセクタ消去コ
マンド実行時のアドレスホールド時間内に、アドレスバ
ッファへ消去セクタアドレスを2サイクルに分けて与
え、第1のサイクルを消去セクタおよびその消去セクタ
を含むバンク情報として保持し、第2のサイクルを他の
消去バンク情報として保持し、保持した前記消去セクタ
を含むバンク情報と前記他の消去バンク情報との比較結
果に応じて同一バンクを指定しているか、異なるバンク
を指定しているか認識し、同一バンク指定ならセクタ消
去を行い、異なるバンク指定ならバンク消去を行うこと
を特徴とするフラッシュメモリの記憶データ消去方法。
13. The erase sector address is applied to the address buffer in two cycles within the address hold time when the sector erase command of the flash memory cell is executed, and the first cycle includes the erase sector and bank information including the erase sector. And the second cycle is held as other erase bank information, and the same bank is designated or different depending on the comparison result of the held bank information including the erase sector and the other erase bank information. A method of erasing stored data in a flash memory, which recognizes whether or not a bank is designated, and erases sectors if the same bank is designated, and erases banks if different banks are designated.
【請求項14】 1バンク内の全セクタの一括消去を1
コマンドサイクルで実行させる請求項12記載のフラッ
シュメモリの記憶データ消去方法。
14. A batch erase operation for all sectors in one bank is performed.
13. The method for erasing data stored in a flash memory according to claim 12, which is executed in a command cycle.
【請求項15】 フラッシュメモリセルアレイのセクタ
消去動作をnサイクル期間で第1から第nコマンドによ
り順次実行するとともに、前記第nコマンド実行時のア
ドレスホールド時間内で、前記第nサイクル期間の前半
で与えられる第1の消去アドレスのデコード情報を第1
のバンクデコーダに保持するステップと、 前記第nサイクル期間の後半で与えられる第2の消去ア
ドレスのデコード情報を第2のバンクデコーダに保持す
るステップと、 保持された前記第1および前記第2の消去アドレスのデ
コード情報が同一バンクを指定しているか比較回路で比
較するステップと、 前記比較の結果が同一バンクを指定しているときは前記
バンク内の1セクタの消去と判断し、異なるバンクを指
定しているときは前記バンク内の全セクタの一括消去と
判断するステップと、 前記判断に基づき前記フラッシュメモリセルを消去する
ステップとを備えることを特徴とするフラッシュメモリ
の記憶データ消去方法。
15. A sector erase operation of a flash memory cell array is sequentially executed by first to nth commands in an n cycle period, and within an address hold time at the time of executing the nth command, in the first half of the nth cycle period. The decode information of the given first erase address is set to the first
Holding the decoded information of the second erase address given in the latter half of the n-th cycle period in the second bank decoder, and holding the held first and second A comparison circuit compares whether the decode information of the erase address specifies the same bank, and when the result of the comparison specifies the same bank, it is judged that one sector in the bank is erased, and different banks are selected. A method for erasing stored data in a flash memory, comprising: erasing all the sectors in the bank when specified, and erasing the flash memory cell based on the determination.
JP2001219560A 2001-07-19 2001-07-19 Flash memory and its storage data erasing method Pending JP2003036680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001219560A JP2003036680A (en) 2001-07-19 2001-07-19 Flash memory and its storage data erasing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001219560A JP2003036680A (en) 2001-07-19 2001-07-19 Flash memory and its storage data erasing method

Publications (1)

Publication Number Publication Date
JP2003036680A true JP2003036680A (en) 2003-02-07

Family

ID=19053541

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001219560A Pending JP2003036680A (en) 2001-07-19 2001-07-19 Flash memory and its storage data erasing method

Country Status (1)

Country Link
JP (1) JP2003036680A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7564720B2 (en) 2006-07-18 2009-07-21 Spansion Llc Nonvolatile storage and erase control

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7564720B2 (en) 2006-07-18 2009-07-21 Spansion Llc Nonvolatile storage and erase control

Similar Documents

Publication Publication Date Title
JP4188645B2 (en) Nonvolatile semiconductor memory device
JP4287158B2 (en) NAND flash memory device
JP4965106B2 (en) Nonvolatile memory device and high-speed programming method thereof
US7212426B2 (en) Flash memory system capable of inputting/outputting sector data at random
US7110301B2 (en) Non-volatile semiconductor memory device and multi-block erase method thereof
US6282121B1 (en) Flash memory device with program status detection circuitry and the method thereof
KR100974779B1 (en) Nand system with a data write frequency greater than a command-and-address-load frequency
US8023341B2 (en) Method and apparatus for address allotting and verification in a semiconductor device
US6930919B2 (en) NAND-type flash memory device having array of status cells for storing block erase/program information
JP5931236B1 (en) Semiconductor device control circuit and method, and semiconductor device
JP2006107691A (en) Semiconductor memory device, package thereof and memory card using the same
JP2004095001A (en) Nonvolatile semiconductor storage device, system for incorporating nonvolatile semiconductor storage device and method for detecting defective block
JP2006024347A (en) Nonvolatile memory system which executes bit scanning program
KR100706226B1 (en) Non-volatile semiconductor memory with x8/x16 operation mode using address control
US20050135145A1 (en) Synchronous flash memory device and method of operating the same
KR100560773B1 (en) Semiconductor memory device capable of controlling burst length without resetting mode of operation and memory system including the same
KR100873617B1 (en) Active Driver Control Circuit of Semiconductor Memory Apparatus
EP1248267A2 (en) Semiconductor memory device and information processing system
JP2008090995A (en) Flash memory device and its erasing method
JP2003036680A (en) Flash memory and its storage data erasing method
US20080192547A1 (en) User configurable commands for flash memory
KR100852923B1 (en) Semiconductor memory
JP2006085896A (en) Nonvolatile memory device for executing accelerated bit scanning program
JP2008181596A (en) Semiconductor storage device
KR100560800B1 (en) Non-volatile memory device and method for enhancing program speed thereof

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040727

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040927

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050405

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050802