The present invention relates to non-volatile memory devices, and more particularly to zone-based non-volatile memory file system.
Non-volatile memory (NVM) such as flash memory has become popular in the past decade. NVM is a specific type of electrically erasable programmable read-only memory (EEPROM) that is electrically erased and programmed (written) in large blocks of data. NVM has been used in memory cards and flash drives for storage and transfer of data between computers and other digital electronic products. More recently, NVM has been used as a storage device referred to as solid state drive (SSD) that may replace hard disk drive in a computer.
Flash memory stores information in an array of memory cells made from floating-gate transistors. Originally each cell in a flash memory device stores one bit of information either 0 or 1, hence, the device is referred to as single-level-cell (SLC) flash memory device. Some newer flash memory, known as multi-level cell (MLC) flash memory devices, can store more than one bit per cell by choosing between multiple levels of electrical charge being applied to the floating gates. It is advantageous that MLC devices can hold more information than SLC devices can. However, there are problems associated with the MLC devices, one of the problems is that the MLC devices has much lower reliability, for example, the MLC flash memory has an 10 times less endurance level than the SLC flash memory. In other words, data programming (writing) and data erasure to a MLC based flash memory device is limited.
In order to prolong the reliability, a MLC flash memory file system is used for managing the endurance. The MLC flash memory is organized in a number of data blocks and each data blocks is further partitioned into a number of data pages. In a MLC flash memory, data programming operations are only allowed to be performed in a block basis if only data block usage is tracked. In other words, if the data programming operation needs to write data to a particular data block that contains previous written data, a new data block will be required such that the previous data and the new data can be programming together. This data programming methodology results into faster wearing of the MLC flash memory due to frequent reprogramming or writing of data blocks. To overcome this problem, a data page usage may be tracked such that a sequential data page may be written into a same data block. Only out-of-sequence data programming of data pages within a data block would require a new data block. Although this solution may reduce certain unnecessary data programming to new data blocks, a new shortcoming is created. Because the number of data pages is much larger than that of the data blocks (e.g., 4096 or 8192 times larger), hardware (e.g., memory in MLC controller) requirement becomes much higher. This translates to higher costs or not even be feasible due to size requirement.
Given the foregoing drawbacks, problems and limitations of the prior art, it would be desirable to have an improved non-volatile memory file system.
This section is for the purpose of summarizing some aspects of the present invention and to briefly introduce some preferred embodiments. Simplifications or omissions in this section as well as in the abstract and the title herein may be made to avoid obscuring the purpose of the section. Such simplifications or omissions are not intended to limit the scope of the present invention.
Improved reliability high endurance non-volatile memory device with zone-based non-volatile memory file system is disclosed. According to one aspect of the present invention, a zone-based non-volatile memory file system comprises a two-level address mapping scheme: a first level address mapping scheme maps linear or logic address received from a host computer system to a virtual zone address; and a second level address mapping scheme maps the virtual zone address to a physical zone address of a non-volatile memory module. The virtual zone address represents a number of zones each including a plurality of data sectors.
Zone is configured as a unit smaller than data blocks and larger than data pages. As a result, a non-volatile memory module is divided into a plurality of data blocks, each block to zones, then data pages and finally data sectors. Each of the data sector consists of 512-byte of data. The ratio between zone and the sectors is predefined by physical characteristics of the non-volatile memory module. A tracking table is used for correlating the virtual zone address with the physical zone address.
According to another aspect, zone-based flash memory comprises hardware or logic shared by zones, for example, control interface logic of a zone-base non-volatile memory contain a set of word-lines and bit-lines for each zone.
According to yet another aspect, a data cache subsystem is used for prolonging the life cycle of a non-volatile memory device that includes both SLC and MLC flash memory. In a zone-based non-volatile memory file system, the data cache subsystem uses zone as a unit.
As the zone is configured to be smaller than the data block, the requirement of storing a zone is smaller than a data block. Since each zone must be erased or reprogrammed individually, it is more beneficial to use zones in the data cache subsystem.
According to an exemplary embodiment of the present invention, a zone-based non-volatile memory device (NVMD) includes at least the following: at least one non-volatile memory (NVM) module configured as a data storage of a host computer system as the NVMD is adapted to the host, wherein the at least one NVM module is partitioned into a plurality of data blocks, each of the data blocks is further divided into a plurality of zones, each of the zones comprises a plurality of data pages and each of the data pages includes at least one data sector; a NVM controller configured to manage one or more data read, data write and data erasure operations of the at least one NVM module, wherein the data write operation comprises writing data into any empty zone of the plurality of zones, while data erasure operation comprises erasing data of entire zone in a zone by zone basis; and an input/output (I/O) interface, coupling to the NVM controller, configured for receiving incoming data from the host and configured for sending outgoing data to the host.
Objects, features, and advantages of the present invention will become apparent upon examining the following detailed description of an embodiment thereof, taken in conjunction with the attached drawings.
These and other features, aspects, and advantages of the present invention will be better understood with regard to the following description, appended claims, and accompanying drawings as follows:
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will become obvious to those skilled in the art that the present invention may be practiced without these specific details. The descriptions and representations herein are the common means used by those experienced or skilled in the art to most effectively convey the substance of their work to others skilled in the art. In other instances, well-known methods, procedures, components, and circuitry have not been described in detail to avoid unnecessarily obscuring aspects of the present invention.
Embodiments of the present invention are discussed herein with reference to
The card body 101a is configured for providing electrical and mechanical connection for the processing unit 102, the NVM module 103, the I/O interface circuit 105, and all of the optional components. The card body 101a may comprise a printed circuit board (PCB) or an equivalent substrate such that all of the components as integrated circuits may be mounted thereon. The substrate may be manufactured using surface mount technology (SMT) or chip on board (COB) technology.
The processing unit 102 and the I/O interface circuit 105 are collectively configured to provide various control functions (e.g., data read, write and erase transactions) of the NVM module 103. The processing unit 102 may also be a standalone microprocessor or microcontroller, for example, an 8051, 8052 or 80286 Intel® microprocessor, or ARM®, MIPS® or other equivalent digital signal processors. The processing unit 102 and the I/O interface circuit 105 may be made in a single integrated circuit, for application specific integrated circuit (ASIC).
The at least one NVM module 103 may comprise one or more NVM chips or integrated circuits. The flash memory chips may be single-level cell (SLC) or multi-level cell (MLC) based. In SLC flash memory, each cell holds one bit of information, while more than one bit (e.g., 2, 4 or more bits) are stored in a MLC flash memory cell.
The fingerprint sensor 104 is mounted on the card body 101a, and is adapted to scan a fingerprint of a user of the first electronic NVM device 100 to generate fingerprint scan data. Details of the fingerprint sensor 104 are shown and described in a co-inventor's U.S. Pat. No. 7,257,714, entitled “Electronic Data Storage Medium with Fingerprint Verification Capability” issued on Aug. 14, 2007, the entire content of which is incorporated herein by reference.
The NVM module 103 stores, in a known manner therein, one or more data files, a reference password, and the fingerprint reference data obtained by scanning a fingerprint of one or more authorized users of the first NVM device. Only authorized users can access the stored data files. The data file can be a picture file, a text file or any other file. Since the electronic data storage compares fingerprint scan data obtained by scanning a fingerprint of a user of the device with the fingerprint reference data in the memory device to verify if the user is the assigned user, the electronic data storage can only be used by the assigned user so as to reduce the risks involved when the electronic data storage is stolen or misplaced.
The input/output interface circuit 105 is mounted on the card body 101a, and can be activated so as to establish communication with the host computing device 109 by way of an appropriate socket via an interface bus 113. The input/output interface circuit 105 may include circuits and control logic associated with a Universal Serial Bus (USB) interface structure that is connectable to an associated socket connected to or mounted on the host computing device 109. The input/output interface circuit 105 may also be other interfaces including, but not limited to, Secure Digital (SD) interface circuit, Micro SD interface circuit, Multi-Media Card (MMC) interface circuit, Compact Flash (CF) interface circuit, Memory Stick (MS) interface circuit, PCI-Express interface circuit, a Integrated Drive Electronics (IDE) interface circuit, Serial Advanced Technology Attachment (SATA) interface circuit, external SATA, Radio Frequency Identification (RFID) interface circuit, fiber channel interface circuit, optical connection interface circuit.
The processing unit 102 is controlled by a software program module (e.g., a firmware (FW)), which may be stored partially in a ROM (not shown) such that processing unit 102 is operable selectively in: (1) a data programming or write mode, where the processing unit 102 activates the input/output interface circuit 105 to receive data from the host computing device 109 and/or the fingerprint reference data from fingerprint sensor 104 under the control of the host computing device 109, and store the data and/or the fingerprint reference data in the NVM module 103; (2) a data retrieving or read mode, where the processing unit 102 activates the input/output interface circuit 105 to transmit data stored in the NVM module 103 to the host computing device 109; or (3) a data resetting or erasing mode, where data in stale data blocks are erased or reset from the NVM module 103. In operation, host computing device 109 sends write and read data transfer requests to the first NVM device 100 via the interface bus 113, then the input/output interface circuit 105 to the processing unit 102, which in turn utilizes a NVM controller (not shown or embedded in the processing unit) to read from or write to the associated at least one NVM module 103. In one embodiment, for further security protection, the processing unit 102 automatically initiates an operation of the data resetting mode upon detecting a predefined time period has elapsed since the last authorized access of the data stored in the NVM module 103.
The optional power source 107 is mounted on the card body 101a, and is connected to the processing unit 102 and other associated units on card body 101a for supplying electrical power (to all card functions) thereto. The optional function key set 108, which is also mounted on the card body 101a, is connected to the processing unit 102, and is operable so as to initiate operation of processing unit 102 in a selected one of the programming, data retrieving and data resetting modes. The function key set 108 may be operable to provide an input password to the processing unit 102. The processing unit 102 compares the input password with the reference password stored in the NVM module 103, and initiates authorized operation of the first NVM device 100 upon verifying that the input password corresponds with the reference password. The optional display unit 106 is mounted on the card body 101a, and is connected to and controlled by the processing unit 102 for displaying data exchanged with the host computing device 109.
Shown in
Referring now to the drawings,
When the NVMD 130 is adapted to the host computer system 109, the I/O interface 132 is operable to ensure that data transfer between the host 109 and the at least one non-volatile memory module 138 through one of the industry standards including, but not limited to, Advanced Technology Attachment (ATA) or Parallel ATA (PATA), Serial ATA (SATA), Small Computer System Interface (SCSI), Universal Serial Bus (USB), Peripheral Component Interconnect (PCI) Express, ExpressCard, fiber channel Interface, optical connection interface circuit, Secure Digital. The CPU 133 comprises a general purpose processing unit (e.g., a standalone chip or a processor core embedded in a system on computer (SoC)) configured for executing instructions loaded on the main storage (e.g., main memory (not shown)). The NVM controller 134 is configured to manage data transfer operations between the host computer system 100 and the at least one non-volatile memory module 138. Types of the data transfer operations include data reading, writing (also known as programming) and erasing. The data transfer operations are initiated by the host 109. Each of the data transfer operations is accomplished with a logical address (e.g., logical sector address (LSA)) from the host 109 without any knowledge of the physical characteristics of the NVMD 130.
The data cache subsystem 136 comprises of volatile memory such as random access memory (e.g., dynamic random access memory (DRAM)) coupled to the CPU 133 and the NVM controller 134. The cache subsystem 136 is configured to hold or cache either incoming or outgoing data in data transfer operations to reduce number of data writing/programming operations directly to the at least one non-volatile memory module 138. The cache subsystem 136 includes one or more levels of cache (e.g., level one (L1) cache, level two (L2) cache, level three (L3) cache, etc.). The cache subsystem 136 may use one of the mapping schemes including direct mapping, fully associative and N-set (N-way) associative. N is a positive integer greater than one. According to one aspect, the cache subsystem 136 is configured to cover the entire range of logical address, which is mapped to physical address of the at least one non-volatile memory module 138.
Each of the at least one non-volatile memory module 138 may include at least one non-volatile memory chip (i.e., integrated circuit). Each chip includes one or more planes of flash cells or arrays. Each plane comprises an independent page register configured to accommodate parallel data transfer operations. Each plane of the non-volatile memory chip is arranged in a data structure as follows: Each of the chips is divided into a plurality of data blocks and each block is then partitioned into a plurality of data pages. Each of the pages may contain one or more addressable data sectors in a data area and other information such as error correcting code (ECC) in a spare area. The data erasing in the non-volatile memory is perform in a data block by data block basis, while the data reading and writing can be performed for each data sector. The data register is generally configured to hold one data page including both data and spare areas. The non-volatile memory may include, but not be limited to, SLC flash memory (SLC), MLC flash memory (MLC), phase-change memory, Magnetoresistive random access memory, Ferroelectric random access memory, Nano random access memory.
A fourth exemplary zone-based NVMD 170 is shown in
The virtual address 244 or virtual zone address 244a-n is then mapped to a physical address 248 or physical zone address 248a-n via a second level address mapping scheme. The second level mapping is configured to be tracked in an address mapping table 246, in which a one-to-one relationship is correlated to ensure each virtual address 244 corresponds to a physical location in the NVM module 222. Firmware also groups block, zone, page and sector in a unit. The NVM module 222 may include at least one NVM chip (i.e., ‘NVM Chip 0’ 222a, ‘NVM Chip 1’ 222b, . . . ‘NVM Chip M’, 222n).
The relationship between the LSA 302 and the cache subsystem 310 is as follows: First, the index 306 of the LSA 302 is used for determining which entry of the cache directory 312 (e.g., using the index 306 as the entry number of the cache directory 312). Next, based on the data validity flag 324 and the LRU flag 323, one of the N sets 327a-n of the cache line is selected to store the data associated with the LSA 302. Finally, the tag 304 of the LSA 302 is filled into the respective one of the tag field 325a-n corresponding to the selected set of the N sets 327a-n of the cache line. The offset 308 may be further partitioned into block, zone, page and sector offsets that match the data structure of the non-volatile memory in the zone-base NVMD 170. For example, the cache data 314 comprises N sets of zone data.
The process 500 starts with an ‘IDLE’ state until the NVMD 170 receives a data transfer request from a host computer system (e.g., the host 109) at 502. Along with the data transfer request is a logical sector address (LSA) 302 and type of the data transfer request (i.e., data read or write). Next, at 504, process 500 extracts a tag 304 and an index 306 from the received LSA 302. The received index 306 corresponds to the entry number of the cache directory while the received tag 304 is used for comparing with all of the tags 325a-n in that cache entry. The process 500 moves to decision 506 to determine whether there is a ‘cache-hit’ or a ‘cache-miss’. If any one of the tags in the N sets of cache entries matches the received tag 304, a ‘cache-hit’ condition is determined, which means data associated with the received LSA 302 in the data transfer request is already stored in the cache subsystem 310. Otherwise, if none of the tags 325a-n matches the received tag, a ‘cache-miss’ condition is determined, which means that the data associated with the received LSA 302 is not currently stored in the cache subsystem 310. The data transfer operation for these two conditions is very different in the zone-based NVMD 170.
After decision 506, the process 500 checks the data transfer request type at decision 508 to determine whether a data read or write operation is requested. If ‘cache-miss’ and ‘data read’, the process 500 continues to the steps and decisions in
Otherwise in a ‘cache-hit’ and ‘data read’ condition, the process 500 updates the least-recently used (LRU) flag 323 at 512. Next, at 514, the process 500 retrieves the requested data from the ‘cache-hit’ set of the N sets of the cache line with the offset 308, which is an offset for a particular zone, page and/or sector in the received LSA 302 and then sends the retrieved data back to the host 109 of
For the case of ‘cache-miss’ and ‘data read’ shown in
If at decision 524, it is determines the requested data is stored in the SLC, the request data is loaded from the SLC at the SPZA into the least-recently used set of the cache line at 526. The process 500 also updates the tag 325a-n, the LRU flag 323 and data validity flag 324, and then resets the NOH flag 326a-n to zero, accordingly. Next, at 528, the requested data is retrieved from the just loaded cache line and sent back to the host 109. The process 500 goes back to the ‘IDLE’ state.
Shown in
The detailed process of step 535 is shown in
Referring back to the condition of ‘cache-hit’ and ‘data write’, the process 500 continues in
Shown in
If ‘no’, the process 500 allocates a new zone (2nd SPZA) in the SLC at 565c. Next, the process 500 copies the data from the 1st SPZA to the 2nd SPZA with the update from the just written set of the cache line at 565d. Then, at 565e, the address mapping table is updated with the 2nd SPZA. Next at decision 565f, it is determined whether the SLC has been used up to a predefined capacity (e.g., a fixed percentage to ensure at least one available data zone for data programming operation). If ‘no’, the process 500 returns. Otherwise at 535, the process 500 moves the lowest hit zone from the SLC to a new zone in the MLC. The details of step 535 are shown and described in
According to one embodiment of the present invention, the SLC and the MLC are configured with same size data page such that the data movement between the SLC and MLC can be conducted seamlessly in the exemplary process 500.
The first data transfer operation is a ‘data write’ with a ‘cache-hit’ condition shown as example (a) in
The second data transfer operation is a ‘data write’ with a ‘cache-miss’ condition shown as example (b) in
The third data transfer operation is a ‘data read’ with a ‘cache-miss’ in the SLC shown as example (c1) in
The fourth data transfer operation is a ‘data read’ with a ‘cache-miss’ in the MLC shown as example (c2) in
Although the present invention has been described with reference to specific embodiments thereof, these embodiments are merely illustrative, and not restrictive of, the present invention. Various modifications or changes to the specifically disclosed exemplary embodiments will be suggested to persons skilled in the art. For example, whereas a 2-way set associative data cache subsystem has been shown and described, other data cache subsystem such as 4-way set associative, direct mapping, any other equivalent system may be used instead. In summary, the scope of the invention should not be restricted to the specific exemplary embodiments disclosed herein, and all modifications that are readily suggested to those of ordinary skill in the art should be included within the spirit and purview of this application and scope of the appended claims.
This application is a continuation-in-part (CIP) of co-pending U.S. patent application for “High Integration of Intelligent Non-Volatile Memory Devices”, Ser. No. 12/054,310, filed Mar. 24, 2008, which is a CIP of “High Endurance Non-Volatile Memory Devices”, Ser. No. 12/035,398, filed Feb. 21, 2008. This application is also a CIP of U.S. patent application for “High Performance Flash Memory Devices (FMD)”, U.S. application Ser. No. 12/017,249, filed Jan. 21, 2008, which is a CIP of “High Speed Controller for Phase Change Memory Peripheral Devices”, U.S. application Ser. No. 11/770,642, filed on Jun. 28, 2007, which is a CIP of “Local Bank Write Buffers for Acceleration a Phase Change Memory”, U.S. application Ser. No. 11/748,595, filed May 15, 2007, which is CIP of “Flash Memory System with a High Speed Flash Controller”, application Ser. No. 10/818,653, filed Apr. 5, 2004, now U.S. Pat. No. 7,243,185. This application is also a CIP of co-pending U.S. patent application for “Method and Systems of Managing Memory Addresses in a Large Capacity Multi-Level Cell (MLC) based Flash Memory Device”, Ser. No. 12/025,706, filed on Feb. 4, 2008, which is a CIP application of “Flash Module with Plane-interleaved Sequential Writes to Restricted-Write Flash Chips”, Ser. No. 11/871,011, filed Oct. 11, 2007. This application is also a CIP of co-pending U.S. patent application for “Hybrid SSD Using a Combination of SLC and MLC Flash Memory Arrays”, U.S. application Ser. No. 11/926,743, filed Oct. 29, 2007. This application is also a continuation-in-part (CIP) of co-pending U.S. patent application Ser. No. 11/624,667 filed on Jan. 18, 2007, entitled “Electronic data Storage Medium with Fingerprint Verification Capability”, which is a divisional patent application of U.S. patent application Ser. No. 09/478,720 filed on Jan. 6, 2000, now U.S. Pat. No. 7,257,714 issued on Aug. 14, 2007, which has been petitioned to claim the benefit of CIP status of one of inventor's earlier U.S. patent application for “Integrated Circuit Card with Fingerprint Verification Capability”, Ser. No. 09/366,976, filed on Aug. 4, 1999, now issued as U.S. Pat. No. 6,547,130, all of which are incorporated herein as though set forth in full.
Number | Date | Country | |
---|---|---|---|
Parent | 09478720 | Jan 2000 | US |
Child | 11624667 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12054310 | Mar 2008 | US |
Child | 12101877 | US | |
Parent | 12035398 | Feb 2008 | US |
Child | 12054310 | US | |
Parent | 12017249 | Jan 2008 | US |
Child | 12035398 | US | |
Parent | 11770642 | Jun 2007 | US |
Child | 12017249 | US | |
Parent | 11748595 | May 2007 | US |
Child | 11770642 | US | |
Parent | 10818653 | Apr 2004 | US |
Child | 11748595 | US | |
Parent | 12025706 | Feb 2008 | US |
Child | 10818653 | US | |
Parent | 11871011 | Oct 2007 | US |
Child | 12025706 | US | |
Parent | 11926743 | Oct 2007 | US |
Child | 11871011 | US | |
Parent | 11624667 | Jan 2007 | US |
Child | 11926743 | US | |
Parent | 09366976 | Aug 1999 | US |
Child | 09478720 | US |