JP4682261B2 - Method for non-volatile memory and class-based update block replacement rules - Google Patents

Method for non-volatile memory and class-based update block replacement rules Download PDF

Info

Publication number
JP4682261B2
JP4682261B2 JP2009528456A JP2009528456A JP4682261B2 JP 4682261 B2 JP4682261 B2 JP 4682261B2 JP 2009528456 A JP2009528456 A JP 2009528456A JP 2009528456 A JP2009528456 A JP 2009528456A JP 4682261 B2 JP4682261 B2 JP 4682261B2
Authority
JP
Japan
Prior art keywords
block
update
memory
blocks
sector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009528456A
Other languages
Japanese (ja)
Other versions
JP2010503929A5 (en
JP2010503929A (en
Inventor
ティ−. リン,ジェイソン
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SanDisk Corp
Original Assignee
SanDisk Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from US11/532,467 external-priority patent/US7774392B2/en
Priority claimed from US11/532,456 external-priority patent/US7779056B2/en
Application filed by SanDisk Corp filed Critical SanDisk Corp
Publication of JP2010503929A publication Critical patent/JP2010503929A/en
Publication of JP2010503929A5 publication Critical patent/JP2010503929A5/ja
Application granted granted Critical
Publication of JP4682261B2 publication Critical patent/JP4682261B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing
    • G06F12/023Free address space management
    • G06F12/0238Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
    • G06F12/0246Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2212/00Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
    • G06F2212/72Details relating to flash memory management
    • G06F2212/7202Allocation control and policies

Description

本発明は、一般的には、不揮発性半導体メモリに関し、さらに詳しくは、データを記憶するために同時に開放中のブロックのプールの置換を管理するための改良されたシステムを伴うメモリブロック管理システムを有するものに関する。   The present invention relates generally to non-volatile semiconductor memory, and more particularly to a memory block management system with an improved system for managing the replacement of a pool of open blocks simultaneously for storing data. It relates to what you have.

電荷を不揮発的に記憶することができる固体メモリであり、特に、小形形状のファクタカードとしてパッケージ化されたEEPROMおよびフラッシュEEPROMの形態を取るものが、最近、様々な移動および携帯装置、とりわけ情報機器および一般消費者向け電子製品における記憶装置の選択肢となってきている。同じく固体メモリであるRAM(ランダムアクセスメモリ)とは異なり、フラッシュメモリは不揮発性であり、電源を切った後でもその記憶したデータを保持する。また、ROM(読み出し専用メモリ)とは異なり、フラッシュメモリは、ディスク記憶装置と同様に書き換え可能である。高いコストにもかかわらず、フラッシュメモリは、大容量記憶装置の利用の際にますます使用されるようになっている。従来の大容量記憶装置は、ハードドライブおよびフロッピーディスクなどの回転磁気媒体に基づき、移動および携帯環境には不適切である。というのは、ディスクドライブはかさばりがちであり、機械的な故障が生じやすく、大きな待ち時間および高電力という要件を有するからである。これらの望ましくない属性により、ディスクをベースとした記憶装置は、ほとんどの移動および携帯の利用において実用的でないものとなっている。他方、フラッシュメモリは、埋め込み形および着脱可能なカードの形態の両方で、小さいサイズ、低電力消費、高速および高い信頼性という特徴が理由で、移動および携帯環境に理想的なほど適している。   Solid state memories that can store charge in a nonvolatile manner, particularly in the form of EEPROM and flash EEPROM packaged as small form factor cards, have recently been used in a variety of mobile and portable devices, especially information equipment. And it has become an option for storage devices in consumer electronic products. Unlike RAM (random access memory), which is also a solid-state memory, flash memory is non-volatile and retains stored data even after the power is turned off. Unlike ROM (read-only memory), flash memory is rewritable in the same way as a disk storage device. Despite the high cost, flash memory is increasingly used when using mass storage devices. Conventional mass storage devices are based on rotating magnetic media such as hard drives and floppy disks and are not suitable for mobile and portable environments. This is because disk drives tend to be bulky, prone to mechanical failure, and have high latency and high power requirements. These undesirable attributes make disk-based storage devices impractical for most mobile and portable uses. On the other hand, flash memory is ideally suited for mobile and portable environments because of its small size, low power consumption, high speed and high reliability, both in the form of embedded and removable cards.

フラッシュEEPROMは、消去可能な不揮発性メモリであること、およびメモリセルに新たなデータを書き込むまたは「プログラム」するという点で、EEPROM(電気的に消去可能でプログラム可能な読み出し専用メモリ)に類似している。両方とも、フローティング(未接続の)導電ゲートを使用し、電界効果トランジスタの構造であり、半導体基板におけるソース領域とドレイン領域と間のチャネル領域を覆って位置している。そして、コントロールゲートがフローティングゲートを覆って設けられる。トランジスタのしきい値電圧特性は、フローティングゲート上に保持された電荷量によって制御される。すなわち、フローティングゲート上の電荷の所定のレベルについて、トランジスタが「オン」に転換されてソース領域とドレイン領域との間が導通することができるようにする前にコントロールゲートに印加されなければならない対応する電圧(しきい値)がある。特に、フラッシュEEPROMなどのフラッシュメモリは、メモリセルの全ブロックを同時に消去することができる。   Flash EEPROM is similar to EEPROM (electrically erasable and programmable read-only memory) in that it is an erasable non-volatile memory and writes or “programs” new data to memory cells. ing. Both use floating (unconnected) conductive gates and are field effect transistor structures that are located over the channel region between the source and drain regions of the semiconductor substrate. A control gate is provided to cover the floating gate. The threshold voltage characteristic of the transistor is controlled by the amount of charge held on the floating gate. That is, for a given level of charge on the floating gate, a response that must be applied to the control gate before the transistor can be turned "on" to allow conduction between the source and drain regions There is a voltage (threshold) to be used. In particular, a flash memory such as a flash EEPROM can simultaneously erase all blocks of memory cells.

フローティングゲートは、ある範囲の電荷を保持することができるので、しきい値電圧ウィンドウ内の任意のしきい値電圧レベルにプログラムすることができる。しきい値電圧ウィンドウのサイズは、装置の最小および最大しきい値レベルによって区切られ、さらにフローティングゲート上にプログラムすることができる電荷の範囲に対応している。しきい値ウィンドウは、一般的には、メモリデバイスの特徴、動作状態、および履歴に依存している。ウィンドウ内の各別個の分解可能なしきい値電圧レベルの範囲は、原則的には、セルの限定的なメモリ状態を指定するために使用されてもよい。しきい値電圧が2つの別個の領域に分割される場合には、各メモリセルは1ビットのデータを記憶することができることになる。同様に、しきい値電圧ウィンドウが2つ以上の別個の領域に分割される場合には、各メモリセルは、1ビット以上のデータを記憶することができることになる。   Since the floating gate can hold a range of charges, it can be programmed to any threshold voltage level within the threshold voltage window. The size of the threshold voltage window is delimited by the minimum and maximum threshold levels of the device and further corresponds to the range of charges that can be programmed on the floating gate. The threshold window generally depends on memory device characteristics, operating conditions, and history. Each distinct resolvable threshold voltage level range within the window may in principle be used to specify a limited memory state of the cell. If the threshold voltage is divided into two separate regions, each memory cell will be able to store 1 bit of data. Similarly, if the threshold voltage window is divided into two or more separate regions, each memory cell will be able to store one or more bits of data.

メモリセルとしての役割を果たすトランジスタは、典型的には、2つの機構のうちの1つによって「プログラムされた」状態にプログラムされる。「熱い電子注入」において、ドレインに印加された高い電圧が基板チャネル領域にわたって電子を加速させる。同時に、コントロールゲートに印加された高い電圧が、熱い電子を薄いゲート誘電体を通ってフローティングゲートへ引き寄せる。「トンネル注入」において、高い電圧が基板に対するコントロールゲートに印加される。このように、電子は、基板から介在フローティングゲートへと引き寄せられる。メモリの状態を変化させるために、メモリセルの最初に消去される電荷蓄積ユニットに電子を注入することによってメモリに対する書き込みを行うことを説明するために、「プログラム」という用語を従来使用してきたが、この用語は、現在では、「書き込み」または[記録する」などといった、より一般的な用語と交換可能に使用されてきている。   A transistor that serves as a memory cell is typically programmed to a “programmed” state by one of two mechanisms. In “hot electron injection”, a high voltage applied to the drain accelerates electrons across the substrate channel region. At the same time, the high voltage applied to the control gate draws hot electrons through the thin gate dielectric to the floating gate. In “tunnel implantation”, a high voltage is applied to the control gate for the substrate. In this way, electrons are attracted from the substrate to the intervening floating gate. The term “program” has been used previously to describe writing to the memory by injecting electrons into the charge storage unit that is first erased in the memory cell to change the state of the memory cell. This term is now used interchangeably with more general terms such as “write” or “record”.

メモリデバイスの消去は、数多くの機構によって行われてもよい。例えば、EEPROMについて、高い電圧をコントロールゲートに関連した基板に印加して、フローティングゲート内の電子を薄い酸化物層を通じて基板チャネル領域へと通すようにすることによって(すなわち、ファウラー・ノルドハイムトンネル現象)、メモリセルは電気的に消去可能である。典型的には、EEPROMは、バイト毎に消去可能である。フラッシュEEPROMについて、メモリは、すべて一度に電気的に消去可能であるか、または1回につき1つ以上の最小の消去可能なブロックを電気的に消去可能であり、最小の消去可能なブロックは、1つ以上のセクタからなってもよく、各セクタは、512バイト以上のデータを記憶してもよい。   The erasure of the memory device may be performed by a number of mechanisms. For example, for an EEPROM, a high voltage is applied to the substrate associated with the control gate to pass electrons in the floating gate through the thin oxide layer to the substrate channel region (ie, Fowler-Nordheim tunneling). ), The memory cell is electrically erasable. Typically, the EEPROM can be erased byte by byte. For flash EEPROM, the memory can be electrically erasable all at once, or one or more smallest erasable blocks can be electrically erasable at a time, and the smallest erasable block is: It may consist of one or more sectors, and each sector may store 512 bytes or more of data.

メモリデバイスは、典型的には、カードに実装されてもよい1つ以上のメモリチップを備える。各メモリチップは、デコーダまたは消去、書き込み、および読み出し回路のような周辺回路によってサポートされたメモリセルのアレイを備える。より高性能のメモリデバイスは、高機能および高レベルのメモリ動作およびインターフェイスを行うコントローラも搭載されている。   A memory device typically comprises one or more memory chips that may be mounted on a card. Each memory chip comprises an array of memory cells supported by a peripheral circuit such as a decoder or erase, write and read circuit. Higher performance memory devices are also equipped with controllers that perform high function and high level memory operations and interfaces.

商業的に成功している数多くの不揮発性固体メモリデバイスが現在使用されている。これらのメモリデバイスはフラッシュEEPROMであってもよく、または他の種類の不揮発性メモリセルを使用してもよい。フラッシュメモリおよびそれを製造するシステムおよび方法の例は、米国特許第5,070,032号(特許文献1)、第5,095,344号(特許文献2)、第5,315,541号(特許文献3)、第5,343,063号(特許文献4)、および第5,661,053号(特許文献5)、第5,313,421号(特許文献6)、および第6,222,762号(特許文献7)に記載されている。特に、NANDストリング構造のフラッシュメモリデバイスは、米国特許第5,570,315号(特許文献8)、第5,903,495号(特許文献9)、第6,046,935号(特許文献10)に記載されている。また、不揮発性メモリデバイスは、電荷を蓄積するための誘電体層を有するメモリセルからも製造される。前に説明した導電性のフローティングゲート素子の代わりに、誘電体層が使用される。誘電体蓄積素子を使用するこのようなメモリデバイスは、エイタンらによる「NROM:新規の局所化されたトラッピング、2ビット不揮発性メモリセル」,米国電子電気学会(IEEE)電子デバイスレター,第21巻,第11号,2000年11月,543〜545ページ ("NROM: A Novel Localized Trapping, 2-Bit Nonvolatile Memory Cell", IEEE Electron Device Letter, vol. 21, no. 11, November 2000, pp. 543-545)(非特許文献1)に記載されている。ONO誘電体層が、ソースおよびドレイン拡散間のチャネルにわたって延在している。1データビットに対する電荷は、ドレインに隣接する誘電体層にて局在化され、他のデータビットについての電荷は、ソースに隣接する誘電体層にて局在化される。例えば、米国特許第5,768,192号(特許文献11)および第6,011,725号(特許文献12)は、2つの二酸化シリコン層間に挟まれたトラッピング誘電体を有する不揮発性メモリセルを開示している。多状態のデータ記憶装置は、誘電体内の空間的に別個の電荷蓄積領域のバイナリ状態を別個に読み出すことによって実施される。   A number of commercially successful non-volatile solid state memory devices are currently in use. These memory devices may be flash EEPROM, or other types of non-volatile memory cells may be used. Examples of flash memory and systems and methods for manufacturing the same are disclosed in US Pat. Nos. 5,070,032 (Patent Document 1), 5,095,344 (Patent Document 2), and 5,315,541 ( Patent Document 3), 5,343,063 (Patent Document 4), and 5,661,053 (Patent Document 5), 5,313,421 (Patent Document 6), and 6,222 762 (Patent Document 7). In particular, flash memory devices having a NAND string structure are disclosed in US Pat. Nos. 5,570,315 (Patent Document 8), 5,903,495 (Patent Document 9), and 6,046,935 (Patent Document 10). )It is described in. Nonvolatile memory devices are also manufactured from memory cells having a dielectric layer for storing charge. A dielectric layer is used instead of the conductive floating gate element described previously. Such memory devices using dielectric storage elements are described by Eitan et al., “NROM: New Localized Trapping, 2-Bit Nonvolatile Memory Cell”, American Institute of Electronics and Electrical Engineers (IEEE) Electronic Device Letter, Volume 21. No. 11, November 2000, pp. 543-545 ("NROM: A Novel Localized Trapping, 2-Bit Nonvolatile Memory Cell", IEEE Electron Device Letter, vol. 21, no. 11, November 2000, pp. 543 -545) (Non-Patent Document 1). An ONO dielectric layer extends across the channel between the source and drain diffusions. The charge for one data bit is localized in the dielectric layer adjacent to the drain, and the charge for the other data bit is localized in the dielectric layer adjacent to the source. For example, US Pat. Nos. 5,768,192 and 6,011,725 describe a non-volatile memory cell having a trapping dielectric sandwiched between two silicon dioxide layers. Disclosure. Multi-state data storage is implemented by separately reading the binary states of spatially distinct charge storage regions within the dielectric.

読み出しおよびプログラミング性能を改善するために、アレイ内の複数の電荷蓄積素子またはメモリトランジスタが、並列に読み出しまたはプログラムされる。よって、メモリ素子の「ページ」が、一緒に読み出されるか、またはプログラムされる。既存のメモリ構成において、列は、典型的には、いくつかのインターリーブされたページを含むか、または1つのページを構成することもある。あるページのすべてのメモリ素子が、一緒に読み出されるか、またはプログラムされることもある。   To improve read and programming performance, multiple charge storage elements or memory transistors in the array are read or programmed in parallel. Thus, a “page” of memory elements is read or programmed together. In existing memory configurations, a column typically includes several interleaved pages or may constitute a single page. All memory elements of a page may be read or programmed together.

フラッシュメモリシステムにおいて、消去動作は、読み出しおよびプログラミング動作よりも非常に長くかかる場合がある。よって、かなりのサイズの消去ブロックがあることが望ましい。このように、消去時間は、メモリセルの大きな集合体にわたって償却される。   In a flash memory system, an erase operation may take much longer than a read and programming operation. Thus, it is desirable to have a fairly sized erase block. Thus, the erase time is amortized over a large collection of memory cells.

フラッシュメモリの性質は、データが消去されたメモリ位置に書き込まれなければならないということに基づいている。ホストからのある論理アドレスのデータを更新すべき場合、1つのやり方は、更新データを同一の物理メモリ位置に書き換えるというものである。すなわち、論理/物理アドレスマッピングは変化しない。しかし、これは、この物理位置を含む消去ブロック全体が最初に消去されてから、更新されたデータで書き換えられなければならないということを意味する。この更新方法は、消去ブロック全体が消去され、かつ書き換えられる必要があるので効率が悪く、更新すべきデータが消去ブロックの小さい部分のみを占める場合には特に効率が悪い。また、メモリブロックの消去リサイクルが高い頻度で生じる結果となり、この種のメモリデバイスの限られた耐久性の観点から望ましくない。   The nature of flash memory is based on the fact that data must be written to erased memory locations. If the data at a certain logical address from the host is to be updated, one way is to rewrite the updated data to the same physical memory location. That is, the logical / physical address mapping does not change. However, this means that the entire erase block including this physical position must be erased first and then rewritten with updated data. This update method is inefficient because the entire erase block must be erased and rewritten, and is particularly inefficient when the data to be updated occupies only a small portion of the erase block. In addition, erasure recycling of the memory block occurs at a high frequency, which is undesirable from the viewpoint of the limited durability of this type of memory device.

フラッシュメモリシステムの他の問題点は、システム制御およびディレクトリデータと関係がある。データは、様々なメモリ動作の過程で生成かつアクセスされる。よって、効率的な取り扱いおよび素早いアクセスが性能に直接影響を与えることになる。フラッシュメモリは記憶装置用を意図し、かつ不揮発性であるので、フラッシュメモリ内のこの種のデータを保持するのが望ましい。しかし、コントローラとフラッシュメモリとの間の介在ファイル管理システムによって、データは直接にはアクセスすることができない。また、システム制御およびディレクトリデータは、アクティブかつ断片化しがちであり、大規模なブロック消去を伴うシステムへの記憶には役に立たない。従来、この種のデータは、コントローラRAMに設定され、コントローラによる直接アクセスを可能としている。メモリデバイスの電源投入後、コントローラRAMに配置すべき必要なシステム制御およびディレクトリ情報をコンパイルするために、初期化の処理によって、フラッシュメモリを走査することができる。この処理は時間がかかり、フラッシュメモリの容量が増加しているのでいっそうのコントローラRAMの容量が要求される。   Other problems with flash memory systems are related to system control and directory data. Data is generated and accessed during various memory operations. Thus, efficient handling and quick access directly affect performance. Since flash memory is intended for storage devices and is non-volatile, it is desirable to retain this type of data in flash memory. However, data cannot be accessed directly by an intervening file management system between the controller and flash memory. Also, system control and directory data tend to be active and fragmented and are not useful for storage in systems with large block erases. Conventionally, this type of data is set in the controller RAM and can be directly accessed by the controller. After powering on the memory device, the initialization process can scan the flash memory to compile the necessary system control and directory information to be placed in the controller RAM. This processing takes time, and the capacity of the flash memory is increasing, so that more controller RAM capacity is required.

米国特許第6,567,307号(特許文献13)は、メモ帳としての役割を果たす複数の消去ブロック内に更新データを記録し、また様々なブロック内の有効なセクタを最終的に統合化し、かつこのセクタを論理的な順次順序で再構成した後にセクタを書き換えることを含む大きな消去ブロック内のセクタ更新を扱う方法を開示している。このように、ブロックは、ごくわずかな更新の度に消去され、かつ書き込まれる必要はない。   US Pat. No. 6,567,307 (Patent Document 13) records update data in a plurality of erase blocks that serve as a memo pad, and finally integrates valid sectors in various blocks. And a method of handling sector updates in a large erase block including rewriting the sectors after reconfiguring the sectors in a logical sequential order. In this way, the block does not need to be erased and written every few updates.

国際公開特許出願第WO03/027828号(特許文献14)および国際公開特許出願第WO00/49488号(特許文献15)は共に、論理セクタアドレスを区画に分割することを含む、大きな消去ブロック内での更新を扱うメモリシステムを開示している。小さな区画の論理アドレス範囲が、ユーザデータ用の他の区画とは別に、アクティブなシステム制御データ用に確保される。このように、システム制御データを独自の区画内で操作すれば、他の区画内の関連するユーザデータと相互に作用しないことになる。更新は論理セクタレベルであり、書き込みポインタは、書き込むべきブロック内の対応する物理セクタを指す。マッピング情報は、RAM内にバッファリングされ、最終的にはメインメモリ内のセクタ割り当てテーブルに記憶される。論理セクタの最新バージョンによって、既存のブロック内のすべての以前のバージョンは廃止されることになり、既存のブロックは、部分的に廃止される。部分的に廃止されたブロックを許容することができる数に維持するために、ガーベッジコレクションが行われる。   International Patent Application No. WO 03/027828 (Patent Document 14) and International Patent Application No. WO 00/49488 (Patent Document 15) both involve dividing a logical sector address into partitions, within a large erase block. A memory system for handling updates is disclosed. A small partition logical address range is reserved for active system control data, separate from other partitions for user data. Thus, if the system control data is manipulated in its own partition, it will not interact with related user data in other partitions. Updates are at the logical sector level, and the write pointer points to the corresponding physical sector in the block to be written. The mapping information is buffered in the RAM and finally stored in the sector allocation table in the main memory. With the latest version of the logical sector, all previous versions within the existing block will be obsolete, and the existing block will be partially obsolete. Garbage collection is performed to maintain an acceptable number of partially obsolete blocks.

従来技術のシステムは、更新データを数多くのブロックに渡って分散させる傾向にあるか、または更新データによって数多くの既存ブロックを部分的に廃止する場合もある。その結果、部分的に廃止されたブロックに対して大量のガーベッジコレクションが必要となることが多く、これは効率的でなく、メモリの早すぎる老化を生じさせる。また、非順次更新に比べて、順次更新を扱う体系化された効率的なやり方がない。   Prior art systems tend to distribute update data across a number of blocks, or the update data may partially abolish a number of existing blocks. As a result, large amounts of garbage collection are often required for partially obsolete blocks, which is not efficient and results in premature memory aging. Also, there is no systematic and efficient way to handle sequential updates compared to nonsequential updates.

したがって、大容量かつ高性能の不揮発性メモリに対する一般的な要求がある。特に、大きなブロックにおけるメモリ動作を前述した問題なく行うことのできる大容量不揮発性メモリを有するための要求がある。   Therefore, there is a general demand for large capacity and high performance non-volatile memory. In particular, there is a need to have a large capacity non-volatile memory that can perform memory operations in large blocks without the aforementioned problems.

米国特許第5,070,032号US Pat. No. 5,070,032 米国特許第5,095,344号US Pat. No. 5,095,344 米国特許第5,315,541号US Pat. No. 5,315,541 米国特許第5,343,063号US Pat. No. 5,343,063 米国特許第5,661,053号US Pat. No. 5,661,053 米国特許第5,313,421号US Pat. No. 5,313,421 米国特許第6,222,762号US Pat. No. 6,222,762 米国特許第5,570,315号US Pat. No. 5,570,315 米国特許第5,903,495号US Pat. No. 5,903,495 米国特許第6,046,935号US Pat. No. 6,046,935 米国特許第5,768,192号US Pat. No. 5,768,192 米国特許第6,011,725号US Pat. No. 6,011,725 米国特許第6,567,307号US Pat. No. 6,567,307 国際公開特許出願第WO03/027828号International Patent Application No. WO03 / 027828 国際公開特許出願第WO00/49488号International Patent Application No. WO00 / 49488 米国公開特許出願第2005/0144365号US Published Patent Application No. 2005/0144365 2003年12月30日出願のAlan Sinclair による「Adaptive Metablocks 」という米国特許出願US patent application titled “Adaptive Metablocks” filed on December 30, 2003 by Alan Sinclair 2003年12月30日出願のCarlos Gonzales らによる「Adaptive Deterministic Grouping of Blocks into Multi-Block Structures 」という米国特許出願US patent application entitled "Adaptive Deterministic Grouping of Blocks into Multi-Block Structures" filed December 30, 2003 by Carlos Gonzales et al.

"NROM: A Novel Localized Trapping, 2-Bit Nonvolatile Memory Cell", IEEE Electron Device Letter, vol. 21, no. 11, November 2000, pp. 543-545"NROM: A Novel Localized Trapping, 2-Bit Nonvolatile Memory Cell", IEEE Electron Device Letter, vol. 21, no. 11, November 2000, pp. 543-545

不揮発性メモリシステムは、物理メモリ位置の物理グループに組織化される。各物理グループ(メタブロック)は、一単位として消去可能であり、データの論理グループを記憶するために使用することができる。メモリ管理システムは、論理グループの更新データを記録する専用のメタブロックを割り当てることにより、データの論理グループの更新を行うことができる。更新メタブロックは、更新データを受信した順序で記録し、記録が当初記憶された通りの正確な論理順序であるか(順次)、またはそうでないか(カオス的)についての制限はない。最終的には、更新メタブロックは閉鎖されて、さらに記録することができなくなる。いくつかの処理のうちの1つが生じることになるが、元メタブロックを置換する、正確な順序の一杯となったメタブロックが結局は生じることになる。カオス的な場合には、ディレクトリデータが、頻繁な更新の助けとなるようなやり方で、不揮発性メモリに保持される。このシステムは、複数の論理グループが並行して更新されることをサポートする。   Non-volatile memory systems are organized into physical groups of physical memory locations. Each physical group (metablock) can be erased as a unit and can be used to store a logical group of data. The memory management system can update the logical group of data by assigning a dedicated metablock for recording the update data of the logical group. The update metablock records the update data in the order in which it was received, and there is no restriction as to whether the records are in the exact logical order as originally stored (sequential) or not (chaotic). Eventually, the update metablock is closed and cannot be recorded further. One of several processes will occur, but in the end will result in a full sequence of metablocks replacing the original metablock. In the chaotic case, directory data is kept in non-volatile memory in a manner that helps with frequent updates. This system supports multiple logical groups being updated in parallel.

本発明の一特徴により、データを論理グループ毎に更新することができる。よって、論理グループが更新されている最中は、論理ユニットの分配(および更新によって廃止されるメモリユニットの分散)は、その範囲が限定される。これは、論理グループが物理ブロック内に正常に含まれている場合に特に当てはまる。   According to one feature of the present invention, data can be updated for each logical group. Therefore, while the logical group is being updated, the range of the distribution of logical units (and the distribution of memory units abolished by the update) is limited. This is especially true when the logical group is normally included in the physical block.

論理グループの更新中に、典型的には1つまたは2つのブロックが、更新論理ユニットをバッファリングするように割り当てられる必要がある。よって、ガーベッジコレクションは、比較的少ない数のブロックに渡ってのみ行えばよい。カオス的ブロックのガーベッジコレクションは、統合化またはコンパクト化によって行われてもよい。   During a logical group update, typically one or two blocks need to be allocated to buffer the update logical unit. Thus, garbage collection need only be performed over a relatively small number of blocks. Garbage collection of chaotic blocks may be performed by integration or compaction.

更新処理の経済性は、順次更新に比較してカオス的(非順次)更新に割り当てられる必要のある追加のブロックがないようにする更新ブロックの一般的な処理において、さらに明らかである。すべての更新ブロックは、順次更新ブロックとして割り当てられ、どの更新ブロックも、カオス的更新ブロックに変更可能である。実際、順次からカオス的への更新ブロックの変更は任意である。   The economics of the update process is even more apparent in the general process of update blocks that ensures that there are no additional blocks that need to be allocated to chaotic (non-sequential) updates compared to sequential updates. All update blocks are assigned as sequential update blocks, and any update block can be changed to a chaotic update block. In fact, changing the update block from sequential to chaotic is arbitrary.

システムリソースの効率的な使用により、複数の論理グループを並行して更新することができる。これは、効率性をさらに増し、オーバーヘッドを減少させる。   With efficient use of system resources, multiple logical groups can be updated in parallel. This further increases efficiency and reduces overhead.

本発明の一態様によれば、ブロック管理システムを伴う不揮発性メモリにおいて、データを記録するために同時に開放されている更新ブロックの第1の所定最大数までサポートするシステムのために、改良されたブロック置換手法が実施される。更新ブロックは、主に連続更新ブロックであって、当該連続更新ブロックにおいて、データが論理的に連続した順序で記録されているが、そのブロック数は、データが論理的に連続した順序で記録されないカオス的更新ブロックであることが許容された第2の所定最大数までである。更新ブロックの新規の割り当てによって更新ブロックのプールが第1または第2の所定最大数を超えるような場合にはいつでも、当該制限に従うようにプール内の既存の更新ブロックのうちの1つが閉鎖および削除されることになる。更新ブロックを閉鎖する前に、そのデータは連続ブロックに統合される。この改良された手法は、連続的な更新が過度のカオス的ブロック統合数を生じさせ得る状況を回避するためのものである。これは、連続更新ブロックとカオス的更新ブロックとをそれぞれの置換または統合プールに分離することによって達成される。特に、連続更新によって新規の更新ブロックの割り当てが第1の所定最大数を超える場合には、プール内の最も長時間使用されていない連続更新ブロックが、空きを作るために優先される。   According to one aspect of the invention, improved in a non-volatile memory with a block management system for a system that supports up to a first predetermined maximum number of update blocks that are simultaneously open to record data. A block replacement technique is implemented. An update block is mainly a continuous update block. In the continuous update block, data is recorded in a logically continuous order, but the number of blocks is not recorded in a logically continuous order. Up to a second predetermined maximum number allowed to be a chaotic update block. Whenever a new allocation of update blocks causes the pool of update blocks to exceed the first or second predetermined maximum number, one of the existing update blocks in the pool is closed and deleted to comply with the restriction. Will be. Prior to closing the update block, the data is integrated into a continuous block. This improved approach is to avoid situations where successive updates can result in excessive chaotic block consolidation numbers. This is accomplished by separating the continuous update block and the chaotic update block into their respective replacement or unified pool. In particular, when the number of new update blocks assigned by the continuous update exceeds the first predetermined maximum number, the continuous update block that has not been used for the longest time in the pool is given priority to make a free space.

現行システムにおいて、一般的に、ユーザデータと制御データという2つの種類のデータがある。ユーザデータは、ホストからメモリシステムへ、典型的には論理的に連続した順序で送られる。連続更新ブロックは、ホストからの連続書き込み動作を最適に扱うように割り当てられる。ユーザデータは、とりわけ論理データに対する後続の更新がある場合には、論理的に不連続な順序である場合がある。カオス的更新ブロックは、不連続な順序でデータを最適に扱うために作成される。カオス的または不連続データの他のソースとしては、ユーザデータを記憶する過程で生成されるファイルおよびディレクトリ情報などといった、ファイルシステムまたはメモリシステムによって保持される制御データがある。   In current systems, there are generally two types of data: user data and control data. User data is sent from the host to the memory system, typically in a logically sequential order. Continuous update blocks are allocated to optimally handle continuous write operations from the host. User data may be in a logically discontinuous order, especially if there are subsequent updates to the logical data. Chaotic update blocks are created to optimally handle data in a discontinuous order. Other sources of chaotic or discontinuous data include control data maintained by the file system or memory system, such as file and directory information generated in the process of storing user data.

同時に開放されている更新ブロックの最大数までサポートするという実際上のシステム制限に従う従来の手法は、連続的かカオス的かどうかに関わらず、プール内の最も長時間使用されていない更新ブロックを閉鎖するものであった。   The traditional approach, which follows the practical system limit of supporting up to the maximum number of update blocks that are simultaneously open, closes the least recently used update block in the pool, whether continuous or chaotic It was something to do.

本願の手法は、従来の手法を改良するものであって、基本的には、連続的な書き込み動作中に、新規の割り当て用に空きを作るためにプール内の更新ブロックを閉鎖する必要がある場合には、プール内の最も長時間使用されていない連続更新ブロックが閉鎖される。これにより、連続的な書き込み動作およびランダムな書き込み動作を扱うために様々な更新ブロックを効果的に活用することが確実になる。特に、ホストによる大規模な連続書き込み動作によってFATおよびディレクトリ情報を含むカオス的更新ブロックを閉鎖せざるを得なくなる場合があるといった非効率な状況を回避する。この大規模な書き込み動作が終わると再び更新されるようなFATおよびディレクトリ情報を記憶するために、さらなるカオス的ブロックが実質上まもなく作成されることになる。改良された置換ポリシーを作成することによって、置換および統合プールの分離が規定され、開放された連続ブロックまたは開放されたカオス的ブロックとなり得るブロックの連続的な書き込みおよび統合中に、カオス的ブロックを統合する際のさらなるオーバーヘッドを防止して、後続のFATおよびディレクトリ更新を管理する。   The technique of the present application is an improvement over the conventional technique, and basically it is necessary to close the update blocks in the pool to make room for new allocations during successive write operations. In some cases, the least recently used consecutive update block in the pool is closed. This ensures that the various update blocks are effectively utilized to handle continuous write operations and random write operations. In particular, an inefficient situation is avoided in which a chaotic update block containing FAT and directory information may have to be closed by a large-scale continuous write operation by the host. Additional chaotic blocks will be created in the near future to store FAT and directory information that will be updated again at the end of this massive write operation. By creating an improved replacement policy, the separation of replacement and consolidated pools is specified, and chaotic blocks are removed during sequential writing and consolidation of blocks that can be open continuous blocks or open chaotic blocks. Manages subsequent FAT and directory updates, preventing additional overhead in consolidation.

本願の手法を一般的にいうと、更新ブロックが連続または不連続データのいずれを記憶しているか、または、ある予め定められた種類のシステムデータを記憶しているかどうかなどといった属性のセットに基づいて、更新ブロックを分類するものである。限られた数の更新ブロックのプールを実装するにあたって、更新ブロックの各クラスは、当該クラス用にサポートされた最大数を超えるような場合の置換に関する独自の規則を有することになる。   Generally speaking, the method of the present application is based on a set of attributes such as whether the update block stores continuous or discontinuous data, or whether it stores a predetermined type of system data. Thus, update blocks are classified. In implementing a limited number of update block pools, each class of update block will have its own rules for replacement if it exceeds the maximum number supported for that class.

例えば、連続更新ブロックおよび不連続更新ブロックは、2つの異なるクラスである。これら各クラス用の置換規則は同一であり、すなわち、最もアクティブでないものを新規のものに置換する。よって、連続更新ブロックのプールを超えるような場合には、新規のものがプールに導入される前に、プール内の最もアクティブでないものが閉鎖および削除されることになる。不連続更新ブロックのプールについても同様である。   For example, continuous update blocks and discontinuous update blocks are two different classes. The replacement rules for each of these classes are the same, i.e., the least active one is replaced with a new one. Thus, if the pool of continuously updated blocks is exceeded, the least active one in the pool will be closed and deleted before the new one is introduced into the pool. The same applies to the pool of discontinuous update blocks.

一般的に、各クラスは、他のクラスから独立した独自の置換規則を有する。置換規則の例として、対応するクラスによっては、最も長時間アクセスされていないもの、直近にアクセスされたもの、最も頻繁にアクセスされていないもの、最も頻繁にアクセスされているものなどを置換する。   In general, each class has its own replacement rules that are independent of other classes. As an example of the replacement rule, depending on the corresponding class, the one that has not been accessed for the longest time, the one that has been accessed most recently, the one that has not been accessed most frequently, the one that has been accessed most frequently, and the like are replaced.

本発明のさらなる特徴および利点は、添付の図面と共に理解される以下の好ましい実施形態の説明から理解されるだろう。   Additional features and advantages of the present invention will be understood from the following description of the preferred embodiments, taken in conjunction with the accompanying drawings.

本発明を実施するのに適切なメモリシステムの主要ハードウェアの構成要素を概略的に示す。1 schematically illustrates major hardware components of a memory system suitable for implementing the present invention. 本発明の好ましい実施形態に係る、セクタ(またはメタブロック)の物理グループに組織化され、コントローラのメモリマネージャによって管理されたメモリを示す。FIG. 6 illustrates memory organized into physical groups of sectors (or metablocks) and managed by a controller memory manager, in accordance with a preferred embodiment of the present invention. (i)〜(iii)は、本発明の好ましい実施形態に係る、論理グループとメタブロックとの間のマッピングを概略的に示す。(I)-(iii) schematically illustrates the mapping between logical groups and metablocks, according to a preferred embodiment of the present invention. 論理グループとメタブロックと間のマッピングを概略的に示す。Fig. 4 schematically shows a mapping between logical groups and metablocks. 物理メモリにおける構造を含むメタブロックの配列を示す。Fig. 5 shows an arrangement of metablocks containing structures in physical memory. 互いに異なるプレーンの最小消去ユニットのリンク付けから構成されるメタブロックを示す。Fig. 6 shows a metablock composed of linking of minimum erasure units of different planes. 1つの最小消去ユニット(MEU)が、メタブロックへのリンク付けのために各プレーンから選択される、一実施形態を示す。FIG. 6 illustrates an embodiment where one minimal erasure unit (MEU) is selected from each plane for linking to a metablock. FIG. 1つより多くの最小消去ユニット(MEU)が、メタブロックへのリンク付けのために各プレーンから選択される、別の実施形態を示す。FIG. 6 illustrates another embodiment in which more than one minimum erasure unit (MEU) is selected from each plane for linking to a metablock. コントローラおよびフラッシュメモリにおいて実施されるようなメタブロック管理システムの概略ブロック図である。1 is a schematic block diagram of a metablock management system as implemented in a controller and flash memory. FIG. 順次更新ブロックへ順次順序で書き込まれる論理グループ内のセクタの一例を示す。An example of a sector in a logical group that is written sequentially into a sequential update block is shown. カオス的更新ブロックへカオス的順序で書き込まれる論理グループ内のセクタの一例を示す。Fig. 5 shows an example of sectors in a logical group that are written into a chaotic update block in chaotic order. 2つの別個のホスト書き込み動作の結果としての、論理アドレスに不連続性を有する、順次更新ブロックへ順次順序で書き込まれる論理グループ内のセクタの一例を示す。FIG. 6 illustrates an example of sectors in a logical group that are written sequentially to sequential update blocks with discontinuities in logical addresses as a result of two separate host write operations. 本発明の一般的な一実施形態に係る、データの論理グループを更新するための更新ブロックマネージャによる処理を示すフロー図である。FIG. 5 is a flow diagram illustrating a process by an update block manager to update a logical group of data, according to one general embodiment of the invention. 本発明の好ましい実施形態に係る、データの論理グループを更新するための更新ブロックマネージャによる処理を示すフロー図である。FIG. 6 is a flow diagram illustrating processing by an update block manager for updating a logical group of data, in accordance with a preferred embodiment of the present invention. 図10に示されているカオス的更新ブロックを閉鎖する統合化処理をより詳細に示すフロー図である。FIG. 11 is a flow diagram showing in more detail the integration process for closing the chaotic update block shown in FIG. 10. 図10に示されているカオス的更新ブロックを閉鎖するためのコンパクト化処理をより詳細に示すフロー図である。FIG. 11 is a flow diagram illustrating in more detail the compacting process for closing the chaotic update block shown in FIG. 10. 様々な動作下における、論理グループの予想されるすべての状態と、その状態間で予想される遷移とを示す。Fig. 4 shows all the expected states of a logical group and the expected transitions between the states under various operations. 論理グループの予想される状態を列挙する表である。It is a table listing the expected states of a logical group. 様々な動作下における、メタブロックの予想されるすべての状態と、その状態間で予想される遷移とを示す。メタブロックとは、論理グループに対応する物理グループである。Fig. 5 shows all the expected states of the metablock and the expected transitions between the states under various actions. A metablock is a physical group corresponding to a logical group. メタブロックの予想される状態を列挙する表である。It is a table which enumerates the expected state of a metablock. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。FIG. 6 is a state diagram showing the effect of various operations on the state of logical groups and physical metablocks. 論理グループの状態と、物理メタブロックとに対する様々な動作の影響を示す状態図である。FIG. 6 is a state diagram showing the influence of various operations on the state of logical groups and physical metablocks. 割り当てのための開放または閉鎖された更新ブロックおよび消去ブロックの状況を追跡するための割り当てブロックリスト(ABL)の構造の好ましい実施形態を示す。Fig. 3 shows a preferred embodiment of the structure of an allocation block list (ABL) for tracking the status of open and closed update blocks and erase blocks for allocation. カオス的ブロックインデックス(CBI)セクタのデータフィールドを示す。Fig. 4 shows a data field of a chaotic block index (CBI) sector. カオス的ブロックインデックス(CBI)セクタが専用のメタブロックに記録されている一例を示す。An example is shown in which a chaotic block index (CBI) sector is recorded in a dedicated metablock. カオス的更新を受けている所定の論理グループの論理セクタのデータに対するアクセスを示すフロー図である。It is a flowchart which shows the access with respect to the data of the logical sector of the predetermined | prescribed logical group which is receiving chaotic update. 論理グループがサブグループに分割されている代替の実施形態に係る、カオス的更新を受けている所定の論理グループの論理セクタのデータに対するアクセスを示すフロー図である。FIG. 7 is a flow diagram illustrating access to data in logical sectors of a given logical group undergoing chaotic updates, according to an alternative embodiment in which the logical group is divided into subgroups. 各論理グループが複数のサブグループに分割される実施形態についての、カオス的ブロックインデックス付け(CBI)セクタおよびその機能の例を示す。FIG. 4 illustrates an example of a chaotic block indexing (CBI) sector and its function for an embodiment where each logical group is divided into multiple subgroups. グループアドレステーブル(GAT)セクタのデータフィールドを示す。The data field of a group address table (GAT) sector is shown. グループアドレステーブル(GAT)セクタがGATブロックに記録されている一例を示す。An example in which a group address table (GAT) sector is recorded in a GAT block is shown. 消去済みブロックの使用およびリサイクルのための制御およびディレクトリ情報の分配および流れを示す概略ブロック図である。FIG. 5 is a schematic block diagram illustrating the distribution and flow of control and directory information for use and recycling of erased blocks. 論理/物理アドレス変換の処理を示すフローチャートである。It is a flowchart which shows the process of logical / physical address conversion. メモリ管理の動作中に、制御データ構造に対して行われる動作の階層を示す。Fig. 4 illustrates a hierarchy of operations performed on a control data structure during a memory management operation. ブロック管理システム用の更新ブロック数に対する2つの所定の規制の典型例を概略的に示す。2 schematically shows two typical examples of two predetermined restrictions on the number of update blocks for a block management system. 様々なメモリ装置用に最適化された2つの規制の組み合わせの典型例を示す。A typical example of a combination of two regulations optimized for various memory devices is shown. 図22において説明したような「5−2」構成の更新プールを概略的に示す。FIG. 23 schematically illustrates an update pool having a “5-2” configuration as described in FIG. 22. 従来の手法に係る、新規の更新ブロック用に空きを作るために最もアクティブでない更新ブロックを閉鎖することを概略的に示す。Fig. 6 schematically shows closing the least active update block to make room for a new update block, according to the conventional approach. 空きを作るために閉鎖された更新ブロックが削除された後、新たに割り当てられた更新ブロックをプールに導入することを概略的に示す。Fig. 4 schematically shows the introduction of a newly allocated update block into the pool after an update block that has been closed to make room is deleted. 図22において説明したような「5−2」構成の更新プールを概略的に示す。FIG. 23 schematically illustrates an update pool having a “5-2” configuration as described in FIG. 22. 従来の手法に係る、新規の更新ブロック用に空きを作るために最もアクティブでない更新ブロックを閉鎖することを概略的に示す。Fig. 6 schematically shows closing the least active update block to make room for a new update block, according to the conventional approach. 空きを作るために閉鎖された更新ブロックが削除された後、新たに割り当てられた更新ブロックをプールに導入することを概略的に示す。Fig. 4 schematically shows the introduction of a newly allocated update block into the pool after an update block that has been closed to make room is deleted. 図10のステップ410ならびに図23Bおよび図24Bに先に示す手法であって、新規の割り当てが所定の制限を超えるような場合にはいつでも、最も長時間アクセスされていない更新ブロックが閉鎖される手法を示す。The technique shown previously in step 410 of FIG. 10 and FIGS. 23B and 24B, in which the least recently accessed update block is closed whenever a new allocation exceeds a predetermined limit. Indicates. 図10のステップ370に先に示す手法であって、カオス的更新ブロック数が所定の制限を超える場合にはいつでも、最も長時間アクセスされていないカオス的(不連続)更新ブロックが閉鎖される手法を示す。The method shown in step 370 of FIG. 10, wherein a chaotic (discontinuous) update block that has not been accessed for the longest time is closed whenever the number of chaotic update blocks exceeds a predetermined limit. Indicates. 図22において説明したような「5−2」構成の更新プールを概略的に示す。FIG. 23 schematically illustrates an update pool having a “5-2” configuration as described in FIG. 22. 本願の改良された手法に係る、新規の更新ブロック用に空きを作るためにプール内の更新ブロックのうちの1つを閉鎖することを概略的に示す。FIG. 6 schematically illustrates closing one of the update blocks in the pool to make room for a new update block, according to the improved approach of the present application. 空きを作るために閉鎖された更新ブロックが削除された後、新たに割り当てられた更新ブロックをプールに導入することを概略的に示す。Fig. 4 schematically shows the introduction of a newly allocated update block into the pool after an update block that has been closed to make room is deleted. 図22において説明したような「5−2」構成の更新プールを概略的に示す。FIG. 23 schematically illustrates an update pool having a “5-2” configuration as described in FIG. 22. 本願の改良された手法に係る、新規の更新ブロック用に空きを作るためにプール内の更新ブロックのうちの1つを閉鎖することを概略的に示す。FIG. 6 schematically illustrates closing one of the update blocks in the pool to make room for a new update block, according to the improved approach of the present application. 空きを作るために他のカオス的更新ブロックが閉鎖および削除された後、新規のカオス的更新ブロックをプールに導入することを概略的に示す。Fig. 4 schematically shows the introduction of a new chaotic update block into the pool after other chaotic update blocks have been closed and deleted to make room. 第1の実施形態に係る、連続更新中に更新ブロックの限られたセットを管理する本願の改良された手法を示すフローチャートである。6 is a flowchart illustrating the improved technique of the present application for managing a limited set of update blocks during a continuous update, according to a first embodiment. 第2の実施形態に係る、2つの所定の制限を有する更新ブロックの限られたセットを管理する本願の改良された手法を示すフローチャートである。6 is a flowchart illustrating the improved technique of the present application for managing a limited set of update blocks having two predetermined limits, according to a second embodiment. クラスベースの置換規則を有する更新ブロックの限られたセットを管理する本願の改良された手法を示すフローチャートである。FIG. 6 is a flowchart illustrating the improved technique of the present application for managing a limited set of update blocks with class-based replacement rules.

図1から図20は、本願の様々な態様が実施されるようなブロック管理を伴うメモリシステムの例を示す。同様のメモリシステムが、Gorobetsらによる「Non-Volatile Memory and Method with Control Data Management 」という米国公開特許出願第2005/0144365号(特許文献16)に記載されている。   1-20 illustrate examples of memory systems with block management in which various aspects of the present application may be implemented. A similar memory system is described in US Published Patent Application No. 2005/0144365 (Non-Volatile Memory and Method with Control Data Management) by Gorobets et al.

図1は、本発明を実施するのに適切なメモリシステムの主要ハードウェアの構成要素を概略的に示す。メモリシステム20は、典型的には、ホストインターフェイスを通じてホスト10と共に動作する。メモリシステムは、典型的には、メモリカードの形式を取るか、または埋め込み形メモリシステムである。メモリシステム20は、動作がコントローラ100によって制御されるメモリ200を含む。メモリ200は、1つ以上の集積回路チップに渡って分散された不揮発性メモリセルの1つ以上のアレイからなる。コントローラ100は、インターフェイス110と、プロセッサ120と、オプションのコプロセッサ121と、ROM122(読み出し専用メモリ)と、RAM130(ランダムアクセスメモリ)と、オプションのプログラム可能な不揮発性メモリ124とを含む。インターフェイス110は、ある構成要素をコントローラからホストへとインターフェイスさせ、他の構成要素をメモリ200とインターフェイスさせる。不揮発性ROM122および/またはオプションの不揮発性メモリ124に記憶されたファームウェアは、コントローラ100の機能を実施するためにプロセッサ120に対して符号を提供する。誤り訂正符号は、プロセッサ120またはオプションのコプロセッサ121によって処理されてもよい。代替の実施形態において、コントローラ100は、状態マシン(図示せず)によって実施される。さらに他の実施形態において、コントローラ100は、ホスト内で実施される。   FIG. 1 schematically illustrates the major hardware components of a memory system suitable for implementing the present invention. The memory system 20 typically operates with the host 10 through a host interface. The memory system typically takes the form of a memory card or is an embedded memory system. The memory system 20 includes a memory 200 whose operation is controlled by the controller 100. Memory 200 consists of one or more arrays of non-volatile memory cells distributed across one or more integrated circuit chips. The controller 100 includes an interface 110, a processor 120, an optional coprocessor 121, a ROM 122 (read only memory), a RAM 130 (random access memory), and an optional programmable non-volatile memory 124. The interface 110 interfaces certain components from the controller to the host and other components with the memory 200. Firmware stored in non-volatile ROM 122 and / or optional non-volatile memory 124 provides codes to processor 120 to perform the functions of controller 100. The error correction code may be processed by processor 120 or optional coprocessor 121. In an alternative embodiment, controller 100 is implemented by a state machine (not shown). In yet other embodiments, the controller 100 is implemented within a host.

論理および物理ブロック構造
図2は、本発明の好ましい実施形態に係る、セクタ(またはメタブロック)の物理グループに組織化され、コントローラのメモリマネージャによって管理されたメモリを示す。メモリ200は、メタブロックに組織化され、各メタブロックは、共に消去可能な物理セクタS0 ,...,SN-1 のグループである。
Logical and Physical Block Structure FIG. 2 shows memory organized into physical groups of sectors (or metablocks) and managed by the controller's memory manager, according to a preferred embodiment of the present invention. The memory 200 is organized into metablocks, each metablock having a physical sector S 0 ,. . . , S N-1 .

ホスト10は、ファイルシステムまたはオペレーティングシステムの下でアプリケーションを実行する場合に、メモリ200にアクセスする。典型的には、ホストシステムは、データを論理セクタ単位でアドレス指定し、例えば、各セクタは、512バイトのデータを含んでもよい。また、ホストが、論理クラスタ単位でメモリシステムに対して読み出しまたは書き込みを行うのが通常であり、各クラスタは、1つ以上の論理セクタからなる。ホストシステムによっては、より低いレベルのメモリ管理をホスト側で行うためにオプションのホスト側メモリマネージャが存在する場合がある。多くの場合、読み出しまたは書き込み動作中に、ホスト10は、実質的に、メモリシステム20に対してコマンドを発行して、データの論理セクタのストリングを含むセグメントを連続するアドレスと共に読み出しまたは書き込みを行う。   The host 10 accesses the memory 200 when executing an application under a file system or an operating system. Typically, the host system addresses data in units of logical sectors, for example, each sector may contain 512 bytes of data. The host normally reads or writes data from / to the memory system in units of logical clusters, and each cluster includes one or more logical sectors. Some host systems may have an optional host-side memory manager to perform lower level memory management on the host side. In many cases, during a read or write operation, the host 10 substantially issues a command to the memory system 20 to read or write a segment containing a string of logical sectors of data with consecutive addresses. .

フラッシュメモリ200のメタブロック内のホスト論理セクタのデータの記憶および検索を管理するために、メモリ側メモリマネージャが、メモリシステム20のコントローラ100内で実施される。好ましい実施形態において、メモリマネージャは、メタブロックの消去、読み出し、書き込み動作を管理するための数多くのソフトウェアモジュールを含む。また、メモリマネージャは、フラッシュメモリ200とコントローラRAM130との間の動作に関連したシステム制御およびディレクトリデータを保持する。   A memory-side memory manager is implemented in the controller 100 of the memory system 20 to manage the storage and retrieval of host logical sector data within the metablock of the flash memory 200. In the preferred embodiment, the memory manager includes a number of software modules for managing metablock erase, read, and write operations. The memory manager also holds system control and directory data related to operations between the flash memory 200 and the controller RAM 130.

図3A(i)〜(iii)は、本発明の好ましい実施形態に係る、論理グループとメタブロックとの間のマッピングを概略的に示す。物理メモリのメタブロックは、論理グループのデータのN個の論理セクタを記憶するためのN個の物理セクタを有する。図3A(i)は、論理グループLGi からのデータを示し、論理セクタは、連続論理順序0,1,...,N−1である。図3A(ii)は、同一の論理順序のメタブロック内に記憶されている同じデータを示す。このように記憶される場合に、メタブロックは、「順次」であるといわれる。一般的に、メタブロックは、異なる順序で記憶されたデータを有してもよく、その場合は、メタブロックは、「非順次」または「カオス的」であるといわれる。 3A (i)-(iii) schematically illustrate the mapping between logical groups and metablocks, according to a preferred embodiment of the present invention. The metablock of the physical memory has N physical sectors for storing N logical sectors of logical group data. FIG. 3A (i) shows data from logical group LG i , where logical sectors are in consecutive logical order 0, 1,. . . , N−1. FIG. 3A (ii) shows the same data stored in metablocks in the same logical order. When stored in this way, metablocks are said to be “sequential”. In general, a metablock may have data stored in a different order, in which case the metablock is said to be “non-sequential” or “chaotic”.

論理グループの最小のアドレスと、それがマッピングされるメタブロックの最小アドレスとの間には、オフセットがあることがある。この場合、論理セクタアドレスは、メタブロック内の論理グループの末尾から先頭へ戻るループとして折り返す。例えば、図3A(iii)では、メタブロックは、その最初の位置が論理セクタkのデータで始まるように記憶する。最終論理セクタN−1に達すると、セクタ0に戻り、最終的には、その最終物理セクタに論理セクタk−1に関連したデータを記憶する。好ましい実施形態において、メタブロックの最初の物理セクタに記憶されたデータの最初の論理セクタアドレスを識別するといった、任意のオフセットの識別のために、ページタグが使用される。2つのブロックは、ページタグだけが異なる場合、その論理セクタを同様の順序で記憶しているものと考えられる。   There may be an offset between the lowest address of the logical group and the lowest address of the metablock to which it is mapped. In this case, the logical sector address is looped back as a loop from the end of the logical group in the metablock to the beginning. For example, in FIG. 3A (iii), the metablock stores such that its first position begins with data in logical sector k. When the final logical sector N-1 is reached, the process returns to the sector 0. Finally, data related to the logical sector k-1 is stored in the final physical sector. In the preferred embodiment, a page tag is used to identify any offset, such as identifying the first logical sector address of the data stored in the first physical sector of the metablock. Two blocks are considered to store their logical sectors in the same order when only the page tag is different.

図3Bは、論理グループとメタブロックと間のマッピングを概略的に示す。各論理グループは、データが現在更新中の少数の論理グループを除いて、固有のメタブロックにマッピングされる。論理グループが更新された後、別のメタブロックにマッピングされてもよい。マッピング情報は、論理/物理ディレクトリのセットに維持され、これについては、詳細に後述する。   FIG. 3B schematically shows the mapping between logical groups and metablocks. Each logical group is mapped to a unique metablock, except for a small number of logical groups whose data is currently being updated. After the logical group is updated, it may be mapped to another metablock. The mapping information is maintained in a set of logical / physical directories, which will be described in detail later.

メタブロックマッピングに対する他の種類の論理グループも予期される。例えば、可変サイズのメタブロックが、本願と同日にAlan Sinclair によって出願された「Adaptive Metablocks 」という同時継続出願中の共有された米国特許出願(特許文献17)に開示されている。同時継続出願の開示全体は、本願明細書において参照により援用されている。   Other types of logical groups for metablock mapping are also expected. For example, variable-size metablocks are disclosed in a co-pending US patent application (patent document 17) entitled “Adaptive Metablocks” filed by Alan Sinclair on the same day as this application. The entire disclosure of the co-pending application is incorporated herein by reference.

本発明の特徴の1つは、システムは単一の論理区画で動作し、メモリシステムの論理アドレス範囲にわたる論理セクタのグループは同一に扱われることである。例えば、システムデータを含むセクタと、ユーザデータを含むセクタとは、論理アドレス空間内のどこにでも分散することができる。   One feature of the present invention is that the system operates in a single logical partition, and groups of logical sectors across the logical address range of the memory system are treated identically. For example, sectors containing system data and sectors containing user data can be distributed anywhere in the logical address space.

従来技術のシステムとは異なり、高頻度かつ小サイズの更新を伴うデータを含む可能性が高い論理アドレス空間セクタに局在化させるための、システムセクタ(すなわち、ファイル割り当てテーブルに関連するセクタ、ディレクトリ、またはサブディレクトリ)の特別な分割またはゾーニングはない。代わりに、セクタの論理グループを更新するこの手法は、システムセクタに典型的なアクセスパターンおよびファイルデータに典型的なアクセスパターンを効率的に扱うことになる。   Unlike prior art systems, system sectors (ie, sectors, directories associated with file allocation tables) to localize to logical address space sectors that are likely to contain data with frequent and small size updates , Or sub-directories). Instead, this approach of updating a logical group of sectors effectively handles the access pattern typical for system sectors and the access pattern typical for file data.

図4は、物理メモリにおける構造を含むメタブロックの配列を示す。フラッシュメモリは、一単位として共に消去可能なメモリセルのブロックを備える。このような消去ブロックは、フラッシュメモリの消去の最小単位、またはメモリの最小消去ユニット(MEU)である。最小消去ユニットは、メモリのハードウェア設計パラメータであるが、複数のMEUの消去をサポートするメモリシステムによっては、1つ以上のMEUを備える「超MEU」を構成することができる。フラッシュEEPROMについて、MEUは1つのセクタを備えてもよいが、複数のセクタが好ましい。図に示されている例では、M個のセクタを有する。好ましい実施形態において、各セクタは、512バイトのデータを記憶することができ、ユーザデータ部分と、システムまたはオーバーヘッドデータを記憶するためのヘッダ部分とを有する。メタブロックがP個のMEUから構成されている場合には、各MEUはM個のセクタを含み、そして、各メタブロックは、N=P*M個のセクタを有することになる。   FIG. 4 shows an arrangement of metablocks including structures in physical memory. The flash memory comprises a block of memory cells that can be erased together as a unit. Such an erase block is a minimum unit of erase of a flash memory or a minimum erase unit (MEU) of a memory. The minimum erase unit is a hardware design parameter of the memory, but depending on the memory system that supports erasure of multiple MEUs, a “super MEU” comprising one or more MEUs can be configured. For flash EEPROM, the MEU may comprise one sector, but multiple sectors are preferred. In the example shown in the figure, it has M sectors. In the preferred embodiment, each sector can store 512 bytes of data and has a user data portion and a header portion for storing system or overhead data. If a metablock is composed of P MEUs, each MEU contains M sectors, and each metablock will have N = P * M sectors.

メタブロックは、システムレベルでは、例えば共に消去可能なセクタといった、メモリ位置のグループを表す。フラッシュメモリの物理アドレス空間は、メタブロックを消去の最小単位とした、メタブロックのセットとして扱われる。本願明細書において「メタブロック」および「ブロック」という用語は、媒体管理のためのシステムレベルにおける消去の最小単位を規定するために類義語として使用され、「最小消去ユニット」またはMEUは、フラッシュメモリの消去の最小単位を示すために使用される。   A metablock represents a group of memory locations, such as sectors that can be erased together, at the system level. The physical address space of the flash memory is treated as a set of metablocks with the metablock as a minimum unit for erasure. In this specification, the terms “metablock” and “block” are used as synonyms to define a minimum unit of erase at the system level for media management, and “minimum erase unit” or MEU is Used to indicate the smallest unit of erasure.

メタブロックを形成するための最小消去ユニット(MEU)のリンク付け
プログラミング速度および消去速度を最大限にするために、複数のMEUにある複数のページの情報が並列にプログラミングされるように、かつ複数のMEUが並列に消去されるようにすることによって、並行処理ができる限り活用される。
In order to maximize the link programming speed and erase speed of the minimum erase unit (MEU) to form the metablock , information on multiple pages in multiple MEUs is programmed in parallel, and multiple By making sure that the MEUs are erased in parallel, parallel processing is utilized as much as possible.

フラッシュメモリにおいて、ページは、1回の動作で共にプログラムすることができるメモリセルの集まりである。ページは、1つ以上のセクタを備えていてもよい。また、メモリアレイは、1つ以上のプレーンに分割されてもよく、1つのプレーン内の1つのMEUのみが1度にプログラムまたは消去されてもよい。最後に、プレーンは、1つ以上のメモリチップに渡って分散されていてもよい。   In flash memory, a page is a collection of memory cells that can be programmed together in a single operation. A page may comprise one or more sectors. Also, the memory array may be divided into one or more planes, and only one MEU in one plane may be programmed or erased at a time. Finally, the plane may be distributed across one or more memory chips.

フラッシュメモリにおいて、MEUは、1つ以上のページを備えていてもよい。フラッシュメモリチップ内のMEUは、プレーンに組織化されてもよい。各プレーンからの1つのMEUは並行してプログラムまたは消去されてもよいので、各プレーンから1つのMEUを選択することによって複数のMEUメタブロックを形成するのが得策である(以下の図5B参照)。   In flash memory, the MEU may comprise one or more pages. The MEUs in the flash memory chip may be organized in a plane. Since one MEU from each plane may be programmed or erased in parallel, it is a good idea to form multiple MEU metablocks by selecting one MEU from each plane (see FIG. 5B below). ).

図5Aは、互いに異なるプレーンの最小消去ユニットのリンク付けから構成されるメタブロックを示す。MB0,MB1,...などの各メタブロックは、メモリシステムの互いに異なるプレーンからのMEUから構成され、互いに異なるプレーンは、1つ以上のチップにわたって分散されていてもよい。図2に示されているメタブロックリンクマネージャ170は、各メタブロックについてのMEUのリンク付けを管理する。各メタブロックは、初期フォーマット処理中に構成され、その構成成分であるMEUを、MEUのうちの1つに障害があるまで、システムの寿命がある限り保持する。
図5Bは、1つの最小消去ユニット(MEU)が、メタブロックへのリンク付けのために各プレーンから選択される、一実施形態を示す。
FIG. 5A shows a metablock composed of linking of the smallest erasure units of different planes. MB0, MB1,. . . Each metablock is composed of MEUs from different planes of the memory system, and the different planes may be distributed across one or more chips. The metablock link manager 170 shown in FIG. 2 manages MEU linking for each metablock. Each metablock is configured during the initial formatting process and retains its constituent MEUs for the lifetime of the system until one of the MEUs fails.
FIG. 5B shows an embodiment where one minimal erasure unit (MEU) is selected from each plane for linking to metablocks.

図5Cは、1つより多くの最小消去ユニット(MEU)が、メタブロックへのリンク付けのために各プレーンから選択される、別の実施形態を示す。別の実施形態において、1つより多くのMEUが各プレーンから選択されて超MEUが形成されてもよい。例えば、超MEUは、2つのMEUから形成されてもよい。この場合、読み出しまたは書き込み動作について1つより多くのパスを利用してもよい。   FIG. 5C shows another embodiment in which more than one minimum erasure unit (MEU) is selected from each plane for linking to metablocks. In another embodiment, more than one MEU may be selected from each plane to form a super MEU. For example, a super MEU may be formed from two MEUs. In this case, more than one pass may be used for read or write operations.

MEUをメタブロックにリンク付けまたは再リンク付けすることは、本願と同日にCarlos Gonzales らによって出願された「Adaptive Deterministic Grouping of Blocks into Multi-Block Structures 」という同時継続出願中の共有された米国特許出願(特許文献18)に開示されている。同時継続出願の開示全体は、本願明細書において参照により援用されている。   Linking or relinking MEUs to metablocks is a co-pending US patent application entitled “Adaptive Deterministic Grouping of Blocks into Multi-Block Structures” filed by Carlos Gonzales et al. (Patent Document 18). The entire disclosure of the co-pending application is incorporated herein by reference.

メタブロック管理
図6は、コントローラおよびフラッシュメモリにおいて実施されるようなメタブロック管理システムの概略ブロック図である。メタブロック管理システムは、コントローラ100において実施された様々な機能モジュールを備え、様々な制御データ(ディレクトリデータを含む)をフラッシュメモリ200およびコントローラRAM130内に階層的に分散されたテーブルおよびリストに保持する。コントローラ100内に実装された機能モジュールは、インターフェイスモジュール110と、論理/物理アドレス変換モジュール140と、更新ブロックマネージャモジュール150と、消去ブロックマネージャモジュール160と、メタブロックリンクマネージャモジュール170とを含む。
Metablock Management FIG. 6 is a schematic block diagram of a metablock management system as implemented in the controller and flash memory. The metablock management system includes various functional modules implemented in the controller 100, and holds various control data (including directory data) in tables and lists hierarchically distributed in the flash memory 200 and the controller RAM 130. . The functional modules implemented in the controller 100 include an interface module 110, a logical / physical address translation module 140, an update block manager module 150, an erase block manager module 160, and a metablock link manager module 170.

インターフェイス110により、メタブロック管理システムは、ホストシステムとインターフェイスすることができる。論理/物理アドレス変換モジュール140は、論理アドレスをホストから物理メモリ位置へマッピングする。更新ブロックマネージャモジュール150は、データの所定の論理グループについて、メモリにおけるデータ更新動作を管理する。消去ブロックマネージャモジュール160は、メタブロックの消去動作と、新規の情報を記憶するためのメタブロック割り当てとを管理する。メタブロックリンクマネージャモジュール170は、セクタの最小消去可能ブロックのサブグループのリンク付けを管理して、所定のメタブロックを構成する。これらのモジュールの詳細な説明は、それぞれの欄で行う。   Interface 110 allows the metablock management system to interface with the host system. The logical / physical address translation module 140 maps logical addresses from the host to physical memory locations. The update block manager module 150 manages data update operations in memory for a given logical group of data. The erase block manager module 160 manages metablock erase operations and metablock allocation for storing new information. The metablock link manager module 170 manages the linking of the subgroups of the smallest erasable block of the sector to form a predetermined metablock. Detailed descriptions of these modules are given in the respective columns.

動作中に、メタブロック管理システムは、アドレス、制御および状態情報などの制御データを生成して、それと共に動作する。制御データのほとんどが小さなサイズの頻繁に変化するデータであることが多いので、大きなブロック構造のフラッシュメモリ内では簡単かつ効率的に記憶および保持することができない。より静的な制御データを不揮発性フラッシュメモリに記憶させ、より変化するより少ない量の制御データをコントローラRAMに位置づけるという階層的分散手法を使用することで、さらに効率的な更新およびアクセスを行う。電源遮断または障害時には、この手法により、揮発性コントローラRAM内の制御データは、不揮発性メモリ内の小さなセットの制御データを走査することによって、迅速に再構築することができる。これが可能なのは、本発明が、データの所定の論理グループの予想される動作に関連するブロックの数を制限しているからである。加えて、存続が必要とされる制御データのいくつかは、セクタ毎に更新可能な不揮発性のメタブロックに記憶され、新規のセクタを生じさせる各更新が、以前の更新に代わって記録される。セクタインデックス付け手法を制御データのために使用して、メタブロック内のセクタ毎の更新を追跡する。   During operation, the metablock management system generates and operates with control data such as address, control and status information. Since most of the control data is often small and frequently changing data, it cannot be stored and held easily and efficiently in a flash memory having a large block structure. More efficient updates and accesses are performed by using a hierarchical distributed approach where more static control data is stored in non-volatile flash memory and a smaller amount of changing control data is located in the controller RAM. In the event of a power failure or failure, this approach allows the control data in the volatile controller RAM to be quickly reconstructed by scanning a small set of control data in the non-volatile memory. This is possible because the present invention limits the number of blocks associated with the expected operation of a given logical group of data. In addition, some of the control data that needs to be persisted is stored in a nonvolatile metablock that can be updated sector by sector, and each update that results in a new sector is recorded in place of the previous update. . A sector indexing technique is used for control data to track updates for each sector in the metablock.

不揮発性フラッシュメモリ200は、比較的静的な大量の制御データを記憶する。これには、グループアドレステーブル(GAT)210と、カオス的ブロックインデックス(CBI)220と、消去済みブロックリスト(EBL)230と、MAP240とが含まれる。GAT210は、セクタの論理グループと、その対応するメタブロックとの間のマッピングを追跡する。マッピングは、更新を受けるもの以外は変化しない。CBI220は、更新中の論理的な非順次セクタのマッピングを追跡する。EBL230は、消去されたメタブロックのプールを追跡する。MAP240は、フラッシュメモリ内のすべてのメタブロックの消去状態を示すビットマップである。   The nonvolatile flash memory 200 stores a large amount of control data that is relatively static. This includes a group address table (GAT) 210, a chaotic block index (CBI) 220, an erased block list (EBL) 230, and a MAP 240. GAT 210 tracks the mapping between a logical group of sectors and its corresponding metablock. The mapping is unchanged except for those that receive updates. CBI 220 tracks the mapping of logical non-sequential sectors that are being updated. The EBL 230 keeps track of the pool of erased metablocks. The MAP 240 is a bitmap indicating the erased state of all metablocks in the flash memory.

揮発性コントローラRAM130は、頻繁に変化およびアクセスされる制御データの小さな部分を記憶する。これには、割り当てブロックリスト(ABL)134と、クリア済みブロックリスト(CBL)136とが含まれる。ABL134は、更新データを記録するためにメタブロックの割り当てを追跡し、CBL136は、割り当て解除および消去されたメタブロックを追跡する。好ましい実施形態において、RAM130は、フラッシュメモリ200に記憶された制御データについてのキャッシュとしての役割を果たす。   Volatile controller RAM 130 stores a small portion of control data that is frequently changed and accessed. This includes an allocated block list (ABL) 134 and a cleared block list (CBL) 136. ABL 134 tracks metablock assignments to record update data, and CBL 136 tracks deallocated and erased metablocks. In the preferred embodiment, RAM 130 serves as a cache for control data stored in flash memory 200.

更新ブロックマネージャ
(図2に示されている)更新ブロックマネージャ150は、論理グループの更新を扱う。本発明の一態様によれば、更新を受けているセクタの各論理グループには、更新データを記録するために、専用の更新メタブロックが割り当てられる。好ましい実施形態において、論理グループの1つ以上のセクタの任意のセグメントが、更新ブロックに記録されることになる。更新ブロックは、順次順序または非順次(カオス的としても知られる)順序のいずれかで更新データを受信するように管理される。カオス的更新ブロックでは、セクタデータを論理グループ内で任意の順序で更新することができ、また個別のセクタの任意の繰り返しがあってもよい。特に、順次更新ブロックは、いずれのデータセクタの移転の必要なく、カオス的更新ブロックになりえる。カオス的データ更新には、ブロックの所定の割り当ては必要ない。任意の論理アドレスでの非順次書き込みが自動的に対処される。よって、従来技術のシステムとは異なり、論理グループの様々な更新セグメントが論理的な順次順序であってもまたは非順次順序であっても、特殊な処理はない。一般的な更新ブロックは、ホストによって要求された順序で様々なセグメントを記憶するために、単に使用されることになる。例えば、ホストシステムデータまたはシステム制御データがカオス的に更新されがちな場合でも、ホストシステムデータに対応する論理アドレス空間の領域を、ホストユーザデータを伴う領域と別々に扱う必要はない。
Update Block Manager (shown in FIG. 2) The update block manager 150 handles logical group updates. According to one aspect of the invention, a dedicated update metablock is assigned to each logical group of sectors undergoing update in order to record update data. In the preferred embodiment, any segment of one or more sectors of the logical group will be recorded in the update block. Update blocks are managed to receive update data in either a sequential order or a non-sequential (also known as chaotic) order. In a chaotic update block, sector data can be updated in any order within a logical group, and there can be any repetition of individual sectors. In particular, a sequential update block can be a chaotic update block without the need to transfer any data sectors. Chaotic data updates do not require a predetermined allocation of blocks. Non-sequential writing at any logical address is automatically handled. Thus, unlike prior art systems, there is no special processing whether the various update segments of a logical group are in logical sequential or non-sequential order. A generic update block will simply be used to store the various segments in the order requested by the host. For example, even when the host system data or system control data is apt to be updated chaotically, it is not necessary to treat the logical address space area corresponding to the host system data separately from the area with the host user data.

セクタの完全な論理グループのデータは、1つのメタブロック内に論理的な順次順序で記憶されるのが好ましい。このように、記憶された論理セクタに対するインデックスは、予め規定されている。メタブロックが所定の順序で所定の論理グループのすべてのセクタを記憶している場合、これは「変化なし(intact)」といわれる。更新ブロックに関して、更新データを論理的な順次順序で最終的に充填する場合、更新ブロックは、元メタブロックを容易に置換する更新された変化なしのメタブロックとなる。他方、更新ブロックが更新データを、変化なしのブロックとは異なる論理的な順序で充填する場合、更新ブロックは、非順次またはカオス的更新ブロックであり、順序がばらばらのセグメントは、変化なしのブロックと同一の順序で論理グループの更新データが最終的には記憶されるように、さらに処理されなければならない。好ましい場合において、このセグメントは、1つのメタブロック内の論理的な順次順序である。さらなる処理には、元ブロック内の変化していないセクタを伴う更新ブロック内の更新されたセクタを、さらに他の更新メタブロックに統合化することを伴う。統合化された更新ブロックは、その後、論理的な順次順序となり、元ブロックを置換するために使用することができる。何らかの所定の条件下では、統合化処理に先立って、1つ以上のコンパクト化処理がある。コンパクト化処理は、カオス的更新ブロックのセクタを、置換するカオス的更新ブロックに単純に再記録し、同じ論理セクタの以前の更新によって廃止された重複する論理セクタを削除することはない。   The data of a complete logical group of sectors is preferably stored in a logical sequential order within one metablock. Thus, the index for the stored logical sector is defined in advance. If a metablock stores all sectors of a given logical group in a given order, this is said to be “intact”. With respect to the update block, when the update data is finally filled in a logical sequential order, the update block becomes an updated unchanged metablock that easily replaces the original metablock. On the other hand, if the update block fills the update data in a different logical order than the unchanged block, the update block is a non-sequential or chaotic update block, and a segment that is out of order is an unchanged block. Must be further processed so that the update data of the logical group is finally stored in the same order. In the preferred case, this segment is a logical sequential order within one metablock. Further processing involves integrating the updated sectors in the update block with unchanged sectors in the original block into further update metablocks. The integrated update block is then in logical sequential order and can be used to replace the original block. Under some predetermined conditions, there is one or more compaction processes prior to the integration process. The compacting process simply re-records the sectors of the chaotic update block into the replacing chaotic update block and does not delete duplicate logical sectors that have been obsoleted by previous updates of the same logical sector.

更新手法により、複数の更新スレッドを、所定の最大限まで並行して実行することができる。各スレッドは、専用の更新メタブロックを使用して更新を受けている論理グループである。   With the update method, a plurality of update threads can be executed in parallel up to a predetermined maximum. Each thread is a logical group that is being updated using a dedicated update metablock.

順次データ更新
ある論理グループに属するデータを最初に更新する場合、論理グループの更新データについての更新ブロックとして、メタブロックが専用に割り当てられる。更新ブロックが割り当てられるのは、コマンドがホストから受信されて、既存のメタブロックがそのすべてのセクタを変化なく記憶している論理グループの1つ以上のセクタのセグメントを書き込む場合である。最初のホスト書き込み動作の場合、データの最初のセグメントが更新ブロックに記録される。各ホスト書き込みは連続論理アドレスを伴う1つ以上のセクタのセグメントであるので、最初の更新は、その性質上常に順次的であることとなる。後続のホスト書き込みでは、同一の論理グループ内の更新セグメントが、ホストから受信された順序で更新ブロックに記録される。ブロックは、順次更新ブロックとして管理され続けるのに対し、関連する論理グループ内でホストによって更新されたセクタは、論理的に順次的であり続ける。この論理グループ内で更新されたすべてのセクタは、このブロックが閉鎖されるか、カオス的更新ブロックに変換されるかのいずれかとなるまで、この順次更新ブロックに書き込まれる。
When data belonging to a logical group with sequential data update is first updated, a metablock is allocated exclusively as an update block for the update data of the logical group. An update block is allocated when a command is received from the host and writes a segment of one or more sectors of a logical group in which an existing metablock stores all its sectors unchanged. For the first host write operation, the first segment of data is recorded in the update block. Since each host write is a segment of one or more sectors with sequential logical addresses, the initial update will always be sequential in nature. In subsequent host writes, update segments within the same logical group are recorded in the update block in the order received from the host. Blocks continue to be managed as sequential update blocks, while sectors updated by the host in the associated logical group remain logically sequential. All sectors updated in this logical group are written to this sequential update block until this block is either closed or converted to a chaotic update block.

図7Aは、2つの別個のホスト書き込み動作の結果、順次更新ブロックへ順次順序で書き込まれる論理グループ内のセクタの一例を示し、この論理グループについての元ブロック内の対応するセクタは廃止になる。ホスト書き込み動作#1において、論理セクタLS5〜LS8内のデータが更新中である。LS5’〜LS8’として更新されたデータは、新規に割り当てられた専用の更新ブロックに記録される。   FIG. 7A shows an example of a sector in a logical group that is written sequentially into a sequential update block as a result of two separate host write operations, with the corresponding sector in the original block for this logical group being obsolete. In host write operation # 1, data in logical sectors LS5 to LS8 is being updated. The data updated as LS5 'to LS8' is recorded in a newly assigned dedicated update block.

便宜上、論理グループ内の更新すべき第1のセクタは、第1の物理セクタ位置から開始する専用更新ブロックに記録される。一般的に、更新すべき第1の論理セクタは、必ずしもグループの論理的に第1番目のセクタではないので、論理グループの最初と、更新ブロックの最初との間にはオフセットがあることがある。このオフセットは、図3Aに関連して前に説明したように、ページタグとして知られている。後続のセクタは、論理的な順次順序で更新される。論理グループの最後のセクタが書き込まれる場合、グループアドレスは折り返して、書き込みシーケンスを、グループの最初のセクタで継続する。   For convenience, the first sector to be updated in the logical group is recorded in a dedicated update block starting from the first physical sector position. In general, the first logical sector to be updated is not necessarily the logical first sector of the group, so there may be an offset between the beginning of the logical group and the beginning of the update block. . This offset is known as the page tag, as previously described in connection with FIG. 3A. Subsequent sectors are updated in a logical sequential order. When the last sector of the logical group is written, the group address wraps around and the write sequence continues with the first sector of the group.

ホスト書き込み動作#2において、論理セクタLS9〜LS12内のデータのセグメントが更新中である。LS9’〜LS12’として更新されたデータは、専用の更新ブロック内の、最後の書き込みが終了した場所に直接続く位置に記録される。2つのホスト書き込みは、更新データが論理的な順次順序で、すなわち、LS5’〜LS12’のようにして、更新ブロックに記録されたようなものとして理解することができる。更新ブロックが順次更新ブロックとみなされるのは、論理的な順次順序で充填されているからである。更新ブロックに記録された更新データによって、元ブロック内の対応するデータが廃止される。   In host write operation # 2, the segment of data in logical sectors LS9 to LS12 is being updated. The data updated as LS9 'to LS12' is recorded at a position in the dedicated update block that directly follows the location where the last writing has been completed. Two host writes can be understood as if the update data was recorded in the update block in a logical sequential order, ie LS5'-LS12 '. Update blocks are considered sequential update blocks because they are filled in a logical sequential order. The corresponding data in the original block is abolished by the update data recorded in the update block.

カオス的データ更新
カオス的更新ブロック管理は、関連論理グループ内でホストによって更新された任意のセクタが論理的に非順次の場合に、既存の順次更新ブロックについて開始される。カオス的更新ブロックは、関連する論理グループ内の論理セクタが任意の順序でかつ任意の繰り返し量で更新されてもよいようなデータ更新ブロックの形式を取る。これは、ホストによって書き込まれたセクタが、更新中の論理グループ内の以前書き込んだセクタに対して論理的に非順次である場合に、順次更新ブロックからの変換によって作成される。この論理グループ内のその後の更新されたすべてのセクタは、グループ内の論理セクタアドレスが何であれ、カオス的更新ブロック内の次に使用可能なセクタ位置に書き込まれる。
Chaotic data update Chaotic update block management is started for an existing sequential update block when any sector updated by the host in the associated logical group is logically non-sequential. A chaotic update block takes the form of a data update block in which logical sectors in the associated logical group may be updated in any order and with any amount of repetition. This is created by conversion from the sequential update block if the sector written by the host is logically non-sequential to the previously written sector in the logical group being updated. All subsequent updated sectors in this logical group are written to the next available sector location in the chaotic update block, whatever the logical sector address in the group.

図7Bは、5つの別個のホスト書き込み動作の結果、カオス的更新ブロックへカオス的順序で書き込まれる論理グループ内のセクタの一例を示し、この論理グループについての元ブロック内の取り替えられたセクタと、カオス的更新ブロック内の複製セクタとは廃止になる。ホスト書き込み動作#1において、元メタブロックに記憶されている所定の論理グループの論理セクタLS10〜LS11が更新される。更新された論理セクタLS10’〜LS11’は、新規に割り当てられた更新ブロックに記憶される。この点で、更新ブロックは、順次的である。ホスト書き込み動作#2において、論理セクタLS5〜LS6がLS5’〜LS6’に更新されて、更新ブロック内の最終の書き込みに直接続く位置に記録される。これにより、更新ブロックは、順次的からカオス的なものへと変換される。ホスト書き込み動作#3において、論理セクタLS10が再び更新中であり、更新ブロックの次の位置にLS10’’として記録される。この点で、更新ブロック内のLS10’’は、元ブロック内のLS10に取って代わる以前の記録内のLS10’に取って代わる。ホスト書き込み動作#4において、論理セクタLS10内のデータは再び更新されて、更新ブロックの次の位置にLS10’’’として記録される。よって、LS10’’’が、論理セクタLS10についての現在における最新かつ唯一の有効データとなる。ホスト書き込み動作#5において、論理セクタLS30内のデータが更新中であり、更新ブロックにLS30’として記録される。よって、この例は、任意の順序および任意の繰り返しによって、論理グループ内のセクタをカオス的更新ブロックに書き込むことができることを示す。   FIG. 7B shows an example of a sector in a logical group that is written in chaotic order to a chaotic update block as a result of five separate host write operations, and a replaced sector in the original block for this logical group; The duplicate sector in the chaotic update block is abolished. In host write operation # 1, logical sectors LS10 to LS11 of a predetermined logical group stored in the original metablock are updated. The updated logical sectors LS10 'to LS11' are stored in the newly allocated update block. In this regard, the update block is sequential. In the host write operation # 2, the logical sectors LS5 to LS6 are updated to LS5 'to LS6' and recorded at positions immediately following the last write in the update block. As a result, the update block is converted from sequential to chaotic. In the host write operation # 3, the logical sector LS10 is being updated again, and is recorded as LS10 '' at the next position of the update block. At this point, the LS 10 ″ in the update block replaces the LS 10 ′ in the previous record that replaces the LS 10 in the original block. In host write operation # 4, the data in the logical sector LS10 is updated again and recorded as LS10 "" at the next position of the update block. Therefore, the LS 10 ″ ″ is the latest and only valid data at present regarding the logical sector LS 10. In host write operation # 5, the data in the logical sector LS30 is being updated and is recorded as LS30 'in the update block. Thus, this example shows that sectors in a logical group can be written to chaotic update blocks in any order and any repetition.

強制的順次更新
図8は、2つの別個のホスト書き込み動作の結果としての、論理アドレスに不連続性を有する、順次更新ブロックへ順次順序で書き込まれる論理グループ内のセクタの一例を示す。ホスト書き込み#1において、論理セクタLS5〜LS8における更新データは、LS5’〜LS8’として専用の更新ブロック内に記録される。ホスト書き込み#2において、論理セクタLS14〜LS16における更新データは、最終の書き込みに続く更新ブロック内にLS14’〜LS16’として記録されている。しかし、LS8とLS14との間にアドレスジャンプがあり、ホスト書き込み#2は、通常、更新ブロックを非順次的にすることになる。アドレスジャンプは重要ではないので、1つのオプションとしては、ホスト書き込み#2を実行する前に、介在セクタのデータを元ブロックから更新ブロックへコピーすることによってパディング動作(#2A)をまず行うというものである。このように、更新ブロックの順次的性質が維持される。
Forced Sequential Update FIG. 8 shows an example of sectors in a logical group that are written sequentially to sequential update blocks with discontinuities in logical addresses as a result of two separate host write operations. In host write # 1, update data in logical sectors LS5 to LS8 are recorded in dedicated update blocks as LS5 ′ to LS8 ′. In host write # 2, the update data in logical sectors LS14 to LS16 are recorded as LS14 ′ to LS16 ′ in the update block following the last write. However, there is an address jump between LS8 and LS14, and host write # 2 will typically make the update block non-sequential. Since address jumps are not important, one option is to first perform the padding operation (# 2A) by copying the intervening sector data from the original block to the update block before executing host write # 2. It is. In this way, the sequential nature of the update block is maintained.

図9は、本発明の一般的な一実施形態に係る、データの論理グループを更新するための更新ブロックマネージャによる処理を示すフロー図である。更新処理は、以下のステップを含む。
ステップ260:メモリはブロックに組織化され、各ブロックは共に消去可能なメモリユニットに分割され、各メモリユニットは、データの論理ユニットを記憶するためのものである。
ステップ262:データは論理グループに組織化され、各論理グループは、論理ユニットに分割される。
ステップ264:標準的な場合、論理グループのすべての論理ユニットは、第1の所定の順序、好ましくは論理的な順次順序に従って、元ブロックのメモリユニットに記憶される。このように、ブロック内の個々の論理ユニットをアクセスするためのインデックスがわかる。
ステップ270:データの所定の論理グループ(例えば、LGx )について、LGx 内で論理ユニットを更新するための要求が行われる(一例として、論理ユニット更新が挙げられる。一般的には、更新は、LGx 内の1つ以上の連続論理ユニットのセグメントとなる)。
ステップ272:要求された更新論理ユニットが、LGx の更新の記録専用の第2のブロックに記憶されることになる。記録順序は、第2の順序であり、典型的には、更新が要求された順序に従う。本発明の一特徴は、論理的な順次またはカオス的順序でデータを記録するように、更新ブロックを最初に一般的に設定することができるようにする。第2の順序によっては、第2のブロックは、順次的なものである場合も、カオス的なものである場合もある。
ステップ274:処理がステップ270にループバックするにつれて、第2のブロックは、論理ユニットが記録されるように要求し続ける。閉鎖のための所定の条件が具体化すると、第2のブロックは閉鎖されて、さらなる更新を受信しなくなる。この場合、処理は276へ進む。
ステップ276:閉鎖された第2のブロックが元ブロックと同様の順序でその更新論理ユニットを記録しているかどうかについて決定が行われる。図3Aに関して説明したように、ページタグ分だけ異なる論理ユニットを記録している場合には、2つのブロックは同様の順序であるとみなされる。2つのブロックが同様の順序である場合は、処理はステップ280へ進み、そうでなければ、ステップ290において、何らかのガーベッジコレクションを行う必要がある。
ステップ280:第2のブロックは第1のブロックと同一の順序なので、第2のブロックは、元ブロックである第1のブロックを置換するために使用される。更新処理は、その後、ステップ299で終了する。
ステップ290:所定の論理グループの各論理ユニットの最新バージョンが、第2のブロック(更新ブロック)および第1のブロック(元ブロック)から収集される。所定の論理グループの統合化された論理ユニットは、その後、第1のブロックと同様の順序で第3のブロックに書き込まれる。
ステップ292:第3のブロック(統合化されたブロック)は第1のブロックと同様の順序であるので、第3のブロックは、元ブロックである第1のブロックを置換するために使用される。更新処理は、その後、ステップ299で終了する。
ステップ299:閉鎖処理によって変化のない更新ブロックが作成されると、これが所定の論理グループにとっての新規の標準ブロックとなる。論理グループについての更新スレッドは終了される。
FIG. 9 is a flow diagram illustrating processing by an update block manager to update a logical group of data, according to a general embodiment of the invention. The update process includes the following steps.
Step 260: The memory is organized into blocks, each block being divided into erasable memory units, each memory unit for storing a logical unit of data.
Step 262: The data is organized into logical groups, and each logical group is divided into logical units.
Step 264: In the standard case, all logical units of the logical group are stored in the memory units of the original block according to a first predetermined order, preferably a logical sequential order. In this way, an index for accessing each logical unit in the block is known.
Step 270: For a given logical group of data (eg, LG x ), a request is made to update a logical unit in LG x (an example is a logical unit update. , A segment of one or more consecutive logical units in LG x ).
Step 272: The requested update logical unit will be stored in a second block dedicated to recording LG x updates. The recording order is the second order and typically follows the order in which updates were requested. One feature of the present invention allows an update block to be generally set initially to record data in a logical sequential or chaotic order. Depending on the second order, the second block may be sequential or chaotic.
Step 274: As the process loops back to step 270, the second block continues to request that the logical unit be recorded. Once the predetermined condition for closure is materialized, the second block is closed and no further updates are received. In this case, the process proceeds to 276.
Step 276: A determination is made as to whether the closed second block has recorded its updated logical units in the same order as the original block. As described with respect to FIG. 3A, when recording logical units that differ by the page tag, the two blocks are considered to be in the same order. If the two blocks are in the same order, processing proceeds to step 280, otherwise some garbage collection needs to be done at step 290.
Step 280: Since the second block is in the same order as the first block, the second block is used to replace the first block that is the original block. The update process then ends at step 299.
Step 290: The latest version of each logical unit of a given logical group is collected from the second block (update block) and the first block (original block). The integrated logical units of a given logical group are then written to the third block in the same order as the first block.
Step 292: Since the third block (integrated block) is in the same order as the first block, the third block is used to replace the first block which is the original block. The update process then ends at step 299.
Step 299: Once the unchanged update block is created by the closure process, this becomes the new standard block for a given logical group. The update thread for the logical group is terminated.

図10は、本発明の好ましい実施形態に係る、データの論理グループを更新するための更新ブロックマネージャによる処理を示すフロー図である。更新処理は、以下のステップを含む。
ステップ310:データの所定の論理グループ(例えば、LGx )について、LGx 内で論理セクタを更新するための要求が行われる(一例として、セクタ更新が挙げられる。一般的には、更新は、LGx 内の1つ以上の連続論理セクタのセグメントととなる)。
ステップ312:LGx に専用の更新ブロックがまだ存在しない場合、ステップ410へ進み、論理グループについて新規の更新スレッドを開始する。これは、論理グループの更新データを記録するのに専用の更新ブロックを割り当てることによって達成されることになる。開放されている更新ブロックが既にあれば、ステップ314へ進み、更新ブロックに対する更新セクタの記録を開始する。
ステップ314:現在の更新ブロックが既にカオス的(すなわち、非順次的)である場合には、そのままステップ510へ進み、要求された更新セクタをカオス的更新ブロックに記録する。現在の更新ブロックが順次的である場合、ステップ316へ進み、順次更新ブロックの処理を行う。
ステップ316:本発明の一特徴は、論理的な順次またはカオス的順序でデータを記録するように、更新ブロックを最初に一般的に設定することができるようにする。しかし、論理グループは、最終的にはそのデータを論理的な順次順序でメタブロックに記憶させるので、更新ブロックをできるだけ順次的に維持するのが望ましい。そうすれば、更新ブロックが閉鎖されてさらなる更新ができなくなった場合、ガーベッジコレクションは必要ないので、必要とされる処理が少なくなる。
FIG. 10 is a flow diagram illustrating processing by an update block manager to update a logical group of data, according to a preferred embodiment of the present invention. The update process includes the following steps.
Step 310: For a given logical group of data (eg, LG x ), a request is made to update a logical sector in LG x (an example is sector update. A segment of one or more consecutive logical sectors in LG x ).
Step 312: If LG x does not yet have a dedicated update block, go to step 410 to start a new update thread for the logical group. This will be accomplished by allocating dedicated update blocks to record logical group update data. If there is already an update block that has been released, the process proceeds to step 314, and recording of the update sector for the update block is started.
Step 314: If the current update block is already chaotic (ie non-sequential), proceed to step 510 and record the requested update sector in the chaotic update block. If the current update block is sequential, the process proceeds to step 316 to process the update block sequentially.
Step 316: One feature of the present invention allows the update block to be generally initially set to record data in a logical sequential or chaotic order. However, since logical groups eventually store their data in metablocks in a logical sequential order, it is desirable to keep update blocks as sequential as possible. That way, if the update block is closed and no further updates are possible, garbage collection is not required and therefore less processing is required.

要求された更新が更新ブロックの現在の順次順序に従うかどうかについての決定がなされる。更新が順次的に従う場合、ステップ510へ進み、順次更新が行われ、更新ブロックは順次的なままである。他方、更新が順次的に従わない(カオス的更新の)場合、他の動作が行われないならば、順次更新ブロックをカオス的なものに変換する。
一実施形態において、状況を守るためにこれ以上何もせず、処理は直接ステップ370へ進み、更新ブロックをカオス的なものにする更新が許容される。
A determination is made as to whether the requested update follows the current sequential order of the update blocks. If the updates follow sequentially, proceed to step 510 where the sequential updates are made and the update blocks remain sequential. On the other hand, if the updates do not follow sequentially (chaotic updates), then if no other action is taken, the sequential update blocks are converted to chaotic.
In one embodiment, no further action is taken to protect the situation, and processing proceeds directly to step 370 where updates are allowed to make the update block chaotic.

オプションの強制的順次処理
他の実施形態において、強制的順次処理ステップ320が、保留中のカオス的更新の観点から順次更新ブロックをできるだけ保存するためにオプションとして行われる。2つの状況があり、どちらも、欠落したセクタを元ブロックからコピーして、更新ブロック上に記録された論理セクタの順次順序を維持するものである。第1の状況は、更新によって短いアドレスジャンプが生じることである。第2の状況は、更新ブロックを順次的に保つために、更新ブロックを早く閉鎖することである。強制的順次処理ステップ320は、以下のサブステップを含む。
ステップ330:更新によって、所定の量CB より大きい論理アドレスジャンプが生じる場合、処理はステップ350の強制的順次更新処理へと進み、そうでなければ、処理はステップ340へと進んで、強制的順次閉鎖の資格があるかどうかの検討を行う。
ステップ340:充填されていない物理セクタ数が、更新ブロックのサイズの半分が典型的な値である所定の設定パラメータCC を超える場合、更新ブロックは、比較的使用されず、早く閉鎖されることはない。処理はステップ370へ進み、更新ブロックは、カオス的となる。他方、更新ブロックがおおむね充填されている場合、既に十分に使っているとみなされるので、ステップ360へと進み、強制的順次閉鎖となる。
ステップ350:強制的順次更新により、現在の順次更新ブロックを、アドレスジャンプが所定量CB を超えない限り順次的なままとすることができる。基本的には、更新ブロックの関連する元ブロックからのセクタがコピーされて、アドレスジャンプによるギャップを埋める。よって、順次更新ブロックは、ステップ510へ進んで現在の更新を順次記録する前に、介在アドレス内のデータで埋められることになる。
ステップ360:強制的順次閉鎖により、現在の順次的な更新ブロックを、カオス的なものに変換するよりも保留中のカオス的更新によって既におおむね充填されていれば、閉鎖することができる。カオス的または非順次更新は、前述したアドレスジャンプ例外、逆方向アドレス遷移、またはアドレス反復の対象ではなく、順方向アドレス遷移を伴うものとして規定される。順次更新ブロックがカオス的更新によって変換されるのを防止するために、更新ブロックの未書き込みのセクタ位置が、更新ブロックの関連した元の部分的に廃止されたブロックからセクタをコピーすることによって充填される。元ブロックは、その後完全に廃止されて、消去することができる。現在の更新ブロックは、現在では、フルセットの論理セクタを有するので、元メタブロックを置き換える変化のないメタブロックとして閉鎖される。処理は、ステップ430へと進み、ステップ310において最初に要求された保留中のセクタ更新の記録を受け付けるために、新規の更新ブロックをその位置に割り当てる。
Optional Forced Sequential Processing In another embodiment, a forced sequential processing step 320 is optionally performed to preserve as many sequential update blocks as possible in terms of pending chaotic updates. There are two situations, both of which copy the missing sectors from the original block and maintain the sequential order of the logical sectors recorded on the update block. The first situation is that the update causes a short address jump. The second situation is to close the update blocks early to keep the update blocks sequentially. The forced sequential processing step 320 includes the following sub-steps.
Step 330: If the update results in a logical address jump greater than the predetermined amount C B , the process proceeds to the forced sequential update process of step 350, otherwise the process proceeds to step 340 to force Consider whether it is eligible for sequential closure.
Step 340: If the number of unfilled physical sectors exceeds a predetermined configuration parameter C C where half of the size of the update block is a typical value, the update block is relatively unused and will be closed early. There is no. Processing proceeds to step 370, where the update block becomes chaotic. On the other hand, if the update block is almost filled, it is considered that it is already fully used, so the process proceeds to step 360, where a forced sequential closure is performed.
Step 350: Forced sequential update allows the current sequential update block to remain sequential as long as the address jump does not exceed a predetermined amount C B. Basically, the sector from the related original block of the update block is copied to fill the gap due to the address jump. Thus, the sequential update block will be filled with data in the intervening address before proceeding to step 510 to sequentially record the current update.
Step 360: Forced sequential closure allows the current sequential update block to be closed if it is already mostly filled by pending chaotic updates rather than converting it into chaotic ones. Chaotic or non-sequential updates are defined as involving forward address transitions, not subject to the address jump exceptions, backward address transitions, or address repetitions described above. To prevent sequential update blocks from being converted by chaotic updates, the unwritten sector position of the update block is filled by copying sectors from the associated original partially obsolete block of the update block Is done. The original block is then completely abolished and can be erased. Since the current update block now has a full set of logical sectors, it is closed as an unchanged metablock that replaces the original metablock. The process proceeds to step 430 and assigns a new update block to that position in order to accept the pending sector update record initially requested in step 310.

カオス的更新ブロックへの変換
ステップ370:保留中の更新が順次順序でなく、オプションとして、強制的順次条件が満たされていない場合、処理がステップ510へ進むときに非順次アドレスを有する保留中の更新セクタが更新ブロックへ記録されるようにするために、順次更新ブロックは、カオス的なものに変換されることが許容される。カオス的更新ブロックの最大数が存在する場合に、変換が進む前に、最近最もアクセスされていないカオス的更新ブロックを閉鎖する必要がある。よって、カオス的更新ブロックの最大数が超えないようにする。最近最もアクセスされていないカオス的更新ブロックの識別は、ステップ420において説明した一般的な場合と同一であるが、カオス的更新ブロックだけに制約される。このときにカオス的更新ブロックを閉鎖することは、ステップ550において説明したような統合化によって達成される。
Convert to Chaotic Update Block Step 370: If pending updates are not in sequential order and, optionally, forced sequential conditions are not met, pending processing with non-sequential addresses when processing proceeds to step 510 In order for the update sector to be recorded in the update block, the sequential update block is allowed to be converted into a chaotic one. When the maximum number of chaotic update blocks exists, it is necessary to close the least recently accessed chaotic update block before the conversion proceeds. Therefore, the maximum number of chaotic update blocks should not be exceeded. The identification of the least recently accessed chaotic update block is the same as the general case described in step 420, but is limited to only chaotic update blocks. Closing the chaotic update block at this time is accomplished by integration as described in step 550.

システム制約を受ける新規の更新ブロックの割り当て
ステップ410:消去メタブロックを更新ブロックとして割り当てる処理は、所定のシステム制約が超えているかどうかを判断することから開始する。リソースは有限であるため、メモリ管理システムは、典型的には、更新ブロックの所定の最大数UMAX が並行して存在することを許容する。この制限は、順次更新ブロックとカオス的更新ブロックとの総計であり、設計パラメータである。好ましい実施形態において、この制限は、例えば、最大8つの更新ブロックである。また、システムリソースに対するさらなる高い需要により、並行して開放されているカオス的更新ブロックの最大数に対する対応する所定の制限があってもよい(例えば、4つ)。
よって、UMAX 個の更新ブロックが既に割り当てられていれば、次の割り当て要求は、既存の割り当てられたものの1つが閉鎖された後にはじめて満足することができるようになる。処理はステップ420へ進む。開放更新ブロックの数がCA を下回る場合には、処理は直接ステップ430へ進む。
Assign new update block subject to system constraints Step 410: The process of assigning an erase metablock as an update block begins with determining whether a predetermined system constraint is exceeded. Because resources are finite, memory management systems typically allow a predetermined maximum number U MAX of update blocks to exist in parallel. This limitation is the sum of sequential update blocks and chaotic update blocks, and is a design parameter. In a preferred embodiment, this limit is, for example, a maximum of 8 update blocks. Also, due to the higher demand for system resources, there may be a corresponding predetermined limit on the maximum number of chaotic update blocks that are released in parallel (eg 4).
Thus, if U MAX update blocks have already been allocated, the next allocation request can be satisfied only after one of the existing allocations is closed. Processing proceeds to step 420. If the number of open update blocks is below C A, the process proceeds directly to step 430.

ステップ420:更新ブロックCA の最大数を超える場合には、最近最もアクセスされていない更新ブロックが閉鎖されて、ガーベッジコレクションが行われる。最近最もアクセスされていない更新ブロックは、最近最もアクセスされていない論理ブロックに関連した更新ブロックとして識別される。最近最もアクセスされていないブロックを決定する目的で、アクセスは、論理セクタの書き込みと、オプションで読み出しとを含む。開放更新ブロックのリストが、アクセス順に保持され、初期化の際には、アクセス順序は何ら想定されていない。更新ブロックの閉鎖は、更新ブロックが順次的な場合のステップ360および530、ならびに更新ブロックがカオス的な場合のステップ540に関連して説明したのと同様の処理に従う。閉鎖により、ステップ430において新規の更新ブロックを割り当てる空間ができる。
ステップ430:割り当て要求は、新規のメタブロックを所定の論理グループLGx に専用の更新ブロックとして割り当てることで満足される。その後、処理はステップ510へ進む。
Step 420: if it exceeds the maximum number of update blocks C A is update block that has not been recently most accessible is closed, garbage collection is performed. The least recently accessed update block is identified as the update block associated with the least recently accessed logical block. In order to determine the least recently accessed block, access includes writing logical sectors and optionally reading. The list of released update blocks is held in the order of access, and no access order is assumed at the time of initialization. Closing the update block follows a similar process as described in connection with steps 360 and 530 when the update block is sequential and step 540 when the update block is chaotic. Closing allows room to allocate a new update block in step 430.
Step 430: allocation request is satisfied by assigning as an update block dedicated to the new metablock in the given logical group LG x. Thereafter, the process proceeds to step 510.

更新データの更新ブロックへの記録
ステップ510:要求された更新セクタは、更新ブロックの次に使用可能な物理位置上に記録される。その後、処理はステップ520へ進み、更新ブロックを閉鎖する機が熟したかどうかが判断される。
Record update data to update block 510: The requested update sector is recorded on the next available physical location of the update block. Thereafter, the process proceeds to step 520 where it is determined whether the time to close the update block is ripe.

更新ブロックの閉鎖
ステップ520:さらなる更新を受け付けるための空間が更新ブロックにまだある場合には、ステップ570へ進む。そうでない場合には、ステップ522へ進み、更新ブロックを閉鎖する。現在の要求された書き込みが、ブロックが有する空間よりも多くの論理セクタを書き込もうとするものである場合に、更新ブロックを満たす実装例として2つのものがある。第1の実装例において、書き込み要求は2つの部分に分割され、第1の部分がブロックの最終物理セクタまで書き込む。その後、ブロックは閉鎖され、書き込みの第2の部分が、次に要求された書き込みとして扱われることになる。他方の実装例において、要求された書き込みは、ブロックが残りのセクタが埋め込まれて閉鎖されている間は保留される。要求された書き込みは、次に要求された書き込みとして扱われることになる。
ステップ522:更新ブロックが順次的であれば、ステップ530へと進み、順次閉鎖となる。更新ブロックがカオス的であれば、ステップ540へと進み、カオス的閉鎖となる。
Update block closure step 520: If there is still space in the update block to accept further updates, go to step 570. Otherwise, go to step 522 and close the update block. There are two implementations that fill the update block when the current requested write is to write more logical sectors than the block has. In the first implementation, the write request is divided into two parts, and the first part writes up to the last physical sector of the block. Thereafter, the block is closed and the second part of the write will be treated as the next requested write. In the other implementation, the requested write is deferred while the block is closed with the remaining sectors padded. The requested write will be treated as the next requested write.
Step 522: If the update block is sequential, proceed to Step 530 and close sequentially. If the update block is chaotic, the process proceeds to step 540 and becomes a chaotic closure.

順次更新ブロックの閉鎖
ステップ530:更新ブロックが順次的かつ満杯であるので、そこに記憶された論理グループには変化がない。メタブロックは変化がなく、元のものを置換する。このとき、元ブロックは完全に廃止され、消去されてもよい。その後、処理はステップ570へと進み、所定の論理グループに対する更新スレッドは終了する。
Close sequential update block step 530: Since the update block is sequential and full, there is no change in the logical group stored there. The metablock is unchanged and replaces the original one. At this time, the original block may be completely abolished and deleted. Thereafter, the process proceeds to step 570, and the update thread for the predetermined logical group ends.

カオス的更新ブロックの閉鎖
ステップ540:更新ブロックは非順次的に充填され、いくつかの論理セクタの複数の更新を含む場合もあるので、ガーベッジコレクションが行われて、内部の有効なデータを救い出す。カオス的更新ブロックは、コンパクト化または統合化のいずれかが行われることになる。どちらの処理を行うかは、ステップ542において決定される。
ステップ542:コンパクト化を行うか、または統合化を行うかは、更新ブロックの重なり具合に依存する。論理セクタが複数回更新されていれば、その論理アドレスは非常に重なっている。更新ブロックに記録された同一の論理セクタの複数のバージョンがあることになり、最後に記録されたバージョンのみが、この論理セクタについて有効なものである。複数のバージョンを有する論理セクタを含む更新ブロックにおいて、別個の論理セクタの数は、論理グループの数よりはるかに少ないことになる。
Chaotic update block closure step 540: Since the update block is filled non-sequentially and may contain multiple updates of several logical sectors, garbage collection is performed to rescue the internal valid data. Chaotic update blocks will either be compacted or integrated. Which process is to be performed is determined in step 542.
Step 542: Whether compactification or integration is performed depends on the overlapping state of update blocks. If a logical sector has been updated multiple times, its logical addresses are very overlapping. There will be multiple versions of the same logical sector recorded in the update block, and only the last recorded version is valid for this logical sector. In an update block that includes logical sectors having multiple versions, the number of distinct logical sectors will be much less than the number of logical groups.

好ましい実施形態において、更新ブロック内の別個の論理セクタの数が、論理グループの大きさの半分が典型的な値である所定の設計パラメータCD を超える場合には、閉鎖処理はステップ550において統合化を行い、そうでなければ、処理はステップ560においてコンパクト化を行う。
ステップ550:カオス的更新ブロックが統合化されることになる場合、元ブロックと更新ブロックとが、統合化されたデータを含む新規の標準メタブロックに置換されることになる。統合化後、更新スレッドはステップ570において終了する。
ステップ560:カオス的更新ブロックがコンパクト化されることになる場合、コンパクト化されたデータを保持する新規の更新ブロックに置換されることになる。コンパクト化後、コンパクト化された更新ブロックの処理は、ステップ570において終了する。代わりに、更新ブロックが再び書き込まれるまで、コンパクト化を遅らせることもでき、これにより、介在する更新がないのに統合化に続いてコンパクト化が生じる可能性を排除する。新規の更新ブロックは、その後、LGx における更新への次の要求がステップ502において生じるときに、所定の論理ブロックのさらなる更新を行う際に使用されることになる。
ステップ570:閉鎖処理によって変化のない更新ブロックが作成される場合には、それが所定の論理グループの新規の標準ブロックになる。この論理グループの更新スレッドは終了することになる。閉鎖処理によって既存のものを置換する新規の更新ブロックが作成される場合には、この新規の更新ブロックは、所定の論理グループに対して要求される次の更新を記録するために使用されることになる。更新ブロックが閉鎖されない場合には、処理は、LGx 内の更新に対する次の要求がステップ310に生じる場合に継続する。
In the preferred embodiment, the closure process is integrated in step 550 if the number of distinct logical sectors in the update block exceeds a predetermined design parameter CD, which is a typical value of half the logical group size. Otherwise, the process compacts at step 560.
Step 550: If the chaotic update block is to be integrated, the original block and the update block will be replaced with a new standard metablock containing the integrated data. After integration, the update thread ends at step 570.
Step 560: If the chaotic update block is to be compacted, it will be replaced with a new update block holding the compacted data. After compacting, processing of the compacted update block ends at step 570. Alternatively, compaction can be delayed until the update block is written again, thereby eliminating the possibility of compaction following integration without any intervening updates. The new update block will then be used in making further updates to a given logical block when the next request for update in LG x occurs in step 502.
Step 570: If the closed process creates an unchanged update block, it becomes the new standard block for the given logical group. This logical group update thread will be terminated. If the closure process creates a new update block that replaces the existing one, this new update block shall be used to record the next update required for a given logical group. become. If the update block is not closed, processing continues when the next request for an update in LG x occurs at step 310.

前述した処理からわかるように、カオス的更新ブロックが閉鎖される場合には、そこに記録された更新データがさらに処理される。特に、その有効データに対しては、他のカオス的ブロックへコンパクト化する処理か、またはその関連する元ブロックに統合化して新たな標準順次ブロックを形成する処理によって、ガーベッジコレクションが行われる。   As can be seen from the processing described above, when a chaotic update block is closed, the update data recorded therein is further processed. In particular, garbage collection is performed on the valid data by a process of compacting into another chaotic block or a process of integrating the related original block to form a new standard sequential block.

図11Aは、図10に示されているカオス的更新ブロックを閉鎖する統合化処理をより詳細に示すフロー図である。カオス的更新ブロックの統合化は、更新ブロックが閉鎖されている場合、例えば、更新ブロックが最終物理セクタ位置に書き込みがなされた状態で一杯である場合に行われる、2つの予想される処理のうちの1つである。統合化は、ブロックに書き込まれた別個の論理セクタの数が所定の設計パラメータCD を超える場合に選ばれる。図10に示されている統合化処理ステップ550は、以下のサブステップを備える。
ステップ551:カオス的更新ブロックが閉鎖されている場合に、それを置換する新規のメタブロックが割り当てられることになる。
ステップ552:廃止されたセクタはすべて無視して、カオス的更新ブロックおよびその関連する元ブロック内の各論理セクタの最新バージョンを収集する。
ステップ554:収集された有効なセクタを新規のメタブロックに論理的な順次順序で記録して、変化のないブロック、すなわち、論理グループのすべての論理セクタが順次順序で記録されているブロックを形成する。
ステップ556:元ブロックを新規の変化のないブロックに置換する。
ステップ558:閉鎖された更新ブロックおよび元ブロックを消去する。
FIG. 11A is a flow diagram illustrating in more detail the integration process for closing the chaotic update block shown in FIG. Chaotic update block integration is one of two possible processes that occur when an update block is closed, for example, when the update block is full with the last physical sector location written. It is one of. Integration is chosen when the number of distinct logical sectors written in the block exceeds a predetermined design parameter C D. The integration processing step 550 shown in FIG. 10 includes the following sub-steps.
Step 551: If a chaotic update block is closed, a new metablock will be assigned to replace it.
Step 552: Collect the latest version of each logical sector in the chaotic update block and its associated original block, ignoring all obsolete sectors.
Step 554: Record the collected valid sectors in a new metablock in logical sequential order to form an unchanged block, ie a block in which all logical sectors of a logical group are recorded in sequential order. To do.
Step 556: Replace the original block with a new unchanged block.
Step 558: Erase the closed update block and the original block.

図11Bは、図10に示されているカオス的更新ブロックを閉鎖するためのコンパクト化処理をより詳細に示すフロー図である。コンパクト化は、ブロック内の別個の論理セクタの数が所定の設計パラメータCD を下回る場合に選ばれる。図10に示されているコンパクト化処理ステップ560は、以下のサブステップを備える。
ステップ561:カオス的更新ブロックがコンパクト化されている最中に、それを置換する新規のメタブロックが割り当てられる。
ステップ562:コンパクト化されるべき既存のカオス的更新ブロック内の各論理セクタの最新バージョンを収集する。
ステップ564:収集されたセクタを新規更新ブロックに記録して、コンパクト化されたセクタを有する新規の更新ブロックを形成する。
ステップ566:既存の更新ブロックをコンパクト化されたセクタを有する新規の更新ブロックに置換する。
ステップ568:閉鎖された更新ブロックを消去する。
FIG. 11B is a flow diagram illustrating in more detail the compaction process for closing the chaotic update block shown in FIG. Compaction is chosen when the number of distinct logical sectors in the block is below a predetermined design parameter C D. The compacting process step 560 shown in FIG. 10 includes the following sub-steps.
Step 561: While the chaotic update block is being compacted, a new metablock is assigned to replace it.
Step 562: Collect the latest version of each logical sector in the existing chaotic update block to be compacted.
Step 564: Record the collected sectors in a new update block to form a new update block with compacted sectors.
Step 566: Replace existing update block with new update block with compacted sectors.
Step 568: Erase the closed update block.

論理およびメタブロック状態
図12Aは、様々な動作下における、論理グループの予想されるすべての状態と、その状態間で予想される遷移とを示す。
図12Bは、論理グループの予想される状態を列挙する表である。論理グループの状態は、以下のように規定される。
1.変化なし:論理グループ内のすべての論理セクタが、論理的な順次順序で、ページタグ折り返しなどを使用して、1つのメタブロックに書き込まれている。
2.未書き込み:論理グループ内の論理セクタが全く書き込まれていない。論理グループは、グループアドレステーブルにおいて未書き込みとして印付けされ、割り当てられたメタブロックはない。このグループ内のすべてのセクタに対するホスト読み出しに応答して、予め定められたデータパターンが返される。
3.順次更新:論理グループ内のいくつかのセクタが、論理的な順次順序で、ページタグなどを使用してメタブロックに書き込まれ、これらのセクタによって、このグループの以前の変化なしの状態から対応する論理セクタが置換される。
4.カオス的更新:論理グループ内のいくつかのセクタが、論理的な非順次順序で、ページタグなどを使用してメタブロックに書き込まれ、これらのセクタによって、このグループの以前の変化なしの状態から対応する論理セクタが置換される。グループ内のセクタは、1回より多く書き込まれてもよく、最新のバージョンが、以前のすべてのバージョンを置換することになる。
Logic and metablock state diagram 12A shows all the expected states of a logical group and the expected transitions between the states under various operations.
FIG. 12B is a table listing the expected states of the logical group. The state of the logical group is defined as follows.
1. No change: All logical sectors in a logical group are written in one metablock, using page tag wrapping, etc., in a logical sequential order.
2. Unwritten: No logical sector in the logical group has been written. The logical group is marked as unwritten in the group address table and there is no assigned metablock. In response to host reads for all sectors in this group, a predetermined data pattern is returned.
3. Sequential update: Some sectors in a logical group are written to metablocks in a logical sequential order, using page tags etc., which correspond from the previous unchanged state of this group A logical sector is replaced.
4). Chaotic update: some sectors in a logical group are written to metablocks in a logical non-sequential order, using page tags etc., and these sectors cause this group from its previous unchanged state The corresponding logical sector is replaced. Sectors in the group may be written more than once, and the latest version will replace all previous versions.

図13Aは、様々な動作下における、メタブロックの予想されるすべての状態と、その状態間で予想される遷移とを示す。
図13Bは、メタブロックの予想される状態を列挙する表である。メタブロックの状態は、以下のように規定される。
1.消去済み:メタブロック内のすべてのセクタは消去される。
2.順次更新:メタブロックには、セクタが論理的な順次順序でページタグなどを使用して部分的に書き込まれている。すべてのセクタは、同一の論理グループに属する。
3.カオス的更新:メタブロックには、セクタが論理的な非順次順序で部分的または一杯に書き込まれている。任意のセクタは1回より多く書き込むことができる。すべてのセクタは、同一の論理グループに属する。
4.変化なし:メタブロックは、論理的な順次順序でページタグなどを使用して一杯に書き込まれている。
5.オリジナル:メタブロックは、以前は変化なしであったが、少なくとも1つのセクタがホストデータ更新によって廃止されている。
FIG. 13A shows all the expected states of the metablock and the expected transitions between the states under various operations.
FIG. 13B is a table listing the expected states of the metablock. The metablock state is defined as follows.
1. Erased: All sectors in the metablock are erased.
2. Sequential update: In the metablock, sectors are partially written using page tags or the like in a logical sequential order. All sectors belong to the same logical group.
3. Chaotic update: In a metablock, sectors are written partially or completely in a logical non-sequential order. Any sector can be written more than once. All sectors belong to the same logical group.
4). No change: Metablocks are written full using page tags etc. in a logical sequential order.
5. Original: The metablock was previously unchanged, but at least one sector has been obsoleted by host data updates.

図14(A)〜14(J)は、論理グループの状態と、物理メタブロックとに対する様々な動作の効果を示す状態図である。
図14(A)は、第1の書き込み動作についての論理グループおよびメタブロック遷移に対応する状態図である。ホストは、依然未書き込みの論理グループの1つ以上のセクタを、新規に割り当てられた消去済みメタブロックに、論理的な順次順序で書き込む。論理グループおよびメタブロックは、順次更新状態になる。
図14(B)は、第1の変化なし動作についての論理グループおよびメタブロック遷移に対応する状態図である。以前に未書き込みだった順次更新論理グループは、すべてのセクタが順次的にホストによって書き込まれると、変化なしとなる。この遷移は、カードが残りの未書き込みのセクタを予め定められたデータパターンで埋めることによって、グループを充填する場合も生じうる。メタブロックは変化なしとなる。
図14(C)は、第1のカオス的動作についての論理グループおよびメタブロック遷移に対応する状態図である。以前に未書き込みだった順次更新論理グループは、少なくとも1つのセクタが非順次的にホストによって書き込まれると、カオス的となる。
図14(D)は、最初のコンパクト化動作についての論理グループおよびメタブロック遷移に対応する状態図である。以前に未書き込みだったカオス的更新論理グループ内のすべての有効なセクタが、旧ブロックから新規のカオス的メタブロックへコピーされ、旧ブロックは、その後消去される。
図14(E)は、最初の統合化動作についての論理グループおよびメタブロック遷移に対応する状態図である。以前に未書き込みだったカオス的更新論理グループ内のすべての有効なセクタが、旧カオス的ブロックから移動されて、新規に割り当てられたブロックに論理的な順次順序で充填される。ホストによって書き込みされていないセクタには、予め定められたデータパターンが充填される。旧カオス的ブロックは、その後消去される。
14A to 14J are state diagrams showing the effects of various operations on the state of the logical group and the physical metablock.
FIG. 14A is a state diagram corresponding to logical group and metablock transitions for the first write operation. The host writes one or more sectors of the logical group still unwritten to the newly allocated erased metablock in a logical sequential order. Logical groups and metablocks are sequentially updated.
FIG. 14B is a state diagram corresponding to the logical group and metablock transitions for the first no-change operation. A previously unwritten sequential update logical group becomes unchanged when all sectors are sequentially written by the host. This transition can also occur when the card fills a group by filling the remaining unwritten sectors with a predetermined data pattern. The metablock is unchanged.
FIG. 14C is a state diagram corresponding to the logical group and metablock transitions for the first chaotic operation. A previously unwritten sequential update logical group becomes chaotic when at least one sector is written non-sequentially by the host.
FIG. 14D is a state diagram corresponding to logical group and metablock transitions for the first compacting operation. All valid sectors in the previously unwritten chaotic update logical group are copied from the old block to the new chaotic metablock, and the old block is then erased.
FIG. 14E is a state diagram corresponding to the logical group and metablock transitions for the first integration operation. All valid sectors in the previously unwritten chaotic update logical group are moved from the old chaotic block and filled into the newly allocated blocks in logical sequential order. A sector not written by the host is filled with a predetermined data pattern. The old chaotic block is then erased.

図14(F)は、順次書き込み動作についての論理グループおよびメタブロック遷移に対応する状態図である。ホストは、変更なしの論理グループの1つ以上のセクタを、論理的な順次順序で、新規に割り当てられた消去済みブロックに書き込む。論理グループおよびメタブロックは、順次更新状態となる。以前変更なしであったメタブロックは、元メタブロックとなる。
図14(G)は、順次充填動作についての論理グループおよびメタブロック遷移に対応する状態図である。順次更新論理グループは、そのすべてのセクタが順次的にホストによって書き込まれる場合に、変化なしとなる。これは、順次更新論理グループを変化無しとするために、元ブロックからの有効なセクタで充填する場合にも生じることがあり、その後、元ブロックは消去される。
図14(H)は、非順次書き込み動作についての論理グループおよびメタブロック遷移に対応する状態図である。順次更新論理グループは、少なくとも1つのセクタが非順次的にホストによって書き込まれる場合に、カオス的となる。非順次的セクタの書き込みは、更新ブロック内または対応する元ブロック内のいずれかの有効なセクタを廃止することがあってもよい。
図14(I)は、コンパクト化動作についての論理グループおよびメタブロック遷移に対応する状態図である。カオス的更新論理グループ内のすべての有効なセクタは、旧ブロックから新規のカオス的メタブロックへコピーされて、旧ブロックは、その後消去される。元ブロックは、影響を受けない。
図14(J)は、統合化動作についての論理グループおよびメタブロック遷移に対応する状態図である。カオス的更新論理グループ内のすべての有効なセクタは、旧カオス的ブロックおよび元ブロックからコピーされて、新規に割り当てられた消去ブロックは論理的な順次順序で充填される。その後、旧カオス的ブロックおよび元ブロックは消去される。
FIG. 14F is a state diagram corresponding to logical group and metablock transitions for sequential write operations. The host writes one or more sectors of the unchanged logical group into the newly allocated erased block in a logical sequential order. The logical group and metablock are sequentially updated. A metablock that has not been changed before becomes an original metablock.
FIG. 14G is a state diagram corresponding to logical groups and metablock transitions for sequential fill operations. A sequential update logical group becomes unchanged when all its sectors are written sequentially by the host. This can also occur when filling a sequential update logical group with valid sectors from the original block, after which the original block is erased.
FIG. 14H is a state diagram corresponding to logical group and metablock transitions for non-sequential write operations. A sequential update logical group becomes chaotic when at least one sector is written non-sequentially by the host. Non-sequential sector writes may abolish valid sectors in either the update block or the corresponding original block.
FIG. 14I is a state diagram corresponding to logical group and metablock transitions for compacting operations. All valid sectors in the chaotic update logical group are copied from the old block to the new chaotic metablock, and the old block is then erased. The original block is not affected.
FIG. 14J is a state diagram corresponding to the logical group and metablock transition for the integration operation. All valid sectors in the chaotic update logical group are copied from the old chaotic block and the original block, and the newly allocated erase block is filled in logical sequential order. Thereafter, the old chaotic block and the original block are erased.

更新ブロックの追跡および管理
図15は、割り当てのための開放または閉鎖された更新ブロックおよび消去ブロックの状況を追跡するための割り当てブロックリスト(ABL)の構造の好ましい実施形態を示す。割り当てブックリスト(ABL)610は、コントローラRAM130に保持され、消去されたブロックの割り当て、割り当てられた更新ブロック、関連するブロック、および制御構造の管理を行うことができ、また正確な論理/物理アドレス変換を可能にする。好ましい実施形態において、ABLは、消去済みブロックのリストと、開放更新ブロックリスト614と、閉鎖更新ブロックリスト616とを含む。
Update Block Tracking and Management FIG. 15 shows a preferred embodiment of the structure of an allocation block list (ABL) for tracking the status of open and closed update blocks and erase blocks for allocation. An Allocation Book List (ABL) 610 is maintained in the controller RAM 130 and can manage the allocation of erased blocks, allocated update blocks, associated blocks, and control structures, and accurate logical / physical addresses. Enable conversion. In the preferred embodiment, the ABL includes a list of erased blocks, an open update block list 614 and a closed update block list 616.

開放更新ブロックリスト614は、開放更新ブロックの属性を伴う、ABL内のブロックエントリのセットである。開放更新ブロックリストは、現在開放されている各データ更新ブロック毎に1つのエントリを有する。各エントリは、以下の情報を保持する。LGは、現在の更新メタブロックが専用である論理グループアドレスである。順次/カオス的は、更新ブロックが順次またはカオス的更新データで充填されているかどうかを示す状態である。MBは、更新ブロックのメタブロックアドレスである。ページタグは、更新ブロックの最初の物理位置に記録された開始論理セクタである。書き込まれたセクタ数は、更新ブロックに現在書き込まれたセクタの数を示す。MB0 は、関連する元ブロックのメタブロックアドレスである。ページタグ0 は、関連する元ブロックのページタグである。 The open update block list 614 is a set of block entries in the ABL with the attributes of the open update block. The released update block list has one entry for each data update block currently released. Each entry holds the following information. LG is a logical group address to which the current update metablock is dedicated. Sequential / chaotic is a state that indicates whether an update block is filled with sequential or chaotic update data. MB is the metablock address of the update block. The page tag is the starting logical sector recorded at the first physical position of the update block. The number of sectors written indicates the number of sectors currently written to the update block. MB 0 is the metablock address of the associated original block. Page tag 0 is the page tag of the related original block.

閉鎖更新ブロックリスト616は、割り当てブロックリスト(ABL)のサブセットである。閉鎖更新ブロックの属性を伴う、ABL内のブロックエントリのセットである。閉鎖更新ブロックリストは、閉鎖されたデータ更新ブロック毎に1つのエントリを有するが、そのエントリは、論理的に主要物理ディレクトリに更新されていない。各エントリは、以下の情報を保持する。LGは、現在の更新ブロックが専用である論理グループアドレスである。MBは、更新ブロックのメタブロックアドレスである。ページタグは、更新ブロックの最初の物理位置に記録された開始論理セクタである。MB0 は、関連する元ブロックのメタブロックアドレスである。 The closed update block list 616 is a subset of the allocated block list (ABL). A set of block entries in an ABL with the attributes of a closed update block. The closed update block list has one entry for each closed data update block, but that entry has not been logically updated to the main physical directory. Each entry holds the following information. LG is a logical group address to which the current update block is dedicated. MB is the metablock address of the update block. The page tag is the starting logical sector recorded at the first physical position of the update block. MB 0 is the metablock address of the associated original block.

カオス的ブロックのインデックス付け
順次更新ブロックは、論理的に順次順序でデータを記憶しているので、ブロック内の任意の論理セクタは、容易に位置決定することができる。カオス的更新ブロックは、その論理セクタを順序がばらばらに記憶し、論理セクタの複数の更新生成物を記憶してもよい。各有効な論理セクタがカオス的更新ブロックのどこにあるかを追跡するために、追加の情報を保持しなければならない。
An indexed sequential update block of chaotic blocks stores data in a logical sequential order so that any logical sector within the block can be easily located. A chaotic update block may store its logical sectors out of order and may store multiple update products of logical sectors. Additional information must be maintained to keep track of where each valid logical sector is in the chaotic update block.

好ましい実施形態において、カオス的ブロックのインデックス付けのデータ構造は、カオス的ブロックにおけるすべての有効なセクタの追跡および高速アクセスを可能にする。カオス的ブロックのインデックス付けは、論理アドレス空間の小さな領域を独立して管理するものであり、システムデータと、ユーザデータのホット領域を効率的に扱う。インデックス付けデータ構造により、性能が大幅な影響を受けないように、本質的にインデックス付け情報が、更新が稀であるという要件でフラッシュメモリ内に保持することができる。他方、カオス的ブロックに現在書き込まれているセクタのリストは、コントローラRAMにおけるカオス的セクタリストに保持される。また、フラッシュメモリからのインデックス情報のキャッシュが、アドレス変換のためのフラッシュセクタアクセス数を最小限にするために、コントローラRAMに保持される。カオス的ブロック毎のインデックスが、フラッシュメモリ内のカオス的ブロックインデック(CBI)内に記憶される。   In the preferred embodiment, the chaotic block indexing data structure allows tracking and fast access of all valid sectors in the chaotic block. Chaotic block indexing manages a small area of the logical address space independently, and efficiently handles hot areas of system data and user data. The indexing data structure allows essentially indexing information to be kept in flash memory with the requirement that updates are rare so that performance is not significantly affected. On the other hand, the list of sectors currently written in the chaotic block is kept in the chaotic sector list in the controller RAM. A cache of index information from the flash memory is held in the controller RAM in order to minimize the number of flash sector accesses for address conversion. An index for each chaotic block is stored in a chaotic block index (CBI) in flash memory.

図16Aは、カオス的ブロックインデックス(CBI)セクタのデータフィールドを示す。カオス的ブロックインデックスセクタ(CBIセクタ)は、カオス的更新ブロックにマッピングされた論理グループ内のセクタ毎のインデックスを含み、カオス的更新ブロックまたはその関連する元ブロック内の論理グループの各セクタの位置を規定する。CBIセクタは、カオス的ブロック内の有効セクタを追跡するためのカオスブロックインデックスフィールドと、カオスブロックについてのアドレスパラメータを追跡するためのカオス的ブロック情報フィールドと、CBIセクタを記憶するメタブロック(CBIブロック)内の有効なCBIセクタを追跡するためのセクタインデックスフィールドとを含む。   FIG. 16A shows the data field of a chaotic block index (CBI) sector. The chaotic block index sector (CBI sector) contains an index for each sector in the logical group mapped to the chaotic update block, and identifies the location of each sector of the logical group in the chaotic update block or its associated original block. Stipulate. The CBI sector includes a chaotic block index field for tracking a valid sector in a chaotic block, a chaotic block information field for tracking an address parameter for the chaotic block, and a metablock (CBI block for storing the CBI sector). ) Includes a sector index field for tracking valid CBI sectors.

図16Bは、カオス的ブロックインデックス(CBI)セクタが専用のメタブロックに記録されている一例を示す。専用のメタブロックを、CBIブロック620と称する。CBIセクタが更新されると、CBIブロック620内の次に使用可能な物理セクタ位置に書き込まれる。したがって、CBIセクタの複数のコピーがCBIブロック内に存在し、最後に書き込まれたコピーのみが有効である。例えば、論理グループLG1 についてのCBIセクタは3回更新され、最後に書き込まれたコピーのみが有効なものである。CBIブロック内の各有効セクタの位置は、ブロック内の最後に書き込まれたCBIセクタ内のインデックスのセットによって識別される。この例において、ブロック内に最後に書き込まれたCBIセクタは、LG136 についてのCBIセクタであり、そのインデックスのセットは、以前のすべてのものに取って代わる有効なものである。CBIブロックが最終的にCBIセクタで満杯になると、ブロックは、制御書き込み動作中に、すべての有効セクタを新規のブロック位置に書き換えることによってコンパクト化される。その後、一杯のブロックは、消去される。 FIG. 16B shows an example where a chaotic block index (CBI) sector is recorded in a dedicated metablock. The dedicated metablock is referred to as CBI block 620. When the CBI sector is updated, it is written to the next available physical sector location in the CBI block 620. Therefore, multiple copies of the CBI sector exist in the CBI block, and only the last written copy is valid. For example, the CBI sector for logical group LG 1 is updated three times and only the last written copy is valid. The position of each valid sector in the CBI block is identified by the set of indexes in the last written CBI sector in the block. In this example, the last CBI sector written in the block is the CBI sector for LG 136 , and its index set is valid to replace all previous ones. When a CBI block eventually fills with CBI sectors, the block is compacted by rewriting all valid sectors to new block locations during a control write operation. The full block is then erased.

CBIセクタ内のカオス的ブロックインデックスフィールドは、カオス的更新ブロックにマッピングされた論理グループまたはサブグループ内の各論理セクタについてのインデックスエントリを含む。各インデックスエントリは、対応する論理セクタについての有効データが位置するカオス的更新ブロック内のオフセットを示す。予約されたインデックス値は、論理セクタについての有効データがカオス的更新ブロック内に存在しないことを示し、関連する元ブロック内の対応するセクタが有効であることを示す。いくつかのカオス的ブロックインデックスフィールドエントリのキャッシュが、コントローラRAMに保持される。   The chaotic block index field in the CBI sector contains an index entry for each logical sector in the logical group or subgroup mapped to the chaotic update block. Each index entry indicates an offset within the chaotic update block where valid data for the corresponding logical sector is located. The reserved index value indicates that valid data for the logical sector does not exist in the chaotic update block, and indicates that the corresponding sector in the associated original block is valid. A cache of several chaotic block index field entries is maintained in the controller RAM.

CBIセクタ内のカオス的ブロック情報フィールドは、システム内に存在するカオス的更新ブロック毎に1つのエントリを含み、ブロックについてのアドレスパラメータ情報を記録する。このフィールド内の情報は、CBIブロック内に最後に書き込まれたセクタにおいて有効であるのみである。この情報は、RAM内のデータ構造にも存在する。   The chaotic block information field in the CBI sector contains one entry for each chaotic update block present in the system and records address parameter information for the block. The information in this field is only valid in the last sector written in the CBI block. This information is also present in the data structure in the RAM.

カオス的更新ブロック毎のエントリは、3つのアドレスパラメータを含む。1つ目は、カオス的更新ブロックに関連する論理グループの論理アドレス(または論理グループ番号)である。2つ目は、カオス的更新ブロックのメタブロックアドレスである。3つ目は、カオス的更新ブロック内に最後に書き込まれたセクタの物理アドレスのオフセットである。オフセット情報は、RAM内にデータ構造を再構築するために、初期化中のカオス的更新ブロックの走査のための開始点を設定する。   The entry for each chaotic update block includes three address parameters. The first is the logical address (or logical group number) of the logical group associated with the chaotic update block. The second is the metablock address of the chaotic update block. The third is the offset of the physical address of the sector written last in the chaotic update block. The offset information sets the starting point for scanning the chaotic update block being initialized in order to reconstruct the data structure in RAM.

セクタインデックスフィールドは、CBIブロックにおける有効CBIセクタ毎のエントリを含む。各許可されたカオス的更新ブロックに関する最も最近書き込まれたCBIセクタが位置するCBIブロック内のオフセットを規定する。インデックス内のオフセットの予約値は、許可されたカオス的更新ブロックが存在しないことを示す。   The sector index field includes an entry for each valid CBI sector in the CBI block. Defines the offset within the CBI block where the most recently written CBI sector for each authorized chaotic update block is located. The reserved value of the offset in the index indicates that there are no allowed chaotic update blocks.

図16Cは、カオス的更新を受けている所定の論理グループの論理セクタのデータに対するアクセスを示すフロー図である。更新処理中に、更新データがカオス的更新ブロックに更新データを記録し、変化していないデータは、論理グループに関連する元メタブロック内に留まる。カオス的更新下で論理グループの論理セクタをアクセスする処理は、以下のようである。
ステップ650:所定の論理グループの所定の論理セクタの位置決定を開始する。
ステップ652:CBIブロック内の最終書き込みCBIセクタを位置決定する。
ステップ654:最終書き込みCBIセクタのカオス的ブロック情報フィールドを検索することによって、所定の論理グループに関連したカオス的更新ブロックまたは元ブロックを位置決定する。このステップは、ステップ662の前であればいつでも行うことができる。
ステップ658:最終書き込みCBIセクタが所定の論理グループ宛であれば、CBIセクタは位置決定される。ステップ662へ進む。そうでなければ、ステップ660へ進む。
ステップ660:最終書き込みCBIセクタのセクタインデックスフィールドを検索することによって、所定の論理グループについてのCBIセクタを位置決定する。
ステップ662:位置決定されたCBIセクタのカオス的ブロックインデックスフィールドを検索することによって、カオス的ブロックまたは元ブロック内の所定の論理セクタを位置決定する。
FIG. 16C is a flow diagram illustrating access to data in logical sectors of a given logical group undergoing chaotic updates. During the update process, the update data records the update data in a chaotic update block, and the unchanged data remains in the original metablock associated with the logical group. The process of accessing a logical sector of a logical group under chaotic update is as follows.
Step 650: Start position determination of a predetermined logical sector of a predetermined logical group.
Step 652: Locate the last written CBI sector in the CBI block.
Step 654: Locate the chaotic update block or original block associated with the given logical group by searching the chaotic block information field of the last written CBI sector. This step can be done at any time before step 662.
Step 658: If the last written CBI sector is addressed to a predetermined logical group, the CBI sector is located. Proceed to step 662. Otherwise, go to step 660.
Step 660: Locate the CBI sector for a given logical group by searching the sector index field of the last written CBI sector.
Step 662: Locate a given logical sector within a chaotic block or original block by searching a chaotic block index field of the located CBI sector.

図16Dは、論理グループがサブグループに分割されている代替の実施形態に係る、カオス的更新を受けている所定の論理グループの論理セクタのデータに対するアクセスを示すフロー図である。CBIセクタの容量は有限なので、論理セクタの所定の最大数を追跡することができるのみである。論理グループが単一のCBIセクタが扱えるより多くの論理セクタを有する場合には、論理グループは、CBIセクタがそれぞれ割り当てられた複数のサブグループに分割される。一例において、各CBIセクタは、256個のセクタと、8個までのカオス的更新ブロックとからなる論理グループを追跡するのに十分な容量を有する。論理グループが256セクタを超えるサイズを有する場合には、256セクタのサブグループのそれぞれための別個のCBIセクタが論理グループ内に存在する。8個までのサブグループのためのCBIセクタが論理グループ内に存在してもよく、サイズで2048個のセクタまでの論理グループに対してサポートを提供する。
好ましい実施形態において、インデックスの管理を促進するために、間接インデックス付け手法が取られる。セクタインデックスの各エントリは、直接および間接フィールドを有する。
FIG. 16D is a flow diagram illustrating access to data in logical sectors of a given logical group undergoing chaotic updates, according to an alternative embodiment in which the logical group is divided into subgroups. Since the capacity of the CBI sector is finite, only a predetermined maximum number of logical sectors can be tracked. If a logical group has more logical sectors than a single CBI sector can handle, the logical group is divided into a plurality of subgroups each assigned a CBI sector. In one example, each CBI sector has sufficient capacity to track a logical group of 256 sectors and up to 8 chaotic update blocks. If the logical group has a size greater than 256 sectors, there is a separate CBI sector in the logical group for each of the 256 sector subgroups. CBI sectors for up to 8 subgroups may exist in a logical group, providing support for logical groups of up to 2048 sectors in size.
In the preferred embodiment, an indirect indexing approach is taken to facilitate index management. Each entry in the sector index has direct and indirect fields.

直接セクタインデックスは、特定のカオス的更新ブロックに関連するすべての予想されるCBIセクタが位置するCBIブロック内のオフセットを規定する。このフィールドの情報は、最後に書き込まれた、この特定のカオス的更新ブロックに関連するCBIセクタにおいてのみ有効である。インデックス内のオフセットの予約値は、CBIセクタが存在しないことを示す。というのは、カオス的更新ブロックに関連する対応する論理サブグループが、存在しないか、または更新ブロックが割り当てられて以来更新されていないからである。   The direct sector index defines an offset within the CBI block where all expected CBI sectors associated with a particular chaotic update block are located. The information in this field is only valid in the last written CBI sector associated with this particular chaotic update block. The reserved value of the offset in the index indicates that no CBI sector exists. This is because the corresponding logical subgroup associated with the chaotic update block does not exist or has not been updated since the update block was assigned.

間接セクタインデックスは、各許可されたカオス的更新ブロックに関連する最も最近書き込まれたCBIセクタが位置するCBIブロック内のオフセットを規定する。インデックス内のオフセットの予約値は、許可された更新ブロックが存在しないことを示す。   The indirect sector index defines the offset within the CBI block where the most recently written CBI sector associated with each granted chaotic update block is located. The reserved value of the offset in the index indicates that there are no permitted update blocks.

図16Dは、以下のような、カオス的更新下の論理グループの論理セクタをアクセスする処理を示す。
ステップ670:各論理グループを複数のサブグループに分割して、CBIセクタを各サブグループに割り当てる。
ステップ680:所定の論理グループの所定のサブグループの所定の論理セクタの位置決定を開始する。
ステップ682:CBIブロック内の最終書き込みCBIセクタを位置決定する。
ステップ684:最終書き込みCBIセクタのカオス的ブロック情報フィールドを検索することによって、所定のサブグループに関連したカオス的更新ブロックまたは元ブロックを位置決定する。このステップは、ステップ696の前であればいつでも行うことができる。
ステップ686:最終書き込みCBIセクタが所定の論理グループ宛である場合には、ステップ691へ進む。そうでなければ、ステップ690へ進む。
ステップ690:最終書き込みCBIセクタの間接セクタインデックスフィールドを検索することによって、所定の論理グループについての複数のCBIセクタの最終書き込みを位置決定する。
ステップ691:所定の論理グループについてのサブグループの1つに関連したCBIセクタが少なくとも位置決定されている。続く。
ステップ692:位置決定されたCBIセクタが所定のサブグループ宛である場合には、この所定のサブグループについてのCBIセクタが位置決定される。ステップ696へ進む。そうでなければ、ステップ694へ進む。
ステップ694:現在の位置決定されたCBIセクタの直接セクタフィールドを検索することによって、所定のサブグループについてのCBIセクタを位置決定する。
ステップ696:所定のサブグループについてのCBIセクタのカオス的ブロックインデックスフィールドを検索することによって、カオス的ブロックまたは元ブロック内の所定の論理セクタを位置決定する。
FIG. 16D shows the process of accessing logical sectors of a logical group under chaotic update as follows.
Step 670: Divide each logical group into a plurality of subgroups and assign CBI sectors to each subgroup.
Step 680: Start positioning of a predetermined logical sector in a predetermined subgroup of a predetermined logical group.
Step 682: Locate the last written CBI sector in the CBI block.
Step 684: Locate the chaotic update block or original block associated with the given subgroup by searching the chaotic block information field of the last written CBI sector. This step can be done anytime before step 696.
Step 686: If the last written CBI sector is addressed to a predetermined logical group, the process proceeds to step 691. Otherwise, go to step 690.
Step 690: Locate last write of multiple CBI sectors for a given logical group by searching the indirect sector index field of the last write CBI sector.
Step 691: At least a CBI sector associated with one of the subgroups for a given logical group has been located. Continue.
Step 692: If the located CBI sector is destined for a given subgroup, the CBI sector for this given subgroup is located. Proceed to step 696. Otherwise, go to step 694.
Step 694: Locate the CBI sector for a given subgroup by searching the direct sector field of the currently located CBI sector.
Step 696: Locate a given logical sector within a chaotic block or original block by searching the chaotic block index field of the CBI sector for the given subgroup.

図16Eは、各論理グループが複数のサブグループに分割される実施形態についての、カオス的ブロックインデックス付け(CBI)セクタおよびその機能の例を示す。論理グループ700は、その変化のないデータを、元メタブロック702内に記憶する。その後、論理グループは、専用のカオス的更新ブロック704の割り当てを伴う更新を受ける。この例において、論理グループ700は、サブグループA,B,C,Dのようなサブグループに分割され、各サブグループは256個のセクタを有する。   FIG. 16E shows an example of a chaotic block indexing (CBI) sector and its function for an embodiment where each logical group is divided into multiple subgroups. The logical group 700 stores the unchanged data in the original metablock 702. Thereafter, the logical group receives an update with the assignment of a dedicated chaotic update block 704. In this example, logical group 700 is divided into subgroups such as subgroups A, B, C, and D, with each subgroup having 256 sectors.

サブグループB内のi番目のセクタを位置決定するために、CBIブロック620内の最終書き込みCBIセクタを最初に位置決定する。最終書き込みCBIセクタのカオス的ブロック情報フィールドは、所定の論理グループについてのカオス的更新ブロック704を位置決定するためのアドレスを提供する。同時に、これは、カオス的ブロックに書き込まれた最終セクタの位置をも提供する。この情報は、走査および再構築の際に有用である。   In order to locate the i th sector in subgroup B, the last written CBI sector in CBI block 620 is located first. The chaotic block information field of the last written CBI sector provides an address for locating the chaotic update block 704 for a given logical group. At the same time, this also provides the location of the last sector written in the chaotic block. This information is useful during scanning and reconstruction.

最終書き込みCBIセクタが所定の論理グループの4つのCBIセクタのうちの1つであることがわかると、このセクタが確かにi番目の論理セクタを含む所定のサブグループBについてのCBIセクタかどうかをさらに確認することになる。そうであれば、CBIセクタのカオス的ブロックインデックスは、i番目の論理セクタについてのデータを記憶するメタブロック位置を指すことになる。セクタ位置は、カオス的更新ブロック704または元ブロック702のいずれかでありうる。   If it is found that the last written CBI sector is one of the four CBI sectors of a given logical group, then it is determined whether this sector is indeed a CBI sector for a given subgroup B containing the i th logical sector. Further confirmation will be made. If so, the chaotic block index of the CBI sector will point to the metablock location that stores the data for the i-th logical sector. The sector location can be either a chaotic update block 704 or an original block 702.

最終書き込みCBIセクタが所定の論理グループの4つのCBIセクタのうちの1つではあるが、正確にはサブグループBについてのCBIセクタではないことがわかると、その直接セクタインデックスを検索して、サブグループBについてのCBIセクタを位置決定する。この正確なCBIセクタが位置決定されると、そのカオス的ブロックインデックスを検索して、カオス的更新ブロック704および元ブロック702の中のi番目の論理セクタを位置決定する。   If it is found that the last written CBI sector is one of the four CBI sectors of a given logical group but is not exactly the CBI sector for subgroup B, its direct sector index is searched to Locate the CBI sector for group B. Once this exact CBI sector is located, its chaotic block index is searched to locate the i th logical sector in the chaotic update block 704 and the original block 702.

最終書き込みCBIセクタが所定の論理グループの4つのCBIセクタのうちのいずれでもないことがわかると、その間接セクタインデックスを検索して、4つのうちの1つを位置決定する。図16Eに示されている例において、サブグループCについてのCBIセクタを位置決定する。その後、サブグループCについてのこのCBIセクタは、その直接セクタインデックスを検索して、サブグループBについての正確なCBIセクタを位置決定する。図に示されている例では、カオス的ブロックインデックスを検索すると、i番目の論理セクタが変化していないことがわかり、その有効データが元データ内で位置決定される。   If it is found that the last written CBI sector is not one of the four CBI sectors of a given logical group, its indirect sector index is searched to locate one of the four. In the example shown in FIG. 16E, the CBI sector for subgroup C is located. This CBI sector for subgroup C then searches its direct sector index to locate the correct CBI sector for subgroup B. In the example shown in the figure, searching the chaotic block index reveals that the i-th logical sector has not changed and its valid data is located in the original data.

同様の検討が、所定の論理グループのサブグループC内のj番目の論理セクタを位置決定することにも適用される。図に示されている例では、最終書き込みCBIセクタが所定の論理グループの4つのCBIセクタのうちのいずれでもないことがわかる。その間接セクタインデックスは、所定のグループについての4つのCBIセクタのうちの1つを指す。また、4つのうちの指された最終書き込み分は、確かにサブグループCについてのCBIセクタであることがわかる。そのカオス的ブロックインデックスを検索すると、j番目の論理セクタが、カオス的更新ブロック704内の指定された位置に位置決定されることがわかる。   Similar considerations apply to locating the jth logical sector in subgroup C of a given logical group. In the example shown in the figure, it can be seen that the last written CBI sector is not any of the four CBI sectors of the predetermined logical group. The indirect sector index points to one of the four CBI sectors for a given group. Also, it can be seen that the last written portion of the four is certainly a CBI sector for subgroup C. Searching for the chaotic block index reveals that the jth logical sector is located at a specified location in the chaotic update block 704.

カオス的セクタのリストが、システム内の各カオス的更新ブロックについてのコントローラRAM内にある。各リストは、関連するCBIセクタがフラッシュメモリ内で最後に更新されたときからの、カオス的更新ブロック内に書き込まれたセクタの記録を含む。特定のカオス的更新ブロックについての論理セクタアドレスの数は、カオス的セクタリスト内に保持することができ、8から16というのが典型的な値の設計パラメータである。このリストの最適なサイズは、カオス的データ書き込み動作についてのオーバーヘッドに対する影響と、初期化中のセクタ走査時間とを調整して決定される。   A list of chaotic sectors is in the controller RAM for each chaotic update block in the system. Each list includes a record of the sectors written in the chaotic update block since the associated CBI sector was last updated in flash memory. The number of logical sector addresses for a particular chaotic update block can be kept in the chaotic sector list, with 8 to 16 being a typical value of design parameters. The optimal size of this list is determined by adjusting the overhead impact for chaotic data write operations and the sector scan time during initialization.

システム初期化中に、各カオス的更新ブロックを必要に応じて走査して、関連するCBIセクタのうちの1つについての以前の更新以来書き込まれた有効なセクタを識別する。各カオス的更新ブロックについてのコントローラRAM内のカオス的セクタリストが構築される。各ブロックは、最終書き込みCBIセクタ内のカオス的ブロック情報フィールドで規定された最終セクタアドレスから走査されればよい。   During system initialization, each chaotic update block is scanned as necessary to identify valid sectors that have been written since a previous update for one of the associated CBI sectors. A chaotic sector list in the controller RAM for each chaotic update block is constructed. Each block may be scanned from the last sector address defined in the chaotic block information field in the last written CBI sector.

カオス的更新ブロックが割り当てられると、CBIセクタが、すべての更新された論理サブグループに対応するように書き込まれる。カオス的更新ブロックについての論理および物理アドレスは、カオス的ブロックインデックスフィールド内の空白エントリと共に、セクタ内の使用可能なカオス的ブロック情報フィールド内に書き込まれる。カオス的セクタリストは、コントローラRAMにおいて開放される。
カオス的更新ブロックが閉鎖されると、CBIセクタが、セクタ内のカオス的ブロック情報フィールドから除去されたブロックの論理および物理アドレスと共に書き込まれる。RAM内の対応するカオス的セクタリストは、使用されなくなる。
When a chaotic update block is allocated, CBI sectors are written to correspond to all updated logical subgroups. The logical and physical addresses for the chaotic update block are written in the available chaotic block information field in the sector, with a blank entry in the chaotic block index field. The chaotic sector list is released in the controller RAM.
When a chaotic update block is closed, the CBI sector is written with the logical and physical address of the block removed from the chaotic block information field in the sector. The corresponding chaotic sector list in RAM will not be used.

コントローラRAM内の対応するカオス的セクタリストは、カオス的更新ブロックに書き込まれたセクタの記録を含むように修正される。コントローラRAM内のカオス的セクタリストが、カオス的更新ブロックに対するさらなるセクタ書き込みの記録について使用可能な空間を有していない場合には、更新されたCBIセクタが、リスト内のセクタに関連する論理サブグループについて書き込まれ、リストはクリアされる。
CBIブロック620が満杯になると、有効なCBIセクタが割り当てられた消去済みブロックにコピーされ、以前のCBIブロックは消去される。
The corresponding chaotic sector list in the controller RAM is modified to include a record of the sectors written in the chaotic update block. If the chaotic sector list in the controller RAM does not have space available for recording further sector writes to the chaotic update block, the updated CBI sector is the logical sub-group associated with the sector in the list. Written for the group and the list is cleared.
When CBI block 620 is full, valid CBI sectors are copied to the allocated erased block and the previous CBI block is erased.

アドレステーブル
図2に示されている論理/物理アドレス変換モジュール140は、ホストの論理アドレスをフラッシュメモリ内の対応する物理アドレスに関連付ける役割を担う。論理グループと物理グループ(メタブロック)との間のマッピングが、不揮発性フラッシュメモリ200および揮発性だが動作が速いRAM130(図1参照)に分散されたテーブルおよびリストのセット内に記憶される。アドレステーブルは、フラッシュメモリに保持され、メモリシステム内の各論理グループについてのメタブロックアドレスを含む。加えて、最近書き込まれたセクタについての論理/物理アドレス記録は、RAMに一時的に保持される。これらの揮発性記録は、電源投入後にシステムを初期化するときに、フラッシュメモリ内のブロックリストおよびデータセクタヘッダから再構築することができる。よって、フラッシュメモリ内のアドレステーブルは、たまに更新されればよく、制御データについてのオーバーヘッド書き込み動作の割合が減ることになる。
Address Table The logical / physical address conversion module 140 shown in FIG. 2 is responsible for associating the logical address of the host with the corresponding physical address in the flash memory. The mapping between logical groups and physical groups (metablocks) is stored in a set of tables and lists distributed in non-volatile flash memory 200 and volatile but fast running RAM 130 (see FIG. 1). The address table is held in flash memory and includes a metablock address for each logical group in the memory system. In addition, logical / physical address records for recently written sectors are temporarily held in RAM. These volatile records can be reconstructed from the block list and data sector header in flash memory when the system is initialized after power-up. Therefore, the address table in the flash memory only needs to be updated occasionally, and the ratio of the overhead write operation for the control data is reduced.

論理グループについてのアドレス記録の階層は、開放更新ブロックリストと、RAM内の閉鎖更新ブロックリストと、フラッシュメモリに保持されたグループアドレステーブル(GAT)とを含む。
開放更新ブロックリストは、更新されたホストセクタデータについて現在開放されているデータ更新ブロックのコントローラRAM内のリストである。あるブロックに対するエントリは、ブロックが閉鎖されると、閉鎖更新ブロックリストに移動される。閉鎖更新ブロックリストは、閉鎖されているデータ更新ブロックのコントローラRAM内のリストである。リスト内のエントリのサブセットは、制御書き込み動作中に、グループアドレステーブル内のセクタに移動される。
The hierarchy of address records for a logical group includes an open update block list, a closed update block list in RAM, and a group address table (GAT) held in flash memory.
The released update block list is a list in the controller RAM of data update blocks that are currently released for updated host sector data. Entries for a block are moved to the closed update block list when the block is closed. The closed update block list is a list in the controller RAM of data update blocks that are closed. A subset of the entries in the list are moved to sectors in the group address table during a control write operation.

グループアドレステーブル(GAT)は、メモリシステム内のホストデータのすべての論理グループについてのメタブロックアドレスのリストである。GATは、論理アドレスに従って順次的に並べられた、論理グループ毎に1つのエントリを含む。GAT内のn番目のエントリは、アドレスnの論理グループについてのメタブロックアドレスを含む。好ましい実施形態において、このテーブルは、フラッシュメモリ内にあるテーブルであり、メモリシステム内のすべての論理グループについてのメタブロックアドレスを規定するエントリを伴うセクタ(GATセクタと称する)のセットを含む。GATセクタは、フラッシュメモリ内の1つ以上の専用制御ブロック(GATブロックと称する)内にある。   The group address table (GAT) is a list of metablock addresses for all logical groups of host data in the memory system. The GAT includes one entry for each logical group, arranged sequentially according to the logical address. The nth entry in the GAT contains the metablock address for the logical group at address n. In the preferred embodiment, this table is in flash memory and includes a set of sectors (referred to as GAT sectors) with entries that define metablock addresses for all logical groups in the memory system. The GAT sector is in one or more dedicated control blocks (referred to as GAT blocks) in the flash memory.

図17Aは、グループアドレステーブル(GAT)セクタのデータフィールドを示す。GATセクタは、例えば、128個の連続する論理グループのセットについてのGATエントリを含むのに十分な容量を有してもよい。各GATセクタは、2つの構成要素、すなわち、ある範囲内の各論理グループのメタブロックアドレスについてのGATエントリのセットと、GATセクタインデックスとを含む。第1の構成要素は、論理アドレスに関連するメタブロックを位置決定するための情報を含む。第2の構成要素は、GATブロック内のすべての有効なGATセクタを位置決定するための情報を含む。各GATエントリは、3つのフィールド、すなわち、メタブロック番号と、図3A(iii)に関連して前に規定したようなページタグと、メタブロックが再リンクされたかどうかを示すフラグとを有する。GATセクタインデックスは、GATブロック内の有効なGATセクタの位置を列挙する。このインデックスは、各GATセクタ内にあるが、GATブロック内の次に書き込まれたGATセクタのバージョンによって取って代わられる。よって、最終書き込みGATセクタ内のバージョンのみが有効である。   FIG. 17A shows a data field of a group address table (GAT) sector. A GAT sector may have sufficient capacity to contain, for example, GAT entries for a set of 128 consecutive logical groups. Each GAT sector includes two components: a set of GAT entries for the metablock address of each logical group within a range, and a GAT sector index. The first component includes information for locating the metablock associated with the logical address. The second component includes information for locating all valid GAT sectors in the GAT block. Each GAT entry has three fields: a metablock number, a page tag as previously defined in connection with FIG. 3A (iii), and a flag indicating whether the metablock has been relinked. The GAT sector index lists the positions of valid GAT sectors within the GAT block. This index is in each GAT sector, but is replaced by the next written version of the GAT sector in the GAT block. Therefore, only the version in the last written GAT sector is valid.

図17Bは、グループアドレステーブル(GAT)セクタが1つ以上のGATブロックに記録されている一例を示す。GATブロックは、GATセクタを記録する専用のメタブロックである。GATセクタが更新される場合には、GATブロック720内の次に使用可能な物理セクタ位置に書き込まれる。したがって、GATセクタの複数のコピーがGATブロック内に存在することがあり、最後に書き込まれたコピーのみが有効である。例えば、GATセクタ45は、少なくとも2回更新され、最終バージョンが有効なものである。GATブロック内の各有効セクタの位置は、ブロック内の最終書き込みGATセクタ内のインデックスのセットによって識別される。この例において、ブロック内の最終書き込みGATセクタは、GATセクタ56であり、そのインデックスのセットは、すべての以前のものにとって代わる有効なものである。GATブロックが、GATセクタで最終的に満杯になった場合には、ブロックは、すべての有効なセクタを新規のブロック位置に書き換えることによって、制御書き込み動作中にコンパクト化される。その後、一杯のブロックは消去される。   FIG. 17B shows an example in which a group address table (GAT) sector is recorded in one or more GAT blocks. The GAT block is a dedicated metablock for recording a GAT sector. When a GAT sector is updated, it is written to the next available physical sector location in GAT block 720. Thus, multiple copies of a GAT sector may exist in a GAT block, and only the last written copy is valid. For example, the GAT sector 45 has been updated at least twice and the final version is valid. The position of each valid sector in the GAT block is identified by a set of indexes in the last written GAT sector in the block. In this example, the last written GAT sector in the block is GAT sector 56, and its set of indexes is a valid alternative to all previous ones. If a GAT block eventually becomes full of GAT sectors, the block is compacted during a control write operation by rewriting all valid sectors to new block locations. The full block is then erased.

前に説明したように、GATブロックは、論理アドレス空間のある領域におけるグループの論理的に連続したセットについてのエントリを含む。GATブロック内のGATセクタは、それぞれ、128個の連続する論理グループについての論理/物理マッピング情報を含む。GATブロックが対象とするアドレス範囲内のすべての論理グループについてのエントリを記憶するのに必要な数多くのGATセクタは、ブロック内の全セクタ位置のほんのわずかを占めるに過ぎない。したがって、あるGATセクタは、ブロック内の次に使用可能なセクタ位置に書き込まれることによって更新されてもよい。すべての有効なGATセクタおよびそれらのGATブロック内の位置のインデックスが、直近の書き込みGATセクタ内のインデックスフィールドに保持される。有効なGATセクタによって占められたGATブロック内の僅かな合計セクタは、システム設計パラメータであり、典型的には25%である。しかし、GATブロック毎に最大64個の有効GATセクタがある。論理容量が大きいシステムにおいて、1つ以上のGATブロックにGATセクタを記憶する必要がある場合がある。この場合、各GATブロックは、固定的な範囲の論理グループに関連付けられる。   As previously described, the GAT block includes entries for a logically contiguous set of groups in a region of the logical address space. Each GAT sector in the GAT block includes logical / physical mapping information for 128 consecutive logical groups. The large number of GAT sectors required to store entries for all logical groups within the address range covered by the GAT block occupy only a few of the total sector positions in the block. Thus, a GAT sector may be updated by writing to the next available sector location in the block. An index of all valid GAT sectors and their positions in the GAT block is kept in the index field in the most recently written GAT sector. The few total sectors in the GAT block occupied by valid GAT sectors is a system design parameter, typically 25%. However, there are a maximum of 64 valid GAT sectors per GAT block. In systems with large logical capacity, it may be necessary to store GAT sectors in one or more GAT blocks. In this case, each GAT block is associated with a fixed range of logical groups.

GAT更新は、制御書き込み動作の一部として行われ、割り当てのためのブロックがABLになくなったときにトリガされる(図18参照)。これは、ABL充填動作およびCBLを空にする動作と並行して行われる。GAT更新動作中に、1つのGATセクタは、閉鎖更新ブロックリスト内の対応するエントリからの情報で更新されたエントリを有する。GATエントリが更新されると、対応するエントリはどれでも、閉鎖更新ブロックリスト(CUBL)から除去される。例えば、更新すべきGATセクタは、閉鎖更新ブロックリスト内の最初のエントリに基づいて選択される。更新されたセクタは、GATブロック内の次に使用可能なセクタ位置に書き込まれる。   A GAT update is performed as part of a control write operation and is triggered when there are no more blocks for allocation in the ABL (see FIG. 18). This is performed in parallel with the ABL filling operation and the CBL emptying operation. During a GAT update operation, one GAT sector has an entry updated with information from the corresponding entry in the closed update block list. When a GAT entry is updated, any corresponding entries are removed from the closed update block list (CUBL). For example, the GAT sector to be updated is selected based on the first entry in the closed update block list. The updated sector is written to the next available sector location in the GAT block.

更新されたGATセクタに使用可能なセクタ位置がなくなったときに、GAT書き換え動作は、制御書き込み動作中に生じる。新たなGATブロックが割り当てられ、GATインデックスによって規定された有効なGATセクタは、順次順序で一杯のGATブロックからコピーされる。その後、一杯のGATブロックは消去される。   A GAT rewrite operation occurs during a control write operation when there are no available sector positions in the updated GAT sector. A new GAT block is allocated and valid GAT sectors defined by the GAT index are copied from a full GAT block in sequential order. Thereafter, the full GAT block is erased.

GATキャッシュは、GATセクタ内の128個のエントリの再分割部分内のエントリの、コントローラRAM130内のコピーである。GATキャッシュエントリの数は、システム設計パラメータであり、典型的な値は32である。該当セクタの再分割部分についてのGATキャッシュは、エントリがGATセクタから読み出される度に作成される。複数のGATキャッシュが保持される。その数は、設計パラメータであり、典型的な値は4である。GATキャッシュは、最近最も使用されていないことに基づいて、異なるセクタの再分割部分についてのエントリで上書きされる。   The GAT cache is a copy in controller RAM 130 of entries in the subdivision portion of 128 entries in the GAT sector. The number of GAT cache entries is a system design parameter, with a typical value of 32. The GAT cache for the subdivision portion of the sector is created every time an entry is read from the GAT sector. Multiple GAT caches are maintained. The number is a design parameter and a typical value is four. The GAT cache is overwritten with entries for the subdivision portions of different sectors based on the least recently used.

消去済みメタブロックの管理
図2に示されている消去ブロックマネージャ160は、ディレクトリおよびシステム制御情報を保持するためのリストのセットを使用して、消去ブロックを管理する。これらのリストは、コントローラRAM130およびフラッシュメモリ200に分散されている。消去されたメタブロックがユーザデータの記憶のため、またはシステム制御データ構造の記憶のために割り当てられなければならない場合には、コントローラRAMに保持された割り当てブロックリスト(ABL)(図15参照)内の次に使用可能なメタブロック番号が選択される。同様に、メタブロックが廃棄後に消去される場合には、その番号が、同じくコントローラRAMに保持されたクリア済みブロックリスト(CBL)に追加される。比較的静的なディレクトリおよびシステム制御データが、フラッシュメモリ内に記憶される。これらには、消去済みブロックリストと、フラッシュメモリ内のすべてのメタブロックの消去された状態のビットマップ(MAP)リストとが含まれる。消去済みブロックリストおよびMAPは、個別のセクタに記憶され、MAPブロックとして知られる専用のメタブロックに記録される。これらのリストは、コントローラRAMおよびフラッシュメモリに分散されて、消去済みメタブロックの使用を効率的に管理するための消去済みブロック記録の階層を提供する。
Erased Metablock Management The erase block manager 160 shown in FIG. 2 manages erase blocks using a set of lists to hold directory and system control information. These lists are distributed in the controller RAM 130 and the flash memory 200. If the erased metablock must be allocated for storage of user data or for storage of system control data structures, in the allocation block list (ABL) (see FIG. 15) held in the controller RAM The next available metablock number is selected. Similarly, when a metablock is erased after discarding, its number is added to the cleared block list (CBL) also held in the controller RAM. A relatively static directory and system control data is stored in flash memory. These include an erased block list and an erased state bitmap (MAP) list of all metablocks in the flash memory. The erased block list and MAP are stored in separate sectors and recorded in a dedicated metablock known as a MAP block. These lists are distributed in the controller RAM and flash memory to provide a hierarchy of erased block records for efficiently managing the use of erased metablocks.

図18は、消去済みブロックの使用およびリサイクルのための制御およびディレクトリ情報の分配および流れを示す概略ブロック図である。制御およびディレクトリデータは、コントローラRAM130内か、フラッシュメモリ200内に常駐するMAPブロック750内のいずれかに保持されるリストに保持される。   FIG. 18 is a schematic block diagram illustrating the distribution and flow of control and directory information for use and recycling of erased blocks. Control and directory data is maintained in a list maintained either in the controller RAM 130 or in the MAP block 750 that resides in the flash memory 200.

好ましい実施形態において、コントローラRAM130は、割り当てブロックリスト(ABL)610と、クリア済みブロックリスト(CBL)740とを保持する。図15に関連して前に説明したように、割り当てブロックリスト(ABL)は、ユーザデータの記憶のため、またはシステム制御データ構造の記憶のために最近割り当てられたのがどのメタブロックかを追跡する。新規の消去済みメタブロックを割り当てる必要がある場合には、割り当てブロックリスト(ABL)内の次に使用可能なメタブロック番号が選択される。同様に、クリア済みブロックリスト(CBL)を使用して、割り当て解除および消去された更新メタブロックを追跡する。ABLおよびCBLは、比較的アクティブな更新ブロックを追跡する際の迅速なアクセスおよび容易な操作のために、コントローラRAM130(図1参照)に保持される。   In the preferred embodiment, the controller RAM 130 maintains an allocated block list (ABL) 610 and a cleared block list (CBL) 740. As previously described in connection with FIG. 15, the allocation block list (ABL) tracks which metablocks have been recently allocated for storage of user data or for storage of system control data structures. To do. If a new erased metablock needs to be allocated, the next available metablock number in the allocated block list (ABL) is selected. Similarly, a cleared block list (CBL) is used to keep track of deallocated and erased updated metablocks. ABL and CBL are maintained in controller RAM 130 (see FIG. 1) for quick access and easy operation in tracking relatively active update blocks.

割り当てブロックリスト(ABL)は、消去済みメタブロックのプールと、消去済みメタブロックを更新ブロックにする割り当てとを追跡する。よって、これらの各メタブロックは、ABL保留割り当ての消去済みブロックか、開放更新ブロックか、閉鎖更新ブロックかどうかを指定する属性によって記述されてもよい。図18は、消去済みABLリスト612と、開放更新ブロックリスト614と、閉鎖更新ブロックリスト616とを含むABLを示す。加えて、開放更新ブロックリスト614に関連付けられているのは、関連する元ブロックリスト615である。同様に、閉鎖更新ブロックリストに関連付けられているのは、関連消去済みの元ブロックリスト617である。図15において前に示したように、これらの関連リストは、それぞれ、開放更新ブロックリスト614および閉鎖更新ブロックリスト616のサブセットである。消去済みABLブロックリスト612、開放更新ブロックリスト614、および閉鎖更新ブロックリスト616は、すべて、割り当てブロックリスト(ABL)610のサブセットであり、それぞれの中のエントリは、それぞれ対応する属性を有する。   The allocation block list (ABL) keeps track of the pool of erased metablocks and the assignments that make the erased metablock an update block. Thus, each of these metablocks may be described by an attribute that specifies whether it is an erased block of ABL pending allocation, an open update block, or a closed update block. FIG. 18 shows an ABL that includes an erased ABL list 612, an open update block list 614, and a closed update block list 616. In addition, associated with the open updated block list 614 is the associated original block list 615. Similarly, associated with the closed updated block list is an associated erased original block list 617. As previously indicated in FIG. 15, these related lists are subsets of the open update block list 614 and the closed update block list 616, respectively. The erased ABL block list 612, the open update block list 614, and the closed update block list 616 are all subsets of the allocated block list (ABL) 610, and the entries in each have corresponding attributes.

MAPブロック750は、フラッシュメモリ200内の消去管理記録を記憶するのに専用のメタブロックである。MAPブロックは、時系列のMAPブロックセクタを記憶し、各MAPセクタは、消去ブロック管理(EBM)セクタ760またはMAPセクタ780のいずれかである。メタブロックが廃棄されて、消去済みブロックが割り当てで使い尽くされてリサイクルされるにつれて、関連する制御およびディレクトリデータは、MAPブロック内で更新される論理セクタに含まれるのが好ましく、更新データの各インスタンスは、新規のブロックセクタに記録される。EBMセクタ760およびMAPセクタ780の複数のコピーがMAPブロック750内に存在してもよく、その最新バージョンのみが有効である。有効MAPセクタの位置へのインデックスは、EMBブロック内のフィールド内に含まれる。有効なEMBセクタが、制御書き込み動作中のMAPブロック内にいつも最後に書き込まれる。MAPブロック750が一杯の場合には、すべての有効セクタを新規のブロック位置に書き換えることによって、制御書き込み動作中にコンパクト化される。その後、一杯のブロックは消去される。   The MAP block 750 is a metablock dedicated for storing the erasure management record in the flash memory 200. The MAP block stores a time-series MAP block sector, and each MAP sector is either an erase block management (EBM) sector 760 or a MAP sector 780. As metablocks are discarded and erased blocks are used up in allocation and recycled, the associated control and directory data is preferably included in the logical sector that is updated in the MAP block, and each update data The instance is recorded in a new block sector. Multiple copies of EBM sector 760 and MAP sector 780 may exist in MAP block 750, only the latest version is valid. An index to the position of the valid MAP sector is included in the field in the EMB block. A valid EMB sector is always written last in the MAP block during a control write operation. When the MAP block 750 is full, it is compacted during a control write operation by rewriting all valid sectors to new block positions. The full block is then erased.

各EBMセクタ760は、消去済みブロックリスト(EBL)770を含み、これは、消去済みブロックの母集団のサブセットのアドレスのリストである。消去済みブロックリスト(EBL)770は、消去済みメタブロック番号を含むバッファとしての役割を果たし、EBLから、メタブロック番号が周期的に取り出されてABLを再充填し、EBLに対して、メタブロック番号が周期的に追加されてCBLを再び空にする。EBL770は、使用可能ブロックバッファ(ABB)772、消去済みブロックバッファ(EBB)774、および消去済みブロックバッファ(CBB)776のためのバッファとしての役割を果たす。   Each EBM sector 760 includes an erased block list (EBL) 770, which is a list of addresses of a subset of the population of erased blocks. The erased block list (EBL) 770 serves as a buffer containing erased metablock numbers, and the metablock numbers are periodically retrieved from the EBL to refill the ABL and Numbers are added periodically to empty the CBL again. EBL 770 serves as a buffer for available block buffer (ABB) 772, erased block buffer (EBB) 774, and erased block buffer (CBB) 776.

使用可能ブロックバッファ(ABB)772は、前回のABL充填動作のすぐ後に続くABL610内のエントリのコピーを含む。これは、実質上、ABL充填動作直後のABLのバックアップコピーである。
消去済みブロックバッファ(EBB)774は、MAPセクタ780から、または(後述する)CBBリスト776からのいずれかから先に転送され、かつABL充填動作中にABL610へ転送に使用可能である消去済みブロックアドレスを含む。
クリアされたブロックバッファ(CBB)776は、CBLを空にする動作中にCBL740から転送され、かつMAPセクタ780またはEBBリスト774へ後に転送される消去済みブロックのアドレスを含む。
The available block buffer (ABB) 772 contains a copy of the entry in ABL 610 that immediately follows the previous ABL fill operation. This is essentially a backup copy of ABL immediately after the ABL filling operation.
The erased block buffer (EBB) 774 is transferred first from either the MAP sector 780 or from the CBB list 776 (described below) and is available for transfer to the ABL 610 during an ABL fill operation. Contains an address.
A cleared block buffer (CBB) 776 contains the addresses of erased blocks that were transferred from CBL 740 during CBL emptying operations and later transferred to MAP sector 780 or EBB list 774.

各MAPセクタ780は、MAPと称されるビットマップ構造を含む。MAPは、フラッシュメモリ内のメタブロック毎に1ビットを使用し、これは、各ブロックの消去状態を示すために使用される。ABL、CBL、またはEBM内の消去済みブロックリスト内に列挙されたブロックアドレスに対応するビットは、MAP内において消去済み状態に設定されない。   Each MAP sector 780 includes a bitmap structure called MAP. MAP uses one bit for each metablock in the flash memory, which is used to indicate the erased state of each block. Bits corresponding to block addresses listed in the erased block list in ABL, CBL, or EBM are not set to the erased state in MAP.

有効データ構造を含まず、かつMAP内の消去済みブロック、消去済みブロックリスト、ABL、またはCBLとして指定されていないブロックはどれでも、ブロック割り当てアルゴリズムによって決して使用されず、従ってホストまたは制御データ構造の記憶のためにアクセスすることはできない。これにより、アクセス可能なフラッシュメモリアドレス空間から障害位置のあるブロックを除外するための簡単な機構が提供される。   Any block that does not contain a valid data structure and is not designated as an erased block, erased block list, ABL, or CBL in the MAP is never used by the block allocation algorithm and is therefore a host or control data structure It cannot be accessed for storage. This provides a simple mechanism for excluding the faulty block from the accessible flash memory address space.

図18に示されている階層により、消去済みブロック記録を効率的に管理することができるようになり、コントローラのRAM内に記憶されたブロックアドレスリストの完全なセキュリティを提供する。消去済みブロックエントリが、これらのブロックアドレスリストと、1つ以上のMAPセクタ780との間で、稀に交換される。これらのリストは、電源が切られた後のシステム初期化中に、消去済みブロックリスト、およびフラッシュメモリ内のセクタに記憶されたアドレス変換テーブル内の情報と、フラッシュメモリ内のわずかな数の参照済みデータブロックの限定的な走査とを介して再構築される。   The hierarchy shown in FIG. 18 allows for the efficient management of erased block records and provides complete security of the block address list stored in the controller's RAM. Erased block entries are rarely exchanged between these block address lists and one or more MAP sectors 780. These lists are stored in the erased block list and address translation table information stored in sectors in the flash memory and a small number of references in the flash memory during system initialization after the power is turned off. Reconstructed via limited scanning of the data block.

消去済みメタブロック記録の階層を更新するために採用されたアルゴリズムにより、消去済みブロックが、MAPブロック750からのアドレス順序のブロックのバーストと、ブロックがホストによって更新された順序を反映するCBL740からのブロックアドレスのバーストとをインターリーブする順序で使用するために割り当てられる結果となる。メタブロックサイズおよびシステムメモリ容量のほとんどについて、1つのMAPセクタは、システム内のすべてのメタブロックについてのビットマップを提供する。この場合、消去済みブロックは、このMAPセクタに記録されるとおりのアドレス順序での使用のために常に割り当てられる。   The algorithm employed to update the hierarchy of erased metablock records allows the erased block to reflect the burst of addresses in order from the MAP block 750 and the order from which the block was updated by the host. The result is that the block address bursts are allocated for use in the order of interleaving. For most metablock sizes and system memory capacity, one MAP sector provides a bitmap for all metablocks in the system. In this case, the erased block is always allocated for use in the address order as recorded in this MAP sector.

消去ブロック管理動作
前に説明したように、ABL610は、使用のために割り当てられるであろう消去済みメタブロック、およびデータ更新ブロックとして最近割り当てられたメタブロックについてのアドレスエントリを有するリストである。ABL内のブロックアドレスの実際の数は、上限と下限という、システム設計の変数の間にある。製造中にフォーマットされたABLエントリの数は、カードの種類と容量との関数である。加えて、システムの寿命の終わりが近づくとABL内のエントリの数が減少するのは、使用可能な消去済みブロックの数が寿命内でのブロックの障害によって減少するためである。例えば、充填動作の後、ABL内のエントリは、以下の目的のために使用可能なブロックを指定してもよい。ブロック毎に1つのエントリを有する部分的に書き込まれたデータ更新ブロックについてのエントリであり、同時に開放されている更新ブロックの最大数についてのシステム制限を越えないもの。データ更新ブロックとして割り当てるための消去済みブロックについての1個から12個の間のエントリ。制御ブロックとして割り当てるための消去済みブロックについての4つのエントリ。
As described before the erase block management operation , the ABL 610 is a list with address entries for erased metablocks that will be allocated for use and metablocks recently allocated as data update blocks. The actual number of block addresses in the ABL is between system design variables, upper and lower limits. The number of ABL entries formatted during manufacture is a function of card type and capacity. In addition, the number of entries in the ABL decreases as the end of life of the system approaches, because the number of available erased blocks decreases due to block failures within the lifetime. For example, after a fill operation, an entry in the ABL may specify a block that can be used for the following purposes: An entry for a partially written data update block with one entry per block that does not exceed the system limit on the maximum number of update blocks that are simultaneously open. Between 1 and 12 entries for erased blocks for allocation as data update blocks. Four entries for erased blocks to assign as control blocks.

ABL充填動作
ABL610が割り当てによって使い尽くされると、再充填される必要があることになる。ABLを充填する動作は、制御書き込み動作中に生じる。これは、ブロックを割り当てなければならない場合にトリガされるが、ABLには、データ更新ブロックとして割り当てるため、またはいくつかの他の制御データ更新ブロックのために使用可能な消去済みブロックエントリが十分には含まれていない。制御書き込み中に、ABL充填動作は、GAT更新動作と並行して行われる。
When the ABL fill operation ABL 610 is used up by allocation, it will need to be refilled. The operation of filling the ABL occurs during a control write operation. This is triggered when a block must be allocated, but the ABL has enough erased block entries available for allocation as a data update block or for some other control data update block. Is not included. During the control write, the ABL filling operation is performed in parallel with the GAT update operation.

以下の動作が、ABL充填動作中に生じる。
1.現在のデータ更新ブロックの属性を有するABLエントリは保持される。
2.閉鎖データ更新ブロックの属性を有するABLエントリは、このブロックについてのエントリが並行GAT更新動作において書き込み中でなければ保持され、書き込み中であれば、このエントリはABLから除去される。
3.割り当てられていない消去ブロックについてのABLエントリは保持される。
4.ABLは、エントリの除去によって生じたギャップを除去するためにコンパクト化され、エントリの順序が維持される。
5.ABLは、EBBリストから次に使用可能なエントリをつけることによって完全に充填される。
6.ABBリストは、ABL内の現在のエントリで上書きされる。
The following operations occur during the ABL filling operation.
1. ABL entries with the attributes of the current data update block are retained.
2. An ABL entry having the attribute of a closed data update block is retained if the entry for this block is not being written in a concurrent GAT update operation, and if it is being written, this entry is removed from the ABL.
3. ABL entries for erase blocks that are not allocated are retained.
4). The ABL is compacted to remove gaps caused by entry removal and the order of entries is maintained.
5. The ABL is completely filled by making the next available entry from the EBB list.
6). The ABB list is overwritten with the current entry in the ABL.

CBLを空にする動作
CBLは、消去済みブロックエントリの数に対するABLと同じ制限を有する、コントローラRAM内の消去済みブロックアドレスのリストである。CBLを空にする動作は、制御書き込み動作中に生じる。したがって、この動作は、ABL充填/GAT更新動作、またはCBIブロック書き込み動作と並行して行われる。CBLを空にする動作において、エントリはCBL740から除去されて、CBBリスト776に書き込まれる。
Empty CBL The operation CBL is a list of erased block addresses in the controller RAM that have the same restrictions as ABL on the number of erased block entries. The operation of emptying CBL occurs during a control write operation. Therefore, this operation is performed in parallel with the ABL filling / GAT update operation or the CBI block write operation. In the operation of emptying the CBL, the entry is removed from the CBL 740 and written to the CBB list 776.

MAP交換動作
MAPセクタ780およびEBMセクタ760内の消去ブロック情報間のMAP交換動作は、EBBリスト774が空の場合に、制御書き込み動作中に周期的に生じてもよい。システム内のすべての消去済みメタブロックは、EBMセクタ760内に記録され、MAPセクタ780はなく、MAP交換は行われない。MAP交換動作中に、EBB774に消去済みブロックを入力するMAPセクタは、送信元MAPセクタ782とみなされる。逆に、CBB776から消去済みブロックを受信するMAPセクタは、送信先MAPセクタ784とみなされる。MAPセクタが1つだけ存在する場合は、以下に規定するように、送信元および送信先MAPセクタの両方としての役割を果たす。
MAP Exchange Operation MAP exchange operation between erase block information in MAP sector 780 and EBM sector 760 may occur periodically during a control write operation when EBB list 774 is empty. All erased metablocks in the system are recorded in EBM sector 760, there is no MAP sector 780, and no MAP exchange takes place. During the MAP exchange operation, the MAP sector that inputs the erased block to the EBB 774 is considered the source MAP sector 782. Conversely, a MAP sector that receives an erased block from CBB 776 is considered a destination MAP sector 784. If there is only one MAP sector, it serves as both a source and destination MAP sector as defined below.

以下の動作が、MAP交換中に行われる。
1.送信元MAPセクタが、増分ポインタに基づいて選択される。
2.送信先MAPセクタが、送信元MAPセクタ内ではない最初のCBBエントリ内のブロックアドレスに基づいて選択される。
3.送信先MAPセクタが、CBB内の該当エントリによって規定されたように更新され、当該エントリは、CBBから除去される。
4.別個の送信元MAPセクタが存在しなければ、更新された送信先MAPセクタが、MAPブロックに書き込まれる。
5.送信元MAPセクタが、CBB内の該当エントリによって規定されたように更新され、当該エントリは、CBBから除去される。
6.CBB内の残りのエントリが、EBBに付加される。
7.EBBには、送信元MAPセクタから規定された消去済みブロックアドレスができる限り充填される。
8.更新済みの送信元MAPセクタが、MAPブロック内に書き込まれる。
9.更新済みのEBMセクタが、MAPブロック内に書き込まれる。
The following operations are performed during MAP exchange.
1. A source MAP sector is selected based on the incremental pointer.
2. The destination MAP sector is selected based on the block address in the first CBB entry that is not in the source MAP sector.
3. The destination MAP sector is updated as defined by the corresponding entry in the CBB, and the entry is removed from the CBB.
4). If there is no separate source MAP sector, the updated destination MAP sector is written to the MAP block.
5. The source MAP sector is updated as defined by the corresponding entry in the CBB, and the entry is removed from the CBB.
6). The remaining entries in the CBB are added to the EBB.
7). The EBB is filled with erased block addresses defined from the transmission source MAP sector as much as possible.
8). The updated source MAP sector is written in the MAP block.
9. The updated EBM sector is written into the MAP block.

リスト管理
図18は、様々なリスト間の制御およびディレクトリ情報の分配および流れを示す。便宜のために、リストの要素間でエントリを移動する動作、またはエントリの属性を変更する動作は、[A]から[O]として図18に示され、以下のようなものである。
[A]消去済みブロックがホストデータについての更新ブロックとして割り当てられる場合には、そのエントリのABL内にある属性は、消去済みABLブロックから開放更新ブロックに変更される。
[B]消去されたブロックが制御ブロックとして割り当てられる場合には、ABL内のそのエントリが除去される。
[C]ABLエントリが開放更新ブロック属性と共に作成される場合には、更新中の論理グループについての元メタブロックアドレスを記録するために、関連する元ブロックフィールドがエントリに付加される。この情報は、GATから取得される。
[D]更新ブロックが閉鎖されると、そのエントリのABL内にある属性は、開放更新ブロックから閉鎖更新ブロックへ変更される。
[E]更新ブロックが閉鎖されると、その関連する元ブロックは消去されて、ABL内にあるそのエントリ内の関連する元ブロックフィールドの属性は、消去済み元ブロックに変更される。
[F]ABL充填動作中、同一の制御書き込み動作中にGAT内でアドレスが更新された閉鎖更新ブロックはどれでも、そのエントリがABLから除去される。
[G]ABL充填動作中、閉鎖更新ブロックについてのエントリがABLから除去されると、その関連する消去済みの元ブロックについてのエントリが、CBLへ移動される。 [H]制御ブロックが消去されると、それについてのエントリが、CBLへ追加される。
[I]ABL充填動作中、消去済みブロックエントリが、EBBリストからABLへ移動され、消去済みABLブロックの属性が与えられる。
[J]ABL充填動作中のすべての該当ABLエントリの修正後、ABL内のブロックアドレスが、ABBリスト内のブロックアドレスに取って代わる。
[K]制御書き込み中にABL充填動作と並行して、CBL内の消去済みブロックについてのエントリが、CBBリストへ移動される。
[L]MAP交換動作中、すべての該当エントリが、CBBリストからMAP送信先セクタへ移動される。
[M]MAP交換動作中、すべての該当エントリが、CBBリストからMAP送信元セクタへ移動される。
[N]MAP交換動作中の[L]および[M]に続いて、すべての残りのエントリが、CBBリストからEBBリストへ移動される。
[O]MAP交換動作中の[N]に続いて、可能であれば、[M]において移動されたもの以外のエントリが、MAP送信元セクタから移動されて、EBBリストを充填する。
List Management FIG. 18 shows the distribution and flow of control and directory information between the various lists. For convenience, the operation of moving an entry between elements of a list or changing the attribute of an entry is shown in FIG. 18 as [A] to [O] and is as follows.
[A] When an erased block is assigned as an update block for host data, the attribute in the ABL of that entry is changed from an erased ABL block to a free update block.
[B] If the erased block is assigned as a control block, its entry in the ABL is removed.
[C] When an ABL entry is created with an open update block attribute, an associated original block field is added to the entry to record the original metablock address for the logical group being updated. This information is obtained from the GAT.
[D] When an update block is closed, the attributes in the ABL of the entry are changed from the open update block to the closed update block.
[E] When an update block is closed, its associated original block is erased and the attribute of the associated original block field in that entry in the ABL is changed to the erased original block.
[F] During an ABL fill operation, any closed update block whose address has been updated in the GAT during the same control write operation will have its entry removed from the ABL.
[G] During an ABL fill operation, when an entry for a closed update block is removed from the ABL, the entry for its associated erased original block is moved to the CBL. [H] When a control block is erased, an entry for it is added to the CBL.
[I] During an ABL fill operation, the erased block entry is moved from the EBB list to the ABL and given the attributes of the erased ABL block.
[J] After correcting all relevant ABL entries during an ABL fill operation, the block address in the ABL replaces the block address in the ABB list.
[K] During the control write, in parallel with the ABL filling operation, the entry for the erased block in the CBL is moved to the CBB list.
[L] During the MAP exchange operation, all relevant entries are moved from the CBB list to the MAP destination sector.
[M] During the MAP exchange operation, all relevant entries are moved from the CBB list to the MAP source sector.
[N] Following [L] and [M] during the MAP exchange operation, all remaining entries are moved from the CBB list to the EBB list.
[O] Following [N] during MAP exchange operation, if possible, entries other than those moved in [M] are moved from the MAP source sector to fill the EBB list.

論理/物理アドレス変換
フラッシュメモリ内の論理セクタの物理位置を位置決定するために、図2に示されている論理/物理アドレス変換モジュール140は、論理/物理アドレス変換を行う。最近更新された論理グループを除いて、大量の変換を、フラッシュメモリ200またはコントローラRAM130内のGATキャッシュ内にあるグループアドレステーブル(GAT)を使用して行うことになる可能性がある。最近更新された論理グループについてのアドレス変換は、主にコントローラRAM130内にある更新ブロックについてのアドレスリストを検索することを必要とすることになる。したがって、論理セクタアドレスについての論理/物理アドレス変換のための処理は、セクタが位置する論理グループに関連したブロックの種類に依存する。ブロックの種類には、変化のないブロックと、順次データ更新ブロックと、カオス的データ更新ブロックと、閉鎖データ更新ブロックとがある。
Logical / Physical Address Translation To locate the physical location of a logical sector in the flash memory, the logical / physical address translation module 140 shown in FIG. 2 performs logical / physical address translation. Except for recently updated logical groups, a large amount of translation may be done using a group address table (GAT) in the GAT cache in flash memory 200 or controller RAM 130. Address translation for the recently updated logical group will mainly require searching the address list for the updated block in the controller RAM 130. Accordingly, the processing for logical / physical address conversion for the logical sector address depends on the type of block associated with the logical group in which the sector is located. Block types include blocks that do not change, sequential data update blocks, chaotic data update blocks, and closed data update blocks.

図19は、論理/物理アドレス変換の処理を示すフローチャートである。基本的には、対応するメタブロックおよび物理セクタは、論理セクタアドレスを使用して、最初に、開放更新ブロックリストおよび閉鎖更新ブロックリストなどの様々な更新ディレクトリを検索することによって、位置決定される。関連するメタブロックが更新処理の一部でない場合、ディレクトリ情報がGATによって提供される。論理/物理アドレス変換は、以下のステップを含む。
ステップ800:論理セクタアドレスが与えられる。
ステップ810:コントローラRAM内の開放更新ブロックリスト614(図15および18参照)内の所定の論理アドレスが検索される。検索が失敗すると、ステップ820へ進み、そうでなければ、ステップ830へ進む。
ステップ820:閉鎖更新ブロックリスト616内の所定の論理アドレスを検索する。検索が失敗すると、所定の論理アドレスはどの更新処理の一部でもないことになり、GATアドレス変換のためのステップ870へ進む。そうでなければ、閉鎖更新ブロックアドレス変換のためのステップ860へ進む。
ステップ830:所定の論理アドレスを含む更新ブロックが順次であれば、順次更新ブロックアドレス変換のためのステップ840へ進む。そうでなければ、カオス的更新ブロックアドレス変換のためのステップ850へ進む。
ステップ840:順次更新ブロックアドレス変換を使用して、メタブロックアドレスを取得する。ステップ880へ進む。
ステップ850:カオス的更新ブロックアドレス変換を使用して、メタブロックアドレスを取得する。ステップ880へ進む。
ステップ860:閉鎖更新ブロックアドレス変換を使用して、メタブロックアドレスを取得する。ステップ880へ進む。
ステップ870:グループアドレステーブル(GAT)変換を使用して、メタブロックアドレスを取得する。ステップ880へ進む。
ステップ880:メタブロックアドレスを物理アドレスに変換する。変換方法は、メタブロックが再リンクされているかどうかに依存する。
ステップ890:物理セクタアドレスが取得される。
FIG. 19 is a flowchart showing logical / physical address conversion processing. Basically, corresponding metablocks and physical sectors are located by first searching various update directories, such as open update block list and closed update block list, using logical sector addresses. . If the associated metablock is not part of the update process, directory information is provided by the GAT. The logical / physical address translation includes the following steps.
Step 800: A logical sector address is given.
Step 810: A predetermined logical address in the free update block list 614 (see FIGS. 15 and 18) in the controller RAM is searched. If the search fails, go to step 820, otherwise go to step 830.
Step 820: A predetermined logical address in the closed update block list 616 is searched. If the search fails, the predetermined logical address is not part of any update process and the process proceeds to step 870 for GAT address translation. Otherwise, go to step 860 for closed update block address translation.
Step 830: If update blocks including a predetermined logical address are sequential, the process proceeds to step 840 for sequential update block address conversion. Otherwise, go to step 850 for chaotic update block address translation.
Step 840: Obtain the metablock address using sequential update block address translation. Proceed to step 880.
Step 850: Obtain a metablock address using chaotic update block address translation. Proceed to step 880.
Step 860: Get metablock address using closed update block address translation. Proceed to step 880.
Step 870: Obtain a metablock address using group address table (GAT) translation. Proceed to step 880.
Step 880: Convert the metablock address to a physical address. The conversion method depends on whether the metablock is relinked.
Step 890: A physical sector address is obtained.

様々なアドレス変換処理について、以下により詳細に説明する。
順次更新ブロックアドレス変換(ステップ840)
順次更新ブロックに関連した論理グループ内の対象論理セクタアドレスについてのアドレス変換は、以下のように、開放更新ブロックリスト614内の情報から直接達成される(図15および18)。
1.リスト内の「ページタグ」フィールドおよび「書き込みセクタの数」フィールドから、対象論理セクタが更新ブロックにあるか、またはその関連する元ブロックにあるかどうかを判断する。
2.対象論理セクタに適切なメタブロックアドレスが、リストから読み出される。
3.メタブロック内のセクタアドレスが、適切な「ページタグ」フィールドから決定される。
Various address translation processes are described in more detail below.
Sequential update block address conversion (step 840)
Address translation for the target logical sector address in the logical group associated with the sequential update block is accomplished directly from the information in the free update block list 614 as follows (FIGS. 15 and 18).
1. From the “page tag” field and the “number of write sectors” field in the list, it is determined whether the target logical sector is in the update block or its associated original block.
2. The metablock address appropriate for the target logical sector is read from the list.
3. The sector address in the metablock is determined from the appropriate “page tag” field.

カオス的更新ブロックアドレス変換(ステップ850)
カオス的更新ブロックに関連した論理グループ内の対象論理セクタアドレスについてのアドレス変換シーケンスは、以下の通りである。
1.RAM内のカオス的セクタリストから、セクタが最近書き込まれたセクタであると判断される場合には、アドレス変換は、このリスト内のその位置から直接達成されてもよい。
2.CBIブロック内の直近に書き込まれたセクタは、そのカオス的ブロックデータフィールド内に、対象論理セクタアドレスに該当するカオス的更新ブロックの物理アドレスを含む。また、その間接セクタインデックスフィールド内に、このカオス的更新ブロックに関連する最終書き込みCBIセクタのCBIブロック内のオフセットを含む(図16A〜16E参照)。
3.これらのフィールド内の情報は、RAM内にキャッシュされ、後続のアドレス変換中にセクタを読み出す必要をなくしている。
4.間接セクタインデックスフィールドによってステップ3において識別されたCBIセクタが読み出される。
5.直近にアクセスされたカオス的更新サブグループについての直接セクタインデックスフィールドは、RAM内にキャッシュされ、同一のカオス的更新ブロックに対する繰り返しのアクセスのためのステップ4における読み出しを行う必要をなくしている。
6.ステップ4または5において読み出された直接セクタインデックスフィールドは、対象論理セクタアドレスを含む論理サブグループに関連するCBIセクタを識別する。
7.対象論理セクタアドレスについてのカオス的ブロックインデックスエントリは、ステップ6において識別されたCBIセクタから読み出される。
8.直近に読み出されたカオス的ブロックインデックスフィールドは、コントローラRAM内にキャッシュされてもよく、同一の論理サブグループに対する繰り返しのアクセスのためのステップ4およびステップ7における読み出しを行う必要をなくしている。
9.カオス的ブロックインデックスエントリは、カオス的更新ブロックまたは関連する元ブロックのいずれかの内に対象論理セクタの位置を規定する。対象論理セクタの有効コピーが元ブロック内にあれば、元メタブロックおよびページタグ情報を使用して位置決定される。
Chaotic update block address translation (step 850)
The address translation sequence for the target logical sector address in the logical group associated with the chaotic update block is as follows.
1. If the chaotic sector list in RAM determines that the sector is a recently written sector, address translation may be accomplished directly from that position in this list.
2. The most recently written sector in the CBI block includes the physical address of the chaotic update block corresponding to the target logical sector address in its chaotic block data field. Also included in the indirect sector index field is the offset in the CBI block of the last written CBI sector associated with this chaotic update block (see FIGS. 16A-16E).
3. The information in these fields is cached in RAM, eliminating the need to read sectors during subsequent address translation.
4). The CBI sector identified in step 3 by the indirect sector index field is read.
5. The direct sector index field for the most recently accessed chaotic update subgroup is cached in RAM, eliminating the need to read in step 4 for repeated access to the same chaotic update block.
6). The direct sector index field read in step 4 or 5 identifies the CBI sector associated with the logical subgroup containing the target logical sector address.
7). The chaotic block index entry for the target logical sector address is read from the CBI sector identified in step 6.
8). The most recently read chaotic block index field may be cached in the controller RAM, eliminating the need to read in step 4 and step 7 for repeated access to the same logical subgroup.
9. The chaotic block index entry defines the location of the target logical sector within either a chaotic update block or an associated original block. If a valid copy of the target logical sector is in the original block, it is located using the original metablock and page tag information.

閉鎖更新ブロックアドレス変換(ステップ860)
閉鎖更新ブロックに関連した論理ブロックループ内の対象論理セクタアドレスについてのアドレス変換は、以下のように、閉鎖ブロック更新リスト内の情報から直接達成することができる(図18参照)。
1.対象論理グループに割り当てられたメタブロックアドレスは、リストから読み出される。
2.メタブロック内のセクタアドレスは、リスト内の「ページタグ」フィールドから決定される。
Closed update block address translation (step 860)
Address translation for the target logical sector address in the logical block loop associated with the closed update block can be accomplished directly from the information in the closed block update list as follows (see FIG. 18).
1. The metablock address assigned to the target logical group is read from the list.
2. The sector address in the metablock is determined from the “page tag” field in the list.

GATアドレス変換(ステップ870)
論理グループが開放または閉鎖ブロック更新リストのいずれかによって参照されない場合には、GAT内のそのエントリは有効である。GATによって参照される論理グループ内の対象論理セクタアドレスについてのアドレス変換シーケンスは、以下の通りである。
1.RAM内の使用可能なGATキャッシュの範囲を評価して、対象論理グループについてのエントリがGATキャッシュ内に含まれるかどうかを判断する。
2.対象論理グループがステップ1において見つかった場合、GATキャッシュは、メタブロックアドレスおよびページタグを含む全グループアドレス情報を含み、対象論理セクタアドレスの変換が可能となる。
3.対象アドレスがGATキャッシュ内にない場合、GATインデックスを対象GATブロックについて読みだして、対象論理グループアドレスに関するGATセクタの位置を識別しなければならない。
4.最後にアクセスされたGATブロックについてのGATインデックスは、コントローラRAM内に保持され、フラッシュメモリからセクタを読み出す必要なくアクセスされてもよい。
5.各GATブロックについてのメタブロックアドレスのリストと、各GATブロック内に書き込まれたセクタの数とが、コントローラRAM内に保持される。必要なGATインデックスがステップ4において使用可能でない場合、フラッシュメモリからすぐに読み出されてもよい。
6.対象論理グループアドレスに関するGATセクタは、ステップ4またはステップ6において取得されたGATインデックスによって規定されたGATブロック内のセクタ位置から読み出される。GATキャッシュが、対象エントリを含むセクタの再分割部分によって更新される。
7.対象セクタアドレスは、対象GATエントリ内のメタブロックアドレスおよび「ページタグ」フィールドから取得される。
GAT address translation (step 870)
If a logical group is not referenced by either an open or closed block update list, that entry in the GAT is valid. The address translation sequence for the target logical sector address in the logical group referenced by the GAT is as follows.
1. The range of available GAT cache in RAM is evaluated to determine whether an entry for the target logical group is included in the GAT cache.
2. If the target logical group is found in step 1, the GAT cache includes all group address information including the metablock address and page tag, and the target logical sector address can be converted.
3. If the target address is not in the GAT cache, the GAT index must be read for the target GAT block to identify the location of the GAT sector with respect to the target logical group address.
4). The GAT index for the last accessed GAT block is kept in the controller RAM and may be accessed without having to read the sector from the flash memory.
5. A list of metablock addresses for each GAT block and the number of sectors written in each GAT block are maintained in the controller RAM. If the required GAT index is not available in step 4, it may be read immediately from flash memory.
6). The GAT sector related to the target logical group address is read from the sector position in the GAT block defined by the GAT index acquired in Step 4 or Step 6. The GAT cache is updated with the subdivision portion of the sector containing the target entry.
7). The target sector address is obtained from the metablock address and the “page tag” field in the target GAT entry.

メタブロック/物理アドレス変換(ステップ880)
メタブロックが再リンクされていることをメタブロックアドレスに関連したフラグが示されている場合、該当LTセクタがBLMブロックから読み出されて、対象セクタアドレスについての消去ブロックアドレスであると決定する。そうでなければ、消去ブロックアドレスは、メタブロックアドレスから直接決定される。
Metablock / physical address translation (step 880)
If the flag related to the metablock address indicates that the metablock is relinked, the corresponding LT sector is read from the BLM block and determined as the erase block address for the target sector address. Otherwise, the erase block address is determined directly from the metablock address.

制御データ管理
図20は、メモリ管理の動作中に、制御データ構造に対して行われる動作の階層を示す。データ更新管理動作は、RAM内にある様々なリストに対して作用する。制御書き込み動作は、様々な制御データセクタおよびフラッシュメモリ内の専用ブロックに対して作用し、またRAM内のリストとデータを交換する。
Control Data Management FIG. 20 shows the hierarchy of operations performed on the control data structure during memory management operations. Data update management operations operate on various lists in RAM. Control write operations operate on various control data sectors and dedicated blocks in flash memory, and exchange data with lists in RAM.

データ更新管理動作が、RAM内で、ABL、CBL、およびカオス的セクタリストに対して行われる。ABLは、消去済みブロックが更新ブロックまたは制御ブロックとして割り当てられる場合、または更新ブロックが閉鎖される場合に更新される。CBLは、制御ブロックが消去される場合、または閉鎖更新ブロックについてのエントリがGATに書き込まれる場合に更新される。更新カオス的セクタリストは、セクタがカオス的更新ブロックに書き込まれる場合に更新される。   Data update management operations are performed on the ABL, CBL, and chaotic sector lists in RAM. The ABL is updated when the erased block is assigned as an update block or control block, or when the update block is closed. The CBL is updated when the control block is erased or when an entry for the closed update block is written to the GAT. The updated chaotic sector list is updated when a sector is written into a chaotic update block.

制御書き込み動作によって、RAM内の制御データ構造からの情報がフラッシュメモリ内の制御データ構造に書き込まれ、必要があれば、フラッシュメモリおよびRAM内の他の補助制御データ構造を更新する結果となる。これは、更新ブロックとして割り当てるべき消去済みブロックについてのエントリをABLがこれ以上含まない場合、またはCBIブロックが書き換えられる場合にトリガされる。   The control write operation writes information from the control data structure in the RAM to the control data structure in the flash memory, resulting in updating the flash memory and other auxiliary control data structures in the RAM if necessary. This is triggered when the ABL does not contain any more entries for erased blocks to be allocated as update blocks, or when the CBI block is rewritten.

好ましい実施形態において、ABL充填動作、CBLを空にする動作、およびEBMセクタ更新動作は、各制御書き込み動作中に行われる。EBMセクタを含むMAPブロックが一杯になると、有効EBMおよびMAPセクタが、割り当てられた消去済みブロックにコピーされ、以前のMAPブロックは消去される。   In the preferred embodiment, an ABL fill operation, an empty CBL operation, and an EBM sector update operation are performed during each control write operation. When the MAP block containing the EBM sector is full, the valid EBM and MAP sectors are copied to the allocated erased block and the previous MAP block is erased.

各制御書き込み動作中に、1つのGATセクタが書き込まれ、かつ閉鎖更新ブロックリストがそれに従って修正される。GATブロックが一杯になると、GAT書き換え動作が行われる。
CBIセクタが、前に説明したように、あるカオス的セクタ書き込み動作後に書き込まれる。CBIブロックが一杯になると、有効なCBIセクタが、割り当てられた消去済みブロックにコピーされ、以前のCBIブロックは消去される。
MAP交換動作が、前に説明したように、EBMセクタ内のEBBリスト内に消去済みブロックエントリがこれ以上ない場合に行われる。
During each control write operation, one GAT sector is written and the closed update block list is modified accordingly. When the GAT block is full, a GAT rewrite operation is performed.
The CBI sector is written after a chaotic sector write operation, as previously described. When the CBI block is full, valid CBI sectors are copied to the allocated erased block and the previous CBI block is erased.
A MAP exchange operation is performed when there are no more erased block entries in the EBB list in the EBM sector, as previously described.

MAPアドレス(MAPA)セクタは、MAPブロックの現在アドレスを記録し、MAPブロックが書き換えられる度に専用のMAPAブロックに書き込まれる。MAPAブロックが一杯になると、有効なMAPAセクタは、割り当てられた消去ブロックにコピーされ、以前のMAPAブロックは消去される。
ブートセクタが、MAPAブロックが書き換えられる度に現在のブートブロック内に書き込まれる。ブートブロックが一杯になると、有効なブートセクタは、ブートブロックの現在のバージョンからバックアップバージョンへコピーされ、その後、現在のバージョンとなる。以前の現在のバージョンは消去されて、バックアップバージョンとなり、そこに有効なブートセクタは書き戻される。
The MAP address (MAPA) sector records the current address of the MAP block, and is written in a dedicated MAPA block every time the MAP block is rewritten. When the MAPA block is full, valid MAPA sectors are copied to the allocated erase block and the previous MAPA block is erased.
The boot sector is written into the current boot block every time the MAPA block is rewritten. When the boot block is full, a valid boot sector is copied from the current version of the boot block to the backup version and then becomes the current version. The previous current version is erased and becomes the backup version, where the valid boot sector is written back.

制御データの整合性および管理
制御データの例として、図20に関して説明したような、メモリブロック管理システムに関するディレクトリ情報およびブロック割り当て情報がある。前述したように、制御データは、高速RAMおよびより低速な不揮発性メモリブロックの両方において保持される。頻繁に変化する制御データはいずれも、不揮発性メタブロックに記憶された対応する情報を更新するために、周期的な制御書き込みを伴うRAMに保持される。このように、制御データは、頻繁なアクセスを必要としない、不揮発だが低速のフラッシュメモリに記憶される。図20に示されているGAT、CBI、MAP、MAPAのような制御データ構造の階層をフラッシュメモリ内に保持する。よって、制御書き込み動作により、RAM内の制御データ構造からの情報が、フラッシュメモリ内の対応する制御データ構造を更新する。
Examples of control data consistency and management control data include directory information and block allocation information relating to the memory block management system as described with reference to FIG. As described above, control data is held in both the high speed RAM and the slower non-volatile memory block. Any frequently changing control data is held in RAM with periodic control writes to update the corresponding information stored in the non-volatile metablock. Thus, the control data is stored in a non-volatile but low speed flash memory that does not require frequent access. A hierarchy of control data structures such as GAT, CBI, MAP, and MAPA shown in FIG. 20 is held in the flash memory. Thus, due to the control write operation, information from the control data structure in the RAM updates the corresponding control data structure in the flash memory.

図20に関して説明したように、ブロック管理システムは、その動作中にフラッシュメモリ内の制御データのセットを保持する。制御データのこのセットは、ホストデータと同様に、メタブロックに記憶される。このように、制御データ自体はブロック管理されることになり、更新を受けるので、ガーベッジコレクション動作も受けることになる。   As described with respect to FIG. 20, the block management system maintains a set of control data in the flash memory during its operation. This set of control data is stored in a metablock, similar to host data. As described above, the control data itself is managed in blocks, and is updated, so that the garbage collection operation is also received.

また、低階層のデータが高階層のデータよりも頻繁に更新される、制御データの階層が存在することについて説明した。例えば、すべての制御ブロックは、書き込むためのN個の制御セクタを有すると想定すると、制御更新および制御ブロック移転の以下のシーケンスが普通は偶然にも生じる。図20を再び参照すると、各N個のCBI更新によって、CBIブロックが充填されて、CBI移転(書き換え)およびMAP更新がトリガされる。カオス的ブロックが閉鎖されると、GAT更新もトリガされる。各GAT更新は、MAP更新をトリガする。各N個のGAT更新によって、ブロックが充填されて、GATブロック移転がトリガされる。加えて、MAPブロックが一杯になると、MAPブロック移転およびMAPAブロック(MAPAブロックがあればであるが、そうでなければ、BOOTブロックはMAPを直接ポイントする)更新もトリガされる。加えて、MAPAブロックが一杯になると、MAPAブロック移転、BOOTブロック更新、およびMAP更新もトリガされる。加えて、BOOTブロックが一杯になると、他のBOOTブロックに対するアクティブなBOOTブロック移転がトリガされる。   Further, it has been explained that there is a control data hierarchy in which low-level data is updated more frequently than high-level data. For example, assuming that all control blocks have N control sectors to write, the following sequence of control updates and control block transfers usually happens by chance. Referring back to FIG. 20, each N CBI updates fills the CBI block and triggers CBI transfer (rewrite) and MAP update. When the chaotic block is closed, a GAT update is also triggered. Each GAT update triggers a MAP update. Each N GAT update fills the block and triggers a GAT block transfer. In addition, when the MAP block is full, a MAP block transfer and MAPA block (if there is a MAPA block, otherwise a BOOT block points directly to the MAP) is also triggered. In addition, when the MAPA block is full, a MAPA block transfer, BOOT block update, and MAP update are also triggered. In addition, when a BOOT block is full, an active BOOT block transfer to another BOOT block is triggered.

更新ブロック置換手法
本発明の他の態様によれば、ブロック管理システムを伴う不揮発性メモリにおいて、データを記録するために同時に開放されている更新ブロックの第1の所定最大数までサポートするシステムのために、改良されたブロック置換手法が実施される。更新ブロックは、主に連続更新ブロックであって、当該連続更新ブロックにおいて、データが論理的に連続した順序で記録されているが、そのブロック数は、データが論理的に連続した順序で記録されないカオス的更新ブロックであることが許容された第2の所定最大数までである。更新ブロックの新規の割り当てによって更新ブロックのプールが第1または第2の所定最大数を超えるような場合にはいつでも、当該制限に従うようにプール内の既存のブロックのうちの1つが閉鎖および削除されることになる。更新ブロックを閉鎖する前に、そのデータは連続ブロックに統合される。この改良された手法は、連続的な更新が過度のカオス的ブロック統合数を生じさせ得る状況を回避するためのものである。これは、連続更新ブロックとカオス的更新ブロックとをそれぞれの置換または統合プールに分離することによって達成される。特に、連続更新によって新規の更新ブロックの割り当てが第1の所定最大数を超える場合には、プール内の最も長時間使用されていない連続更新ブロックが、空きを作るために優先される。
Update Block Replacement Technique According to another aspect of the present invention, in a non-volatile memory with a block management system, for a system that supports up to a first predetermined maximum number of update blocks that are simultaneously open to record data. An improved block replacement technique is implemented. An update block is mainly a continuous update block. In the continuous update block, data is recorded in a logically continuous order, but the number of blocks is not recorded in a logically continuous order. Up to a second predetermined maximum number allowed to be a chaotic update block. Whenever a new allocation of update blocks causes the pool of update blocks to exceed the first or second predetermined maximum number, one of the existing blocks in the pool is closed and deleted to comply with the restriction. Will be. Prior to closing the update block, the data is integrated into a continuous block. This improved approach is to avoid situations where successive updates can result in excessive chaotic block consolidation numbers. This is accomplished by separating the continuous update block and the chaotic update block into their respective replacement or unified pool. In particular, when the number of new update blocks assigned by the continuous update exceeds the first predetermined maximum number, the continuous update block that has not been used for the longest time in the pool is given priority to make a free space.

現行システムにおいて、一般的に、ユーザデータと制御データという2つの種類のデータがある。ユーザデータは、ホストからメモリシステムへ、典型的には論理的に連続した順序で送られる。連続更新ブロックは、ホストからの連続書き込み動作を最適に扱うように割り当てられる。ユーザデータは、とりわけ論理データに対する後続の更新がある場合には、論理的に不連続な順序である場合がある。カオス的更新ブロックは、不連続な順序でデータを最適に扱うために作成される。カオス的または不連続データの他のソースとしては、ユーザデータを記憶する過程で生成されるファイルおよびディレクトリ情報などといった、ファイルシステムまたはメモリシステムによって保持される制御データがある。   In current systems, there are generally two types of data: user data and control data. User data is sent from the host to the memory system, typically in a logically sequential order. Continuous update blocks are allocated to optimally handle continuous write operations from the host. User data may be in a logically discontinuous order, especially if there are subsequent updates to the logical data. Chaotic update blocks are created to optimally handle data in a discontinuous order. Other sources of chaotic or discontinuous data include control data maintained by the file system or memory system, such as file and directory information generated in the process of storing user data.

同時に開放されている更新ブロックの最大数までサポートするという実際上のシステム制限に従う従来の手法は、連続的かカオス的かどうかに関わらず、プール内の最も長時間使用されていない更新ブロックを閉鎖するものであった。   The traditional approach, which follows the practical system limit of supporting up to the maximum number of update blocks that are simultaneously open, closes the least recently used update block in the pool, whether continuous or chaotic It was something to do.

本願の手法は、従来の手法を改良するものであって、基本的には、連続的な書き込み動作中に、新規の割り当て用に空きを作るためにプール内の更新ブロックを閉鎖する必要がある場合には、プール内の最も長時間使用されていない連続更新ブロックが閉鎖される。これにより、連続的な書き込み動作およびランダムな書き込み動作を扱うために様々な更新ブロックを効果的に活用することが確実になる。特に、ホストによる大規模な連続書き込み動作によってFATおよびディレクトリ情報を含むカオス的更新ブロックを閉鎖せざるを得なくなる場合があるといった非効率な状況を回避する。この大規模な書き込み動作が終わると再び更新されるようなFATおよびディレクトリ情報を記憶するために、さらなるカオス的ブロックが実質上まもなく作成されることになる。改良された置換ポリシーを作成することによって、置換および統合プールの分離が規定され、開放された連続ブロックまたは開放されたカオス的ブロックとなり得るブロックの連続的な書き込みおよび統合中に、カオス的ブロックを統合する際のさらなるオーバーヘッドを防止して、後続のFATおよびディレクトリ更新を管理する。   The technique of the present application is an improvement over the conventional technique, and basically it is necessary to close the update blocks in the pool to make room for new allocations during successive write operations. In some cases, the least recently used consecutive update block in the pool is closed. This ensures that the various update blocks are effectively utilized to handle continuous write operations and random write operations. In particular, an inefficient situation is avoided in which a chaotic update block containing FAT and directory information may have to be closed by a large-scale continuous write operation by the host. Additional chaotic blocks will be created in the near future to store FAT and directory information that will be updated again at the end of this massive write operation. By creating an improved replacement policy, the separation of replacement and consolidated pools is specified, and chaotic blocks are removed during sequential writing and consolidation of blocks that can be open continuous blocks or open chaotic blocks. Manages subsequent FAT and directory updates, preventing additional overhead in consolidation.

同時に開放されている更新ブロックの最大数までサポートするという実際上のシステム制限については前に述べた。例えば、図10に関連して説明した一実施形態において、ステップ410は、更新データを受け付けるために同時に開放され得る更新ブロックの最大数UMAX を超えることになるかどうかをテストする。UMAX を超えることになる場合には、更新ブロックのうちで最もアクティブでないものが、連続更新ブロックであるのかカオス的更新ブロックであるのかに関わらず、ステップ420において閉鎖されることになり、所定の制限内にシステムを維持する。 The practical system limit of supporting up to the maximum number of update blocks that are freed simultaneously is mentioned above. For example, in one embodiment described in connection with FIG. 10, step 410 tests whether the maximum number of update blocks U MAX that can be simultaneously released to accept update data is exceeded. If U MAX is exceeded, it will be closed in step 420 regardless of whether the least active update block is a continuous update block or a chaotic update block. Keep the system within limits.

図21は、ブロック管理システム用の更新ブロック数に対する2つの所定の規制を概略的に示す。更新ブロック総数に対する包括的な規制(UMAX )があり、これは、カオス的更新ブロックNC の数と連続更新ブロックNS の数との合計によって与えられる。カオス的更新ブロックは、より多くのリソースを要し、カオス的ブロックインデックス(CBI)をさらに保持することを必要とするので、カオス的更新ブロックの最大数(「UCMAX」)に対する規制もある。よって、第1の規制は、更新ブロック総数NC +NS ≦UMAX であることを要する。第2の規制は、カオス的更新ブロック数NC ≦UCMAXであることを要する。 FIG. 21 schematically shows two predetermined restrictions on the number of update blocks for a block management system. There is a comprehensive regulation of updating the total number of blocks (U MAX), which is given by the sum of the number of number and sequential update block N S chaotic update block N C. There is also a restriction on the maximum number of chaotic update blocks (“U CMAX ”) because chaotic update blocks require more resources and require further holding of a chaotic block index (CBI). Therefore, the first restriction requires that the total number of update blocks N C + N S ≦ U MAX . The second restriction requires that the number of chaotic update blocks N C ≦ U CMAX .

図22は、様々なメモリ装置用に最適化された2つの規制の組み合わせの典型例を示す。ある組み合わせは、UMAX 「ダッシュ」UCMAXによって指定される。例えば、「3−1」は、更新プール内の最大3つの更新ブロックを許容し、そのうち1つまでのみがカオス的更新ブロックであるブロック管理システムを指定する。同様に、「7−3」は、最大7つの更新ブロックまでをサポートし、そのうち3つまでがカオス的更新ブロックであり得るブロック管理システムを指定する。一般的に、小さいメモリ容量を有する単純なメモリシステムほど、制限が厳しくなり、最大数が小さくなることになる。 FIG. 22 shows a typical example of a combination of two constraints optimized for various memory devices. Certain combinations are specified by U MAX "dash" U CMAX . For example, “3-1” specifies a block management system that allows a maximum of three update blocks in the update pool, and only one of them is a chaotic update block. Similarly, “7-3” specifies a block management system that supports up to seven update blocks, of which up to three can be chaotic update blocks. In general, the simpler the memory system with a smaller memory capacity, the tighter the limit and the smaller the maximum number.

図23A、図23Bおよび図23Cは、従来の置換手法における第1の状況に係る、新規の更新ブロックを更新ブロックのプールに導入するためのイベントのシーケンスを概略的に示す。
図23Aは、図22において説明したような「5−2」構成の更新プールを概略的に示す。この例において、更新プールは、最大5つの許容更新ブロックで完全に埋められている。更新プールは、3つの連続更新ブロックS1、S2およびS3を含む連続プール1200と、最大2つのカオス的または不連続更新ブロックC4およびC5を含むカオス的プール1300とにさらに分割される。この例は、最もアクティブでないブロックが偶然にも1201のS3のような連続更新ブロックであるという第1の状況を示す。
FIGS. 23A, 23B and 23C schematically illustrate a sequence of events for introducing a new update block into a pool of update blocks, according to a first situation in the conventional replacement technique.
FIG. 23A schematically illustrates an update pool with a “5-2” configuration as described in FIG. In this example, the update pool is completely filled with up to five allowed update blocks. The update pool is further divided into a continuous pool 1200 containing three consecutive update blocks S1, S2 and S3 and a chaotic pool 1300 containing up to two chaotic or discontinuous update blocks C4 and C5. This example shows a first situation where the least active block happens to be a continuous update block like S3 in 1201.

新規の更新ブロックを割り当てる必要がある場合には、空きを作るために、更新プール内の既存の更新ブロックのうちの1つが閉鎖される必要があることになる。例えば、プール内の既存の更新ブロックによってサービス提供されていないセクタの論理グループについて連続データをホストが書き込む場合には、当該データを記録するために、新規の更新ブロックを割り当てる必要がある。   If a new update block needs to be allocated, one of the existing update blocks in the update pool will need to be closed to make room. For example, if the host writes continuous data for a logical group of sectors that are not serviced by an existing update block in the pool, it is necessary to allocate a new update block to record that data.

図23Bは、従来の手法に係る、新規の更新ブロック用に空きを作るために最もアクティブでない更新ブロックを閉鎖することを概略的に示す。最もアクティブでないブロックは、この場合では偶然にも1201のS3であり、閉鎖されて更新ブロックのプールから削除されることになる。   FIG. 23B schematically illustrates closing the least active update block to make room for a new update block, according to a conventional approach. The least active block happens to be S3 of 1201 in this case and will be closed and removed from the update block pool.

図23Cは、空きを作るために閉鎖された更新ブロックが削除された後、新たに割り当てられた更新ブロックをプールに導入することを概略的に示す。この場合、データを論理的に連続した順序で記録するために、新規に割り当てられた更新ブロックである1212のS6が、連続プール1200に導入されることになる。このように、許容される更新ブロックの最大数であるUMAX を超えることはない。 FIG. 23C schematically illustrates introducing a newly allocated update block into the pool after an update block that has been closed to make room is deleted. In this case, in order to record data in a logically continuous order, the newly allocated update block 1212 S6 is introduced into the continuous pool 1200. Thus, the maximum number of allowed update blocks, U MAX , is not exceeded.

図24A、図24B、および図24Cは、従来の置換手法における第2の状況に係る、新規の更新ブロックを更新ブロックのプールに導入するためのイベントのシーケンスを概略的に示す。
図24Aは、図22において説明したような「5−2」構成の更新プールを概略的に示す。この例において、更新プールは、最大5つの許容更新ブロックで完全に埋められている。更新プールは、3つの連続更新ブロックS1、S2およびS3を含む連続プール1200と、最大2つのカオス的または不連続更新ブロックC4およびC5を含むカオス的プール1300とにさらに分割される。この例は、最もアクティブでないブロックが偶然にも1301のC4のようなカオス的更新ブロックであるという第2の状況を示す。
FIGS. 24A, 24B, and 24C schematically illustrate a sequence of events for introducing a new update block into a pool of update blocks, according to a second situation in the conventional replacement technique.
FIG. 24A schematically shows an update pool with a “5-2” configuration as described in FIG. In this example, the update pool is completely filled with up to five allowed update blocks. The update pool is further divided into a continuous pool 1200 containing three consecutive update blocks S1, S2 and S3 and a chaotic pool 1300 containing up to two chaotic or discontinuous update blocks C4 and C5. This example shows a second situation where the least active block happens to be a chaotic update block like C4 at 1301.

図24Bは、従来の手法に係る、新規の更新ブロック用に空きを作るために最もアクティブでない更新ブロックを閉鎖することを概略的に示す。最もアクティブでないブロックは、この場合では偶然にも1301のC4であり、閉鎖されて更新ブロックのプールから削除されることになる。   FIG. 24B schematically illustrates closing the least active update block to make room for a new update block, according to a conventional approach. The least active block is in this case by chance C1 1301 and will be closed and removed from the pool of update blocks.

図24Cは、空きを作るために閉鎖された更新ブロックが削除された後、新たに割り当てられた更新ブロックをプールに導入することを概略的に示す。この場合、データを論理的に連続した順序で記録するために、新規に割り当てられた更新ブロックである1212のS6が、連続プール1200に導入されることになる。このように、許容される更新ブロックの最大数であるUMAX を超えることはない。 FIG. 24C schematically illustrates introducing a newly allocated update block into the pool after an update block that has been closed to make room is deleted. In this case, in order to record data in a logically continuous order, the newly allocated update block 1212 S6 is introduced into the continuous pool 1200. Thus, the maximum number of allowed update blocks, U MAX , is not exceeded.

図25Aおよび図25Bは、図10、図23Bおよび図24Bにおいて先に説明した手法におけるUMAX およびUCMAX制限の保持をそれぞれ示す。2つの制限は、典型的には同時に課せられる。 FIGS. 25A and 25B illustrate retention of U MAX and U CMAX limits in the approach described above in FIGS. 10, 23B, and 24B, respectively. Two restrictions are typically imposed simultaneously.

図25Aは、図10のステップ410ならびに図23Bおよび図24Bに先に示す手法であって、新規の割り当てが所定の制限を超えるような場合にはいつでも、最も長時間アクセスされていない更新ブロックが閉鎖される手法を示す。
ステップ1252:不揮発性メモリをブロックに組織化し、各ブロックは共に消去可能なデータを記憶するためのものである。
ステップ1254:データの論理ユニットの更新を記憶するために同時に開放中の更新ブロックの第1の所定数まで割り当てる。
ステップ1256:新規の更新ブロックの割り当てが当該所定数を超えるようになる場合にはいつでも、直近にアクセスされた更新ブロックのうちの1つを閉鎖して、新規更新ブロック用に空きを作る。
FIG. 25A is the approach shown previously in step 410 of FIG. 10 and FIGS. 23B and 24B, where the updated block that has not been accessed for the longest time whenever a new allocation exceeds a predetermined limit. Indicates the method to be closed.
Step 1252: Organize non-volatile memory into blocks, each block for storing erasable data together.
Step 1254: Allocate up to a first predetermined number of open update blocks simultaneously to store data logical unit updates.
Step 1256: Whenever the allocation of new update blocks exceeds the predetermined number, one of the most recently accessed update blocks is closed to make room for the new update block.

図25Bは、図10のステップ370に先に示す手法であって、カオス的更新ブロック数が所定の制限を超える場合にはいつでも、最も長時間アクセスされていないカオス的(不連続)更新ブロックが閉鎖される手法を示す。
ステップ1354:データの論理ユニットを論理的に不連続な順序で記憶するための開放更新ブロックのうち、更新ブロックの第2の所定数まで割り当てる。
ステップ1356:不連続更新ブロックの数が第2の所定数を超えるようになる場合にはいつでも、最も長時間アクセスされていない不連続更新ブロックのうちの1つを閉鎖して、第2の所定数を超えないようにする。
FIG. 25B is the technique shown above in step 370 of FIG. 10 where the chaotic (discontinuous) update block that has not been accessed for the longest time whenever the number of chaotic update blocks exceeds a predetermined limit. Indicates the method to be closed.
Step 1354: Allocate up to a second predetermined number of update blocks among the open update blocks for storing logical units of data in a logically discontinuous order.
Step 1356: Whenever the number of discontinuous update blocks exceeds a second predetermined number, one of the discontinuous update blocks that have not been accessed for the longest time is closed to the second predetermined number. Do not exceed the number.

この従来の手法の欠点の1つは、状況によって、カオス的更新ブロックを過度に閉鎖してしまうことにつながり得ることである。連続書き込みによって、新規に割り当てられた連続ブロック用にプール内に空きを作るために制御データを含むカオス的ブロックが早期に閉鎖されてしまう場合、特に非効率である。例えば、閉鎖されたカオス的更新ブロックである1310のC4がFATおよびディレクトリ情報を記録していた場合には、連続書き込みがなされたらすぐに当該機能をサービス提供するために、置換が直ちに必要になる。これは、制御データを記録するための置換更新ブロック用に空きを作るために、現在プール内にある最もアクティブでない更新ブロックをもう一度閉鎖することになる。   One disadvantage of this conventional approach is that, depending on the situation, chaotic update blocks can be overly closed. This is particularly inefficient when chaotic blocks containing control data are closed early due to continuous writing to make room in the pool for newly allocated consecutive blocks. For example, if 1310 C4, a closed chaotic update block, recorded FAT and directory information, a replacement would be required immediately to service the function as soon as successive writes were made . This would again close the least active update block currently in the pool to make room for the replacement update block for recording control data.

本発明のこの態様によれば、更新ブロックの所定の最大数を超えないように更新ブロックを閉鎖するこの手法は、最も長時間使用されていない更新ブロックを単に選択することから、カオス的更新ブロックが過度に閉鎖される事例を減少させる手法へとさらに洗練されている。好ましい一実施形態において、連続データを記録するために更新ブロックが割り当てられ、空きを作るために更新ブロックのプール内の1つが閉鎖される場合には、プール内の最もアクティブでない連続更新ブロックが閉鎖される。   According to this aspect of the invention, this approach of closing update blocks so as not to exceed a predetermined maximum number of update blocks simply selects the update block that has not been used for the longest time, so chaotic update blocks Has been further refined to reduce the number of cases of excessive closure. In a preferred embodiment, when an update block is allocated to record continuous data and one in the pool of update blocks is closed to make room, the least active continuous update block in the pool is closed. Is done.

図26A、図26Bおよび図26Cは、改良された本願の置換手法に係る、新規更新ブロックを更新ブロックのプールに導入するためのイベントのシーケンスを概略的に示す。
図26Aは、図22において説明したような「5−2」構成の更新プールを概略的に示す。この例において、更新プールは、最大5つの許容更新ブロックで完全に埋められている。更新プールは、3つの連続更新ブロックS1、S2およびS3を含む連続プール1200と、最大2つのカオス的または不連続更新ブロックC4およびC5を含むカオス的プール1300とにさらに分割される。この例は、最もアクティブでないブロックが偶然にも1301のC4のようなカオス的更新ブロックであるという、図24Aにおけるのと同様の状況を示す。さらに、この例は、連続ブロック1202のS3が連続プール1200のうち最もアクティブでないことを示す。
FIGS. 26A, 26B, and 26C schematically illustrate a sequence of events for introducing a new update block to a pool of update blocks, according to an improved replacement technique of the present application.
FIG. 26A schematically shows an update pool having a “5-2” configuration as described in FIG. In this example, the update pool is completely filled with up to five allowed update blocks. The update pool is further divided into a continuous pool 1200 containing three consecutive update blocks S1, S2 and S3 and a chaotic pool 1300 containing up to two chaotic or discontinuous update blocks C4 and C5. This example shows a situation similar to that in FIG. 24A where the least active block happens to be a chaotic update block like C4 at 1301. Furthermore, this example shows that S3 of the continuous block 1202 is least active in the continuous pool 1200.

図26Bは、本願の改良された手法に係る、新規の更新ブロック用に空きを作るためにプール内の更新ブロックのうちの1つを閉鎖することを概略的に示す。連続更新に関連した新規の割り当てであって、プール内の更新ブロック数が既に最大である場合、新規に割り当てられた更新ブロック用に空きを作るために、プール内の更新ブロックのうちの1つを閉鎖しなければならなくなる。しかし、この場合、最もアクティブでないブロックは、1301のC4であり、これはカオス的ブロックであるので、パスされることになる。代わりに、連続プール1200内で最もアクティブな更新ブロックが閉鎖されることになる。この例において、閉鎖されて更新ブロックプールから削除されることになるのは1202のS3である。   FIG. 26B schematically illustrates closing one of the update blocks in the pool to make room for a new update block, according to the improved technique of the present application. One of the update blocks in the pool to make room for the newly assigned update block if the number of update blocks in the pool is already the maximum for a new assignment related to continuous update Will have to be closed. However, in this case, the least active block is C4 of 1301, which is a chaotic block and will be passed. Instead, the most active update block in the continuous pool 1200 will be closed. In this example, it is S3 of 1202 that will be closed and deleted from the update block pool.

図26Cは、空きを作るために閉鎖された更新ブロックが削除された後、新たに割り当てられた更新ブロックをプールに導入することを概略的に示す。この場合、データを論理的に連続した順序でデータを記録するために、新規に割り当てられた更新ブロックである1212のS6が、連続プール1200に導入されることになる。このように、許容される更新ブロックの最大数であるUMAX を超えることはない。 FIG. 26C schematically illustrates introducing a newly allocated update block into the pool after an update block that has been closed to make room is deleted. In this case, in order to record the data in a logically continuous order, the newly assigned update block 1212 S6 is introduced into the continuous pool 1200. Thus, the maximum number of allowed update blocks, U MAX , is not exceeded.

図27A、図27B、および図27Cは、本願の改良された置換手法に係る、新規のカオス的更新ブロックを更新ブロックのプールに導入するためのイベントのシーケンスを概略的に示す。
図27Aは、図22において説明したような「5−2」構成の更新プールを概略的に示す。この例において、更新プールは、最大5つの許容更新ブロックで完全に埋められている。更新プールは、3つの連続更新ブロックS1、S2およびS3を含む連続プール1200と、最大2つのカオス的または不連続更新ブロックC4およびC5を含むカオス的プール1300とにさらに分割される。この例は、最もアクティブでないブロックが偶然にも1201のS6のような連続更新ブロックであることを示す。さらに、この例は、カオス的ブロックである1302のC4を、カオス的プール1300のうちで最もアクティブでないものとすることを示す。
FIGS. 27A, 27B, and 27C schematically illustrate a sequence of events for introducing a new chaotic update block into a pool of update blocks according to the improved replacement technique of the present application.
FIG. 27A schematically shows an update pool with a “5-2” configuration as described in FIG. In this example, the update pool is completely filled with up to five allowed update blocks. The update pool is further divided into a continuous pool 1200 containing three consecutive update blocks S1, S2 and S3 and a chaotic pool 1300 containing up to two chaotic or discontinuous update blocks C4 and C5. This example shows that the least active block happens to be a continuous update block like S6 in 1201. Furthermore, this example shows that the chaotic block 1304 C4 is the least active of the chaotic pool 1300.

図27Bは、本願の改良された手法に係る、新規の更新ブロック用に空きを作るためにプール内の更新ブロックのうちの1つを閉鎖することを概略的に示す。新規のカオス的更新ブロックが既に一杯のカオス的プール1300に導入される場合、空きを作るためにカオス的プール内の更新ブロックのうちの1つが閉鎖されなければならなくなる。この例において、カオス的プール1300は、最大2つのカオス的更新ブロックを既に含んでいる。さらなるカオス的更新ブロックが作成されると、例えば既存の連続更新ブロックである1220のS1をカオス的ブロックに変換する場合には、カオス的ブロックのうちの1つを削除しなければ、カオス的ブロックの最大数を超える。この場合、空きを作るために、最もアクティブでないカオス的ブロックである1302のC4が閉鎖されて、カオス的プール1300から削除される。   FIG. 27B schematically illustrates closing one of the update blocks in the pool to make room for a new update block, according to the improved technique of the present application. If a new chaotic update block is already introduced into a full chaotic pool 1300, one of the update blocks in the chaotic pool must be closed to make room. In this example, chaotic pool 1300 already contains a maximum of two chaotic update blocks. When a further chaotic update block is created, for example, when converting an existing continuous update block 1220 S1 into a chaotic block, if one of the chaotic blocks is not deleted, the chaotic block The maximum number of is exceeded. In this case, C4 of 1302, which is the least active chaotic block, is closed and deleted from the chaotic pool 1300 to make room.

図27Cは、空きを作るために他のカオス的更新ブロックが閉鎖および削除された後、新規のカオス的更新ブロックをプールに導入することを概略的に示す。この場合、S1が、連続プール1200内の連続更新ブロック1220から、カオス的プール1300内のカオス的ブロックである1320のC6に変換されている。このように、許容されるカオス的更新ブロックの最大数であるUCMAXを超えることはない。 FIG. 27C schematically illustrates introducing a new chaotic update block into the pool after other chaotic update blocks have been closed and deleted to make room. In this case, S1 is converted from the continuous update block 1220 in the continuous pool 1200 to C20 of 1320 which is a chaotic block in the chaotic pool 1300. Thus, U CMAX , which is the maximum number of allowed chaotic update blocks, is not exceeded.

図28は、第1の実施形態に係る、連続更新中に更新ブロックの限られたセットを管理する本願の改良された手法を示すフローチャートである。
ステップ1400:不揮発性メモリをブロックに組織化し、各ブロックは共に消去可能なデータを記憶するためのものである。
ステップ1402:データの論理ユニットの更新を記憶するために同時に開放中の更新ブロックの第1の所定数まで割り当てる。
ステップ1406:連続データを書き込むための書き込みコマンドに応じて、データの論理ユニットを連続順序で更新ブロックに書き込む。
ステップ1408:データの連続論理ユニットをさらに書き込むために閉鎖される更新ブロックについて満たされた所定の条件に応じて、新規の更新ブロックを割り当てて書き込みを継続し、新規の割り当てが第1の所定数を超えるようであれば、最も長時間アクセスされていない連続順序の更新ブロックを、最も長時間アクセスされていない不連続な順序の更新ブロックのいずれよりも優先的に閉鎖する。
FIG. 28 is a flowchart illustrating the improved technique of the present application for managing a limited set of update blocks during a continuous update, according to the first embodiment.
Step 1400: Organize non-volatile memory into blocks, each block for storing erasable data together.
Step 1402: Allocate up to a first predetermined number of open update blocks simultaneously to store data logical unit updates.
Step 1406: Write logical units of data into the update block in sequential order in response to a write command for writing continuous data.
Step 1408: According to a predetermined condition satisfied for an update block that is closed to further write successive logical units of data, a new update block is allocated and writing continues, and the new allocation is a first predetermined number. , The sequential order update blocks that have not been accessed for the longest time are preferentially closed over any of the discontinuous order update blocks that have not been accessed for the longest time.

図29は、第2の実施形態に係る、2つの所定の制限を有する更新ブロックの限られたセットを管理する本願の改良された手法を示すフローチャートである。
ステップ1410:不揮発性メモリをブロックに組織化し、各ブロックは共に消去可能なデータを記憶するためのものである。
ステップ1412:データの論理ユニットの更新を記憶するために同時に開放中の更新ブロックの第1の所定数まで割り当てる。
ステップ1416:データの論理ユニットを論理的に不連続な順序で記憶するための開放更新ブロックのうち、更新ブロックの第2の所定数まで割り当てる。
ステップ1418:論理的に連続した順序でデータを記憶するための更新ブロックの導入が第1の所定数を超えるようになる場合にはいつでも、論理的に連続した順序のデータを含む最も長時間アクセスされていない更新ブロックを閉鎖して、導入された更新ブロック用に空きを作る。
ステップ1420:論理的に不連続な順序でデータを記憶するための更新ブロックの導入が第2の所定数を超えるようになる場合にはいつでも、論理的に不連続な順序のデータを含む最も長時間アクセスされていない更新ブロックを閉鎖して、導入された更新ブロック用に空きを作る。
FIG. 29 is a flowchart illustrating the improved technique of the present application for managing a limited set of update blocks having two predetermined limits, according to a second embodiment.
Step 1410: Organize non-volatile memory into blocks, each block for storing erasable data together.
Step 1412: Allocate up to a first predetermined number of open update blocks simultaneously for storing logical unit updates of data.
Step 1416: Allocate up to a second predetermined number of update blocks among the open update blocks for storing logical units of data in a logically discontinuous order.
Step 1418: Whenever the introduction of an update block for storing data in a logically sequential order exceeds the first predetermined number, the longest access that includes the logically sequential order of data Close unused update blocks to make room for installed update blocks.
Step 1420: Whenever the introduction of an update block for storing data in a logically discontinuous order exceeds the second predetermined number, the longest containing data in a logically discontinuous order Close update blocks that have not been accessed in time to make room for installed update blocks.

本願の手法を一般的にいうと、更新ブロックが連続または不連続データのいずれを記憶しているか、または、ある予め定められた種類のシステムデータを記憶しているかどうかなどといった属性のセットに基づいて、更新ブロックを分類するものである。限られた数の更新ブロックのプールを実装するにあたって、更新ブロックの各クラスは、当該クラス用にサポートされた最大数を超えるような場合の置換に関する独自の規則を有することになる。   Generally speaking, the method of the present application is based on a set of attributes such as whether the update block stores continuous or discontinuous data, or whether it stores a predetermined type of system data. Thus, update blocks are classified. In implementing a limited number of update block pools, each class of update block will have its own rules for replacement if it exceeds the maximum number supported for that class.

例えば、連続更新ブロックおよび不連続更新ブロックは、2つの異なるクラスである。これら各クラス用の置換規則は同一であり、すなわち、最もアクティブでないものを新規のものに置換する。よって、連続更新ブロックのプールを超えるような場合には、新規のものがプールに導入される前に、プール内の最もアクティブでないものが閉鎖および削除されることになる。不連続更新ブロックのプールについても同様である。   For example, continuous update blocks and discontinuous update blocks are two different classes. The replacement rules for each of these classes are the same, i.e., the least active one is replaced with a new one. Thus, if the pool of continuously updated blocks is exceeded, the least active one in the pool will be closed and deleted before the new one is introduced into the pool. The same applies to the pool of discontinuous update blocks.

一般的に、各クラスは、他のクラスから独立した独自の置換規則を有する。置換規則の例として、対応するクラスによっては、最も長時間アクセスされていないもの、直近にアクセスされたもの、最も頻繁にアクセスされていないもの、最も頻繁にアクセスされているものなどを置換する。   In general, each class has its own replacement rules that are independent of other classes. As an example of the replacement rule, depending on the corresponding class, the one that has not been accessed for the longest time, the one that has been accessed most recently, the one that has not been accessed most frequently, the one that has been accessed most frequently, and the like are replaced.

図30は、クラスベースの置換規則を有する更新ブロックの限られたセットを管理する本願の改良された手法を示すフローチャートである。
ステップ1430:不揮発性メモリをブロックに組織化し、各ブロックは共に消去可能なデータを記憶するためのものである。
ステップ1432:データの論理ユニットの更新を記憶するために同時に開放中の更新ブロックの第1の所定最大数までのプールを提供する。
ステップ1436:更新ブロックを属性のセットに基づいて分類するための予め定められたクラスのセットを提供し、各クラスは関連する所定最大数の更新ブロックまでのサブプールをサポートする。
ステップ1438:それぞれのサブプール内の置換されるべき更新ブロックを特定するために、予め定められたクラスのセットに対応する置換規則のセットを提供する。
ステップ1440:プール内の更新ブロックを対応するサブプールにグループ化する。
ステップ1442:同一のクラスの他の更新ブロックが導入されつつある場合にはいつでも、関連する所定最大数の更新ブロックを含むサブプール内にある最もアクティブでない更新ブロックを閉鎖および削除する。
FIG. 30 is a flowchart illustrating the present improved technique for managing a limited set of update blocks with class-based replacement rules.
Step 1430: Organize non-volatile memory into blocks, each block for storing erasable data together.
Step 1432: Providing a pool up to a first predetermined maximum number of update blocks being released simultaneously to store logical unit updates of data.
Step 1436: Provide a predetermined set of classes for classifying update blocks based on a set of attributes, each class supporting a subpool up to a predetermined maximum number of update blocks associated with it.
Step 1438: Providing a set of replacement rules corresponding to a predetermined set of classes to identify the update block to be replaced in each subpool.
Step 1440: Group update blocks in a pool into corresponding sub-pools.
Step 1442: Whenever another update block of the same class is being introduced, close and delete the least active update block in the subpool that contains the associated predetermined maximum number of update blocks.

本願明細書において参照されたすべての特許、特許出願、論文、書籍、明細書、他の出版物、書類、および事物は、あらゆる目的のためにその全体が本願明細書において参照により援用されている。任意の援用されている出版物、書類、および事物と、本願明細書の文章との間に用語の定義または用法における矛盾または不一致がある場合には、本願明細書における用語の定義または用法に従う。   All patents, patent applications, papers, books, specifications, other publications, documents, and things referenced in this application are hereby incorporated by reference in their entirety for all purposes. . In the event of any inconsistency or inconsistency in the definition or usage of terms between any incorporated publication, document, and thing and the text of this specification, the definition or usage of the terms herein shall be followed.

本発明の様々な態様をある実施形態に関して説明してきたが、本発明は、添付の特許請求の範囲の全範囲内においてその権利が保護されるべきであることが理解できよう。   While various aspects of the invention have been described with respect to certain embodiments, it will be understood that the invention is entitled to protection within the full scope of the appended claims.

Claims (23)

共に消去可能なデータの論理ユニットを記憶するためのブロックから各々なる、複数のブロックに組織化された不揮発性メモリにおける、データを前記メモリに記憶する方法であって、
データの論理ユニットの更新を記憶するために同時に開放中の更新ブロックとして、第1の所定ブロック数まで割り当てるステップと、
データの論理ユニットの更新を記憶するために同時に開放中の更新ブロックの第1の所定最大数までのプールを提供するステップと、
更新ブロックを属性のセットに基づいて分類するための予め定められたクラスのセットを提供するステップであって、各クラスは、関連する所定最大数の更新ブロックまでのサブプールをサポートするステップと、
対応する置換規則のセットを前記予め定められたクラスのセットに提供して、それぞれのサブプール内の置換されるべき前記更新ブロックを特定するステップと、
前記プール内の前記更新ブロックを対応するサブプールにグループ化するステップと、
同一のクラスの他の更新ブロックが導入されつつある場合にはいつでも、前記関連する所定最大数の更新ブロックを含むサブプール内にある最もアクティブでない更新ブロックを閉鎖および削除するステップであって、前記削除される更新ブロックは、同一のクラス用の前記対応する置換規則に従って選択されるステップと、
を含む方法。
A method of storing data in said memory in a non-volatile memory organized into a plurality of blocks, each comprising blocks for storing logical units of data that can be erased together,
Allocating up to a first predetermined number of blocks as simultaneously open update blocks for storing logical unit updates of data;
Providing a pool of up to a first predetermined maximum number of open update blocks simultaneously to store logical unit updates of data;
Providing a predetermined set of classes for classifying update blocks based on a set of attributes, each class supporting sub-pools up to a predetermined maximum number of associated update blocks;
Providing a corresponding set of replacement rules to the predetermined set of classes to identify the update block to be replaced in each sub-pool;
Grouping the updated blocks in the pool into corresponding sub-pools;
Whenever another update block of the same class is being introduced, the step of closing and deleting the least active update block in the sub-pool containing the associated predetermined maximum number of update blocks, the deletion The update block to be performed is selected according to the corresponding replacement rule for the same class;
Including methods.
請求項1記載の方法において、
前記属性のセットは、論理的に連続した順序でデータを記憶するブロックを含む方法。
The method of claim 1, wherein
The method wherein the set of attributes includes blocks that store data in a logically sequential order.
請求項1記載の方法において、
前記属性のセットは、論理的に不連続な順序でデータを記憶するブロックを含む方法。
The method of claim 1, wherein
The method wherein the set of attributes includes blocks that store data in a logically discontinuous order.
請求項1記載の方法において、
前記属性のセットは、前記メモリを動作させることに関連したシステムデータを記憶するブロックを含む方法。
The method of claim 1, wherein
The method wherein the set of attributes includes a block for storing system data associated with operating the memory.
請求項1記載の方法において、
前記メモリは、フラッシュEEPROMである方法。
The method of claim 1, wherein
The method wherein the memory is a flash EEPROM.
請求項1記載の方法であって、
前記メモリは、NAND構造を有する方法。
The method of claim 1, comprising:
The method wherein the memory has a NAND structure.
請求項1記載の方法において、
前記メモリは、着脱可能なメモリカード上にある方法。
The method of claim 1, wherein
The method wherein the memory is on a removable memory card.
請求項1記載の方法において、
前記不揮発性メモリは、フローティングゲート構造のメモリセルを有する方法。
The method of claim 1, wherein
The nonvolatile memory includes a memory cell having a floating gate structure.
請求項1記載の方法において、
前記不揮発性メモリは、誘電体層構造のメモリセルを有する方法。
The method of claim 1, wherein
The non-volatile memory includes a memory cell having a dielectric layer structure.
請求項1〜9のいずれか一項に記載の方法において、
前記メモリは、1ビットのデータをそれぞれ記憶するメモリセルを有する方法。
The method according to any one of claims 1 to 9, wherein
The memory has a memory cell for storing 1-bit data.
請求項1〜9のいずれか一項に記載の方法において、
前記メモリは、1ビット以上のデータをそれぞれ記憶するメモリセルを有する方法。
The method according to any one of claims 1 to 9, wherein
The memory has a memory cell for storing data of 1 bit or more.
不揮発性メモリであって、
ブロックに組織化されたメモリであって、各ブロックは、共に消去可能なメモリユニットに分割され、各メモリユニットは、データの論理ユニットを記憶するためのものであるメモリと、
データの論理ユニットの更新を記憶するために同時に開放中の更新ブロックの第1の所定最大数までのプールと、
更新ブロックを属性のセットに基づいて分類するための予め定められたクラスのセットであって、各クラスは、関連する所定最大数の更新ブロックまでのサブプールをサポートするセットと、
それぞれのサブプール内の置換されるべき前記更新ブロックを特定するための、前記予め定められたクラスのセットに対応する置換規則のセットと、
クラス毎に更新ブロックを含むサブプールのセットと、
前記ブロックの動作を制御するためのコントローラであって、前記動作は、
同一のクラスの他の更新ブロックが導入されつつある場合にはいつでも、前記関連する所定最大数の更新ブロックを含むサブプール内にある更新ブロックを閉鎖および削除し、前記削除される更新ブロックは、同一のクラス用の前記対応する置換規則に従って選択されることを含むコントローラと、
を備える不揮発性メモリ。
Non-volatile memory,
Memory organized into blocks, each block being divided into erasable memory units, each memory unit being for storing a logical unit of data;
A pool of up to a first predetermined maximum number of update blocks that are simultaneously open to store logical unit updates of data;
A set of predefined classes for classifying update blocks based on a set of attributes, each class supporting a subpool up to a predetermined maximum number of associated update blocks;
A set of replacement rules corresponding to the predetermined set of classes to identify the update block to be replaced in each sub-pool;
A set of subpools containing update blocks for each class;
A controller for controlling the operation of the block, wherein the operation is:
Whenever another update block of the same class is being introduced, it closes and deletes the update block in the sub-pool that contains the associated predetermined maximum number of update blocks, and the deleted update block is the same A controller comprising being selected according to the corresponding replacement rule for a class of
A non-volatile memory comprising:
請求項12記載のメモリにおいて、
前記属性のセットは、論理的に連続した順序でデータを記憶するブロックを含むメモリ。
The memory of claim 12,
The set of attributes is a memory that includes blocks that store data in a logically sequential order.
請求項12記載のメモリにおいて、
前記属性のセットは、論理的に不連続な順序でデータを記憶するブロックを含むメモリ。
The memory of claim 12,
The set of attributes is a memory that includes blocks that store data in a logically discontinuous order.
請求項12記載のメモリにおいて、
前記属性のセットは、前記メモリを動作させることに関連したシステムデータを記憶するブロックを含むメモリ。
The memory of claim 12,
The set of attributes is a memory that includes a block that stores system data associated with operating the memory.
請求項12記載のメモリであって、
前記メモリは、フラッシュEEPROMであるメモリ。
The memory of claim 12, comprising:
The memory is a flash EEPROM.
請求項12記載のメモリにおいて、
前記メモリは、NAND構造を有するメモリ。
The memory of claim 12,
The memory is a memory having a NAND structure.
請求項12記載のメモリにおいて、
前記メモリは、着脱可能なメモリカード上にあるメモリ。
The memory of claim 12,
The memory is a memory on a removable memory card.
請求項12記載のメモリにおいて、
前記不揮発性メモリは、フローティングゲート構造のメモリセルを有するメモリ。
The memory of claim 12,
The nonvolatile memory includes a memory cell having a floating gate structure.
請求項12記載のメモリにおいて、
前記不揮発性メモリは、誘電体層構造のメモリセルを有するメモリ。
The memory of claim 12,
The nonvolatile memory includes a memory cell having a dielectric layer structure.
不揮発性メモリであって、
ブロックに組織化されたメモリであって、各ブロックは、共に消去可能なメモリユニットに分割され、各メモリユニットは、データの論理ユニットを記憶するためのものであるメモリと、
データの論理ユニットの更新を記憶するために同時に開放中の更新ブロックの第1の所定最大数までのプールと、
更新ブロックを属性のセットに基づいて分類するための予め定められたクラスのセットであって、各クラスは、関連する所定最大数の更新ブロックまでのサブプールをサポートするセットと、
それぞれのサブプール内の置換されるべき前記更新ブロックを特定するための、前記予め定められたクラスのセットに対応する置換規則のセットと、
クラス毎に更新ブロックを含むサブプールのセットと、
同一のクラスの他の更新ブロックが導入されつつある場合にはいつでも、前記関連する所定最大数の更新ブロックを含むサブプール内にある更新ブロックを閉鎖するおよび削除する手段であって、前記削除される更新ブロックは、同一のクラス用の前記対応する置換
規則に従って選択される手段と、
を備える不揮発性メモリ。
Non-volatile memory,
Memory organized into blocks, each block being divided into erasable memory units, each memory unit being for storing a logical unit of data;
A pool of up to a first predetermined maximum number of update blocks that are simultaneously open to store logical unit updates of data;
A set of predefined classes for classifying update blocks based on a set of attributes, each class supporting a subpool up to a predetermined maximum number of associated update blocks;
A set of replacement rules corresponding to the predetermined set of classes to identify the update block to be replaced in each sub-pool;
A set of subpools containing update blocks for each class;
Means for closing and deleting an update block in a sub-pool containing the predetermined maximum number of update blocks associated with it, whenever another update block of the same class is being introduced Means for selecting an update block according to the corresponding replacement rule for the same class;
A non-volatile memory comprising:
請求項12〜21のいずれか一項に記載のメモリにおいて、
前記メモリは、1ビットのデータをそれぞれ記憶するメモリセルを有するメモリ。
The memory according to any one of claims 12 to 21,
The memory includes memory cells each storing 1-bit data.
請求項12〜21のいずれか一項に記載のメモリにおいて、
前記メモリは、1ビット以上のデータをそれぞれ記憶するメモリセルを有するメモリ。
The memory according to any one of claims 12 to 21,
The memory includes memory cells each storing data of 1 bit or more.
JP2009528456A 2006-09-15 2007-09-12 Method for non-volatile memory and class-based update block replacement rules Expired - Fee Related JP4682261B2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
US11/532,467 US7774392B2 (en) 2006-09-15 2006-09-15 Non-volatile memory with management of a pool of update memory blocks based on each block's activity and data order
US11/532,456 US7779056B2 (en) 2006-09-15 2006-09-15 Managing a pool of update memory blocks based on each block's activity and data order
PCT/US2007/078311 WO2008033952A2 (en) 2006-09-15 2007-09-12 Non-volatile memory and method for class-based update block replacement rules

Publications (3)

Publication Number Publication Date
JP2010503929A JP2010503929A (en) 2010-02-04
JP2010503929A5 JP2010503929A5 (en) 2010-10-28
JP4682261B2 true JP4682261B2 (en) 2011-05-11

Family

ID=39185714

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009528456A Expired - Fee Related JP4682261B2 (en) 2006-09-15 2007-09-12 Method for non-volatile memory and class-based update block replacement rules

Country Status (4)

Country Link
JP (1) JP4682261B2 (en)
KR (1) KR101430097B1 (en)
TW (1) TWI340899B (en)
WO (1) WO2008033952A2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101526497B1 (en) * 2008-11-27 2015-06-10 삼성전자주식회사 System on chip and information processing method thereof
JP5175703B2 (en) 2008-12-11 2013-04-03 株式会社東芝 Memory device
US8688894B2 (en) * 2009-09-03 2014-04-01 Pioneer Chip Technology Ltd. Page based management of flash storage
KR101678868B1 (en) 2010-02-11 2016-11-23 삼성전자주식회사 Apparatus for flash address translation apparatus and method thereof
EP3387787B1 (en) * 2016-12-21 2019-03-20 Nchain Holdings Limited Computer-implemented systems and methods to enable complex functionality on a blockchain while preserving security-based restrictions on script size and opcode limits
TWI659373B (en) * 2018-02-14 2019-05-11 財團法人工業技術研究院 Blockchain system and method thereof
WO2021117939A1 (en) * 2019-12-12 2021-06-17 엘지전자 주식회사 Firmware provision apparatus and provision method therefor
TWI808384B (en) * 2021-02-23 2023-07-11 慧榮科技股份有限公司 Storage device, flash memory control and control method thereo
TWI821152B (en) * 2021-02-23 2023-11-01 慧榮科技股份有限公司 Storage device, flash memory control and control method thereo
CN115878729B (en) * 2023-03-03 2023-05-02 湖北省楚天云有限公司 Node block storage allocation optimization method and system based on alliance chain

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002366423A (en) * 2001-06-04 2002-12-20 Samsung Electronics Co Ltd Method for managing flash memory
WO2005066972A1 (en) * 2003-12-30 2005-07-21 Sandisk Corporation Non-volatile memory and method with block management system
JP2007280108A (en) * 2006-04-07 2007-10-25 Sony Corp Storage medium controller, storage medium control method, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7779056B2 (en) * 2006-09-15 2010-08-17 Sandisk Corporation Managing a pool of update memory blocks based on each block's activity and data order

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002366423A (en) * 2001-06-04 2002-12-20 Samsung Electronics Co Ltd Method for managing flash memory
WO2005066972A1 (en) * 2003-12-30 2005-07-21 Sandisk Corporation Non-volatile memory and method with block management system
JP2007280108A (en) * 2006-04-07 2007-10-25 Sony Corp Storage medium controller, storage medium control method, and program

Also Published As

Publication number Publication date
TW200837562A (en) 2008-09-16
KR101430097B1 (en) 2014-08-13
TWI340899B (en) 2011-04-21
JP2010503929A (en) 2010-02-04
WO2008033952A3 (en) 2008-10-02
KR20090079197A (en) 2009-07-21
WO2008033952A2 (en) 2008-03-20

Similar Documents

Publication Publication Date Title
JP4938460B2 (en) Non-volatile memory and method with block management system
US7774392B2 (en) Non-volatile memory with management of a pool of update memory blocks based on each block's activity and data order
US7779056B2 (en) Managing a pool of update memory blocks based on each block's activity and data order
JP4682261B2 (en) Method for non-volatile memory and class-based update block replacement rules
US20080091871A1 (en) Non-volatile memory with worst-case control data management
US20080091901A1 (en) Method for non-volatile memory with worst-case control data management
EP1702338B1 (en) Robust data duplication and improved update method in a multibit non-volatile memory
JP2010507147A (en) Nonvolatile memory with data management in the worst case and method therefor
KR20060134011A (en) Non-volatile memory and method with memory planes alignment
EP1704479B1 (en) Non-volatile memory and method with phased program failure handling
JP2007519996A6 (en) Nonvolatile memory and method with phased program fault handling

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100909

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100909

A871 Explanation of circumstances concerning accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A871

Effective date: 20100909

A975 Report on accelerated examination

Free format text: JAPANESE INTERMEDIATE CODE: A971005

Effective date: 20101005

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101207

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110111

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110207

R150 Certificate of patent or registration of utility model

Ref document number: 4682261

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140210

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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

Free format text: PAYMENT UNTIL: 20140210

Year of fee payment: 3

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees