Nonvolatile memory with selective interleaving decoding based on block reliability
By combining interleaved and non-interleaved decoding schemes in the NVM memory system and mapping data types according to block health, the problems of block wear leveling and data type storage in the memory system are solved, and higher memory endurance and data rates are achieved.
Patent Information
- Application Number
- CN202010511258.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-27
- Filing Date
- 2020-06-08
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-06-08
AI Technical Summary
Existing NVM memory systems have challenges in block wear and unreliability, resulting in insufficient durability of memory units and inability to effectively dynamically adjust storage formats and error correction protection based on data types, resulting in storage delays and delays for random data and sequential data. Insufficient protection.
By combining interleaved and non-interleaved decoding schemes in the memory system, data types are mapped according to the health of the blocks, random data is written into healthy blocks, sequential data is written into unhealthy blocks, and read patterns are estimated through machine learning algorithms to dynamically adjust Programming scheme for better wear leveling and error correction capabilities.
Implements unified ECC protection for different data types, improves memory endurance and data rates, provides strong error correction capabilities for sequential data and high data rates for random data, and extends the memory's terabyte write metric .
Smart Images

Figure CN112579339B_ABST
Abstract
Description
Background Art
[0001] The present disclosure relates to non-volatile memory, and more particularly to a method of writing data to different memory blocks.
[0002] Non-volatile memory (NVM) systems, such as flash memory, have been widely used in consumer products. Flash memory systems are usually divided into partitions such as blocks and pages, which allows for more efficient use of memory, where blocks are units for erase operations and pages are units for read and write operations. Flash memory can also have single-level cells (SLCs) that store a single bit and multi-level cells (MLCs) that store more than one bit. In order to ensure that the data written to the memory can be correctly read from the memory, error correction decoding (ECC) and / or parity bits, which are basic components of any storage system, are used to write the data. Therefore, the data to be written to the memory is encoded using an ECC scheme, and the encoded data and parity bits are written to the memory. The encoded data is stored in the memory in an interleaved or non-interleaved manner. In non-interleaved decoding, each codeword (data subjected to ECC) is stored on a different logical page, while in interleaved decoding, each codeword spans all pages of a word line (WL).
[0003] Unfortunately, NVM memory systems, such as NAND memory, suffer from the problem of bad cells and bad blocks. It is well known that in NAND memory, blocks wear out and become unreliable over time. It is advantageous to be able to use memory cells as long as possible. Summary of the invention
[0004] An illustrative embodiment disclosed herein is a device comprising a memory array and a processor in communication with the memory array. The processor is configured to determine a health score of a plurality of blocks of the memory array. The health score indicates the health of the block. The processor is configured to receive data having a data type from a host and select an interleaving scheme for encoding the data based on the data type. The interleaving scheme is one of an interleaving and a non-interleaving. The processor is configured to write the data to a healthy block if the non-interleaving scheme is selected and to write the data to an unhealthy block if the interleaving scheme is selected.
[0005] Another illustrative embodiment disclosed herein is a method that includes determining, by a controller, a health score for a plurality of blocks of a memory array. The health score indicates a health of the block. The method includes receiving, by the controller and from a host, data having a data type, and selecting, by the controller, an interleaving scheme for encoding the data based on the data type. The interleaving scheme is one of interleaving and non-interleaving. The method includes writing, by the controller, the data to a healthy block if the non-interleaving scheme is selected and writing the data to an unhealthy block if the interleaving scheme is selected.
[0006] Another illustrative embodiment disclosed herein is a device that includes a memory array and a processing component in communication with the memory array. The processing component includes a component for determining a health score of a plurality of blocks of the memory array. The health score indicates the health of the block. The processing component includes a component for receiving data having a data type from a host and a component for selecting an interleaving scheme for encoding the data based on the data type. The interleaving scheme is one of an interleaving and a non-interleaving. The processing component includes a component for writing the data to a healthy block if the non-interleaving scheme is selected and a component for writing the data to an unhealthy block if the interleaving scheme is selected. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 is a schematic block diagram of a memory system according to some embodiments of the present disclosure.
[0008] Figure 2A Some embodiments of the present disclosure are shown Figure 1 of short-term memory.
[0009] Figure 2B Some embodiments of the present disclosure are shown Figure 1 long-term storage.
[0010] Figure 3 Word lines with codewords programmed in an interleaved manner are shown according to some embodiments of the present disclosure.
[0011] Figure 4 Word lines with codewords programmed in an interleaved manner are shown according to some embodiments of the present disclosure.
[0012] Figure 5 is a flow chart of a process for block reliability based decoding according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0013] Reference is made to the accompanying drawings in the following detailed description, which form a part of this document. In the drawings, similar symbols generally identify similar components unless the context dictates otherwise. The illustrative embodiments described in the detailed description, drawings, and claims are not intended to be limiting. Other embodiments may be utilized, and other changes may be made, without departing from the spirit or scope of the subject matter presented herein. It will be readily understood that the various aspects of the invention as generally described herein and illustrated in the drawings may be arranged, substituted, combined, and designed in a wide variety of different configurations, all of which are expressly contemplated and form part of this disclosure.
[0014] Error correction coding (ECC) is an integral part of any storage system. Coding involves arranging the data in codewords and protecting the data with redundant parity data. The encoded data is placed in the memory in an interleaved or non-interleaved manner. In interleaved coding, each codeword spans multiple logical pages of a word line (WL). Interleaved coding allows the bit error rate (BER) within a codeword to be averaged. However, interleaved coding requires sensing all logical pages in order to decode a single codeword.
[0015] Random data (e.g., push data, temporary data, operating system data, and random access data) may be: i) distributed across a random set of addresses, ii) read frequently, iii) read only in small sectors of a corresponding file, or iv) intended to be used in a short period of time. Shorter codes with less redundancy, higher data rates, higher error floors, and faster read / write times may be desirable for storage of this type of data. In contrast, sequential data (e.g., digital photos, music, user files, etc.) is stored sequentially and read and written in sequential order. It may be desirable to store these file types with longer error correction code protection at the expense of lower data rates or higher read / write latency.
[0016] Conventional flash memory systems support only one storage format. Single format storage results in random data having undesirable latency or sequential data having weaker than desired error code protection. In addition, in conventional systems, all storage formats are indiscriminately written to memory blocks with different health and reliability, resulting in blocks having less than desired memory endurance. Due to the different needs for access speed and ECC protection for different types of data, there are technical difficulties in which a flash memory system that supports at least two storage formats simultaneously is needed in addition to a single level cell (SLC) cache memory, and a method for operating such a system.
[0017] Some embodiments of the present disclosure propose a technical solution to the technical problem: a system and method for mapping memory blocks according to the health of the blocks. Some embodiments of the present disclosure apply a combination of interleaved and non-interleaved decoding schemes in the same memory device, directing interleaved data to less reliable blocks and directing non-interleaved data to more reliable blocks.
[0018] As those skilled in the art understand, the physical health of memory blocks changes over the life of the memory based on usage. Some embodiments of the present disclosure recheck the health of memory blocks and remap interleaved / non-interleaved blocks according to the updated health. Some embodiments remap data from one decoding scheme to another based on the portion of degraded physical blocks available. Some embodiments estimate expected read patterns during programming of data by applying machine learning or other algorithms.
[0019] Some embodiments of the present disclosure achieve better wear leveling of physical blocks, thereby providing enhanced durability of memory, thus increasing the terabyte write metric for a given memory. In addition, some embodiments provide stronger error correction capabilities for sequential data while providing higher data rates and lower latency for random data. Some embodiments of the system provide a unified ECC protection scheme for storing various data types while still taking advantage of the strengths of each data type.
[0020] Reference now Figure 1 , a memory system 100 suitable for implementing aspects of the present invention is shown. The memory system 100 is preferably a non-volatile memory system, such as a flash memory system. A host or host system 101 having a processor 102 communicates with a storage device 104 for writing data to and reading data from the storage device 104. The storage device 104 may include a self-caching flash storage device or a solid-state disk (SSD) embedded in the host 101, a flash memory in a mobile phone, or may exist in the form of a card or other removable drive that can be removably connected to the host 101 through mechanical and electrical connectors. The host 101 can be any of several data generating devices, such as a personal computer, a portable tablet computer, a computing device, a mobile phone, etc. The host 101 communicates with the storage device 104 through a communication channel 106.
[0021] The storage device 104 contains a non-volatile memory (NVM) 108, which includes cells used as short-term storage devices (i.e., cache memory) 110 and cells for long-term storage devices 112. The cache memory 110 and the long-term storage device 112 can be composed of the same type of flash memory cells or different types of flash memory cells. For example, the cache memory 110 can be configured with a single-level cell (SLC) type of flash configuration with a one-bit capacity per cell, while the long-term storage device 112 can be a multi-level cell (MLC) type flash memory configuration with a capacity of two or more bits per cell. Typically, SLC flash has a higher write speed than MLC flash, and MLC flash has a higher density. Different combinations of flash memory types are also expected for the NVM 108. In the embodiments described herein, the long-term storage device 112 includes at least two partitions 114, where each partition meets the needs of different classes of data, as discussed in more detail below. The storage device 104 also includes a controller 116 , which may include a processor 118 , a memory such as a read only memory (ROM) for storing an instruction database 120 for operating the processor 118 , and a logical block to physical block address translation table 122 .
[0022] Partitions 114, shown as a plurality of partitions (i.e., partitions 114A-N, collectively referred to as partitions 114), may be physical or logical partitions in long-term storage 112. Partitions 114 may each include one or more planes of long-term storage 112. In a large memory system having multiple memory dies making up long-term storage 112, partitions may be associated with different physical dies. In yet other embodiments, partitions 114 may be separate planes of a single die or even separate portions of the same plane. In one embodiment, files or other data that requires random access are written to a partition that is configured as a random access partition, while data that does not require random access (e.g., sequential data) is written to a different partition in long-term storage 112. In some instances, more than two partitions may be implemented, each for one or more different types of data.
[0023] refer to Figure 2A According to some embodiments of the present disclosure, Figure 1 Cache memory 110. In some embodiments, cache memory 110 includes an array of SLC blocks 202 (eg, "L" blocks, where L is a positive integer). Each cell in SLC block 202 includes one bit. Figure 2B According to some embodiments of the present disclosure, Figure 1 The long term storage device 112 includes an array of (eg, N) MLC blocks 204. The number of bits in each cell in the MLC block 204 is greater than one.
[0024] A memory cell block is a unit of erase, e.g., the minimum number of memory cells that can be physically erased together. Each block (e.g., SLC or MLC) includes a word line (WL) 206, and a group of cells belonging to a WL 206 is represented as a physical page. The number of logical cells of each WL 206 corresponds to the number of bits stored in each cell. The number of logical pages associated with one physical page is equal to the number of bits stored in each cell. Thus, a WL 206 includes or corresponds to a plurality of logical pages, each of which contains a bit at a certain position. For example, in a 3-bit per cell MLC flash, there will be 3 logical pages: one for the least significant bit (LSB), one for the most significant bit (MSB), and a third for the middle bit, which are sometimes referred to as upper, middle, and lower pages.
[0025] For operational purposes, individual blocks are divided into pages of memory cells. Within each block there may be 8, 16, 32 or more pages of memory cells. A page is the unit of data reading and writing within a block, where each page contains the amount of data that can be programmed or read at one time. In some embodiments, Figure 2A-2BThe blocks 202 and 204 shown in FIG. 1 are referred to herein as physical blocks and are associated with groups of physical memory cells. As used herein, a logical block is a virtual unit of an address space. Each logical block typically has a logical block address (LBA) associated with data, such as data received from the host 101. The LBA is then mapped to one or more physical blocks in the storage device 104 where the data is physically stored. Figure 1 Additional details of the illustrated flash memory system 100 are described in US Pat. No. 8,910,017, which is incorporated herein by reference in its entirety.
[0026] In some embodiments, the controller 116 classifies blocks (e.g., SLC blocks 202, MLC blocks 204, logical representations of SLC or MLC blocks, or a combination thereof) according to health (e.g., reliability). In some embodiments, the controller 116 calculates or otherwise determines a health score for each block. In some embodiments, the controller 116 assigns each block to one of two or more partitions based on whether the health score (e.g., metadata) of the block meets (e.g., is greater than) a predetermined threshold. For example, the controller 116 assigns the first block to the first partition in response to the health score of the first block meeting the first predetermined threshold, and assigns the first block to the second partition in response to the health score of the first block meeting the second predetermined threshold. In some embodiments, the health score is based on the number of program / erase (P / E) cycles, fail bit count (FBC) bit error rate (BER), block error rate (BLER), any metric indicating the health of the block, PE, FBC, BER, BLER, or a combination of any health metrics (e.g., a ratio, proportion or other function), and a predefined number (e.g., an average FBC, BER, or BLER of all blocks of cache memory 110, long-term storage device 112, partition 114, or storage device 104), or the like.
[0027] In some embodiments, the controller 116 accesses a data structure (e.g., a health mapper) that maps a health score (e.g., or a range of health scores) to a partition identifier (ID) corresponding to the partitions 114A-N. In some embodiments, the controller 116 classifies, marks, assigns, or otherwise associates a block to the first partition 114A in response to determining that the health score of the block maps to the partition ID corresponding to the first partition 114A. In some embodiments, the health mapper maps the health score / range to a data type (e.g., random data, sequential data, or a subtype of random or sequential data). In some embodiments, the data structure is a table, an indexed array, an associative array, or a multi-dimensional array. In some embodiments, the index of the data structure is a health score (e.g., or a hash of the index or health score) and the value is a partition ID or a data type. In some embodiments, the health score and the health mapper are stored in the cache 110 (e.g., in a management block within the cache 110).
[0028] In some embodiments, the controller 116 receives data from the host system 101. In some embodiments, the controller 116 determines the data type of the data received from the host system 101. For example, the data received from the host system 101 may be marked with information that the controller 116 may use to determine whether the data is random access data or sequential data (or a particular type of random or sequential data). For example, the controller 116 may read, extract, decode, or otherwise determine the data type from bits in the parity portion of the data. Additionally or alternatively, the controller 116 may derive the category of the data (e.g., random access or sequential) from past patterns of usage information, such as files associated with the data, frequency of use, read methods (random or sequential), and the like. In some embodiments, the controller 116 determines the data type for each block, WL, string line (SL), or other data unit. In some embodiments, the first or last SLs or WLs in a block are less reliable than the remaining SLs or WLs in the block (e.g., in a 3D NAND memory array).
[0029] Criteria for determining the type of data (e.g., whether the data is random or sequential) may include the type of file (e.g., based on a file name suffix), the folder in which the file resides (e.g., a temporary folder, or an operating system folder), or the addressing method used to write the file. Criteria related to file location and addressing may be derived as a request from the host system 101. In some embodiments, the controller 116 determines the desired partition 114 using enhanced file marking information from the host 101. For example, the host 101 may mark certain data transactions to direct data to a memory region or indicate the priority of the data.
[0030] In some embodiments, the controller 116 can determine the data type of a file based on the history of writing and reading the file or by the code rate associated with the file (the ratio between the information data and the codeword length). For example, if the data associated with a file is encoded with a high code rate (e.g., greater than 0.95), then the high code rate may indicate that the file should be stored in a random partition because only a small number of redundant bits are added to the information bits. On the other hand, if the code rate associated with the file is 0.5 (e.g., one parity bit is added for each information bit), then this code rate may indicate that the file should be stored in a sequential partition. Similarly, if the file is read at a high frequency (e.g., once every few minutes), then the high frequency may indicate that the file should be stored in a different partition than a file that is rarely read (e.g., once a month).
[0031] In some embodiments, the controller 116 may determine the data type by applying a machine learning model or algorithm. In these embodiments, the controller 116 includes a training phase and an execution phase. In the training phase, the controller determines the weights by applying training inputs to calculate outputs and adjusting or tuning weights until a combination of the calculated outputs and a predetermined output (e.g., a ratio, proportion, or other function) meets a predetermined threshold. In the execution phase, the controller 116 applies data attributes, statistics, history of reads and writes, or other information of the data at the inputs and calculates the outputs using the trained weights. The machine learning model may include an artificial neural network, a support vector machine, a regression model, a Bayesian model, and the like.
[0032] In some embodiments, once the data type is determined, the controller 116 determines that the data type of the data is mapped to the partition ID corresponding to the block. In some embodiments, the controller 116 accesses a data structure (e.g., a data type mapper) that maps the data type to the partition ID. In some embodiments, the data type mapper is similar in structure to the health mapper. In some embodiments, the data type mapper and the health mapper are combined into one data structure.
[0033] In some embodiments, when mapping a data type to a partition ID, the controller 116 selects a first block to be programmed or otherwise directed to the data. In some embodiments, the controller 116 accesses a health mapper that maps the partition ID to one or more blocks including the first block. In some embodiments, the controller 116 applies one or more block selection rules to determine which of the blocks mapped to the partition ID are to be selected. For example, the one or more rules may include selecting an available block with the highest health score, the longest available block, an available block with the lowest or highest block ID, or an available block selected randomly or pseudo-randomly. Available blocks may include at least one of an empty block, a block with data scheduled to be erased or overwritten, and a block with data that is not the latest. In some embodiments, if the controller 116 determines that no block is available, the controller 116 selects a block that does not meet the criteria for becoming an available block. In some embodiments, in response to the controller 116 determining that no block corresponding to the partition ID is available, the controller 116 selects a block corresponding to a different partition ID. In some embodiments, the controller 116 changes the interleaving scheme applied to the data based on different partition IDs. In some embodiments, the controller 116 programs the data to the selected block (e.g., the first block).
[0034] In some embodiments, the controller 116 updates the health score of each block, the algorithm used to determine the health score, and / or the health mapper data structure. The algorithm used to determine the health score and / or the mapping of the health mapper can be changed by the user and / or policy. The update can be based on a schedule or a triggering event. The schedule can be periodic (e.g., once an hour). The triggering event can be a change in the algorithm, detection of an error rate or program / erase cycles in one or more partitions above a predetermined threshold, garbage collection, wear leveling, or other memory management operations. The update can be for all blocks or for the block to which the triggering event applies (e.g., if the block reaches a predetermined number of errors or program / erase cycles, then only the health score of the block is updated).
[0035] In some embodiments, when updating the health score or health mapper, the controller 116 may identify non-compliant data (e.g., data programmed to a block different from the block to which the data type is mapped using the updated health score and health mapper). The controller 116 may reprogram the non-compliant data to the new block using the updated health score and health mapper. In some embodiments, the controller 116 determines the data type of the non-compliant data and / or the health of the block to which the non-compliant data is programmed. In some embodiments, in response to the non-compliant data being a first data type (e.g., random data) and the health of the block meeting a threshold (e.g., having a health score below a range of health scores mapped to sequential data), the controller 116 reprograms the data to the new block using the updated health score and health mapper. In some embodiments, in response to the non-compliant data being a second data type or the health of the block not meeting the threshold, the controller 116 leaves the non-compliant data in the old block.
[0036] In some embodiments, when assigning data to a block, controller 116 selects an interleaving scheme for storing data to the block. Error correction coding (ECC) codewords that spread across multiple pages are called interleaved codewords, while codewords stored in one logical page are called non-interleaved. Figure 3 An example of an interleaved ECC scheme in WL 300 of a 3-bit per cell MLC memory is shown in FIG, where each codeword (e.g., codeword 1, codeword 2, and codeword 3) is interleaved between all the different pages (upper 304, middle 306, and lower 308) of WL 300. Figure 3 , there are 3 pages delineated by different types of cross hatching. Typically, in an interleaved ECC scheme, each cell of WL 300 contains information related to one sub-codeword 302. The entire codeword has N sub-codewords, each sub-codeword containing a data portion and a parity portion, where each sub-codeword may contain thousands of bits, so that each sub-codeword will be stored in as many 3-bit per cell MLC memory cells as necessary to accommodate the number of bits in the sub-codeword. Codewords and / or sub-codewords may be referred to herein as data.
[0037] In many flash memory implementations, error correction coding (ECC) codewords are programmed and read per logical page (eg, each codeword is written in a unique logical page). Figure 4 An example of a non-interleaved ECC scheme for WL 400 is shown in , where each codeword extends across only one page of each cell of WL 400 (upper 404, middle 406, or lower 408). Figure 4 In the non-interleaved example, each of the 3-bit per cell MLC memory cells contains portions of three different codewords, so that entry 402 represents 3 sub-codewords. In some examples, WLs 300 and 400 are Figure 2BAn example of WL 206 is shown in FIG.
[0038] use Figure 1 The storage device 104 includes at least two partitions 114 in its long-term storage device 112, Figure 5 1 is a flow chart illustrating an embodiment of a process 500 for block reliability based decoding. Depending on the embodiment, additional, fewer, or different operations may be performed in process 500. Process 500 may be implemented by a processor 118 of a controller 116 in a device (e.g., storage device 104 or controller 116) based on firmware or other instructions stored in a controller instruction database 120, which may be in a controller volatile memory (e.g., Figure 1 The instruction database 120 may be stored in the processor 118 in the processor 118 or in the non-volatile memory 108. The instruction database 120 may include instructions for ECC protection levels, ECC algorithms, ECC codewords of different lengths, and other attributes.
[0039] refer to Figure 5 , a controller, such as controller 116, classifies each of a plurality of blocks of a memory array based on health (e.g., health score) (502). In some embodiments, the controller ranks the blocks according to health. In some embodiments, the controller determines a health score for each block. In some embodiments, the controller assigns, links, or otherwise associates each block to a partition based on the corresponding health score. For example, when the health score of the first block meets (e.g., is higher than) a first predetermined threshold (e.g., the health score falls within a first health score range), the controller assigns the first block to a first partition associated with a random data type, such as partition 114A. In another example, when the health score of the second block meets (e.g., is lower than) a second predetermined threshold (e.g., the health score falls within a second health score range lower than the first health score range), the controller assigns the second block to a second partition associated with a sequential data type, such as partition 114N. The controller may access a data structure that maps health scores to partitions (e.g., partition IDs) to determine the predetermined threshold (e.g., health score range).
[0040] The controller receives data including a data type from a host, such as host 101 (504). The data type may include random data, sequential data, or a specific type of random or sequential data. In some embodiments, a parity portion of the data includes an indication of the data type. The controller determines whether the data type is sequential (506). If the controller determines that the data type is random, the controller selects non-interleaved encoding (508) and writes the data to a healthy block using non-interleaved encoding (510). In some embodiments, if non-interleaved encoding is selected, the controller writes the data to a healthy block. If the controller determines that the data type is sequential, the controller selects interleaved encoding (512) and writes the data to a less healthy (e.g., unhealthy) block using interleaved encoding (514). In some embodiments, if interleaved encoding is selected, the controller writes the data to a less healthy block. In some embodiments, a healthy block has a health score that is higher than a predetermined value, and an unhealthy block has a health score that is lower than a predetermined value.
[0041] The controller determines whether there is a triggering event (516). The triggering event can be a change in the algorithm, detection of an error rate or program / erase cycles in one or more partitions above a predetermined threshold, garbage collection, wear leveling, or other memory management operations. In some embodiments, the controller updates the classification of the plurality of blocks once every predetermined number of P / E cycles of the device or partition is reached. If the controller determines that there is no triggering event (e.g., after a predetermined time interval), then the process 500 restarts, or in some embodiments the controller waits to receive new data. If the controller determines that there is a triggering event, then the controller rechecks the health of the block (518). In some embodiments, the controller updates the health score of the block. The controller writes data to the less healthy block (520). In some embodiments, a predetermined threshold for determining the health of the block is adjusted (e.g., downward). In some embodiments, the controller writes data previously stored in a healthy block to the less healthy block and deletes the corresponding data previously stored in the healthy block. In some embodiments, the controller only writes data that has been in a healthy block for at least a predetermined period of time to the less healthy block. If the controller finishes writing data to the less healthy block, then the process 500 restarts, or in some embodiments, the controller waits to receive new data.
[0042] exist Figure 5 In an example of , controller 116 stores random access data in a first partition with a first level of ECC protection, and controller 116 stores sequential data or other non-random access data in a second partition using a second level of ECC protection. In some embodiments, the first level of ECC protection is a lower level of ECC protection than the second level of ECC protection. For example, the first level may include, for example, Figure 4The non-interleaved ECC scheme shown in , and the second level of ECC protection may include, for example Figure 3 In other words, data programmed on blocks that are mapped, linked, associated, or otherwise correspond to the first level partitions may be, for example, Figure 4 The data programmed in the non-interleaved manner shown in FIG. 1 and mapped, linked, associated or otherwise corresponding to the blocks of the second level partition may be programmed, for example, Figure 3 The interleaved approach shown in FIG.
[0043] In some embodiments, different levels (e.g., first and second levels) of ECC protection are part of a unified ECC protection level (e.g., having one or more of the same characteristics). For example, data may be programmed to blocks of a first partition and a second partition using the same ECC algorithm, decoding method, code rate, code length, error floor, resolution of a cell (e.g., number of bits per cell), or a combination thereof. Here, the code rate is the ratio between the amount of information bits (e.g., data portion) and the total amount of bits (information plus parity). Here, the error floor (e.g., region) is a region where the correction capability (e.g., BLER) is almost flat. The ECC algorithm (e.g., encoding method) may include Bose-Chaudhuri-Hocquenghem (BCH) code, low density parity check (LDPC) code, turbo code, Reed-Solomon (RS) code, convolutional code, or other code. The decoding method may include full power decoding or low power decoding.
[0044] In a currently preferred embodiment, the interleaving scheme and the ECC algorithm are different between the first partition and the second partition. For example, the memory blocks are classified based on their health (e.g., a healthy block is a block with a health score above a predetermined value, and a less healthy or unhealthy block is a block with a health score below a predetermined value but possibly above a predetermined minimum health value). Sequential type data is then written to the less healthy blocks using an interleaved decoding scheme, while non-sequential type data is written to the healthy blocks using a non-interleaved decoding scheme. In other embodiments, the same interleaving scheme but different ECC algorithms may be used in the first partition and the second partition, or the same ECC algorithm but different codeword lengths may be used. In yet another embodiment, the number of parity bits is different between the first and second partitions, in combination with or without different information lengths or interleaving / non-interleaving schemes. In other embodiments, the ECC protection level may be different between the partitions based on different error levels.
[0045] The difference between two or more partitions 114 in the long-term storage device 112 can include one or more differences in the following: storing data in an interleaved or non-interleaved form, the number of redundant bits used by ECC, the length of the codeword, the ECC algorithm, the error leveling of the code, and the decoding method. In some embodiments, the number of bits per unit can also be different between the partitions. In one embodiment, the partition configured for random access data (or frequently accessed data) can include shorter codewords, higher code rates, and use a non-interleaved codeword storage format. The partition configured for sequential (or less frequently accessed) data can include longer codewords and lower code rates than the random partition, and use an interleaved codeword storage format. In some embodiments utilizing more than two partitions, each partition can be configured with different levels of ECC protection.
[0046] By selecting a decoding scheme based on physical block health, some embodiments of the present disclosure provide higher correction capabilities with the same ECC parity allocation as conventional systems and methods. Some embodiments of the present disclosure provide real-time physical block health by dynamically updating the block decoding scheme according to the block health that changes over the life of the device. Advantageously, some embodiments of the present disclosure achieve better wear leveling of physical blocks and enhance the durability of long-term storage devices.
[0047] Configuration of the Exemplary Embodiment
[0048] The construction and arrangement of the system and method shown in each exemplary embodiment are illustrative only. Although only several embodiments have been described in detail in the present disclosure, multiple modifications are possible (e.g., changes in the size, dimensions, structure, shape and ratio of each element, parameter values, installation arrangements, material use, color, orientation, etc.). For example, the position of the element can be reversed or changed and the property or number of the discrete element or position can be changed or changed. Therefore, all such modifications are intended to be included in the scope of the present disclosure. The order or sequence of any process or method step can be changed or reordered according to an alternative embodiment. Other substitutions, modifications, changes and omissions can be made to the design, operating conditions and arrangement of the exemplary embodiments without departing from the scope of the present disclosure.
[0049] Although the figures show a specific order of method steps, the order of steps may be different from the order depicted. Also, two or more steps may be performed simultaneously or partially simultaneously. Such variations will depend on the software and hardware systems selected and the designer's choice. All such variations are within the scope of the present disclosure. Similarly, standard programming techniques with rule-based logic and other logic to implement various connection steps, processing steps, comparison steps, and decision steps may be used to implement software implementations.
Claims
1. A device comprising: Memory array; as well as a processor in communication with the memory array, wherein the processor is configured to: determining a health score for a plurality of blocks of the memory array, the health score indicating a health of the blocks; receiving data having a data type from a host; selecting a scheme for encoding the data based on the data type, wherein the scheme is one of an interleaved scheme and a non-interleaved scheme; as well as The data is written to healthy blocks if the non-interleaving scheme is selected, and the data is written to unhealthy blocks if the interleaving scheme is selected. 2 . The apparatus of claim 1 , wherein a healthy block has a health score higher than a predetermined value, and an unhealthy block has a health score lower than the predetermined value. The apparatus of claim 1 , wherein the data type is one of sequential and non-sequential. 4 . The apparatus of claim 3 , wherein sequential data is written to unhealthy blocks and non-sequential data is written to healthy blocks.
5. The apparatus of claim 4, wherein the first error correction code scheme is used for sequential data and the second error correction code scheme is used for non-sequential data. The apparatus of claim 1 , wherein the health score is based on a fail bit count of the first block.
7. The apparatus of claim 1, wherein the processor is further configured to assign the healthy block to the first partition based on a mapping of the health score of the healthy block and a partition identifier corresponding to the first partition.
8. The apparatus of claim 1, wherein the processor is further configured to: assigning the healthy block to a first partition associated with a random data type in response to the health score of the healthy block satisfying a first predetermined threshold; and The unhealthy block is assigned to a second partition associated with a sequential data type in response to the health score of the unhealthy block satisfying a second predetermined threshold.
9. The apparatus of claim 8, wherein the first partition and the second partition are associated with a same codeword length.
10. The device of claim 1, wherein the processor is further configured to update the health score in response to a schedule or a triggering event.
11. The apparatus of claim 1, wherein the parity portion of the data contains an indication of the type of data.
12. The apparatus of claim 1, wherein the processor is further configured to: identifying the data type; Applying non-interleaved decoding when the data type is a random type; and Interleaved coding is applied when the data type is a sequential type.
13. A method comprising: determining, by a controller, a health score of a plurality of blocks of a memory array, the health score indicating a health of the blocks; receiving, by the controller and from a host, data having a data type; selecting, by the controller, a scheme for encoding the data based on the data type, wherein the scheme is one of an interleaved scheme and a non-interleaved scheme; as well as The data is written, by the controller, to healthy blocks if the non-interleaving scheme is selected and to unhealthy blocks if the interleaving scheme is selected. The method of claim 13 , wherein the health score is based on a fail bit count of the first block.
15. The method of claim 13, further comprising assigning, by the controller, the healthy block to the first partition based on a mapping of the health score of the healthy block and a partition identifier corresponding to a first partition.
16. The method according to claim 13, further comprising: assigning, by the controller, the healthy block to a first partition associated with a random data type in response to the health score of the healthy block satisfying a first predetermined threshold; as well as The unhealthy block is assigned, by the controller, to a second partition associated with a sequential data type in response to the health score of the unhealthy block satisfying a second predetermined threshold.
17. The method of claim 16, wherein the first partition and the second partition are associated with the same codeword length.
18. The method of claim 13, further comprising updating, by the controller, the health score in response to a schedule or a triggering event.
19. The method of claim 13, wherein a parity portion of the data includes an indication of the type of data.
20. The method of claim 13, further comprising: applying, by the controller, non-interleaved decoding when the data type is a random type; as well as Interleaved decoding is applied by the controller when the data type is a sequential type.
21. An apparatus comprising: Memory array; as well as a processing means in communication with the memory array, wherein the processing means comprises: means for determining a health score for a plurality of blocks of the memory array, the health score being indicative of a health of the blocks; means for receiving data having a data type from a host; means for selecting a scheme for encoding the data based on the data type, wherein the scheme is one of an interleaved scheme and a non-interleaved scheme; as well as Means for writing the data to healthy blocks if the non-interleaving scheme is selected and means for writing the data to unhealthy blocks if the interleaving scheme is selected.
