WO2005066793A2 - Memoire non volatile et procede avec gestion de bloc de mise a jour non sequentielle - Google Patents

Memoire non volatile et procede avec gestion de bloc de mise a jour non sequentielle Download PDF

Info

Publication number
WO2005066793A2
WO2005066793A2 PCT/US2004/043762 US2004043762W WO2005066793A2 WO 2005066793 A2 WO2005066793 A2 WO 2005066793A2 US 2004043762 W US2004043762 W US 2004043762W WO 2005066793 A2 WO2005066793 A2 WO 2005066793A2
Authority
WO
WIPO (PCT)
Prior art keywords
block
logical
update
memory
data
Prior art date
Application number
PCT/US2004/043762
Other languages
English (en)
Other versions
WO2005066793A3 (fr
Inventor
Alan Welsh Sinclair
Sergey Anatolievich Gorobets
Alan David Bennett
Peter John Smith
Original Assignee
Sandisk Corporation
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 US10/750,155 external-priority patent/US7139864B2/en
Application filed by Sandisk Corporation filed Critical Sandisk Corporation
Priority to JP2006547516A priority Critical patent/JP4851344B2/ja
Priority to EP04815767A priority patent/EP1704484A2/fr
Publication of WO2005066793A2 publication Critical patent/WO2005066793A2/fr
Publication of WO2005066793A3 publication Critical patent/WO2005066793A3/fr

Links

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
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/10Programming or data input circuits
    • 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

Definitions

  • This invention relates generally to non-volatile semiconductor memory and specifically to those having a memory block management system with efficient handling of update data in a block.
  • Solid-state memory capable of nonvolatile storage of charge, particularly in the form of EEPROM and flash EEPROM packaged as a small form factor card, has recently become the storage of choice in a variety of mobile and handheld devices, notably information appliances and consumer electronics products.
  • RAM random access memory
  • flash memory is non- volatile, and retaining its stored data even after power is turned off.
  • ROM read only memory
  • flash memory is rewritable similar to a disk storage device.
  • flash memory is increasingly being used in mass storage applications.
  • Conventional mass storage based on rotating magnetic medium such as hard drives and floppy disks, is unsuitable for the mobile and handheld environment.
  • disk drives tend to be bulky, are prone to mechanical failure and have high latency and high power requirements. These undesirable attributes make disk-based storage impractical in most mobile and portable applications.
  • flash memory both embedded and in the form of a removable card is ideally suited in the mobile and handheld environment because of its small size, low power consumption, high speed and high reliability features.
  • Flash EEPROM is similar to EEPROM (electrically erasable and programmable read-only memory) in that it is a non-volatile memory that can be erased and have new data written or "programmed" into their memory cells. Both utilize a floating (unconnected) conductive gate, in a field effect transistor structure, positioned over a channel region in a semiconductor substrate, between source and drain regions. A control gate is then provided over the floating gate. The threshold voltage characteristic ofthe transistor is controlled by the amount of charge that is retained on the floating gate. That is, for a given level of charge on the floating gate, there is a corresponding voltage (threshold) that must be applied to the control gate before the transistor is turned “on” to permit conduction between its source and drain regions.
  • flash memory such as Flash EEPROM allows entire blocks of memory cells to be erased at the same time.
  • the floating gate can hold a range of charges and therefore can be programmed to any threshold voltage level within a threshold voltage window.
  • the size ofthe threshold voltage window is delimited by the minimum and maximum threshold levels ofthe device, which in turn correspond to the range ofthe charges that can be programmed onto the floating gate.
  • the threshold window generally depends on the memory device's characteristics, operating conditions and history. Each distinct, resolvable threshold voltage level range within the window may, in principle, be used to designate a definite memory state ofthe cell.
  • the transistor serving as a memory cell is typically programmed to a
  • the memory device may be erased by a number of mechanisms.
  • EEPROM a memory cell is electrically erasable, by applying a high voltage to the substrate relative to the control gate so as to induce electrons in the floating gate to tunnel through a thin oxide to the substrate channel region (i.e., Fowler-Nordheim tunneling.)
  • the EEPROM is erasable byte by byte.
  • flash EEPROM " the memory is electrically erasable either all at once or one or more minimum erasable blocks at a time, where a minimum erasable block may consist of one or more sectors and each sector may store 512 bytes or more of data.
  • the 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 peripheral circuits such as decoders and erase, write and read circuits.
  • peripheral circuits such as decoders and erase, write and read circuits.
  • the more sophisticated memory devices also come with a controller that performs intelligent and higher level memory operations and interfacing.
  • non- volatile solid-state memory devices There are many commercially successful non- volatile solid-state memory devices being used today. These memory devices may be flash EEPROM or may employ other types of nonvolatile memory cells. Examples of flash memory and systems and methods of manufacturing them are given in United States patents nos. 5,070,032, 5,095,344, 5,315,541, 5,343,063, and 5,661,053, 5,313,421 and 6,222,762. In particular, flash memory devices with NAND string structures are described in United States patent nos. 5,570,315, 5,903,495, 6,046,935. Also nonvolatile memory devices are also manufactured from memory cells with a dielectric layer for storing charge. Instead ofthe conductive floating gate elements described earlier, a dielectric layer is used.
  • Such memory devices utilizing dielectric storage element have been described by Eitan et al., "NROM: A Novel Localized Trapping, 2-Bit Nonvolatile Memory Cell,” IEEE Electron Device Letters, vol. 21, no. 11, November 2000, pp. 543-545.
  • An ONO dielectric layer extends across the channel between 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.
  • United States patents nos. 5,768,192 and 6,011,725 disclose a nonvolatile memory cell having a trapping dielectric sandwiched between two silicon dioxide layers. Multi-state data storage is implemented by separately reading the binary states ofthe spatially separated charge storage regions within the dielectric.
  • erase operation may take as much as an order of magnitude longer than read and program operations. Thus, it is desirable to have the erase block of substantial size. In this way, the erase time is amortized over a large aggregate of memory cells.
  • flash memory predicates that data must be written to an erased memory location. If data of a certain logical address from a host is to be updated, one way is rewrite the update data in the same physical memory location. That is, the logical to physical address mapping is unchanged. However, this will mean the entire erase block contain that physical location will have to be first erased and then rewritten with the updated data. This method of update is inefficient, as it requires an entire erase block to be erased and rewritten, especially if the data to be updated only occupies a small portion ofthe erase block. It will also result in a higher frequency of erase recycling ofthe memory block, which is undesirable in view ofthe limited endurance of this type of memory device.
  • W003/027828 and W0 00/49488 both disclose a memory system dealing with updates among large erase block including partitioning the logical sector addresses in zones.
  • a small zone of logical address range is reserved for active system control data separate from another zone for user data. In this way, manipulation ofthe system control data in its own zone will not interact with the associated user data in another zone.
  • Updates are at the logical sector level and a write pointer points to the corresponding physical sectors in a block to be written.
  • the mapping information is buffered in RAM and eventually stored in a sector allocation table in the main memory.
  • the latest version of a logical sector will obsolete all previous versions among existing blocks, which become partially s obsolete. Garbage collection is performed to keep partially obsolete blocks to an acceptable number.
  • a non- volatile memory system is organized in physical groups of physical memory locations. Each physical group (metablock) is erasable as a unit and can be used to store a logical group of data.
  • a memory management system allows for update of a logical group of data by allocating a metablock dedicated to recording the update data ofthe logical group.
  • the update metablock records update data in the order received and has no restriction on whether the recording is in the correct logical order as originally stored (sequential) or not (chaotic). Eventually the update metablock is closed to further recording.
  • One of several processes will take place, but will ultimately end up with a fully filled metablock in the correct order which replaces the original metablock.
  • directory data is maintained in the nonvolatile memory in a manner that is conducive to frequent updates.
  • the system supports multiple logical groups being updated concurrently.
  • One feature ofthe invention allows data to be updated logical-group by logical-group.
  • the distribution of logical units are limited in range. This is especially true when the logical group is normally contained within a physical block.
  • any intervening gaps from the last programmed memory unit to the next available plane-aligned memory unit are padded accordingly with the current versions of logical units.
  • the padding is accomplished by filling in a gap with current versions ofthe logical units that follow logically from the last programmed logical unit, and with current versions ofthe logical units that precede logically from the logical unit stored in the next available plane-aligned memory unit.
  • each memory unit across the plane is either updated or padded with the latest versions.
  • This scheme reduces the time for consolidation of a chaotic block by ' allowing on-plane rearrangement ofthe latest versions ofthe logical units of a logical group and avoiding having to gather the latest versions from different memory planes. This is of benefit where the performance specification for the host interface defines a maximum latency for completion of a sector write operation by the memory system. Phased Program Error Handling
  • program failure in a block during a time-critical memory operation is handled by continuing the programming operation in a breakout block. Later, at a less critical time, the data recorded in the failed block prior to the interruption is transferred to another block, which could also be the breakout block. The failed block can then be discarded. In this way, when a defective block is encountered, it can be handled without loss of data and without exceeding a specified time limit by having to transfer the stored data in the defective block on the spot.
  • This error handling is especially critical for a garbage collection operation so that the entire operation need not be repeated on a fresh block during a critical time. Subsequently, at an opportune time, the data from the defective block can be salvaged by relocation to another block.
  • the program failure handling is especially critical during a consolidation operation.
  • a normal consolidation operation consolidates into a consolidation block the current versions of all logical units of a logical group residing among an original block and an update block.
  • another block acting as a breakout consolidation block will be provisioned to receive the consolidation ofthe remaining logical units. In this way, no logical units need be copied more than once and the operation with exception handling can still be completed within a period specified for a normal consolidation operation.
  • the consolidation operation can be completed by consolidating all outstanding logical units ofthe group into the breakout block. The opportune time will be during some other period outside the current host write operation when there is time to perform the consolidation. One such opportune time is during another host write where there is an update but no associated consolidation operation.
  • the consolidation with the program failure handling can be regarded as being implemented in multiple phases.
  • a first phase the logical units are being consolidated into more than one block after a program failure occurs in order to avoid consolidating each logical unit more than once.
  • the final phase is completed at an opportune time, where the logical group is consolidated into one block, preferably by collecting all the logical units into the breakout consolidation block in sequential order.
  • an index ofthe logical units in a non-sequential update block is buffered in RAM and stored periodically into the non- volatile memory.
  • the index is stored in a block dedicated for storing indices.
  • the index is stored in the update block itself, hi yet another embodiment, the index is stored in the header of each logical unit.
  • the logical units written after the last index update but before the next have their indexing information stored in the header of each logical unit. In this way, after a power outage, the location of recently written logical units can be determined without having to perform a scanning during initialization.
  • a block is managed as partially sequential and partially non-sequential, directed to more than one logical subgroup.
  • critical data such as some or all ofthe control data is guaranteed an extra level of reliability if it is maintained in duplicates.
  • the duplication is performed in a manner that for multi-state memory system employing a two-pass programming technique for successively programming the multi-bits ofthe same set of memory cells, any programming error in the second pass will not corrupt the data established by the first pass.
  • the duplication also helps with detection of write aborts, detection of misdetection (i.e., both copies have good ECC but data are different), and adds an extra level of reliability.
  • Several techniques of data duplication are contemplated.
  • a subsequent programming pass avoids programming the memory cells storing at least one ofthe two copies. In this way, at least one ofthe two copies will be unaffected in the event the subsequent programming pass aborts before completion and corrupts the data ofthe earlier pass.
  • the two copies of a given data are stored in two different blocks where at most one ofthe two copies have its memory cells programmed in a subsequent programming pass.
  • the two copies of a given data is programmed into a multi-state memory in a binary programming mode, so that no further programming on the programmed memory cells will take place.
  • a fault-tolerant code is employ to code the multiple memory states such that data established by an earlier programming pass is insensitive to errors in subsequent programming pass.
  • a "control garbage collection" or preemptive relocation of a memory block is implemented to avoid the situation where a large number of update blocks all happen to need relocation concurrently. For example, this situation can happen when updating control data used for controlling the operation ofthe block management system.
  • a hierarchy of control data type can exist with varying degree of update frequencies, resulting in their associated update blocks requiring garbage collection or relocation at different rates. There will be certain times that the garbage collection operations of more than one control data types coincide. In the extreme situation, the relocation phases ofthe update blocks for all control data types could line up, resulting in all ofthe update blocks requiring relocation at the same time.
  • FIG. 1 illustrates schematically the main hardware components of a memory system suitable for implementing the present invention.
  • FIG. 2 illustrates the memory being organized into physical groups of sectors (or metablocks) and managed by a memory manager ofthe controller, according to a preferred embodiment ofthe invention.
  • FIGs. 3A(i) - 3 A(iii) illustrate schematically the mapping between a logical group and a metablock, according to a preferred embodiment ofthe present invention.
  • FIG. 3B illustrates schematically the mapping between logical groups and metablocks.
  • FIG. 4 illustrates the alignment of a metablock with structures in physical memory.
  • FIG. 5A illustrates metablocks being constituted from linking of minimum erase units of different planes.
  • FIG. 5B illustrates one embodiment in which one minimum erase unit
  • MEU is selected from each plane for linking into a metablock.
  • FIG. 5C illustrates another embodiment in which more than one MEU are selected from each plane for linking into a metablock.
  • FIG. 6 is a schematic block diagram of the metablock management system as implemented in the controller and flash memory.
  • FIG. 7A illustrates an example of sectors in a logical group being written in sequential order to a sequential update block.
  • FIG. 7B illustrates an example of sectors in a logical group being written in chaotic order to a chaotic update block.
  • FIG. 8 illustrates an example of sectors in a logical group being written in sequential order to a sequential update block as a result of two separate host write operations that has a discontinuity in logical addresses.
  • FIG. 9 is a flow diagram illustrating a process by the update block manager to update a logical group of data, according a general embodiment ofthe invention.
  • FIG. 10 is a flow diagram illustrating a process by the update block manager to update a logical group of data, according a preferred embodiment ofthe invention.
  • FIG. 11 A is a flow diagram illustrating in more detail the consolidation process of closing a chaotic update block shown in FIG. 10.
  • FIG. 1 IB is a flow diagram illustrating in more detail the compaction process for closing a chaotic update block shown in FIG. 10.
  • FIG. 12A illustrates all possible states of a Logical Group, and the possible transitions between them under various operations.
  • FIG. 12B is a table listing the possible states of a Logical Group.
  • FIG. 13A illustrates all possible states of a metablock, and the possible transitions between them under various operations.
  • a metablock is a Physical Group corresponding to a Logical Group.
  • FIG. 13B is a table listing the possible states of a metablock.
  • FIGs. 14(A) - 14(J) are state diagrams showing the effect of various operations on the state ofthe logical group and also oh the physical metablock.
  • FIG. 15 illustrates a preferred embodiment ofthe structure ofan allocation block list (ABL) for keeping track of opened and closed update blocks and erased blocks for allocation.
  • ABL allocation block list
  • FIG. 16A illustrates the data fields of a chaotic block index (CBI) sector.
  • CBI chaotic block index
  • FIG. 16B illustrates an example ofthe chaotic block index (CBI) sectors being recorded in a dedicated metablock.
  • FIG. 16C is a flow diagram illustrating access to the data of a logical sector of a given logical group undergoing chaotic update.
  • FIG. 16D is a flow diagram illustrating access to the data of a logical sector of a given logical group undergoing chaotic update, according to an alternative embodiment in which logical group has been partitioned into subgroups.
  • FIG. 16E illustrates examples of Chaotic Block Indexing (CBI) sectors and their functions for the embodiment where each logical group is partitioned into multiple subgroups.
  • CBI Chaotic Block Indexing
  • FIG. 17A illustrates the data fields of a group address table (GAT) sector.
  • GAT group address table
  • FIG. 17B illustrates an example ofthe group address table (GAT) sectors being recorded in a GAT block.
  • GAT group address table
  • FIG. 18 is a schematic block, diagram illustrating the distribution and flow ofthe control and directory information for usage and recycling of erased blocks.
  • FIG. 19 is a flow chart showing the process of logical to physical address translation.
  • FIG. 20 illustrates the hierarchy ofthe operations performed on control data structures in the course ofthe operation ofthe memory management.
  • FIG. 21 illustrates a memory array constituted from multiple memory planes.
  • FIG. 22A is a flow diagram illustrating a method of update with plane alignment, according to a general implementation ofthe invention.
  • FIG. 22B illustrates a preferred embodiment ofthe step of storing updates in the flow diagram shown in FIG. 22A.
  • FIG. 23 A illustrates an example of logical units being written in sequential order to a sequential update block without regard to plane alignment.
  • FIG. 23B illustrates an example of logical units being written in non- 44- sequential order to a chaotic update block without regard to plane alignment.
  • FIG. 24A illustrates the sequential update example of FIG. 23 A with plane alignment and padding, according to a preferred embodiment ofthe invention.
  • FIG. 24B illustrates the chaotic update example of FIG. 23B with plane alignment and with no padding, according to one preferred embodiment ofthe invention.
  • FIG. 24C illustrates the chaotic update example of FIG. 23B with plane alignment and padding, according to another preferred embodiment ofthe invention.
  • FIG. 25 illustrates an example memory organization in which each page contains two memory units for storing two logical units, such as two logical sectors.
  • FIG. 26A is similar to the memory structure of FIG. 21 except each page contains two sectors instead of one.
  • FIG. 26B illustrates metablocks shown in FIG. 26A having memory units laid out in a schematic linear fashion.
  • FIG. 27 illustrates an alternative scheme for plane alignment in an update block without padding logical units to be copied from one location to another.
  • FIG. 28 illustrates a scheme in which when a program failure occurs in a defective block during a consolidation operation, the consolidation operation is repeated on another block.
  • FIG. 29 illustrates schematically, a host write operation with a timing or write latency that allows enough time to complete a write (update) operation as well as a consolidation operation.
  • FIG. 30 illustrates a flow chart ofthe program failure handling according to a general scheme ofthe invention.
  • FIG. 31 illustrates one embodiment of program failure handling in which the third (final relocation) block is different from the second (breakout) block.
  • FIG. 31B illustrates another embodiment of program failure handling in which the third (final relocation) block is the same as the second (breakout) block.
  • FIG. 32A illustrates a flow chart of initial update operation that results in a consolidation operation.
  • FIG. 32B illustrates a flow chart ofthe multiple phase consolidation operation, according to a preferred embodiment ofthe invention.
  • FIG. 33 illustrates an example timing ofthe first and final phases of the multiple phase consolidation operation.
  • FIG. 34A illustrates the case where the breakout consolidation block is not used as an update block but more as a consolidation block whose consolidation operation has been interrupted.
  • FIG. 34B illustrates the third and final phase ofthe multiple phase consolidation started in FIG. 34A.
  • FIG. 35A illustrates the case where the breakout consolidation block is maintained as an update block to receive host writes rather than as a consolidation block.
  • FIG. 35B illustrates the third and final phase ofthe multiple phase consolidation started in FIG. 35A for the second case.
  • FIG. 36A illustrates the phased program error handling method as applied to the scenario when the host write triggers the closure of an update block, and the update block is sequential.
  • FIG. 36B illustrates the phased program error handling method as it can be applied to a (Partial Blocks system) in the case of an Update of Update blocks.
  • FIG. 36C illustrates the phased program error handling the garbage collection operation, or clean-up in a memory block management system that does not support a logical group mapped to a metablock.
  • FIG. 37 illustrates an example of a schedule of writing of a CBI sector to an associated chaotic index sector block after every N sector writes ofthe same logical group.
  • FIG. 38A illustrates an update block up to the point when a CBI sector is recorded in it after a predetermined number of writes.
  • FIG. 38B illustrates the update block of FIG. 38A to have data pages
  • FIG. 38C illustrates the update block of FIG. 38B having another logical sector written to trigger the next recording of an index sector.
  • FIG.' 39 illustrates an intermediate index for the intermediate writes being stored in a header of each data sector in the chaotic update block
  • FIG. 39B illustrates an example of storing an intermediate index for the intermediate writes in the header of each sector written.
  • FIG. 40 illustrates the information in the chaotic index field being stored in a header of each data sector in the chaotic update block.
  • FIG. 41 A illustrates threshold voltage distributions of a 4-state memory array when each memory cell stores two bits of data.
  • FIG. 41 A illustrates threshold voltage distributions of a 4-state memory array when each memory cell stores two bits of data.
  • FIG. 41B illustrates an existing, 2-pass programming scheme using a
  • FIG. 42 illustrates a way of safe guarding critical data by saving each sector in duplicates. For example, the sectors A, B, C, and D are saved in duplicate copies. If there is corruption ofthe data in one sector copy, then the other one can be read instead.
  • FIG. 43 illustrates the non-robustness in which duplicate sectors are typically saved in a multi-state memory.
  • FIG. 44 A illustrates one embodiment of saving staggered duplicate copies of critical data to a multi-state memory.
  • FIG. 44B illustrates another embodiment of saving duplicate copies of critical data only to the logical upper page of a multi-state memory.
  • FIG. 44C illustrates yet another embodiment of saving duplicate copies of critical data in binary mode of a multi-state memory.
  • FIG. 45 illustrates yet another embodiment of saving duplicate copies of critical data concurrently to two different metablocks.
  • FIG. 46A is similar to FIG. 41A in illustrating threshold voltage distributions of a 4-state memory array and is shown as a reference for FIG. 46B.
  • FIG. 46B illustrates yet another embodiment of saving duplicate copies of critical data concurrently by the use of a fault-tolerant code.
  • FIG. 47 is a table showing the possible states ofthe two copies of data, and the validity ofthe data.
  • FIG. 48 illustrates a flow chart of preemptive relocation of memory- block storing control data.
  • FIG. 1 illustrates schematically the main hardware components of a memory system suitable for implementing the present invention.
  • the memory system 20 typically operates with a host 10 through a host interface.
  • the memory system is typically in the form of a memory card or an embedded memory system.
  • the memory system 20 includes a memory 200 whose operations are controlled by a controller 100.
  • the memory 200 comprises of one or more array of non- volatile memory cells distributed over one or more integrated circuit chip.
  • the controller 100 includes an interface 110, a processor 120, an optional coprocessor 121, ROM 122 (read-only-memory), RAM 130 (random access memory) and optionally programmable nonvolatile memory 124.
  • the interface 110 has one component interfacing the controller to a host and another component interfacing to the memory 200.
  • Firmware stored in nonvolatile ROM 122 and/or the optional nonvolatile memory 124 provides codes for the processor 120 to implement the functions ofthe controller 100. Error correction codes may be processed by the processor 120 or the optional coprocessor 121.
  • the controller 100 is implemented by a state machine (not shown.) In yet another embodiment, the controller 100 is implemented within the host.
  • FIG. 2 illustrates the memory being organized into physical groups of sectors (or metablocks) and managed by a memory manager ofthe controller, according to a preferred embodiment ofthe invention.
  • the memory 200 is organized into metablocks, where each metablock is a group of physical sectors So, ..., S ⁇ -i that are erasable together.
  • the host 10 accesses the memory 200 when running an application under a file system or operating system.
  • the host system addresses data in units of logical sectors where, for example, each sector may contain 512 bytes of data.
  • the host it is usual for the host to read or write to the memory system in unit of logical clusters, each consisting of one or more logical sectors.
  • an optional host-side memory manager may exist to perform lower level memory management at the host.
  • the host 10 In most cases during read or write operations, the host 10 essentially issues a command to the memory system 20 to read or write a segment containing a string of logical sectors of data with contiguous addresses.
  • a memory-side memory manager is implemented in the controller 100 ofthe memory system 20 to manage the storage and retrieval ofthe data of host logical sectors among metablocks ofthe flash memory 200.
  • the memory manager contains a number of software modules for managing erase, read and write operations ofthe metablocks.
  • the memory manager also maintains system control and directory data associated with its operations among the flash memory 200 and the controller RAM 130.
  • FIGs. 3A(i) - 3 A(iii) illustrate schematically the mapping between a logical group and a metablock, according to a preferred embodiment ofthe present invention.
  • the metablock ofthe physical memory has N physical sectors for storing N logical sectors of data of a logical group.
  • FIG. 3A(i) shows the data from a logical group LG,, where the logical sectors are in contiguous logical order 0, 1, ..., N-l.
  • FIG. 3A(ii) shows the same data being stored in the metablock in the same logical order.
  • the metablock when stored in this manner is said to be "sequential.”
  • the metablock may have data stored in a different order, in which case the metablock is said to be "non-sequential" or "chaotic.”
  • logical sector address wraps round as a loop from bottom back to top ofthe logical group within the metablock.
  • the metablock stores in its first location beginning with the data of logical sector k.
  • the last logical sector N-l wraps around to sector 0 and finally storing data associated with logical sector k-1 in its last physical sector.
  • a page tag is used to identify any offset, such as identifying the starting logical sector address ofthe data stored in the first physical sector ofthe metablock. Two blocks will be considered to have their logical sectors stored in similar order when they only differ by a page tag.
  • FIG. 3B illustrates schematically the mapping between logical groups and metablocks.
  • Each logical group is mapped to a unique metablock, except for a small number of logical groups in which data is currently being updated. After a logical group has been updated, it may be mapped to a different metablock.
  • the mapping information is maintained in a set of logical to physical directories, which will be described in more detail later.
  • metablocks with variable size are disclosed in co- pending and co-owned United States Patent application, entitled, "Adaptive Metablocks,” filed by Alan Sinclair, on the same day as the present application. The entire disclosure ofthe co-pending application is hereby incorporated herein by reference.
  • One feature ofthe invention is that the system operates with a single logical partition, and groups of logical sectors throughout 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 among the logical address space.
  • FIG. 4 illustrates the alignment of a metablock with structures in physical memory.
  • Flash memory comprises blocks of memory cells which are erasable together as a unit. Such erase blocks are the minimum unit of erasure of flash memory or minimum erasable unit (MEU) ofthe memory.
  • the minimum erase unit is a hardware design parameter ofthe memory, although in some memory systems that supports multiple MEUs erase, it is possible to configure a "super MEU" comprising more than one MEU.
  • a MEU may comprise one sector but preferably multiple sectors. In the example shown, it has M sectors, 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.
  • the metablock represents, at the system level, a group of memory locations, e.g., sectors that are erasable together.
  • the physical address space ofthe flash memory is treated as a set of metablocks, with a metablock being the minimum unit of erasure.
  • the terms "metablock” and "block” are used synonymously to define the minimum unit of erasure at the system level for media management, and the term “minimum erase unit” or MEU is used to denote the minimum unit of erasure of flash memory.
  • a page is a grouping of memory cells that may be programmed together in a single operation.
  • a page may comprise one or more sector.
  • a memory array may be partitioned into more than one plane, where only one MEU within a plane may be programmed or erased at a time.
  • the planes may be distributed among one or more memory chips.
  • the MEUs may comprise one or more page. MEUs within a flash memory chip may be organized in planes. Since one MEU from each ' plane may be programmed or erased concurrently, it is expedient to form a multiple MEU metablock by selecting one MEU from each plane (see FIG. 5B below.)
  • FIG. 5A illustrates metablocks being constituted from linking of minimum erase units of different planes.
  • Each metablock such as MB0, MB1, ..., is constituted from MEUs from different planes ofthe memory system, where the different planes may be distributed among one or more chips.
  • the metablock link manager 170 shown in FIG. 2 manages the linking ofthe MEUs for each metablock.
  • Each metablock is configured during an initial formatting process, and retains its constituent MEUs throughout the life ofthe system, unless there is a failure of one of the MEUs.
  • FIG. 5B illustrates one embodiment in which one minimum erase unit (MEU) is selected from each plane for linking into a metablock.
  • MEU minimum erase unit
  • FIG. 5C illustrates another embodiment in which more than one MEU are selected from each plane for linking into a metablock.
  • more than one MEU may be selected from each plane to form a super MEU.
  • a super MEU may be formed from two MEUs. In this case, it may take more than one pass for read or write operation.
  • FIG. 6 is a schematic block diagram ofthe metablock management system as implemented in the controller and flash memory.
  • the metablock management system comprises various functional modules implemented in the controller 100 and maintains various control data (including directory data) in tables and lists hierarchically distributed in the flash memory 200 and the controller RAM 130.
  • the function modules implemented in the controller 100 includes an interface module 110, a logical-to-physical address translation module 140, an update block manager module 150, an erase block manager module 160 and a metablock link manager 170.
  • the interface 110 allows the metablock management system to interface with a host system.
  • the logical to physical address translation module 140 maps the logical address from the host to a physical memory location.
  • the update block Manager module 150 manages data update operations in memory for a given logical group of data.
  • the erased block manager 160 manages the erase operation of the metablocks and their allocation for storage of new information.
  • a metablock link manager 170 manages the linking of subgroups of minimum erasable blocks of sectors to constitute a given metablock. Detailed description of these modules will be given in their respective sections. [00137] During operation the metablock management system generates and works with control data such as addresses, control and status information.
  • a hierarchical and distributed scheme is employed to store the more static control data in the nonvolatile flash memory while locating the smaller amount ofthe more varying control data in controller RAM for more efficient update and access.
  • the scheme allows the control data in the volatile controller RAM to be rebuilt quickly by scanning a small set of control data in the nonvolatile memory. This is possible because the invention restricts the number of blocks associated with the possible activity of a given logical group of data. In this way, the scanning is confined.
  • control data that requires persistence are stored in a nonvolatile metablock that can be updated sector- by-sector, with each update resulting in a new sector being recorded that supercedes a previous one.
  • a sector indexing scheme is employed for control data to keep track of the sector-by-sector updates in a metablock.
  • the non-volatile flash memory 200 stores the bulk of control data that are relatively static. This includes group address tables (GAT) 210, chaotic block indices (CBI) 220, erased block lists (EBL) 230 and MAP 240.
  • GAT 210 keeps track ofthe mapping between logical groups of sectors and their corresponding metablocks. The mappings do not change except for those undergoing updates.
  • the CBI 220 keeps track ofthe mapping of logically non-sequential sectors during an update.
  • the EBL 230 keeps track ofthe pool of metablocks that have been erased.
  • MAP 240 is a bitmap showing the erase status of all metablocks in the flash memory.
  • the volatile controller RAM 130 stores a small portion of control data that are frequently changing and accessed. This includes an allocation block list (ABL) 134 and a cleared block list (CBL) 136.
  • ABL allocation block list
  • CBL cleared block list
  • the ABL 134 keeps track ofthe allocation of metablocks for recording update data while the CBL 136 keeps track of metablocks that have been deallocated and erased.
  • the RAM 130 acts as a cache for control data stored in flash memory 200.
  • the update block manager 150 (shown in FIG. 2) handles the update of logical groups.
  • each logical group of sectors undergoing an update is allocated a dedicated update metablock for recording the update data.
  • any segment of one or more sectors of the logical group will be recorded in the update block.
  • An update block can be managed to receive updated data in either sequential order or non-sequential (also known as chaotic) order.
  • a chaotic update block allows sector data to be updated in any order within a logical group, and with any repetition of individual sectors.
  • a sequential update block can become a chaotic update block, without need for relocation of any data sectors.
  • Data of a complete logical group of sectors is preferably stored in logically sequential order in a single metablock.
  • the index to the stored logical sectors is predefined.
  • the metablock has in store all the sectors of a given logical group in a predefined order it is said to be "intact.”
  • an update block when it eventually fills up with update data in logically sequential order, then the update block will become an updated intact metablock that readily replace the original metablock.
  • the update block fills up with update data in a logically different order from that ofthe intact block
  • the update block is a nonsequential or chaotic update block and the out of order segments must be further processed so that eventually the update data ofthe logical group is stored in the same order as that ofthe intact block.
  • it is in logically sequential order in a single metablock.
  • the further processing involves consolidating the updated sectors in the update block with unchanged sectors in the original block into yet another update metablock.
  • the consolidated update block will then be in logically sequential order and can be used to replace the original block.
  • the consolidation process is preceded by one or more compaction processes.
  • the compaction process simply re-records the sectors ofthe chaotic update block into a replacing chaotic update block while eliminating any duplicate logical sector that has been rendered obsolete by a subsequent update ofthe same logical sector.
  • the update scheme allows for multiple update threads running concurrently, up to a predefined maximum.
  • Each thread is a logical group undergoing updates' using its dedicated update metablock.
  • a metablock is allocated and dedicated as an update block for the update data ofthe logical group.
  • the update block is allocated when a command is received from the host to write a segment of one or more sectors ofthe logical group for which an existing metablock has been storing all its sectors intact.
  • a first segment of data is recorded on the update block. Since each host write is a segment of one or more sector with contiguous logical address, it follows that the first update is always sequential in nature.
  • update segments within the same logical group are recorded in the update block in the order received from the host.
  • a block continues to be managed as a sequential update block whilst sectors updated by the host within the associated logical group remain logically sequential. All sectors updated in this ' logical group are written to this sequential update block, until the block is either closed or converted to a chaotic update block.
  • FIG. 7A illustrates an example of sectors in a logical group being written in sequential order to a sequential update block as a result of two separate host write operations, whilst the corresponding sectors in the original block for the logical group become obsolete.
  • host write operation #1 the data in the logical sectors LS5-LS8 are being updated.
  • the first sector to be updated in the logical group is recorded in the dedicated update block starting from the first physical sector location.
  • the first logical sector to be updated is not necessarily the logical first sector ofthe group, and there may therefore be an offset between the start ofthe logical group and the start ofthe update block. This offset is known as page tag as described previously in connection with FIG. 3A.
  • Subsequent sectors are updated in logically sequential order. When the last sector ofthe logical group is written, group addresses wrap around and the write sequence continues with the first sector ofthe group.
  • LS9-LS12 are being updated.
  • the updated data as LS9'-LS12' are recorded in the dedicated update block in a location directly following where the last write ends. It can be seen that the two host writes are such that the update data has been recorded in the update block in logically sequential order, namely LS5'-LS12'.
  • the update block is regarded as a sequential update block since it has been filled in logically sequential order.
  • the update data recorded in the update block obsoletes the corresponding ones in the original block.
  • Chaotic update block management may be initiated for an existing sequential update block when any sector updated by the host within the associated logical group is logically non-sequential.
  • a chaotic update block is a form of data update block in which logical sectors within an associated logical group may be updated in any order and with any amount of repetition. It is created by conversion from a sequential update block when a sector written by a host is logically nonsequential to the previously written sector within the logical group being updated. All sectors subsequently updated in this logical group are written in the next available sector location in the chaotic update block, whatever their logical sector address within the group.
  • FIG. 7B illustrates an example of sectors in a logical group being written in chaotic order to a chaotic update block as a result of five separate host write operations, whilst superseded sectors in the original block for the logical group and duplicated sectors in the chaotic update block become obsolete.
  • host write operation #1 the logical sectors LS10-LS11 of a given logical group stored in an original metablock is updated.
  • the updated logical sectors LSIO'-LSH' are stored in a newly allocated update block.
  • the update block is a sequential one.
  • the logical sectors LS5-LS6 are updated as LS5'-LS6' and recorded in the update block in the location immediately following the last write.
  • FIG. 8 illustrates an example of sectors in a logical group being written in sequential order to a sequential update block as a result of two separate host write operations that has a discontinuity in logical addresses.
  • the update data in the logical sectors LS5-LS8 is recorded in a dedicated update block as LS5'-LS8'.
  • the update data in the logical sectors LS14-LS16 is being recorded in the update block following the last write as LSI 4' -LSI 6'.
  • there is an address jump between LS8 and LS14 and the host write #2 would normally render the update block non-sequential. Since the address jump is not substantial, one option is to first perform a padding operation (#2A) by copying the data ofthe intervening sectors from the original block to the update block before executing host write #2. In this way, the sequential nature ofthe update block is preserved.
  • #2A padding operation
  • FIG. 9 is a flow diagram illustrating a process by the update block manager to update a logical group of data, according a general embodiment ofthe invention.
  • the update process comprises the following steps: [00151]
  • STEP 262 The data is organized into logical groups, each logical group partitioned into logical units.
  • STEP 264 In the standard case, all logical units of a logical group is stored among the memory units ofan original block according to a first prescribed order, preferably, in logically sequential order. In this way, the index for accessing the individual logical units in the block is known.
  • STEP 270 For a given logical group (e.g., LG ) of data, a request is made to update a logical unit within LG*. (A logical unit update is given as an example. In general the update will be a segment of one or more contiguous logical units within LG*.)
  • STEP 272 The requested update logical unit is to be stored in a second block, dedicated to recording the updates of LG*.
  • the recording order is according to a second order, typically, the order the updates are requested.
  • One feature ofthe invention allows an update block to be set up initially generic to recording data in logically sequential or chaotic order. So depending on the second order, the second block can be a sequential one or a chaotic one.
  • STEP 274 The second block continues to have requested logical units recorded as the process loops back to STEP 270. The second block will be closed to receiving further update when a predetermined condition for closure materializes. In that case, the process proceeds to STEP 276.
  • STEP 276 Determination is made whether or not the closed, second block has its update logical units recorded in a similar order as that ofthe original block. The two blocks are considered to have similar order when they recorded logical units differ by only a page tag, as described in connection with FIG. 3A. If the two blocks have similar order the process proceeds to STEP 280, otherwise, some sort of garbage collection need to be performed in STEP 290.
  • STEP 280 Since the second block has the same order as the first block, it is used to replace the original, first block. The update process then ends at STEP 299.
  • STEP 290 The latest version of each logical units ofthe given logical group are gathered from among the second block (update block) and the first block (original block). The consolidated logical units ofthe given logical group are then written to a third block in an order similar to the first block.
  • STEP 292 Since the third block (consolidated block) has a similar order to the first block, it is used to replace the original, first block. The update process then ends at STEP 299.
  • FIG. 10 is a flow diagram illustrating a process by the update block manager to update a logical group of data, according a preferred embodiment ofthe invention.
  • the update process comprises the following steps:
  • STEP 310 For a given logical group (e.g., LG*) of data, a request is made to update a logical sector within LG*. (A sector update is given as an example. In general the update will be a segment of one or more contiguous logical sectors within LG X .)
  • STEP 312 If an update block dedicated to LG* does not already exist, proceed to STEP 410 to initiate a new update thread for the logical group. This will be accomplished by allocating an update block dedicated to recording update data ofthe logical group. If there is already an update block open, proceed to STEP 314 to begin recording the update sector onto the update block.
  • STEP 314 If the current update block is already chaotic (i.e., nonsequential) then simply proceed to STEP 510 for recording the requested update sector onto the chaotic update block. If the current update block is sequential, proceed to STEP 316 for processing of a sequential update block.
  • STEP 316 One feature ofthe invention allows an update block to be set up initially generic to recording data in logically sequential or chaotic order. However, since the logical group ultimately has its data stored in a metablock in a logically sequential order, it is desirable to keep the update block sequential as far as possible. Less processing will then be required when an update block is closed to further updates as garbage collection will not be needed.
  • a forced sequential process STEP 320 is optionally performed to preserve the sequential update block as far as possible in view of a pending chaotic update.
  • the forced sequential process STEP 320 comprises the following substeps:
  • STEP 330 If the update creates a logical address jump not greater a predetermined amount, C B , the process proceeds to a forced sequential update process in STEP 350, otherwise the process proceeds to STEP 340 to consider if it qualifies for a forced sequential closeout.
  • STEP 340 If the number of unfilled physical sectors exceeds a predetermined design parameter, Cc, whose typical value is half of the size ofthe update block, then the update block is relatively unused and will not be prematurely closed. The process proceeds to STEP 370 and the update block will become chaotic. On the other hand, if the update block is substantially filled, it is considered to have been well utilized already and therefore is directed to STEP 360 for forced sequential closeout.
  • Cc a predetermined design parameter
  • STEP 350 Forced sequential update allows current sequential update block to remain sequential as long as the address jump does not exceed a predetermined amount, C ⁇ . Essentially, sectors from the update block's associated original block are copied to fill the gap spanned by the address jump. Thus, the sequential update block will be padded with data in the intervening addresses before proceeding to STEP 510 to record the current update sequentially.
  • STEP 360 Forced sequential closeout allows the currently sequential update block to be closed out if it is already substantially filled rather than converted to a chaotic one by the pending chaotic update.
  • a chaotic or non-sequential update is defined as one with a forward address transition not covered by the address jump exception described above, a backward address transition, or an address repetition.
  • the unwritten sector locations ofthe update block are filled by copying sectors from the update block's associated original partly-obsolete block. The original block is then fully obsolete and may be erased.
  • the current update block now has the full set of logical sectors and is then closed out as an intact metablock replacing the original metablock.
  • the process then proceeds to STEP 430 to have a new update block allocated in its place to accept the recording ofthe pending sector update that was first requested in STEP 310.
  • STEP 370 When the pending update is not in sequential order and optionally, if the forced sequential conditions are not satisfied, the sequential update block is allowed to be converted to a chaotic one by virtue of allowing the pending update sector, with non-sequential address, to be recorded on the update block when the process proceeds to STEP 510. If the maximum number of chaotic update blocks exist, it is necessary to close the least recently accessed chaotic update block before allowing the conversion to proceed; thus preventing the maximum number of chaotic blocks from being exceeded. The identification ofthe least recently accessed chaotic update block is the same as the general case described in STEP 420, but is constrained to chaotic update blocks only. Closing a chaotic update block at this time is achieved by consolidation as described in STEP 550.
  • STEP 410 The process of allocating an erase metablock as an update block begins with the determination whether a predetermined system limitation is " exceeded or not. Due to finite resources, the memory management system typically allows a predetermined maximum number of update blocks, C A , to exist concurrently. This limit is the aggregate of sequential update blocks and chaotic update blocks, and is a design parameter. In a preferred embodiment, the limit is, for example, a maximum of 8 update blocks. Also, due to the higher demand on system resources, there may also be a corresponding predetermined limit on the maximum number of chaotic update blocks that can be open concurrently (e.g., 4.)
  • STEP 420 In the event the maximum number of update blocks, C A , is exceeded, the least-recently accessed update block is closed and garbage collection is performed.
  • the least recently accessed update block is identified as the update block associated with the logical block that has been accessed least recently. For the purpose of determining the least recently accessed blocks, an access includes writes and optionally reads of logical sectors. A list of open update blocks is maintained in order of access; at initialization, no access order is assumed.
  • the closure of an update block follows along the similar process described in connection with STEP 360 and STEP 530 when the update block is sequential, and in connection with STEP 540 when the update block is chaotic. The closure makes room for the allocation of a new update block in STEP 430.
  • STEP 430 The allocation request is fulfilled with the allocation of a new metablock as an update block dedicated to the given logical group LG*. The process then proceeds to STEP 510.
  • STEP 510 The requested update sector is recorded onto next available physical location ofthe update block. The process then proceeds to STEP 520 to determine if the update block is ripe for closeout.
  • STEP 522 If the update block is sequential, proceed to STEP 530 for sequential closure. If the update block is chaotic, proceed to STEP 540 for chaotic closure.
  • STEP 530 Since the update block is sequential and fully filled, the logical group stored in it is intact. The metablock is intact and replaces the original one. At this time, the original block is fully obsolete and may be erased. The process then proceeds to STEP 570 where the update thread for the given logical group ends.
  • STEP 540 Since the update block is non-sequentially filled and may contain multiple updates of some logical sectors, garbage collection is performed to salvage the valid data in it. The chaotic update block will either be compacted or consolidated. Which process to perform will be determined in STEP 542.
  • STEP 542 To perform compaction or consolidation will depend on the degeneracy ofthe update block. If a logical sector is updated multiple times, its logical address is highly degenerate. There will be multiple versions ofthe same logical sector recorded on the update block and only the last recorded version is the valid one for that logical sector. In an update block containing logical sectors with multiple versions, the number of distinct logical sectors will be much less than that of a logical group.
  • the closeout process when the number of distinct logical sectors in the update block exceeds a predetermined design parameter, Co, whose typical value is half of the size of a logical group, the closeout process will perform a consolidation in STEP 550, otherwise the process will proceed to compaction in STEP 560.
  • STEP 550 If the chaotic update block is to be consolidated, the original block and the update block will be replaced by a new standard metablock containing the consolidated data. After consolidation the update thread will end in STEP 570.
  • STEP 560 If the chaotic update block is to be compacted, it will be replaced by a new update block carrying the compacted data. After compaction the processing ofthe compacted update block will end in STEP 570. Alternatively, compaction can be delayed until the update block is written to again, thus removing the possibility of compaction being followed by consolidation without intervening updates. The new update block will then be used in further updating ofthe given logical block when a next request for update in LG* appears in STEP 502.
  • STEP 570 When a closeout process creates an intact update block, it becomes the new standard block for the given logical group. The update thread for the logical group will be terminated. When a closeout process creates a new update block replacing an existing one, the new update block will be used to record the next update requested for the given logical group. When an update block is not closed out, the processing will continue when a next request for update in LG* appears in STEP 310. 100189] As can be seen from the process described above, when a chaotic update block is closed, the update data recorded on it is further processed. In particular its valid data is garbage collected either by a process of compaction to another chaotic block, or by a process of consolidation with its associated original block to form a new standard sequential block.
  • FIG. 11 A is a flow diagram illustrating in more detail the consolidation process of closing a chaotic update block shown in FIG. 10.
  • Chaotic update block consolidation is one of two possible processes performed when the update block is being closed out, e.g., when the update block is full with its last physical sector location written. Consolidation is chosen when the number of distinct logical sectors written in the block exceeds a predetermined design parameter, Co- The consolidation process STEP 550 shown in FIG. 10 comprises the following substeps:
  • STEP 552 Gather the latest version of each logical sector among the chaotic update block and its associated original block, ignoring all the obsolete sectors.
  • STEP 554 Record the gathered valid sectors onto the new metablock in logically sequential order to form an intact block, i.e., a block with all the logical sectors of a logical group recorded in sequential order.
  • STEP 558 Erase the closed out update block and the original block.
  • FIG. 1 IB is a flow diagram illustrating in more detail the compaction process for closing a chaotic update block shown in FIG. 10. Compaction is chosen when the number of distinct logical sectors written in the block is below a predetermined design parameter, Co- The compaction process STEP 560 shown in FIG. 10 comprises the following substeps:
  • STEP 561 When a chaotic update block is being compacted, a new metablock replacing it will be allocated.
  • STEP 562 Gather the latest version of each logical sector among the existing chaotic update block to be compacted.
  • STEP 564 Record the gathered sectors onto the new update block to form a new update block having compacted sectors.
  • STEP 566 Replace the existing update block with the new update block having compacted sectors.
  • STEP 568 Erase the closed out update block
  • FIG. 12A illustrates all possible states of a Logical Group, and the possible transitions between them under various operations.
  • FIG. 12B is a table listing the possible states of a Logical Group. The
  • Sequential Update Some sectors within the Logical Group have been written in logically sequential order in a metablock, possibly using page tag, so that they supersede the corresponding logical sectors from any previous Intact state of the group.
  • FIG. 13A illustrates all possible states of a metablock, and the possible transitions between them under various operations.
  • FIG. 13B is a table listing the possible states of a metablock.
  • the metablock states are defined as follows:
  • Sequential Update The metablock is partially written with sectors in logically sequential order, possibly using page tag. All the sectors belong to the same Logical Group.
  • FIGs. 14(A) - 14( ) are state diagrams showing the effect of various operations on the state ofthe logical group and also on the physical metablock.
  • FIG. 14(A) shows state diagrams corresponding to the logical group and the metablock transitions for a first write operation.
  • the host writes one or more sectors of a previously unwritten Logical Group in logically sequential order to a newly allocated Erased metablock.
  • the Logical Group and the metablock go to the Sequential Update state.
  • FIG. 14(B) shows state diagrams corresponding to the logical group and the metablock transitions for a first intact operation.
  • a previously unwritten Sequential Update Logical Group becomes Intact as all the sectors are written sequentially by the host. The transition can also happen ifthe card fills up the group by filling the remaining unwritten sectors with a predefined data pattern.
  • the metablock becomes Intact.
  • FIG. 14(C) shows state diagrams corresponding to the logical group and the metablock transitions for a first chaotic operation. A previously unwritten
  • FIG. 14(D) shows state diagrams corresponding to the logical group and the metablock transitions for a first compaction operation. All valid sectors within a previously unwritten Chaotic Update Logical Group are copied to a new Chaotic metablock from the old block, which is then erased.
  • FIG. 14(E) shows state diagrams corresponding to the logical group and the metablock transitions for a first consolidation operation. All valid sectors within a previously unwritten Chaotic Update Logical Group are moved from the old Chaotic block to fill a newly allocated Erased block in logically sequential order. Sectors unwritten by the host are filled with a predefined data pattern. The old chaotic block is then erased.
  • FIG. 14(F) shows state diagrams corresponding to the logical group and the metablock transitions for a sequential write operation.
  • the host writes one or more sectors of an Intact Logical Group in logically sequential order to a newly allocated Erased metablock.
  • the Logical Group and the metablock go to Sequential Update state.
  • the previously Intact metablock becomes an Original metablock.
  • FIG. 14(G) shows state diagrams corresponding to the logical group and the metablock transitions for a sequential fill operation.
  • a Sequential Update Logical Group becomes Intact when all its sectors are written sequentially by the host. This may also occur during garbage collection when the Sequential Update Logical Group is filled with valid sectors from the original block in order to make it Intact, after which the original block is erased.
  • FIG. 14(H) shows state diagrams corresponding to the logical group and the metablock transitions for a non-sequential write operation.
  • a Sequential Update Logical Group becomes Chaotic when at least one sector is written non- sequentially by the host.
  • the non-sequential sector writes may cause valid sectors in either the Update block or the corresponding Original block to become obsolete.
  • FIG. 14(1) shows state diagrams corresponding to the logical group and the metablock transitions for a compaction operation. All valid sectors within a Chaotic Update Logical Group are copied into a new chaotic metablock from the old block, which is then erased. The Original block is unaffected.
  • FIG. 14(J) shows state diagrams corresponding to the logical group and the metablock transitions for a consolidation operation. All valid sectors within a Chaotic Update Logical Group are copied from the old chaotic block and the Original block to fill a newly allocated Erased block in logically sequential order. The old chaotic block and the Original block are then erased.
  • FIG. 15 illustrates a preferred embodiment ofthe structure of an allocation block list (ABL) for keeping track of opened and closed update blocks and erased blocks for allocation.
  • the allocation block list (ABL) 610 is held in controller RAM 130, to allow management of allocation of erased blocks, allocated update blocks, associated blocks and control structures, and to enable correct logical to physical address translation.
  • the ABL includes a list of erased blocks, an open update block list 614 and a closed update block list 616.
  • the open update block list 614 is the set of block entries in the ABL with the attributes of Open Update Block.
  • the open update block list has one entry for each data update block currently open. Each entry holds the following information.
  • LG is the logical group address the current update metablock is dedicated to.
  • Sequential/Chaotic is a status indicating whether the update block has been filled with sequential or chaotic update data.
  • MB is the metablock address ofthe update block.
  • Page tag is the starting logical sector recorded at the first physical location ofthe update block. Number of sectors written indicates the number of sectors currently written onto the update block.
  • MBo is the metablock address ofthe associated original block.
  • Page Tago is the page tag ofthe associated original block.
  • the closed update block list 616 is a subset ofthe Allocation Block
  • ABL ABL
  • the closed update block list has one entry for each data update block which has been closed, but whose entry has not been updated in a logical to a main physical directory. Each entry holds the following information.
  • LG is the logical group address the current update block is dedicated to.
  • MB is the metablock address ofthe update block.
  • Page tag is the starting logical sector recorded at the first physical location ofthe update block.
  • MB 0 is the metablock address ofthe associated original block.
  • a sequential update block has the data stored in logically sequential order, thus any logical sector among the block can be located easily.
  • a chaotic update block has its logical sectors stored out of order and may also store multiple update generations of a logical sector. Additional information must be maintained to keep track of where each valid logical sector is located in the chaotic update block.
  • chaotic block indexing data structures allow tracking and fast access of all valid sectors in a chaotic block.
  • Chaotic block indexing independently manages small regions of logical address space, and efficiently handles system data and hot regions of user data.
  • the indexing data structures essentially allow indexing information to be maintained in flash memory with infrequent update requirement so that performance is not significantly impacted.
  • lists of recently written sectors in chaotic blocks are held in a chaotic sector list in controller RAM.
  • a cache of index information from flash memory is held in controller RAM in order to minimize the number of flash sector accesses for address translation.
  • Indexes for each chaotic block are stored in chaotic block index (CBI) sectors in flash memory.
  • CBI chaotic block index
  • FIG. 16A illustrates the data fields of a chaotic block index (CBI) sector.
  • a Chaotic Block Index Sector (CBI sector) contains an index for each sector in a logical group mapped to a chaotic update block, defining the location of each sector ofthe logical group within the chaotic update block or its associated original block.
  • a CBI sector includes a chaotic block index field for keeping track of valid sectors within the chaotic block, a chaotic block info field for keeping track of address parameters for the chaotic block, and a sector index field for keeping track ofthe valid CBI sectors within the metablock (CBI block) storing the CBI sectors.
  • FIG. 16B illustrates an example ofthe chaotic block index (CBI) sectors being recorded in a dedicated metablock.
  • the dedicated metablock will be referred to as a CBI block 620.
  • CBI block 620 When a CBI sector is updated, it is written in the next available physical sector location in the CBI block 620. Multiple copies of a CBI sector may therefore exist in the CBI block, with only the last written copy being valid. For example the CBI sector for the logical group LGi has been updated three times with the latest version being the valid one.
  • the location of each valid sector in the CBI block is identified by a set of indices in the last written CBI sector in the block..
  • the last written CBI sector in the block is CBI sector for LG 136 and its set of indices is the valid one superceding all previous ones.
  • the block is compacted during a control write operation by rewriting all valid sectors to a new block location. The full block is then erased.
  • the chaotic block index field within a CBI sector contains an index entry for each logical sector within a logical group or sub-group mapped to a chaotic update block. Each index entry signifies an offset within the chaotic update block at which valid data for the corresponding logical sector is located. A reserved index value indicates that no valid data for the logical sector exists in the chaotic update block, and that the corresponding sector in the associated original block is valid. A cache of some chaotic block index field entries is held in controller RAM.
  • the chaotic block info field within a CBI sector contains one entry for each chaotic update block that exists in the system, recording address parameter information for the block. Information in this field is only valid in the last written sector in the CBI block. This information is also present in data structures in RAM.
  • the entry for each chaotic update block includes three address parameters. The first is the logical address ofthe logical group (or logical group number) associated with the chaotic update block. The second is the metablock address ofthe chaotic update block. The third is the physical address offset ofthe last sector written in the chaotic update block. The offset information sets the start point for scanning ofthe chaotic update block during initialization, to rebuild data structures in RAM.
  • FIG. 16C is a flow diagram illustrating access to the data of a logical sector of a given logical group undergoing chaotic update. During the update process, the update data is recorded in the chaotic update block while the unchanged data remains in the original metablock associated with the logical group. The process of accessing a logical sector ofthe logical group under chaotic update is as follows:
  • STEP 650 Begin locating a given logical sector of a given logical group.
  • STEP 652 Locate 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 looking up the Chaotic Block Info field of the last written CBI sector. This step can be performed any time just before STEP 662.
  • STEP 658 Ifthe last written CBI sector is directed to the given logical group, the CBI sector is located. Proceed to STEP 662. Otherwise, proceed to STEP 660.
  • STEP 660 Locate the CBI sector for the given logical group by looking up the sector index field ofthe last written CBI sector.
  • STEP 662 Locate the given logical sector among either the chaotic block or the original block by looking up the Chaotic Block Index field ofthe located CBI sector.
  • FIG. 16D is a flow diagram illustrating access to the data of a logical sector of a given logical group undergoing chaotic update, according to an alternative embodiment in which logical group has been partitioned into subgroups.
  • the finite capacity of a CBI sector can only keep track of a predetermined maximum number of logical sectors.
  • the logical group is partitioned into multiple subgroups with a CBI sector assigned to each subgroup.
  • each CBI sector has enough capacity for tracking a logical group consisting of 256 sectors and up to 8 chaotic update blocks.
  • CBI sectors may exist for up to 8 sub-groups within a logical group, giving support for logical groups up to 2048 sectors in size.
  • an indirect indexing scheme is employed to facilitate management ofthe index.
  • Each entry of the sector index has direct and indirect fields.
  • the direct sector index defines the offsets within the CBI block at which all possible CBI sectors relating to a specific chaotic update block are located, information in this field is only valid in the last written CBI sector relating to that specific chaotic update block.
  • a reserved value of an offset in the index indicates that the CBI sector does not exist because the corresponding logical subgroup relating to the chaotic update block either does not exist, or has not been updated since the update block was allocated.
  • the indirect sector index defines the offsets within the CBI block at which the most recently written CBI sectors relating to each permitted chaotic update block are located.
  • a reserved value of an offset in the index indicates that a permitted chaotic update block does not exist.
  • FIG. 16D shows the process of accessing a logical sector ofthe logical group under chaotic update as follows:
  • STEP 670 Partition each Logical Group into multiple subgroups and assign a CBI sector to each subgroup
  • STEP 680 Begin locating a given logical sector of a given subgroup of a given 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 looking up the Chaotic Block Info field ofthe last written CBI sector. This step can be performed any time just before STEP 696.
  • STEP 686 Ifthe last written CBI sector is directed to the given logical group, proceed to STEP 691. Otherwise, proceed to STEP 690. [00245] STEP 690: Locate the last written ofthe multiple CBI sectors for the given logical group by looking up the Indirect Sector Index field ofthe last written CBI sector.
  • STEP 691 At least a CBI sector associate with one ofthe subgroups for the given logical group has been located. Continue.
  • STEP 692 If the located CBI sector directed to the given subgroup, the CBI sector for the given subgroup is located. Proceed to STEP 696. Otherwise, proceed to STEP 694.
  • STEP 694 Locate the CBI sector for the given subgroup by looking up the direct sector index field ofthe currently located CBI sector.
  • STEP 696 Locate the given logical sector among either the chaotic block or the original block by looking up the Chaotic Block Index field ofthe CBI sector for the given subgroup.
  • FIG. 16E illustrates examples of Chaotic Block Indexing (CBI) sectors and their functions for the embodiment where each logical group is partitioned into multiple subgroups.
  • a logical group 700 originally. has its intact data stored in an original metablock 702. The logical group is then undergoing updates with the allocation of a dedicated chaotic update block 704.
  • the logical group 700 is partitioned into subgroups, such subgroups A, B, C, D, each having 256 sectors.
  • the last written CBI sector in the CBI block 620 is first located.
  • the chaotic block info field ofthe last written CBI sector provides the address to locate the chaotic update block 704 for the given logical group. At the same time it provides the location ofthe last sector written in the chaotic block. This information is useful in the event of scanning and rebuilding indices.
  • the last written CBI sector turns out to be one ofthe four CBI sectors ofthe given logical group, it will be further determined if it is exactly the CBI sector for the given subgroup B that contains the tth logical sector. If it is, then the CBI sector's chaotic block index will point to the metablock location for storing the data for the tth logical sector.
  • the sector location could be either in the chaotic update block 704 or the original block 702.
  • the last written CBI sector turns out to be one ofthe four CBI sectors ofthe given logical group but is not exactly for the subgroup B, then its direct sector index is looked up to locate the CBI sector for the subgroup B. Once this exact CBI sector is located, its chaotic block index is looked up to locate the tth logical sector among the chaotic update block 704and the original block 702.
  • the last written CBI sector turns out not to be anyone ofthe four CBI sectors ofthe given logical group, its indirect sector index is looked up to locate one ofthe four.
  • the CBI sector for subgroup C is located.
  • this CBI sector for subgroup C has its direct sector index looked up to locate the exact CBI sector for the subgroup B.
  • The. example shows that when its chaotic block index is looked up, the tth logical sector is found to be unchanged and it valid data will be located in the original block.
  • a list of chaotic sectors exists in controller RAM for each chaotic update block in the system. Each list contains a record of sectors written in the chaotic update block since a related CBI sector was last updated in flash memory.
  • the number of logical sector addresses for a specific chaotic update block, which can be held in a chaotic sector list, is a design parameter with a typical value of 8 to 16.
  • the optimum size ofthe list is determined as a tradeoff between its effects on overhead for chaotic data- write operations and sector scanning time during initialization.
  • each chaotic update block is scanned as necessary to identify valid sectors written since the previous update of one of its associated CBI sectors.
  • a chaotic sector list in controller RAM for each chaotic update block is constructed. Each block need only be scanned from the last sector address defined in its chaotic block info field in the last written CBI sector.
  • a chaotic update block When a chaotic update block is allocated, a CBI sector is written to correspond to all updated logical sub-groups. The logical and physical addresses for the chaotic update block are written in an available chaotic block info field in the sector, with null entries in the chaotic block index field. A chaotic sector list is opened in controller RAM.
  • the corresponding chaotic sector list in controller RAM is modified to include records of sectors written to a chaotic update block.
  • a chaotic sector list in controller RAM has no available space for records of further sector writes to a chaotic update block, updated CBI sectors are written for logical sub-groups relating to sectors in the list, and the list is cleared.
  • mapping between logical groups and physical groups are stored in a set of table and lists distributed among the nonvolatile flash memory 200 and the volatile but more agile RAM 130 (see FIG. 1.)
  • An address table is maintained in flash memory, containing a metablock address for every logical group in the memory system.
  • logical to physical address records for recently written sectors are temporarily held in RAM. These volatile records can be reconstructed from block lists and data sector headers in flash memory when the system is initialized after power-up.
  • the address table in flash memory need be updated only infrequently, leading to a. low percentage of overhead write operations for control data.
  • the hierarchy of address records for logical groups includes the open update block list, the closed update block list in RAM and the group address table (GAT) maintained in flash memory.
  • GAT group address table
  • the open update block list is a list in controller RAM of data update blocks which are currently open for writing updated host sector data.
  • the entry for a block is moved to the closed update block list when the block is closed.
  • the closed update block list is a list in controller RAM of data update blocks which have been closed. A subset ofthe entries in the list is moved to a sector in the Group Address Table during a control write operation.
  • the Group Address Table is a list of metablock addresses for all logical groups of host data in the memory system.
  • the GAT contains one entry for each logical group, ordered sequentially according to logical address.
  • the nth entry in the GAT contains the metablock address for the logical group with address n.
  • it is a table in flash memory, comprising a set of sectors (referred to as GAT sectors) with entries defining metablock addresses for every logical group in the memory system.
  • the GAT sectors are located in one or more dedicated control blocks (referred to as GAT blocks) in flash memory.
  • FIG. 17A illusfrates the data fields of a group address table (GAT) sector.
  • a GAT sector may for example have sufficient capacity to contain GAT entries for a set of 128 contiguous logical groups.
  • Each GAT sector includes two components, namely a set of GAT entries for the metablock address of each logical group within a range, and a GAT sector index.
  • the first component contains information for locating the metablock associated with the logical address.
  • the second component contains information for locating all valid GAT sectors within the GAT block.
  • Each GAT entry has three fields, namely, the metablock number, the page tag as defined earlier in connection with FIG. 3A(iii), and a flag indicating whether the metablock has been relinked.
  • FIG. 17B illustrates an example ofthe group address table (GAT) sectors being recorded in one or more GAT block.
  • GAT group address table
  • a GAT block is a metablock dedicated to recording GAT sectors. When a GAT sector is updated, it is written in the next available physical sector location in the GAT block 720. Multiple copies of a GAT sector may therefore exist in the GAT block, with only the last written copy being valid.
  • the GAT sector 255 (containing pointers for the logical groups LG 3 68 - LG o 8 ) has been updated at least two times with the latest version being the valid one.
  • the location of each valid sector in the GAT block is identified by a set of indices in the last written GAT sector in the block.
  • the last written GAT sector in the block is GAT sector 236 and its set of indices ia the valid one superceding all previous ones.
  • a GAT block contains entries for a logically contiguous set of groups in a region of logical address space.
  • GAT sectors within a GAT block each contain logical to physical mapping information for 128 contiguous logical groups.
  • the number of GAT sectors required to store entries for all logical groups within the address range spanned by a GAT block occupy only a fraction of the total sector positions in the block.
  • a GAT sector may therefore be updated by writing it at the next available sector position in the block.
  • An index of all valid GAT sectors and their position in the GAT block is maintained in an index field in the most recently written GAT sector.
  • the fraction ofthe total sectors in a GAT block occupied by valid GAT sectors is a system design parameter, which is typically 25%. However, there is 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 more than one GAT block, ha this case, each GAT block is associated with a fixed range of logical
  • a GAT update is performed as part of a control write operation, which is triggered when the ABL runs out of blocks for allocation (see FIG. 18.) It is performed concurrently with ABL fill and CBL empty operations.
  • a GAT update operation one GAT sector has entries updated with information from corresponding entries in the closed update block list.
  • any corresponding entries are removed from the closed update block list (CUBL).
  • the GAT sector to be updated is selected on the basis ofthe first entry in the closed update block list. The updated sector is written to the next available sector location in the GAT block.
  • a GAT rewrite operation occurs during a control write operation when no sector location is available for an updated GAT sector.
  • a new GAT block is allocated, and valid GAT sectors as defined by the GAT index are copied in sequential order from the full GAT block. The full GAT block is then erased.
  • a GAT cache is a copy in controller RAM 130 of entries in a subdivision ofthe 128 entries in a GAT sector.
  • the number of GAT cache entries is a system design parameter, with typical value 32.
  • a GAT cache for the relevant sector subdivision is created each time an entry is read from a GAT sector. Multiple GAT caches are maintained. The number is a design parameter with a typical value of 4.
  • a GAT cache is overwritten with entries for a different sector subdivision on a least- recently-used basis.
  • the erase block manager 160 shown in FIG. 2 manages erase blocks using a set of lists for maintaining directory and system control information. These lists are distributed among the controller RAM 130 and flash memory 200. When an erased metablock must be allocated for storage of user data, or for storage of system control data structures, the next available metablock number in the allocation block list (ABL) (see FIG. 15) held in controller RAM is selected. Similarly, when a metablock is erased after it has been retired, its number is added to a cleared block list (CBL) also held in controller RAM. Relatively static directory and system control data are stored in flash memory. These include erased block lists and a bitmap (MAP) listing the erased status of all metablocks in the flash memory. The erased block lists and MAP are stored in individual sectors and are recorded to a dedicated metablock, known as a MAP block. These lists, distributed among the controller RAM and flash memory, provide a hierarchy of erased block records to efficiently manage erased metablock usage.
  • ABL allocation block list
  • CBL cleared block list
  • FIG. 18 is a schematic block diagram illustrating the distribution and flow ofthe control and directory information for usage and recycling of erased blocks.
  • the control and directory data are maintained in lists which are held either in controller RAM 130 or in a MAP block 750 residing in flash memory 200.
  • the controller RAM 130 holds the allocation block list (ABL) 610 and a cleared block list (CBL) 740.
  • the allocation block list (ABL) keeps track of which metablocks have recently been allocated for storage of user data, or for storage of system control data structures. When a new erased metablock need be allocated, the next available metablock number in the allocation block list (ABL) is selected.
  • the cleared block list (CBL) is used to keep track of update metablocks that have been de-allocated and erased.
  • the ABL and CBL are held in controller RAM 130 (see FIG. 1) for speedy access and easy manipulation when tracking the relatively active update blocks.
  • the allocation block list keeps track of a pool of erased metablocks and the allocation ofthe erased metablocks to be an update block.
  • each of these metablocks that maybe described by an attribute designating whether it is an erased block in the ABL pending allocation, an open update block, or a closed update block.
  • FIG. 18 shows the ABL containing an erased ABL list 612, the open update block list 614 and the closed update block list 616.
  • associated with the open update block list 614 is the associated original block list 615.
  • associated with the closed update block list is the associated erased original block list 617.
  • these associated lists are subset ofthe 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 ofthe allocation block list (ABL) 610, the entries in each having respectively the corresponding attribute.
  • the MAP block 750 is a metablock dedicated to storing erase management records in flash memory 200.
  • the MAP block stores a time series of MAP block sectors, with each MAP sector being either an erase block management (EBM) sector 760 or a MAP sector 780.
  • EBM erase block management
  • the associated control and directory data is preferably contained in a logical sector which may be updated in the MAP block, with each instance of update data being recorded to a new block sector.
  • Multiple copies of EBM sectors 760 and MAP sectors 780 may exist in the MAP block 750, with only the latest version being valid.
  • An index to the positions of valid MAP sectors is contained in a field in the EMB block.
  • a valid EMB sector is always written last in the MAP block during a control write operation.
  • the MAP block 750 is full, it is compacted during a control write operation by rewriting all valid sectors to a new block location. The full block is then erased.
  • Each EBM sector 760 contains erased block lists (EBL) 770, which are lists of addresses of a subset of the population of erased blocks.
  • the erased block lists (EBL) 770 act as a buffer containing erased metablock numbers, from which metablock numbers are periodically taken to re-fill the ABL, and to which metablock numbers are periodically added to re-empty the CBL.
  • the EBL 770 serves as buffers for the available block buffer (ABB) 772, the erased block buffer (EBB) 774 and the cleared block buffer (CBB) 776.
  • the available block buffer (ABB) 772 contains a copy ofthe entries in the ABL 610 immediately following the previous ABL fill operation. It is in effect a backup copy ofthe ABL just after an ABL fill operation..
  • the erased block buffer (EBB) 774 contains erased block addresses which have been previously transferred either from MAP sectors 780 or from the CBB list 776 (described below), and which are available for transfer to the ABL 610 during an ABL fill operation.
  • the cleared block buffer (CBB) 776 contains addresses of erased blocks which have been transferred from the CBL 740 during a CBL empty operation and which will be subsequently transferred to MAP sectors 780 or to the EBB list
  • Each ofthe MAP sectors 780 contains a bitmap structure referred to as
  • the MAP uses one bit for each metablock in flash memory, which is used to indicate the erase status of each block. Bits corresponding to block addresses listed in the ABL, CBL, or erased block lists in the EBM sector are not set to the erased state in the MAP. [00282] Any block which does not contain valid data structures and which is not designated as an erased block within the MAP, erased block lists, ABL or CBL is never used by the block allocation algorithm and is therefore inaccessible for storage of host or control data structures. This provides a simple mechanism for excluding . blocks with defective locations from the accessible flash memory address space.
  • the hierarchy shown in FIG. 18 allows erased block records to be managed efficiently and provides full security ofthe block address lists stored in the controller's RAM. Erased block entries are exchanged between these block address lists and one or more MAP sectors 780, on an infrequent basis. These lists may be reconstructed during system initialization after a power-down, via information in the erased block lists and address translation tables stored in sectors in flash memory, and limited scanning of a small number of referenced data blocks in flash memory.
  • the algorithms adopted for updating the hierarchy of erased metablock records results in erased blocks being allocated for use in an order which interleaves bursts of blocks in address order from the MAP block 750 with bursts of block addresses from the CBL 740 which reflect the order blocks were updated by the host.
  • a single MAP sector can provide a bitmap for all metablocks in the system. In this case, erased blocks are always allocated for use in address order as recorded in this MAP sector.
  • the ABL 610 is a list with address entries for erased metablocks which may be allocated for use, and metablocks which have recently been allocated as data update blocks.
  • the actual number of block addresses in the ABL lies between maximum and minimum limits, which are system design variables.
  • the number of ABL entries formatted during manufacturing is a function ofthe card type and capacity.
  • the number of entries in the ABL may be reduced near the end of life ofthe system, as the number of available erased blocks is reduced by failure of blocks during life. For example, after a fill operation, entries in the ABL may designate blocks available for the following purposes. Entries for Partially written data update blocks with one entry per block, not exceeding a system limit for a maximum of concurrently opened update blocks. Between one to twenty entries for Erased blocks for allocation as data update blocks. Four entries for erased blocks for allocation as control blocks.
  • ABL 610 As the ABL 610 becomes depleted through allocations, it will need to be refilled. An operation to fill the ABL occurs during a control write operation. This is triggered when a block must be allocated, but the ABL contains insufficient erased block entries available for allocation as a data update block, or for some other control data update block. During a control write, the ABL fill operation is concurrent with a GAT update operation.
  • ABL entries with attributes of closed data update blocks are retained, unless an entry for the block is being written in the concurrent GAT update operation, in which case the entry is removed from the ABL.
  • the ABL is compacted to remove gaps created by removal of entries, maintaining the order of entries.
  • the ABL is completely filled by appending the next available entries from the EBB list.
  • the ABB list is over- written with the current entries in the ABL.
  • the CBL is a list of erased block addresses in controller RAM with the same limitation on the number of erased block entries as the ABL.
  • An operation to empty the CBL occurs during a control write operation. It is therefore concurrent with an ABL fill / GAT update operations, or CBI block write operations.
  • entries are removed from the CBL 740 and written to the CBB list 776.
  • MAP sectors 780 and the EBM sectors 760 may occur periodically during a control write operation, when the EBB list 774 is empty. If all erased metablocks in the system are recorded in the EBM sector 760, no MAP sector 780 exists and no MAP exchange is performed. During a MAP exchange operation, a MAP sector feeding the EBB 774 with erased blocks is regarded as a source MAP sector 782. Conversely, a MAP sector receiving erased blocks from the CBB 776 is regarded as a destination MAP sector 784. If only one MAP sector exists, it acts as both source and destination MAP sector, as defined below.
  • a source MAP sector is selected, on the basis ofan incremental pointer.
  • a destination MAP sector is selected, on the basis ofthe block address in the first CBB entry that is not in the source MAP sector.
  • the destination MAP sector is updated, as defined by relevant entries in the CBB, and the entries are removed from the CBB.
  • the updated destination MAP sector is written in the MAP block, unless no separate source MAP sector exists.
  • the source MAP sector is updated, as defined by relevant entries in the CBB, and the entries are removed from the CBB.
  • the EBB is filled to the extent possible with erased block addresses defined from the source MAP sector.
  • the updated source MAP sector is written in the MAP block.
  • An updated EBM sector is written in the MAP block.
  • FIG. 18 shows the distribution and flow ofthe control and directory information between the various lists.
  • operations to move entries between elements ofthe lists or to change the attributes of entries, identified in FIG. 18 as [A] to [O], are as follows.
  • the logical to physical address translation module 140 shown in FIG. 2 performs a logical to physical address translation. Except for those logical groups that have recently been updated, the bulk ofthe translation could be performed using the group address table (GAT) residing in the flash memory 200 or the GAT cache in controller RAM 130. Address translations for the recently updated logical groups will require looking up address lists for update blocks which reside mainly in controller RAM 130. The process for logical to physical address translation for a logical sector address is therefore dependent on the type of block associated with the logical group within which the sector is located. The types of blocks are: intact block, sequential data update block, chaotic data update block, closed data update block.
  • GAT group address table
  • FIG. 19 is a flow chart showing the process of logical to physical address translation. Essentially, the corresponding metablock and the physical sector is located by using the logical sector address first to lookup the various update directories such as the open update block list and the close update block list. Ifthe associated metablock is not part of an update process, then directory information is provided by the GAT.
  • the logical to physical address translation includes the following steps:
  • STEP 800 A logical sector address is given.
  • STEP 810 Look up given logical address in the open update blocks list 614 (see FIGs. 15 and 18) in controller RAM. If lookup fails, proceed to STEP 820, otherwise proceed to STEP 830.
  • STEP 820 Look up given logical address in the closed update block list 616. If lookup fails, the given logical address is not part of any update process; proceed to STEP 870 for GAT address translation. Otherwise proceed to STEP 860 for closed update block address translation.
  • STEP 830 Ifthe update block containing the given logical address is sequential, proceed to STEP 840 for sequential update block address translation. Otherwise proceed 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 the metablock address using chaotic update block address translation. Proceed to STEP 880.
  • STEP 860 Obtain the metablock address using closed update block address translation. Proceed to STEP 880.
  • STEP 870 Obtain the metablock address using group address table
  • STEP 880 Convert the Metablock Address to a physical address. The translation method depends on whether the metablock has been relinked.
  • STEP 890 Physical sector address obtained.
  • Sequential Update Block Address Translation (STEP 840) [00305] Address translation for a target logical sector address in a logical group associated with a sequential update block can be accomplished directly from information in the open update block list 614 (FIGs. 15 and 18), as follows.
  • the metablock address appropriate to the target logical sector is read from the list.
  • the sector address within the metablock is determined from the appropriate "page tag" field.
  • the address translation sequence for a target logical sector address in a logical group associated with a chaotic update block is as follows.
  • address translation may be accomplished directly from its position in this list.
  • the most recently written sector in the CBI block contains, within its chaotic block data field, the physical address ofthe chaotic update block relevant to the target logical sector address. It also contains, within its indirect sector index field, the offset within the CBI block ofthe last written CBI sector relating to this chaotic update block (see FIGs. 16A-16E).
  • the direct sector index field for the most recently accessed chaotic update sub-group is cached in RAM, eliminating the need to perform the read at step 4 for repeated accesses to the same chaotic update block. 6.
  • the direct sector index field read at step 4 or step 5 identifies in turn the CBI sector relating to the logical sub-group containing the target logical sector address.
  • the chaotic block index entry for the target logical sector address is read from the CBI sector identified in step 6.
  • the most recently read chaotic block index field may be cached in controller RAM, eliminating the need to perform the reads at step 4 and step 7 for repeated accesses to the same logical sub-group.
  • the chaotic block index entry defines the location ofthe target logical sector either in the chaotic update block or in the associated original block. If the valid copy ofthe target logical sector is in the original block, it is located by use of the original metablock and page tag information.
  • Address translation for a target logical sector address in a logical group associated with a closed update block can be accomplished directly from information in the closed block update list (see FIGs. 18), as follows.
  • the metablock address assigned to the target logical group is read from the list.
  • the sector address within the metablock is determined from the "page tag" field in the list.
  • the ranges ofthe available GAT caches in RAM are evaluated to determine if an entry for the target logical group is contained in a GAT cache.
  • the GAT cache contains full group address information, including both metablock address and page tag, allowing translation ofthe target logical sector address.
  • the GAT index must be read for the target GAT block, to identify the location ofthe GAT sector relating to the target logical group address.
  • the GAT index for the last accessed GAT block is held in controller RAM, and may be accessed without need to read a sector from flash memory.
  • a list of metablock addresses for every GAT block, and the number of sectors written in each GAT block, is held in controller RAM. If the required GAT index is not available at step 4, it may therefore be read immediately from flash memory.
  • the GAT sector relating to the target logical group address is read from the sector location in the GAT block defined by the GAT index obtained at step 4 or step 6.
  • a GAT cache is updated with the subdivision ofthe sector containing the target entry.
  • the target sector address is obtained from the metablock address and "page tag" fields within the target GAT entry.
  • the relevant LT sector is read from the BLM block, to determine the erase block address for the target sector address. Otherwise, the erase block address is determined directly from the metablock address.
  • FIG. 20 illustrates the hierarchy ofthe operations performed on control data structures in the course ofthe operation ofthe memory management.
  • Data Update Management Operations act on the various lists that reside in RAM.
  • Control write operations act on the various control data sectors and dedicated blocks in flash memory and also exchange data with the lists in RAM.
  • v [00311]
  • Data update management operations are performed in RAM on the
  • the ABL is updated when an erased block is allocated as an update block or a control block, or when an update block is closed.
  • the CBL is updated when a control block is erased or when an entry for a closed update block is written to the GAT.
  • the update chaotic sector list is updated when a sector is written to a chaotic update block.
  • a control write operation causes information from control data structures in RAM to be written to control data structures in flash memory, with consequent update of other supporting control data structures in flash memory and RAM, if necessary. It is triggered either when the ABL contains no further entries for erased blocks to be allocated as update blocks, or when the CBI block is rewritten.
  • the ABL fill operation, the CBL empty operation and the EBM sector update operation are performed during every control write operation.
  • the MAP block containing the EBM sector becomes full, valid EBM and MAP sectors are copied to an allocated erased block, and the previous MAP block is erased.
  • a CBI sector is written, as described earlier, after certain chaotic sector write operations. When the CBI block becomes full, valid CBI sectors are copied to an allocated erased block, and the previous CBI block is erased.
  • a MAP exchange operation is performed when there are no further erased block entries in the EBB list in the EBM sector.
  • a MAP Address (MAP A) sector which records the current address of the MAP block, is written in a dedicated MAPA block on each occasion the MAP block is rewritten.
  • MAPA A MAP Address
  • the valid MAPA sector is copied to an allocated erased block, and the previous MAPA block is erased.
  • a Boot sector is written in a current Boot block on each occasion the
  • MAPA block is rewritten.
  • the valid Boot sector is copied from the current version o the Boot block to the backup version, which then becomes the current version.
  • the previous current version is erased and becomes the backup version, and the valid Boot sector is written back to it.
  • each plane has its own set of sense amplifiers as part of read and program circuits to service in parallel a corresponding page of memory cells that spans the plane.
  • sense amplifiers as part of read and program circuits to service in parallel a corresponding page of memory cells that spans the plane.
  • any intervening gaps from the last programmed memory unit to the next available plane-aligned memory unit are padded accordingly with the current versions of logical units.
  • the padding is accomplished by filling in a gap with current versions ofthe logical units that follow logically from the last programmed logical unit, and with current versions ofthe logical units that precede logically from the logical unit stored in the next available plane-aligned memory unit.
  • each memory unit across each plane is either updated or padded with the latest versions.
  • the logical units will be in logical sequential order without the need for further rea ⁇ angement.
  • This scheme reduces the time for consolidation of a chaotic block by allowing on-plane rearrangement ofthe latest versions ofthe logical units of a logical group and avoiding having to gather the latest versions from different memory planes. This is of benefit where the performance specification for the host interface defines a maximum latency for completion of a sector write operation by the memory system.
  • FIG. 21 illustrates a memory array constituted from multiple memory planes.
  • the memory planes could- be from the same memory chip or from multiple memory chips.
  • Each plane 910 has its own set of read and program circuits 912 to service a page 914 of memory cells in parallel. Without loss of generality, in the example shown, the memory array has four planes operating in parallel.
  • a logical unit is a minimum unit of access by a host system.
  • a logical unit is a sector of size 512 bytes.
  • a page is a maximum unit of parallel read or program in a plane.
  • a logical page contains one or more logical units. Therefore, when combining multiple planes, a maximum aggregated unit of parallel read or program could be regarded as a metapage of memory cells, where the metapage is constituted by a page from each ofthe multiple planes.
  • a metapage such as MP ⁇ has four pages, one from each ofthe planes, P0, PI, P2 and P3, storing in parallel logical pages LP ⁇ , LP;, LP ⁇ , LP 5 .
  • the read and write performance ofthe memory is increased four fold as compared to operating only in one plane.
  • the memory anay is further organized into metablocks such as MB ⁇ ,
  • a metablock such as MB ⁇ is constituted from multiple memory locations, for storing logical pages 914 of data, such as LP ⁇ — P ⁇ -i-
  • the logical pages in a metablock are distributed over the four planes P0, PI, P2 and P3 in a predetermined sequence according to the order they are filled in the metablock. For example, when the logical pages are filled in logically sequential order, the planes are visited in cyclic order with the first page in the first plane, the second page in the second plane, etc. After the last plane is reached, the filling returns cyclically to start from the first plane again in the next metapage. In this way, a contiguous run of logical pages can be accessed in parallel when all planes are operated in parallel.
  • the memory operations in each memory plane are perfonned by the set of read/write circuits 912.
  • Data in and out of each ofthe read/write circuits is transfened through a data bus 930 under the control of a controller 920.
  • a buffer 922 in the controller 920 helps to buffer the transfer of data via the data bus 930.
  • the data is first read out from the second plane by the controller and then transfened to the first plane via the data bus and the buffer.
  • transfer of data between two different bit lines also requires the data to be exchanged through the data bus 920.
  • a metapage is formed by multiple logical pages, one in each plane.
  • Each logical page may consist of one or more logical units.
  • the block is then said to be "dirty" and a garbage collection operation will ignore the dirty logical units but collect the latest version of each individual logical units and re-record them in logically sequential order in one or more new blocks.
  • the dirty block is then erased and recycled.
  • the updated logical unit When the updated logical unit is recorded in the next unused location in a block, it will generally not be recorded in the same memory plane as its previous versions.
  • a garbage collection operation such as a consolidation or compaction, the latest version of a logical unit would be re-recorded in the same plane as the original to maintain the original order. However, performance would degrade ifthe latest version has to be retrieved from another plane.
  • an original logical unit of a first block stored in a given plane is to be updated
  • provisions are made to keep the updated logical unit in the same plane as the original. This is accomplished by recording the updated logical unit to the next available location of a second block but in the same plane.
  • any intervening gaps from the last programmed memory unit to the next available plane-aligned memory unit are padded (i.e., filled in by copying) with the cu ⁇ ent versions of logical units in the same relative location as the original logical units in the original block.)
  • FIG. 22A is a flow diagram illustrating a method of update with plane alignment, according to a general implementation ofthe invention.
  • STEP 950 In a nonvolatile memory organized into blocks, each block partitioned into memory units that are erasable together, each memory unit for storing a logical unit of data.
  • STEP 952 Constituting the memory from multiple memory planes, each plane having a set of sensing circuits for servicing a memory page in parallel, said memory page containing one or more memory unit.
  • STEP 954 Storing a first version of logical units among memory units of a first block according to a first order, each first version logical unit being stored within one ofthe memory planes.
  • STEP 956 Storing subsequent versions of logical units to a second block according to a second order different from the first, each subsequent version being stored in a next available memory unit in the same plane as the first version, such that all versions of a logical unit are accessible from the same plane by the same set of sensing circuits.
  • FIG. 22B illustrates a prefe ⁇ ed embodiment ofthe step of storing updates in the flow diagram shown in FIG. 22A.
  • STEP 956' includes STEP 957, STEP 958 and STEP 959.
  • STEP 957 Partitioning each block into metapages, each metapage being constituted from a page of each plane. This step can be performed prior to any ofthe storing steps.
  • STEP 958 Storing subsequent versions of logical units to a second block according to a second order different from the first, each subsequent version being storing in a next available memory unit having identical offset in a metapage as that ofthe first version
  • STEP 959 Concu ⁇ ently with storing subsequent versions of logical units, padding metapage by metapage any unused memory units preceding said next available memory unit by copying cu ⁇ ent versions of logical units according to the first order.
  • FIG. 23 A illustrates an example of logical units being written in sequential order to a sequential update block without regard to plane alignment.
  • the example shows each logical page being the size of a logical sector, such as LS0, LSI, ...
  • each block such as MBo can be regarded as partitioned into metapages MPo, MP l3 ..., with each metapage, such as MPo containing four sectors such as LS0, LSI, LS2 and LS3, respectively from the planes P0, PI, P2 and P3. Therefore the block is filled in logical units of sector by sector in cyclic order in planes PO, Pi, P2 and P3.
  • LS9-LS12 are being updated.
  • the updated data as LS9'-LS12' are recorded in the update block in a location directly following where the last write ends. It can be seen that the two host writes are such that the update data has been recorded in the update block in logically sequential order, namely LS5'-LS12'.
  • the update block is regarded as a sequential update block since it has been filled in logically sequential order.
  • the update data recorded in the update block obsoletes the conesponding ones in the original block.
  • the update logical sectors are being recorded in the update block according to the next available location but without regard to plane alignment.
  • the sector LS5 is originally recorded in plane PI, but the updated LS5' is now recorded in P0.
  • the other update sectors are all misaligned.
  • FIG. 23B illustrates an example of logical units being written in nonsequential order to a chaotic update block without regard to plane alignment.
  • LSIO'-LSI 1 ' are stored in a newly allocated update block.
  • the update block is a sequential one.
  • the logical sectors LS5-LS6 are updated as LS5'-LS6' and recorded in the update block in the location immediately following the last write. This converts the update block from a sequential to a chaotic one.
  • the logical sector LS10' is being updated again and is recorded in the next location ofthe update block as LS10".
  • LS10" in the update block supersedes LS10' in a previous recording which in turn supercedes
  • LSIO' is now the latest and only valid version for the logical sector
  • LS 10 All previous versions of LS 10 are now obsolete.
  • host write operation #5 the data in logical sector LS30 is being updated and recorded in the update block as LS30'.
  • logical units within a logical group can be written in a chaotic update block in any order and with any repetition.
  • the update logical sectors are being recorded in the update block according to the next available location but without regard to plane alignment.
  • the sector LS10 is originally recorded in plane P2 (i.e., MP , 3 rd plane), but the updated LS10' is now recorded in P0 (i.e., MP 0 ', 1 st plane).
  • the logical sector LS10' is updated again as LS10" and is placed in the next available location which turns out to be also in plane P0 (1 st plane in MPi').
  • FIG. 24A illustrates the sequential update example of FIG. 23 A with plane alignment and padding, according to a prefened embodiment ofthe invention.
  • the updated data as LS5'-LS8' are recorded in a newly allocated update block starting from the first available plane-aligned location.
  • LS5 is originally in PI, which is the 2 nd plane of a metapage. Therefore, LS5'-LS7' will be programmed in conesponding planes in the first available metapage, MPo, ofthe update block.
  • the gap ofthe unused 1 st plane in MPo' is being padded with a cunent version ofthe logical sector LS4 that precedes LS5 in the metapage ofthe original block.
  • the original LS4 is then treated as obsolete data.
  • the left over LS8' is then recorded in the 1 st plane ofthe next metapage, MPi', and is plane-aligned.
  • LS9' is recorded in the next available plane-aligned memory unit, which is the 2 nd plane of MPi'. In this case, no gaps result and no padding is necessary.
  • the update block is regarded as a sequential update block since it has been filled in logically sequential order. Furthermore, it is plane-aligned since each update logical unit is in the same plane as its original. Plane-aligned, Chaotic Update Block with Intervening Gaps
  • FIG. 24B illustrates the chaotic update example of FIG. 23B with plane alignment and with no padding, according to one prefened embodiment ofthe invention.
  • the updated logical sectors LSIO'-LSI 1 ' are stored in a newly allocated update block. Instead of storing them in the next available memory units, they are stored in the next available plane-aligned memory units. Since LS10' and LSI 1 ' are originally stored in planes P2 and P3 (3 rd and 4 th planes of MP 2 ofthe original block) respectively, the next available plane-aligned memory units would be that in the 3 rd and 4 th planes of MPo' ofthe update block. At this point, the update block is non-sequential, with the pages of metapage MPo' filled in the order UNFILLED, UNFILLED, LS10' and LSI 1 '.
  • LS5'-LS6' and recorded in the update block in next available plane-aligned location.
  • LS5' and LS6' being in the 2 nd (PI) and 3 rd (P2) planes or memory unit of MP, ofthe original block, would be programmed into conesponding planes in the next available metapage MPj ' in the update block. This leaves a preceding, unused 1 st plane in MP]'.
  • FIG. 24C illustrates the chaotic update example of FIG. 23B with plane alignment and padding, according to another prefe ⁇ ed embodiment ofthe invention.
  • MPi' and the first two planes of MP 2 ' are first padded with LS7 which follows the last programmed LS6' and the first two planes of MP 2 ' are padded with logical units preceding LS10, namely LS8 and LS9. This will obsoletes LS10' in MPo' and LS7-LS9 in the original block.
  • a gap is created consisting ofthe last plane in MP 2 ' and the first two planes in MP 3 '.
  • the last plane of MP ' is padded by LSI 1' which is the cunent version ofthe logical unit following the last written LS10" in the metapage MP 2 '.
  • the first two planes of MP 3 ' are padded by LS8 and LS9 respectively, as the logical units preceding LSIO'" in the metapage MP 3 '.
  • a metapage contains a cyclic run of pages from the individual planes. Since a metapage can be read or programmed in parallel, it is expedient to implement each host update with the granularity of a metapage. The padding, if any, is recorded together with the updated logical units, metapage by metapage.
  • padding is performed on unused memory units preceding the plane-aligned memory unit to which the update is to be programmed.
  • the action of any unused memory units following the last programmed memory unit is defened until the next host write.
  • any preceding unused memory units are padded within each metapage' s boundary. In other words, if a preceding gap straddles over two metapages, padding will performed on each metapage in a logically sequential order appropriate to each metapage, but without regard to continuity across the boundary. In the event of a consolidation ofthe block, the last written metapage, if partially written, will be completely filled by padding.
  • any partially filled metapage is fully padded before moving to the next metapage.
  • a physical page may contain one or more memory units. If each memory unit can store a sector of data, then a physical page may store one or more sectors.
  • Some memory architecture supports partial-page programming, in which by inhibiting programming of selected memory units within a page, selected logical units may be programmed individually at different times over multiple programming passes.
  • a logical group of logical units is stored in logically sequential order in an original block.
  • subsequent versions ofthe logical units are stored in an update block.
  • the logical units are stored chaotically (i.e., non-sequentially) in the update block, a garbage collection is eventually performed to collect the latest versions ofthe logical units among the original block and the update block and to consolidate them sequentially into a new original block.
  • the garbage collection operation will be more efficient if the updated versions of a given logical unit are all stored in the update block in alignment with its original version in the original block such that all versions are accessible by an identical set of sensing circuits.
  • FIG. 25 illusfrates an example memory organization in which each page contains two memory units for storing two logical units, such as two logical sectors.
  • the logical sectors are stored in logically sequential order, the logical sectors, LS0 and LSI are stored in the page P0, the logical sectors LS2 and LS3 are stored in the page PI, and the logical sectors LS4 and LS5 are stored in the page P3, etc. It will be seen that in this two-sector page, the first sector from the left has a page offset of "0", and the second sector has a page offset of
  • the updated logical sectors are recorded in an update block.
  • the logical sector LS2 resides in page P0 with offset "0" in the original block. If in a first write, if LS2 is updated to LS2', it will be stored in the first available location in the update block having the same page offset "0". This will be in the first memory unit ofthe page P0'. If in a second write, LS5 is update to LS5', it will be stored in the first available location in the update block having the same page offset "1". This will be in the second memory unit with offset "1" ofthe page PI '.
  • the unused memory units with offset "1" in P0' and offset "0" in PI' will first be padded by copying to them the latest versions ofthe logical sectors that will maintain logical sequential order at least within each page.
  • LS3 will be copied to the offset "1" location in P0' and LS4 to the offset "0" location in PI'.
  • LS2' is again updated to LS2"
  • it will be stored in offset "0" of P2' .
  • LS22 and LS23 are respectively updated to LS22' and LS23', they will be stored respectively in offsets "0" and "1” of P3'.
  • the unused memory unit with offset "1" in P2' is padded with LS3.
  • the unit of program may have the granularity of a metapage. Ifthe granularity of writing to a chaotic update block becomes a metapage, the entries in the CBI block described in connection with FIG. 16A and 16B, may relate to metapages instead of sectors. The increased granularity reduces the number of entries that must be recorded for a chaotic update block, and allows direct indices to be eliminated and a single CBI sector to be used per metablock.
  • FIG. 26A is similar to the memory structure of FIG. 21 except each page contains two sectors instead of one.
  • a metapage MPo now has each of its pages capable of storing two logical units of data. If each logical unit is a sector then logical sectors are stored sequentially in MPo with LS0 and LSI in plane P0, LS2 and LS3 in plane PI, etc.
  • FIG. 26B illustrates metablocks shown in FIG. 26A having memory units laid out in a schematic linear fashion. As compared to the single sector page of FIG.21, the logical sectors are stored cyclically among the four pages with two sectors in each page.
  • FIG. 27 illustrates an alternative scheme for plane alignment in an update block without padding logical units to be copied from one location to another.
  • the portions ofthe four planes that intersect with the update block may be regarded as four buffers that collect plane-aligned updated logical units received from a host.
  • Each logical unit received from the host is programmed without padding in the next available memory unit ofthe appropriate buffer.
  • a different number of logical units are likely to have been programmed in each plane, according to the sequence of logical unit addresses received from the host.
  • the chaotic update block MB' 1 may contain updated versions of all logical units of a logical metapage, such as for MP'o- It may also contain less than all logical units of a metapage, such as for MP'i. In the case of MP'i, the missing logical unit, LS 4 can be obtained from the conesponding original block MBo.
  • This alternative scheme is particularly efficient if the memory architecture supports parallel read of arbitrary logical page from each plane. In this way, all logical pages of a metapage can be read in a single parallel read operation even if the individual logical pages are not from the same row.
  • FIG. 28 illustrates a scheme in which when a program failure occurs in a defective block during a consolidation operation, the consolidation operation is repeated on another block.
  • Block 1 is an original block storing the complete logical units of a logical group in logically sequential order.
  • the original block contains sections A, B, C, and D, each storing a subgroup of logical units.
  • the newer versions ofthe logical units are recorded in an update block, namely, Block 2.
  • the updates could record the logical units in sequential or in non-sequential (chaotic) order.
  • the update block is closed to receiving further updates either because it is full or for some other reasons.
  • the update block (Block 2) is closed, the cunent versions ofthe logical units that reside either on the update block or the original block (Block 1) are consolidated onto. a new block (Block 3) to form a new original block for the logical group.
  • the example shows the update block containing the newer versions ofthe logical units in sections B and D.
  • the sections B and D are illustrated schematically in Block 2 not necessarily in the locations they are recorded but rather aligned to their original locations in Block 1.
  • One way of handling the program failure is to restart the consolidation process on a fresh block (Block 4).
  • Block 4 the sections A, B, C, D are copied onto Block 4, and the defective Block 3 is then discarded.
  • this would mean performing two consolidation operations in tandem, which may result in copying as much as two blocks full of logical umts.
  • FIG. 29 illustrates schematically, a host write operation with a timing or write latency that allows enough time to complete a write (update) operation as well as a consolidation operation.
  • the host write operation has a write latency, T , that will provide sufficient time for the completion of an update operation 972 of writing host data to an update block (FIG. 29(A)).
  • T write latency
  • a host write to an update block may trigger a consolidation operation.
  • the timing also allows for a consolidation operation 974 (FIG. 29(B)) in addition to the update operation 972.
  • having to restart the consolidation operation anew in response to a failed one may take too much time and exceed the specified write latency.
  • program failure in a block during a time-critical memory operation is handled by continuing the programming operation in a breakout block. Later, at a less critical time, the data recorded in the failed block prior to the interruption is transfened to another block, which could also be the breakout block. The failed block can then be discarded. In this way, when a defective block is encountered, it can be handled without loss of data and without exceeding a specified time limit by having to transfer the stored data in the defective block on the spot.
  • This e ⁇ or handling is especially critical for a garbage collection operation so that the entire operation need not be repeated on a fresh block during a critical time. Subsequently, at an opportune time, the data from the defective block can be salvaged by relocation to another block.
  • FIG. 30 illustrates a flow chart ofthe program failure handling according to a general scheme ofthe invention.
  • STEP 1002 Organizing a nonvolatile memory organized into blocks, each block partitioned into memory units that are erasable together, each memory unit for storing a logical unit of data.
  • STEP 1012 Storing a sequence of logical units of data in a first block.
  • STEP 1014 In response to a storing failure at the first block after storing a number of logical units, storing subsequent logical units in a second block serving as a breakout block for the first block.
  • STEP 1020 In response to a predefined event, transferring the logical units stored in the first block to a third block, wherem the third block may or may not be identical to the second block.
  • STEP 1022 Discarding the first block.
  • FIG. 31A illustrates one embodiment of program failure handling in which the third (final relocation) block is different from the second (breakout) block.
  • Phase I a sequence of logical units is being recorded on a first block. Ifthe logical units are from a host write, the first block may be regarded as an update block. Ifthe logical units are from a consolidation of compaction operation, the first block may be regarded as a relocation block. If at some point, a program failure is encountered in block 1, a second block acting as a breakout block is provisioned. The logical unit that failed to be recorded in block 1 and any subsequent logical units are recorded on the breakout block instead, hi this way, no additional time is required to replace the failed block 1 and the data residing on it.
  • a final Phase III the failed block 1 and the data residing on it are replaced by relocating the logical units to block 3, wliich serves as a relocation block.
  • the data in the failed block is salvaged and the failed block can then be discarded.
  • the final phase is timed so that it does not conflict with the timing of any contemporary memory operations.
  • FIG. 31B illustrates another embodiment of program failure handling in which the third (final relocation) block is the same as the second (breakout) block.
  • Phases I and LI are similar to the first embodiment shown in FIG. 31 A. However, in Phase ILL the logical units from the defective block 1 is relocated to the breakout block 2. This is expedient when the breakout block 2 has not been recorded with additional logical units other the original sequence ofthe previous write operation. In this way, a minimum of blocks is needed to store the logical units in question.
  • the program failure handling is especially critical during a consolidation operation.
  • a normal consolidation operation consolidates into a consolidation block the cunent versions of all logical units of a logical group residing among an original block and an update block.
  • another block acting as a breakout consolidation block will be provisioned to receive the consolidation ofthe remaining logical units.
  • no logical units need be copied more than once and the operation with exception handling can still be completed within a period specified for a normal consolidation operation.
  • the consolidation operation can be completed by consolidating all outstanding logical units ofthe group into the breakout block.
  • the opportune time will be during some other period outside the cunent host write operation when there is time to perform the consolidation.
  • One such opportune time is during another host write where there is an update but no associated consolidation operation.
  • the consolidation with the program failure handling can be regarded as being implemented in multiple phases.
  • a first phase the logical units are being consolidated into more than one block after a program failure occurs in order to avoid consolidating each logical unit more than once.
  • the final phase is completed at an opportune time, where the logical group is consolidated into one block, preferably by collecting all the logical units into the breakout consolidation block in sequential order.
  • FIG. 32A illustrates a flow chart of initial update operation that results in a consolidation operation.
  • STEP 1102 Organizing a nonvolatile memory organized into blocks, each block partitioned into memory units that are erasable together, each memory unit for storing a logical unit of data.
  • STEP 1104 Organizing data into a plurality of logical groups, each logical group being a group of logical units storable in a block.
  • STEP 1112 Receiving host data packaged in logical units.
  • STEP 1114 Creating an original block ofthe logical group by storing in a first block a first version of logical units ofthe logical group according to a first order.
  • STEP 1116 Creating an update block ofthe logical group by storing in a second block including subsequent versions of logical units ofthe logical group according to a second order.
  • STEP 1119 At some predefined event as described in earlier sections, a garbage collection is performed to collect the cunent versions ofthe logical units among the various blocks and re-record into a new block.
  • FTG. 32B illustrates a flow chart ofthe multiple phase consolidation operation, according to a prefened embodiment of the invention.
  • Phase I operation 1120 comprises of STEP 1122 and STEP 1124.
  • STEP 1122 Creating a consolidation block for the logical group by storing in a third block cu ⁇ ent versions of logical units ofthe logical group similar to the first order.
  • STEP 1124 hi response to a storing failure at the consolidation block, providing a breakout consolidation block by storing in a fourth block similar to the first order those logical units ofthe logical group absent from said third block.
  • Blocks 1 and 2 can be erased in order to free up space.
  • Block 2 can be immediately released to the EBL (Erased Block List, see FIG. 18) and reused.
  • Block 1 can only be released if this is a Closed Update block and there is another block the conesponding GAT entry points to.
  • Block 3 becomes the original block for the logical group and Block 4 becomes a replacement sequential update block for Block 3.
  • the memory device After Phase I consolidation has completed, the memory device so signals the host by releasing the BUSY signal.
  • Phase II, the intermediate operation 1130, may take place the before
  • Phase III consolidation operation 1140 A number of possible scenarios are possible as given by any one of STEPs 1132, 1134 and 1136.
  • STEP 1132 Either in a write operation ofthe logical group, writing to the fourth block (breakout consolidation block) as the update block.
  • Block 4 which is the breakout consolidation block and which has up to now assumed the role of a replacement sequential update block, will be used as a normal update block. Depending on the host writes, it may remain sequential or be turned into a chaotic state. As an update block it will at some point trigger closure of another chaotic block as described in an earlier prefened embodiment.
  • STEP 1134 Or in a read operation, reading the memory with the third block as the original block for the logical group and the fourth block as the update block.
  • Block 3 as the logical group's original block, and logical units from sections C and D will be read from Block 4 as the group's update block.
  • Section A and B can be read from Block 3
  • there will be no access to the page where programming failed and there will be no access to the unwritten portion thereafter.
  • the GAT directory in flash memory has not yet been updated and still points to Block 1 as the original block, no data will be read from it, and the block itself has been erased earlier.
  • logical units from the sections A and B will be read from Block 3 as the logical group original block, and logical units from the sections C and D will be read from Block 4 as the group's sequential update block.
  • STEP 1136 Or in a power-up initialization, re-identifying any ofthe first to fourth blocks by scanning their contents.
  • Block 3 Another possibility for the intermediate phase is for the memory device to be powered off and then re-started.
  • the blocks in the Allocation Block List (erase pool's blocks to be used, see FIG. 15 and FIG. 18) are scanned to identify the defective consolidation block that has become a special status original block (Block 3) and the associated sequential update block (Block 4) for the logical group.
  • the flag in the first logical unit ofthe breakout block (Block 4) will indicate that the associated block is an original block (Block 3) that has suffered a program enor.
  • Block 3 can then be located.
  • a flag is programmed into the first logical unit in the breakout consolidation block (Block 4). This helps to indicate the special status of the logical group: i.e., it has been consolidated into two blocks, i.e., Block 3 and Block 4.
  • An alternative to using a flag to identify the logical group with a defective block is to detect the block as defective during scanning by the property that it is not full as an original block should be (unless the enor happened in the last page, and the last page does not have ECC enor). Also, depending on implementation, there could be an information record about the failed group/block stored in a control data structure in flash memory, not just a flag in the header area ofthe first sector written to the breakout consolidation block (Block 4).
  • STEP 1144 Thereafter, for the first case, operating the memory with the consolidated fourth block as the original block for the logical group, and for the second case, operating the memory with the fifth block as the original block for the logical group.
  • Phase III The final consolidation in Phase III is executed whenever there is opportunity without violating any specified time limits.
  • a prefened occasion is to "piggy-back" on the next host write slot when there is an update operation to another logical group with no accompanying consolidation operation. Ifthe host write to another logical group triggers a garbage collection itself, then the Phase III consolidation will be defened.
  • FIG. 33 illustrates an example timing ofthe first and final phases of the multiple phase consolidation operation.
  • the host write latency is the width of each host write time slot with a period Tw- Host Write 1 is a simple update, and the cunent versions of a first set of logical units in the logical group LGi are recorded on an associated update block.
  • FIG. 34A and FIG. 34B illustrate respectively a first case for Phase I and Phase III operations ofthe multiple phase consolidation as applied to the examples in FIG. 28 and FIG.31.
  • FIG. 34 A illustrates the case where the breakout consolidation block is not used as an update block but more as a consolidation block whose consolidation operation has been interrupted.
  • FIG. 34A refers to the Host Write #2 shown in FIG. 33 in which the host writes updates of logical units belonging to the logical group LGi and during which the operation also triggers a consolidation of blocks associated with another logical group LG .
  • Block 2 is in the same manner as the example in FIG. 28.
  • the consolidation block (Block 3) is found to have a defect at the point of consolidating the logical units in section C.
  • the present multiple phase scheme continues the consolidation operation onto a newly provisioned block (Block 4) that serves as a breakout consolidation block.
  • a Phase I consolidation operation logical units in sections A and B have been consolidated in the consolidation block (Block 3).
  • the remaining logical units in sections C and D are copied sequentially into the breakout consolidation block (Block 4).
  • the breakout consolidation block (Block 4) is not used to record any update data outside the consolidation operation and remains a breakout consolidation block that has yet to be completed.
  • Blocks 1 and 2 Since the data in Blocks 1 and 2 are now fully contained in the other blocks (Blocks 3 and 4), they can be erased for recycling.
  • the address table (GAT) is updated to point to Block 3 as an original block for the logical group.
  • the directory information (in the ACL, see FIG. 15 and FIG. 18) for the update block is also updated to point to Block 4, which has become the sequential update block for the logical group (e.g., LG 4 ).
  • FIG. 34B illustrates the third and final phase ofthe multiple phase consolidation started in FIG. 34A.
  • Phase III consolidation is executed at an opportune time after the first phase, such as during a subsequent host write that does not trigger an accompanying consolidation operation.
  • FIG. 34B refers to the time slot in which Host Write #4 shown in FIG. 33 takes place. During that period the host write updates logical units belonging to the logical group LG 2 without triggering another additional consolidation operation.
  • the surplus time in the time slot can expediently be utilized for Phase III operation for completion ofthe consolidation of logical group LG .
  • the operation consolidates all outstanding logical units of LG 4 not already in the breakout block into the breakout block.
  • the wrap-around scheme of logical units in a block and the use of a page tag see FIG. 3 A
  • the cunent versions ofthe outstanding logical units to be copied are preferable obtained from Block 3, since it is already in consolidated form, but may also be collected from Block 1 and Block 2 if they have not been erased.
  • Block 4 it will be designated as the original block for the logical group and the appropriate directory (e.g., GAT, see FIG. 17A) will be updated accordingly.
  • the failed physical block (Block 3) is marked as bad and mapped out.
  • the other blocks, Block 1 and Block 2 are erased and recycled.
  • the updates to LG 2 are recorded in the update block associated with LG 2 .
  • FIG. 35 A and FIG. 35B illustrate respectively a second case for Phase
  • FIG. 35A illustrates the case where the breakout consolidation block is maintained as an update block to receive host writes rather than as a consolidation block. This is applicable to a host write that for example updates the logical group LG 4 , and in the process also triggers a consolidation in the same logical group.
  • the consolidation of Block 1 and Block 2 onto Block 3 proceeds until it encounters a program failure while processing section C.
  • the consolidation then continues on a breakout consolidation block (Block 4).
  • the breakout block is maintained as an update block.
  • This case is particular applicable to a scenario where the host write updates a logical group and triggers a consolidation ofthe same logical group. In the example, this enables recording ofthe host updates for the logical group LG 4 to be recorded in the breakout consolidation block (Block 4) instead of recorded to a new update block.
  • the update block previously the breakout consolidation block (Block 4
  • Block 4 can be sequential or become chaotic depending on the host data recorded to it.
  • Block 4 has turned chaotic since a subsequent newer version of logical units in section C renders the earlier ones in Block 4 obsolete.
  • Block 3 will be regarded as the original block for LG 4
  • Block 4 will be the associated update block.
  • FIG. 35B illustrates the third and final phase ofthe multiple phase consolidation started in FIG. 35A for the second case.
  • Phase III consolidation is executed at an opportune time after the first - phase, such as during a subsequent host write that does not trigger an accompanying consolidation operation. During that period the host write updates logical units belonging to a logical group without triggering a consolidation operation. Thus, the surplus time in the time slot can expediently be utilized for Phase III operation for the completion ofthe consolidation of logical group LG 4 .
  • the logical group LG 4 is then garbage collected from Blocks 3 and 4 to a new consolidation block (Block 5).
  • Block 3 then gets marked as bad, Block 4 is recycled and the new consolidation block (Block 5) will become the new original block for the logical group LG 4 .
  • the other blocks, Block 1 and Block 2 are also erased and recycled.
  • FIGs. 31A, 31B, 34A, 34B, 35A and 35B apply to a prefened block management system with each physical block (metablock) storing only logical units belonging to the same logical group.
  • the invention is equally applicable to other block management systems where there is no logical group to physical block alignment, such as those disclosed in W0 03/027828 and W0 00/49488.
  • FIGs. 36A, 36B and 36C Some examples of implementing the phased program failure handling method to these other system are illustrated in FIGs. 36A, 36B and 36C.
  • FIG. 36A illustrates the phased program enor handling method as applied to the scenario when the host write triggers the closure ofan update block, and the update block is sequential.
  • the closure in this case is done by copying the remaining valid data (B and C) from the original Block 2 to the sequential update Block 3.
  • the portion C will be programmed to the reserved Block 4.
  • the new host data can then be written to a new update Block 5 (not shown).
  • the phases II and III ofthe method are the same, as for the case of chaotic block closure.
  • FIG. 36B illustrates the phased program enor handling method as it can be applied to a (Partial Blocks system) in the case ofan Update of Update blocks.
  • the logical group is stored in original Block 1, and other update blocks.
  • Consolidation operation includes copying ofthe data to one ofthe update blocks (to be chosen according to some rule, Block 3 on the diagram) from the original Block 1 and the other update Block 2.
  • Block 3 was already partially written.
  • FIG. 36C illustrates the phased program enor handling the garbage collection operation, or clean-up in a memory block management system that does not support a logical group mapped to a metablock.
  • a memory block management (Cyclic Storage) system is described in WO 03/027828 Al.
  • the distinctive feature of the Cyclic Storage system is that blocks were not allocated for a single logical group. There is support of multiple logical grouping for control data in a metablock.
  • the garbage collection involved taking the valid data sectors, which may have no relationship (random logical block addresses), from a partially obsolete block to the Relocation block, which can have some data there already. Ifthe Relocation block gets full during the operation, another one would be opened.
  • a CBI sector is used to store an index that keeps track ofthe locations ofthe logical sectors stored randomly in a chaotic or non-sequential update block.
  • an index ofthe logical units in an update block buffered in RAM is periodically stored in the non- volatile memory.
  • the index is stored in a block dedicated for storing indices.
  • the index is stored in the update block.
  • the index is stored in the header of each logical unit.
  • the logical units written after the last index update but before the next have their indexing information stored in the header of each logical unit. In this way, after a power interruption, the location of recently written logical units can be determined without have to perform a scanning during initialization, hi yet another aspect, a block is managed as partially sequential and partially nonsequential, directed to more than one logical subgroup.
  • the list of recently written sectors for the logical group is held in controller RAM.
  • the list is lost ifthe memory device suffers a power shut-down, but can be rebuilt by scanning the updated blocks on an initialization after a power turn-on.
  • FIG. 37 illustrates an example of a schedule of writing of a CBI sector to an associated chaotic index sector block after every N sector writes ofthe same logical group.
  • the example shows two logical groups LG 3 and LGn undergoing concu ⁇ ent updates, initially, the logical sectors of LG 3 were stored in sequential order in an original block. Updates ofthe logical sectors in the group are recorded on an associated update block in the order dictated by a host. The example shows a chaotic update sequence. Concu ⁇ ently, the logical group LGn is also being updated in similar manner at its update block. After every logical sector write, its position in the update block is kept in controller RAM.
  • the cu ⁇ ent index ofthe logical sectors in the update block is written in the form of a chaotic index sector to the non- volatile chaotic index sector block.
  • the predetermined triggering events occur after every N writes, where N maybe 3.
  • the examples given have been with the logical unit of data being a sector, those skilled in the art will recognize that the logical unit could be some other aggregate, such as a page containing a sector or a group of sectors. Also, the first page in a sequential block does not need to be logical page 0, since a page tag wrap around could be in place.
  • the index pointer is stored in a dedicated CBI sector in the chaotic update block itself after every N writes thereto.
  • This scheme is similar to the embodiment described earlier where the index is also stored in a CBI sector. The difference is in that earlier embodiment, the CBI sector is recorded in a CBI sector block and not in the update block itself.
  • FIGs. 37A, 37B and 37C respectively illustrate the state ofan update block also storing CBI sectors at three different stages.
  • FIG. 38A illustrates an update block up to the point when a CBI sector is recorded in it after a predetermined number of writes.
  • the host after the host has written logical sectors 0-3 sequentially, it then issues a command to write another version of logical sector 1 again, thus breaking the contiguous sequence of data writes.
  • the update block is then converted to a chaotic update block with the implementation of a chaotic block indexing carried in a CBI sector.
  • the CBI is an index that contains indices for all logical sectors ofthe chaotic block.
  • the 0 th entry indicates the offset in the update block for the 0 th logical sector and similarly, the nth entry indicates the offset for the nth logical sector.
  • the CBI sector is written to the next available location in the update block. To avoid frequent flash access, the CBI sector is written after every N data sector writes, hi this example, N is 4. Ifthe power is lost at this point, the last written sector will be the CBI sector and the block will be regarded as a chaotic update block.
  • FIG. 38B illustrates the update block of FIG. 38 A to have logical sectors 1, 2 and 4 further recorded to it after the index sector.
  • the newer versions of logical sectors 1 and 2 supersede the older versions previous recorded in the update block.
  • the last written sector needs to be found first, and then up to N sectors need to be scanned in order to find the last written index sector and the recently written data sectors.
  • FIG. 38C illustrates the update block of FIG. 38B having another logical sector written to trigger the next recording ofan index sector.
  • the same update block after another N (N 4) sector writes records another cunent version of the CBI sector.
  • the advantage of this scheme is that it eliminates the need for a separate CBI block. At the same time it does not have to wony about whether the overhead data area of a physical flash sector is large enough to accommodate the number of entries required for an index to valid sectors in the chaotic update block.
  • the chaotic update block then contains all the information and no external data is needed for address translation. This results in a simpler algorithm with reduced number of control updates related to CBI block compaction and shorter cascade control update. (See earlier sections on CBI block management.)
  • an index of logical units recorded in a block is stored in nonvolatile memory after every N writes, and cu ⁇ ent infonnation about the logical units ofthe intermediate writes is stored in an overhead portion of each logical unit written.
  • information about the logical units written since last index update can be obtained quickly from the overhead portion ofthe last written logical unit in the block, without having to scan the block.
  • FIG. 39A illusfrates an intermediate index for the intermediate writes being stored in a header of each data sector in the chaotic update block
  • FIG. 39B illustrates an example of storing an intermediate index for the intermediate writes in the header of each sector written.
  • a CBI index is written as the next sector in the block.
  • logical sectors LS'i, LS' 2 and LS 4 are written to the block.
  • the header will store an intermediate index for the logical units written since the last CBI index.
  • the header in LS' will have an index giving the offset (i.e., location) ofthe last CBI index as well as that of LS' ! .
  • the header in LS 4 will have an index giving the offset ofthe last CBI index as well as that of LS'i and LS' 2 .
  • the last written data sector always contains information about up to N last written pages (i.e., up to the last written CBI sector). Whenever, there was a power restart, the last CBI index provides indexing information for logical units written prior to the CBI index sector, and indexing information for subsequent logical units written is found in the header ofthe last written data sector. This has the advantage of eliminating, on initialization, the need to scan the block for those subsequently written sectors to determine their locations.
  • the entire CBI index is stored in the overhead portion of each data sector in a chaotic update block.
  • FIG. 40 illustrates the information in the chaotic index field being stored in a header of each data sector in the chaotic update block.
  • the information capacity of a sector header is limited, and so the range of indices provided by any single sector may be designed to be part of a hierarchical indexing scheme. For example, sectors within a specific plane ofthe memory may provide indexing to only sectors within that plane. Also, the range of logical addresses may be divided into a number of sub-ranges, to allow an indirect indexing scheme to be adopted. For example, if sectors with 64 logical addresses may be stored in a plane, each sector may have 3 fields for sector offset values, each field able to store 4 offset values. The first field defines the physical offset for the last written sector within the logical offset ranges 0 - 15, 15 - 31, 32 - 47, and 48 - 63.
  • the second field defines physical offset values for 4 sub-ranges of 4 sectors each, within the range to which it relates.
  • the third field defines physical offset values for 4 sectors within the sub-range to which it relates.
  • the physical offset of a logical sector within the chaotic update block may therefore be determined by reading indirect offset values from up to 3 sectors.
  • the logical group is allowed to have up to 4 partially or fully chaotic sub-groups, and a minimum of 4 sub-groups will remain fully sequential. If a Chaotic block has 4 valid CBI sectors, associated with it, and a host writes a sector outside the ranges of these CBI sectors (chaotic sub groups), then the Chaotic Logical group should be. consolidated and closed. But, this is very unlikely to happen, as in real applications, the hosts do not need more than 4 chaotic ranges of 256 sectors (sub-groups) within a range of 2048 sectors (logical group). As a result, in normal case garbage collection time is also unaffected, but the limiting rule guards form an extreme case of too long garbage collection which may trigger host's time out.
  • Data stored in memory device may become corrupted due to power interruption or a certain memory location becoming defective. If a defect in the memory block is encountered, the data is relocated to a different block and the defective block is discarded. If the e ⁇ or is not extensive, it can be co ⁇ ected on-the- fly by an enor conection code (ECC) that is saved with the data. However, there are times when the ECC is unable to co ⁇ ect the corrupted data. For example, when the number of enor bits exceed the capacity ofthe ECC. This is unacceptable for critical data such as the control data associated with the memory block management system.
  • ECC enor conection code
  • Example of control data are the directory information and block allocation information associated with the memory block management system, such as those described in connection with FIG. 20. As described earlier, the control data is maintained in both high speed RAM and the slower nonvolatile memory blocks.
  • control data is maintained in RAM with periodic control writes to update equivalent information stored in a nonvolatile metablock. In this way, the control data is stored in nonvolatile, but slower flash memory without the need for frequent access.
  • a hierarchy of control data structures such as GAT, CBI,
  • MAP, and MAPA shown in FIG. 20 is maintained in flash memory.
  • a control write operation causes information from control data structures in RAM to update equivalent control data structures in flash memory.
  • critical data such as some or all ofthe control data is guaranteed an extra level of reliability if it is maintained in duplicates.
  • the duplication is performed in a manner that for multi-state memory system employing a two-pass programming technique for successively programming the multi-bits ofthe same set of memory cells, any programming enor in the second pass will not corrupt the data established by the first pass.
  • the duplication also helps with detection of write aborts, detection of misdetection (i.e., both copies have good ECC but data are different), and adds an extra level of reliability.
  • Several techniques of data duplication are contemplated.
  • a subsequent programming pass avoids programming the memory cells storing at least one ofthe two copies. In this way, at least one ofthe two copies will be unaffected in the event the subsequent programming pass aborts before completion and corrupts the data ofthe earlier pass.
  • the two copies of a given data are stored in two different blocks where at most one ofthe two copies have its memory cells programmed in a subsequent programming pass.
  • the two copies of a given data is programmed into a multi-state memory in a binary programming mode, so that no further programming on the programmed memory cells will take place.
  • a fault-tolerant code is employ to code the multiple memory states such that data established by an earlier programming pass is insensitive to enors in subsequent programming pass.
  • a complication of data duplication arises in multi-state memory in which each memory cell stores more than one bit of data.
  • a 4-state memory can be represented by two bits.
  • One existing technique is to use a 2-pass programming to program such memory.
  • a first bit (lower page bit) is programmed by a first pass.
  • the same cell is programmed in a second pass to represent a desired second bit (upper page bit).
  • the memory state representation ofthe first bit is made to depend on the value ofthe second bit. Therefore, during the programming ofthe second bit, if an enor occurs during to power interruptions or other causes and results in an inconect memory state, the value ofthe first bit could also be corrupted.
  • FIG. 41 A illustrates threshold voltage distributions of a 4-state memory anay when each- memory cell stores two bits of data.
  • the four distributions represent the population ofthe four memory states, "U”, “X”, “Y” and “Z". Before a memory cell is programmed it is first erased into its "U” or "unwritten” state. The memory states “X”, “Y” and “Z” are progressively reached as the memory cell get increasingly programmed.
  • FIG. 41B illustrates an existing, 2-pass programming scheme using a
  • Gray code The four states can be represented by two bits, a lower page bit and an upper page bit, such as (Upper page bit, Lower page bit).
  • a page of cells to be programmed in parallel there are really two logical pages: a logical lower page and a logical upper page.
  • a first programming pass only programs the logical lower page.
  • a subsequent, second programming pass on the same page of cells will program the logical upper page without resetting the logical lower page.
  • a commonly used code is the Gray code where only one bit changes when transiting to an adjacent state. Therefore, this code has the advantage of placing less demand on e ⁇ or co ⁇ ection since only one bit is involved.
  • a second pass programming is performed to store the bits ofthe logical upper page. Only those cells needing an upper page bit value of "0" will be programmed.
  • the cells in the page are either in the logical state (1, 1) or (1, 0).
  • the lower bit value of "0" or "1" need be distinguished.
  • the memory cell in question is programmed to the memory state "Y”.
  • the memory cell in question is programmed to the memory state "Z”. In this way, during, read, by determining the memory state programmed in a cell, both the lower page bit and the upper page bit can be decoded.
  • the Gray-code, 2-pass programming scheme can become a problem when the second-pass programming is enoneous.
  • the programming ofthe upper page bit to "0" while the lower bit is at “1” will cause the transition from (1, 1) to (0, 1).
  • the memory cell may end up in one ofthe transition memory state, say "X”.
  • "X" will be decoded as the logical state (1, 0). This gives inconect results for both the upper and lower bits, since it should have been (0, 1).
  • the programming is interrupted when "Y” is reached, it would conespond to (0, 0). While the upper bit is now co ⁇ ect, the lower bit is still wrong.
  • FIG. 42 illustrates a way of safe guarding critical data by saving each sector in duplicates. For example, the sectors A, B, C, and D are saved in duplicate copies. If there is corruption ofthe data in one sector copy, then the other one can be read instead.
  • FIG. 43 illustrates the non-robustness in which duplicate sectors are typically saved in a multi-state memory.
  • the multi-state page actually includes a logical lower page and a logical upper page that are respectively programmed in two passes.
  • the page is four sector wide.
  • sector A and its duplicate will be concu ⁇ ently programmed in the logical lower page and similarly for sector B and its duplicate.
  • the sectors C, C will be concunently programmed and likewise for the sectors D, D. If a program abort occurs in the middle ofthe programming of sectors C, C, the sectors A, A, in the lower page will be corrupted.
  • the lower page sectors are first read and buffered prior to the upper page programming, they may be unrecoverable if corrupted. Thus, saving two copies of critical data concunently such as sectors A, A can not prevent both of them being corrupted by a subsequent problematic saving of sectors C, C in its upper page.
  • FIG. 44A illustrates one embodiment of saving staggered duplicate copies of critical data to a multi-state memory.
  • the lower page is saved in the same manner as in FIG. 43, namely, sectors A, A and sectors B, B.
  • the sectors C and D are interleaved with their duplicates as C, D, C, D.
  • the two copies of sector C can be programmed concunently and likewise for the two copies of sector D.
  • the program of say, the two sectors C gets aborted, it can corrupt the lower page only in terms of one copy of sector A and one copy of sector B. The other copies remain unaffected.
  • there are two copies of critical data stored in a first pass they should not be subject to a subsequent second pass programming simultaneously.
  • FIG. 44B illustrates another embodiment of saving duplicate copies of critical data only to the logical upper page of a multi-state memory.
  • the data in the lower page is not used.
  • the critical data and its duplicates, such as sectors A, A and sectors B, B are saved to the logical upper page only. In this way, if there is a program abort, the critical data could be rewritten in another logical upper page, while any corruption to the lower page data would be immaterial.
  • This solution basically uses half the storage capacity of each multi-state page.
  • FIG. 44C illustrates yet another embodiment of saving duplicate copies of critical data in binary mode of a multi-state memory.
  • each memory cell is programmed in a binary mode where its threshold range is only divided into two regions.
  • This solution also uses half the storage capacity of each multi-state page. Operating a multi-state memory in binary mode is described in U.S. Patent No. 6,456,528 Bl, the entire disclosure of which is incorporated herein by reference.
  • FIG. 45 illustrates yet another embodiment of saving duplicate copies of critical data concu ⁇ ently to two different metablocks. If one ofthe blocks becomes unavailable, the data can be read from the other one.
  • the critical data are contained in sectors A, B, C, D and E, F, G, H, and I, J, K, L. Each sector is saved in duplicates.
  • the two copies will be written concunently to two differently blocks, Block 0 and Block 1. If one copy is written to a logical lower page, the other copy will be written to a logical upper page. In this way, there will always be a copy programmed to a logical upper page. If a program abort occurs, it can be reprogrammed to another logical upper page. At the same time, ifthe lower page is corrupted, there will always be another upper page copy in the other block.
  • FIG. 46B illustrates yet another embodiment of saving duplicate copies of critical data concu ⁇ ently by the use of a fault-tolerant code.
  • FIG. 46A is similar to FIG. 41 A in illustrating threshold voltage distributions of a 4-state memory anay and is shown as a reference for FIG. 46B.
  • the fault-tolerant code essentially avoids any upper page programming to transit through any intermediate states.
  • the first pass lower page programming has the logical state (1, 1) transits to (1, 0) as represented by programming the erased memory state "U” to "Y”.
  • the second pass programming ofthe upper page bit to "0" ifthe lower page bit is at "1", the logical state (1, 1) transits to (0, 1) as represented by programming the erased memory state "U” to "X".
  • FIG. 47 is a table showing the possible states ofthe two copies of data, and the validity ofthe data.
  • first copy has no ECC e ⁇ or, but the second has ECC e ⁇ or, then it could mean that the programming was interrupted in the middle ofthe second copy programming.
  • the first copy contains valid data.
  • the second copy data is not trustworthy even ifthe enor is coupledble.
  • first copy has no ECC e ⁇ or and the second is empty (erased), then it could mean that the programming was interrupted after the end of first copy programming but before the commencement ofthe second copy.
  • the first copy contains valid data.
  • first copy has ECC enor and the second is empty (erased), then it could mean that the programming was interrupted in the middle of first copy programming.
  • the first copy may contain invalid data even if e ⁇ or is coupledble.
  • the copy read is preferably alternate between the two copies.
  • the controller when the controller reads a confrol data, it reads, say, Copy 1, the next confrol read (any control read) should be from Copy 2, then Copy 1 again etc.
  • ECC checked integrity
  • the two copies will be read and checked for integrity (ECC checked) regularly. It reduces the risk of not detecting in time enors caused by deteriorating data retention. For example, if only Copy 1 is normally read, then Copy 2 may gradually deteriorate to the level where the enor is no longer be salvaged by ECC, and the 2nd copy can no longer be used.
  • the block management system maintains a set of control data in flash memory during its operation.
  • This set of control data is stored in the metablocks similar to host data.
  • the control data itself will be block managed and will be subject to updates and therefore garbage collection operations.
  • a MAP block when a MAP block gets full it also triggers a MAP block relocation and a MAPA Block (if exist, otherwise BOOT block points directly to MAP) update.
  • a MAPA block when a MAPA block gets full, it also triggers a MAPA block relocation, a BOOT Block update and a MAP update.
  • a BOOT Block gets full, it triggers an active BOOT Block relocation to another BOOT Block.
  • each control data block ofthe hierarchy has its own periodicity in terms of getting filled and being relocated. If each proceeds normally, there will be times when the phases of a large number ofthe blocks will line up and trigger a massive relocation or garbage collection involving all those blocks at the same time. Relocation of many control blocks will take a long time and should be avoided as some hosts do not tolerate long delays caused by such massive control operations.
  • a "control garbage collection" or preemptive relocation of a memory block is implemented to avoid the situation where a large number of update blocks all happen to need relocation concunently. For example, this situation can happen when updating control data used for controlling the operation ofthe block management system.
  • a hierarchy of control data type can exist with varying degree of update frequencies, resulting in their associated update blocks requiring garbage collection or relocation at different rates. There will be certain times that the garbage collection operations of more than one confrol data types coincide. In the extreme situation, the relocation phases ofthe update blocks for all control data types could line up, resulting in all ofthe update blocks requiring relocation at the same time.
  • the margin in advance ofthe block absolutely having to be relocated is a predetermined number of unwritten memory units before the block is totally full. Consideration is given to the margin being sufficient to precipitate relocation in advance ofthe block being totally filled, but without being unduly premature, resulting in wasted resources.
  • the predetermined number of unwritten memory units is between one and six memory units.
  • FIG. 48 illustrates a flow chart of preemptive relocation of memory block storing control data.
  • STEP 1202 Organizing a nonvolatile memory into blocks, each block partitioned into memory units that are erasable together.
  • STEP 1204 Maintaining different types of data.
  • STEP 1206 Assigning a ranking to the different types of data.
  • STEP 1208 Storing updates of said different types of data among a plurality of blocks so that each block is storing essentially data ofthe same type.
  • STEP 1210 In response to a block having less than a predetermined number of empty memory units and having data type of highest rank among said plurality of blocks, relocating cu ⁇ ent updates of data of said block to another block. Go to STEP 1208 unless interrupted.
  • preemptive relocations are normally done when there is no user data garbage collection taking place. In the worst case, when every host write triggers user data garbage collection, but there is enough time for voluntary relocation of one block, preemptive relocation can be performed one confrol block at a time.

Abstract

Dans une mémoire non volatile avec un système de gestion de bloc qui prend en charge la mise à jour des blocs avec des unités logiques non séquentielles, un index des unités logiques dans un bloc de mise à jour non séquentielle est mis en mémoire tampon RAM et stocké périodiquement dans la mémoire non volatile. Dans un mode de réalisation, l'index est stocké dans un bloc destiné au stockage d'index. Dans un autre mode de réalisation, l'index est stocké dans le bloc de mise à jour lui-même. Dans un autre mode de réalisation, l'index est stocké dans l'en-tête de chaque unité logique. Dans un autre aspect, les informations d'indexage des unités logiques écrites après la dernière mise à jour d'index, mais avant la prochaine, sont stockées dans l'en-tête de chaque unité logique. Ainsi, après une panne du système d'alimentation, l'emplacement d'unités logiques écrites récemment peut être déterminé sans qu'il faille procéder à un balayage lors de l'initialisation. Dans un autre aspect, un bloc est géré en partie de façon séquentielle et en partie de façon non séquentielle, et dirigé vers plusieurs sous-groupes logiques.
PCT/US2004/043762 2003-12-30 2004-12-21 Memoire non volatile et procede avec gestion de bloc de mise a jour non sequentielle WO2005066793A2 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2006547516A JP4851344B2 (ja) 2003-12-30 2004-12-21 不揮発性メモリおよび非順次更新ブロック管理を伴う方法
EP04815767A EP1704484A2 (fr) 2003-12-30 2004-12-21 Memoire non volatile et procede avec gestion de bloc de mise a jour non sequentielle

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US10/750,155 2003-12-30
US10/750,155 US7139864B2 (en) 2003-12-30 2003-12-30 Non-volatile memory and method with block management system
US10/917,867 US20050141312A1 (en) 2003-12-30 2004-08-13 Non-volatile memory and method with non-sequential update block management
US10/917,867 2004-08-13

Publications (2)

Publication Number Publication Date
WO2005066793A2 true WO2005066793A2 (fr) 2005-07-21
WO2005066793A3 WO2005066793A3 (fr) 2006-06-15

Family

ID=34753194

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/US2004/043762 WO2005066793A2 (fr) 2003-12-30 2004-12-21 Memoire non volatile et procede avec gestion de bloc de mise a jour non sequentielle

Country Status (4)

Country Link
EP (1) EP1704484A2 (fr)
KR (1) KR20070007264A (fr)
TW (1) TWI288328B (fr)
WO (1) WO2005066793A2 (fr)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007019197A2 (fr) * 2005-08-03 2007-02-15 Sandisk Corporation Gestion de blocs memoire dans lesquels les fichiers de donnees sont directement stockes
WO2007019174A2 (fr) * 2005-08-03 2007-02-15 Sandisk Corporation Operations sur des donnees dans une memoire flash recourant a un stockage direct de fichiers de donnees
WO2008082996A1 (fr) 2006-12-26 2008-07-10 Sandisk Corporation Système de fichiers de données directes comprenant une interface d'espace adresse logique continu
JP2009503735A (ja) * 2005-08-03 2009-01-29 サンディスク コーポレイション フラッシュメモリシステムのデータ記憶容量の解放
JP2009503745A (ja) * 2005-08-03 2009-01-29 サンディスク コーポレイション ブロック管理を伴う不揮発性メモリ
US7739444B2 (en) 2006-12-26 2010-06-15 Sandisk Corporation System using a direct data file system with a continuous logical address space interface
US7747837B2 (en) 2005-12-21 2010-06-29 Sandisk Corporation Method and system for accessing non-volatile storage devices
US7769978B2 (en) 2005-12-21 2010-08-03 Sandisk Corporation Method and system for accessing non-volatile storage devices
US7793068B2 (en) 2005-12-21 2010-09-07 Sandisk Corporation Dual mode access for non-volatile storage devices
US7913061B2 (en) 2003-12-30 2011-03-22 Sandisk Corporation Non-volatile memory and method with memory planes alignment
US7917686B2 (en) 2006-12-26 2011-03-29 Sandisk Corporation Host system with direct data file interface configurability
JP4773342B2 (ja) * 2004-04-28 2011-09-14 パナソニック株式会社 不揮発性記憶装置及びデータ書込み方法
US8046522B2 (en) 2006-12-26 2011-10-25 SanDisk Technologies, Inc. Use of a direct data file system with a continuous logical address space interface and control of file address storage in logical blocks
US8166267B2 (en) 2006-12-26 2012-04-24 Sandisk Technologies Inc. Managing a LBA interface in a direct data file memory system
US8209461B2 (en) 2006-12-26 2012-06-26 Sandisk Technologies Inc. Configuration of host LBA interface with flash memory
US8656084B2 (en) 2009-02-27 2014-02-18 Samsung Electronics Co., Ltd. User device including flash memory storing index and index accessing method thereof
US9104315B2 (en) 2005-02-04 2015-08-11 Sandisk Technologies Inc. Systems and methods for a mass data storage system having a file-based interface to a host and a non-file-based interface to secondary storage
US9396103B2 (en) 2007-06-08 2016-07-19 Sandisk Technologies Llc Method and system for storage address re-mapping for a memory device
US9817593B1 (en) 2016-07-11 2017-11-14 Sandisk Technologies Llc Block management in non-volatile memory system with non-blocking control sync system

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100922389B1 (ko) 2007-07-04 2009-10-19 삼성전자주식회사 플래시 메모리를 위한 색인 스킴
KR100907477B1 (ko) * 2007-07-16 2009-07-10 한양대학교 산학협력단 플래시 메모리에 저장된 데이터의 인덱스 정보 관리 장치및 방법
JP2009211192A (ja) * 2008-02-29 2009-09-17 Toshiba Corp メモリシステム
KR101543246B1 (ko) 2009-04-24 2015-08-11 삼성전자주식회사 데이터 저장 장치의 동작 방법 및 이에 따른 데이터 저장 장치
TWI417889B (zh) * 2009-12-30 2013-12-01 Silicon Motion Inc 快閃記憶體之寫入逾時控制方法及其記憶裝置
TWI424438B (zh) * 2009-12-30 2014-01-21 Asolid Technology Co Ltd 非揮發性記憶體控制裝置及其多階重新排序方法
TWI604307B (zh) 2014-10-31 2017-11-01 慧榮科技股份有限公司 資料儲存裝置以及快閃記憶體控制方法
US10261876B2 (en) * 2016-11-08 2019-04-16 Micron Technology, Inc. Memory management
CN108959280B (zh) * 2017-05-17 2021-08-06 中国移动通信有限公司研究院 一种存储虚拟资源关联信息的方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5742934A (en) * 1995-09-13 1998-04-21 Mitsubishi Denki Kabushiki Kaisha Flash solid state disk card with selective use of an address conversion table depending on logical and physical sector numbers
EP0887732A1 (fr) * 1997-06-20 1998-12-30 Sony Corporation Méthode de traitement de données de gestion et support d'enregistrement
EP0977121A2 (fr) * 1998-07-28 2000-02-02 Sony Corporation Mémoire non volatile, apparail et procéde d'enregistrement
US20030110343A1 (en) * 2001-12-11 2003-06-12 Mitsubishi Denki Kabushiki Kaisha File system including non-volatile semiconductor memory device having a plurality of banks

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6771536B2 (en) * 2002-02-27 2004-08-03 Sandisk Corporation Operating techniques for reducing program and read disturbs of a non-volatile memory

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5742934A (en) * 1995-09-13 1998-04-21 Mitsubishi Denki Kabushiki Kaisha Flash solid state disk card with selective use of an address conversion table depending on logical and physical sector numbers
EP0887732A1 (fr) * 1997-06-20 1998-12-30 Sony Corporation Méthode de traitement de données de gestion et support d'enregistrement
EP0977121A2 (fr) * 1998-07-28 2000-02-02 Sony Corporation Mémoire non volatile, apparail et procéde d'enregistrement
US20030110343A1 (en) * 2001-12-11 2003-06-12 Mitsubishi Denki Kabushiki Kaisha File system including non-volatile semiconductor memory device having a plurality of banks

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP1704484A2 *

Cited By (34)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8239643B2 (en) 2003-12-30 2012-08-07 Sandisk Technologies Inc. Non-volatile memory and method with control data management
US7913061B2 (en) 2003-12-30 2011-03-22 Sandisk Corporation Non-volatile memory and method with memory planes alignment
US7945759B2 (en) 2003-12-30 2011-05-17 Sandisk Corporation Non-volatile memory and method with phased program failure handling
US8621177B2 (en) 2003-12-30 2013-12-31 Sandisk Corporation Non-volatile memory and method with phased program failure handling
US8103841B2 (en) 2003-12-30 2012-01-24 Sandisk Technologies Inc. Non-volatile memory and method with non-sequential update block management
US8051257B2 (en) 2003-12-30 2011-11-01 Sandisk Technologies Inc. Non-volatile memory and method with control data management
JP4773342B2 (ja) * 2004-04-28 2011-09-14 パナソニック株式会社 不揮発性記憶装置及びデータ書込み方法
US10126959B2 (en) 2005-02-04 2018-11-13 Sandisk Technologies Llc Systems and methods for a mass data storage system having a file-based interface to a host and a non-file-based interface to secondary storage
US9104315B2 (en) 2005-02-04 2015-08-11 Sandisk Technologies Inc. Systems and methods for a mass data storage system having a file-based interface to a host and a non-file-based interface to secondary storage
JP2009503735A (ja) * 2005-08-03 2009-01-29 サンディスク コーポレイション フラッシュメモリシステムのデータ記憶容量の解放
KR101378031B1 (ko) * 2005-08-03 2014-03-27 샌디스크 테크놀로지스, 인코포레이티드 데이터 파일을 직접적으로 저장하는 메모리 블록의 관리
WO2007019220A2 (fr) * 2005-08-03 2007-02-15 Sandisk Corporation Consolidation de donnees et recuperation d'espace memoire dans des memoires a stockage direct des fichiers de donnees
WO2007019220A3 (fr) * 2005-08-03 2007-06-07 Sandisk Corp Consolidation de donnees et recuperation d'espace memoire dans des memoires a stockage direct des fichiers de donnees
KR101377147B1 (ko) * 2005-08-03 2014-03-24 샌디스크 테크놀로지스, 인코포레이티드 직접적인 데이터 파일 저장 메모리들에서의 데이터 통합 및가비지 수집
WO2007019197A3 (fr) * 2005-08-03 2007-09-07 Sandisk Corp Gestion de blocs memoire dans lesquels les fichiers de donnees sont directement stockes
WO2007019197A2 (fr) * 2005-08-03 2007-02-15 Sandisk Corporation Gestion de blocs memoire dans lesquels les fichiers de donnees sont directement stockes
WO2007019174A3 (fr) * 2005-08-03 2007-07-19 Sandisk Corp Operations sur des donnees dans une memoire flash recourant a un stockage direct de fichiers de donnees
WO2007019174A2 (fr) * 2005-08-03 2007-02-15 Sandisk Corporation Operations sur des donnees dans une memoire flash recourant a un stockage direct de fichiers de donnees
JP2009503745A (ja) * 2005-08-03 2009-01-29 サンディスク コーポレイション ブロック管理を伴う不揮発性メモリ
JP2009503746A (ja) * 2005-08-03 2009-01-29 サンディスク コーポレイション 直接データファイル記憶メモリにおけるデータ統合およびガベージコレクション
US7793068B2 (en) 2005-12-21 2010-09-07 Sandisk Corporation Dual mode access for non-volatile storage devices
US7747837B2 (en) 2005-12-21 2010-06-29 Sandisk Corporation Method and system for accessing non-volatile storage devices
US7769978B2 (en) 2005-12-21 2010-08-03 Sandisk Corporation Method and system for accessing non-volatile storage devices
US8209516B2 (en) 2005-12-21 2012-06-26 Sandisk Technologies Inc. Method and system for dual mode access for storage devices
KR101464199B1 (ko) 2006-12-26 2014-11-21 샌디스크 테크놀로지스, 인코포레이티드 연속 논리 주소 공간 인터페이스를 구비한 다이렉트 데이터 파일 시스템을 사용하는 방법
US8046522B2 (en) 2006-12-26 2011-10-25 SanDisk Technologies, Inc. Use of a direct data file system with a continuous logical address space interface and control of file address storage in logical blocks
US7917686B2 (en) 2006-12-26 2011-03-29 Sandisk Corporation Host system with direct data file interface configurability
US7739444B2 (en) 2006-12-26 2010-06-15 Sandisk Corporation System using a direct data file system with a continuous logical address space interface
WO2008082996A1 (fr) 2006-12-26 2008-07-10 Sandisk Corporation Système de fichiers de données directes comprenant une interface d'espace adresse logique continu
US8209461B2 (en) 2006-12-26 2012-06-26 Sandisk Technologies Inc. Configuration of host LBA interface with flash memory
US8166267B2 (en) 2006-12-26 2012-04-24 Sandisk Technologies Inc. Managing a LBA interface in a direct data file memory system
US9396103B2 (en) 2007-06-08 2016-07-19 Sandisk Technologies Llc Method and system for storage address re-mapping for a memory device
US8656084B2 (en) 2009-02-27 2014-02-18 Samsung Electronics Co., Ltd. User device including flash memory storing index and index accessing method thereof
US9817593B1 (en) 2016-07-11 2017-11-14 Sandisk Technologies Llc Block management in non-volatile memory system with non-blocking control sync system

Also Published As

Publication number Publication date
EP1704484A2 (fr) 2006-09-27
TWI288328B (en) 2007-10-11
KR20070007264A (ko) 2007-01-15
WO2005066793A3 (fr) 2006-06-15
TW200601043A (en) 2006-01-01

Similar Documents

Publication Publication Date Title
US8239643B2 (en) Non-volatile memory and method with control data management
EP1758027B1 (fr) Mémoire non volatile et procédé avec gestion de données de commande
WO2005066793A2 (fr) Memoire non volatile et procede avec gestion de bloc de mise a jour non sequentielle
US20080091871A1 (en) Non-volatile memory with worst-case control data management
US20080091901A1 (en) Method for non-volatile memory with worst-case control data management
EP1704483A2 (fr) Memoire non volatile et procede avec alignement de plans de memoire
WO2008033952A2 (fr) Mémoire non volatile et procédé de mise en oeuvre de règles de remplacement de blocs de mise à jour basées sur des classes
WO2008045839A1 (fr) Mémoire rémanente avec gestion de données de contrôle pour pire éventualité et procédés pour celle-ci
EP1704479B1 (fr) Memoire remanente et procede de gestion de defaillance de programme de gestion progressive
JP2007519996A6 (ja) 不揮発性メモリおよびフェーズ化されたプログラム障害処理を伴う方法

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A2

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS JP KE KG KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A2

Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2006547516

Country of ref document: JP

Ref document number: 1020067013317

Country of ref document: KR

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

WWE Wipo information: entry into national phase

Ref document number: 2004815767

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 200480042129.3

Country of ref document: CN

WWP Wipo information: published in national office

Ref document number: 2004815767

Country of ref document: EP

WWP Wipo information: published in national office

Ref document number: 1020067013317

Country of ref document: KR