This application claims the priority benefit of Taiwan application serial no. 105115957, filed on May 23, 2016. The entirety of the above-mentioned patent application is hereby incorporated by reference herein and made a part of this specification.
The disclosure relates to a memory technology, and more particularly, to a decoding method, a memory storage device and a memory control circuit unit.
The markets of digital cameras, cellular phones, and MP3 players have expanded rapidly in recent years, resulting in escalated demand for storage media by consumers. The characteristics of data non-volatility, low power consumption, and compact size make a rewritable non-volatile memory module (e.g., a flash memory) ideal to be built in the portable multi-media devices as cited above.
In general, after data is read from the memory, such data may be decoded in order to ensure an integrity of the data. Accordingly, if there is any error existing in the data, such error can be corrected through a decoding operation. Generally, a default read voltage level is usually configured in the memory device before leaving the factory. The default read voltage level is used for reading data stored in the memory device. However, with increases in usage time and/or wear level of the memory device, errors included in the data read by using the default read voltage level may become increasingly more and even go beyond control of an error correction capability of the decoding operation. Therefore, it is one of the important issues to be addressed by those skilled in the art as how to improve the correctness of the read data and/or a decoding capability of the memory by adjusting the default read voltage level.
Nothing herein should be construed as an admission of knowledge in the prior art of any portion of the present disclosure. Furthermore, citation or identification of any document in this application is not an admission that such document is available as prior art to the present disclosure, or that any reference forms a part of the common general knowledge in the art.
The disclosure is directed to a decoding method, a memory storage device and a memory control circuit unit which are capable of improving a decoding efficiency.
An exemplary embodiment of the disclosure provides a decoding method, which is used for a rewritable non-volatile memory module including a plurality of memory cells. The decoding method includes: reading a plurality of first memory cells among the memory cells based on a default hard-decision voltage level to obtain hard-bit information; performing a hard-decoding operation on the hard-bit information; reading the first memory cells based on a plurality of default soft-decision voltage levels to obtain soft-bit information if the hard-decoding operation fails; performing a soft-decoding operation on the soft-bit information; reading the first memory cells based on a plurality of first test voltage levels to obtain first soft-bit information and reading the first memory cells based on a plurality of second test voltage levels to obtain second soft-bit information if the soft-decoding operation fails; obtaining a first estimating parameter according to the first soft-bit information and obtaining a second estimating parameter according to the second soft-bit information, wherein the first estimating parameter corresponds to a first total number of a memory cell matching a first state condition among the first memory cells, wherein the second estimating parameter corresponds to a second total number of a memory cell matching a second state condition among the first memory cells; and updating the default hard-decision voltage level according to the first estimating parameter and the second estimating parameter.
Another exemplary embodiment of the disclosure provides a memory storage device, which includes a connection interface unit, a rewritable non-volatile memory module and a memory control circuit unit. The connection interface unit is configured to couple to a host system. The rewritable non-volatile memory module includes a plurality of memory cells. The memory control circuit unit is coupled to the connection interface unit and the rewritable non-volatile memory module. The memory control circuit unit is configured to send a first read command sequence to instruct reading a plurality of first memory cells among the memory cells based on a default hard-decision voltage level to obtain hard-bit information. The memory control circuit unit is further configured to perform a hard-decoding operation on the hard-bit information. The memory control circuit unit is further configured to send a second read command sequence to instruct reading the first memory cells based on a plurality of default soft-decision voltage levels to obtain soft-bit information if the hard-decoding operation fails. The memory control circuit unit is further configured to perform a soft-decoding operation on the soft-bit information. The memory control circuit unit is further configured to send a first test command sequence to instruct reading the first memory cells based on a plurality of first test voltage levels to obtain first soft-bit information and send a second test command sequence to instruct reading the first memory cells based on a plurality of second test voltage levels to obtain second soft-bit information if the soft-decoding operation fails. The memory control circuit unit is further configured to obtain a first estimating parameter according to the first soft-bit information and obtain a second estimating parameter according to the second soft-bit information. The first estimating parameter corresponds to a first total number of a memory cell matching a first state condition among the first memory cells. The second estimating parameter corresponds to a second total number of a memory cell matching a second state condition among the first memory cells. The memory control circuit unit is further configured to update the default hard-decision voltage level according to the first estimating parameter and the second estimating parameter.
Another exemplary embodiment of the disclosure provides a memory control circuit unit, which is configured to control a rewritable non-volatile memory module having a plurality of memory cells. The memory control circuit unit includes a host interface, a memory interface, an error checking and correcting circuit, and a memory management circuit. The host interface is configured to couple to a host system. The memory interface is configured to couple to the rewritable non-volatile memory module. The memory management circuit is coupled to the host interface, the memory interface and the error checking and correcting circuit. The memory management circuit is configured to send a first read command sequence to instruct reading a plurality of first memory cells among the memory cells based on a default hard-decision voltage level to obtain hard-bit information. The error checking and correcting circuit is configured to perform a hard-decoding operation on the hard-bit information. The memory management circuit is further configured to send a second read command sequence to instruct reading the first memory cells based on a plurality of default soft-decision voltage levels to obtain soft-bit information if the hard-decoding operation fails. The error checking and correcting circuit is further configured to perform a soft-decoding operation on the soft-bit information. The memory management circuit is further configured to send a first test command sequence to instruct reading the first memory cells based on a plurality of first test voltage levels to obtain first soft-bit information and send a second test command sequence to instruct reading the first memory cells based on a plurality of second test voltage levels to obtain second soft-bit information if the soft-decoding operation fails. The memory management circuit is further configured to obtain a first estimating parameter according to the first soft-bit information and obtain a second estimating parameter according to the second soft-bit information. The first estimating parameter corresponds to a first total number of a memory cell matching a first state condition among the first memory cells. The second estimating parameter corresponds to a second total number of a memory cell matching a second state condition among the first memory cells. The memory management circuit is further configured to update the default hard-decision voltage level according to the first estimating parameter and the second estimating parameter.
Based on the above, after the soft-decoding operation fails, at least two groups of test voltage levels are used to read the same memory cells. Then, the corresponding estimating parameters are obtained, where each of the estimating parameters corresponds to the total number of the memory cells matching one specific state condition among the memory cells. The default hard-decision voltage level may be updated according to the estimating parameters. As a result, an decoding efficiency can be improved.
To make the above features and advantages of the disclosure more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
It should be understood, however, that this Summary may not contain all of the aspects and embodiments of the present disclosure, is not meant to be limiting or restrictive in any manner, and that the disclosure as disclosed herein is and will be understood by those of ordinary skill in the art to encompass obvious improvements and modifications thereto.
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the disclosure and, together with the description, serve to explain the principles of the disclosure.
Reference will now be made in detail to the present preferred embodiments of the disclosure, examples of which are illustrated in the accompanying drawings. Wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
Embodiments of the present disclosure may comprise any one or more of the novel features described herein, including in the Detailed Description, and/or shown in the drawings. As used herein, “at least one”, “one or more”, and “and/or” are open-ended expressions that are both conjunctive and disjunctive in operation. For example, each of the expressions “at least one of A, B and C”, “at least one of A, B, or C”, “one or more of A, B, and C”, “one or more of A, B, or C” and “A, B, and/or C” means A alone, B alone, C alone, A and B together, A and C together, B and C together, or A, B and C together.
It is to be noted that the term “a” or “an” entity refers to one or more of that entity. As such, the terms “a” (or “an”), “one or more” and “at least one” can be used interchangeably herein.
Generally, the memory storage device (also known as a memory storage system) includes a rewritable non-volatile memory module and a controller (also known as a control circuit). The memory storage device is usually configured to cooperate with a host system so the host system may write data into the memory storage device or receive data from the memory storage device.
Referring to
In the present exemplary embodiment, the host system 11 is coupled to a memory storage device 10 through the data transmission interface 114. For example, the host system 11 can store data into the memory storage device 10 or read data from the memory storage device 10 through the data transmission interface 114. Further, the host system 11 is coupled to an I/O device 12 through the system bus 110. For example, the host system 11 can transmit output signals to the I/O device 12 or receive input signals from the I/O device 12 through the system bus 110.
In the present exemplary embodiment, the processor 111, the RAM 112, the ROM 113 and the data transmission interface 114 may be disposed on a main board 20 of the host system 11. The number of the data transmission interface 114 may be one or more. Through the data transmission interface 114, the main board 20 may be coupled to the memory storage device 10 in a wired manner or a wireless manner. The memory storage device 10 may be, for example, a flash drive 201, a memory card 202, a SSD (Solid State Drive) 203 or a wireless memory storage device 204. The wireless memory storage device 204 may be, for example, a memory storage device based on various wireless communication technologies, such as a NFC (Near Field Communication) memory storage device, a WiFi (Wireless Fidelity) memory storage device, a Bluetooth memory storage device, a BLE (Bluetooth low energy) memory storage device (e.g., iBeacon). Further, the main board 20 may also be coupled to various I/O devices, such as a GPS (Global Positioning System) module 205, a network interface card 206, a wireless transmission device 207, a keyboard 208, a monitor 209 and/or a speaker 210 through the system bus 110. For example, in an exemplary embodiment, the main board 20 may access the wireless memory storage device 204 through the wireless transmission device 207.
In an exemplary embodiment, aforementioned host system may be any system capable of substantially cooperating with the memory storage device for storing data. Although the host system is illustrated as a computer system in foregoing exemplary embodiment, nonetheless,
Referring to
In the present exemplary embodiment, the connection interface unit 402 is compatible with a SATA (Serial Advanced Technology Attachment) standard. Nevertheless, it should be understood that the disclosure is not limited thereto. The connection interface unit 402 may also be compatible to a PATA (Parallel Advanced Technology Attachment) standard, an IEEE (Institute of Electrical and Electronic Engineers) 1394 standard, a PCI Express (Peripheral Component Interconnect Express) interface standard, a USB (Universal Serial Bus) standard, a SD interface standard, a UHS-I (Ultra High Speed-I) interface standard, a UHS-II (Ultra High Speed-II) interface standard, a MS (Memory Stick) interface standard, a MCP interface standard, a MMC interface standard, an eMMC interface standard, a UFS (Universal Flash Storage) interface standard, an eMCP interface standard, a CF interface standard, an IDE (Integrated Device Electronics) interface standard or other suitable standards. The connection interface unit 402 and the memory control circuit unit 404 may be packaged into one chip, or the connection interface unit 402 may be distributed outside of a chip including the memory control circuit unit 404.
The memory control circuit unit 404 is configured to execute a plurality of logic gates or control commands which are implemented in a hardware form or in a firmware form and perform operations, such as writing, reading or erasing data in the rewritable non-volatile memory module 406 according to the commands of the host system 11.
The rewritable non-volatile memory module 406 is coupled to the memory control circuit unit 404 and configured to store data written from the host system 11. The rewritable non-volatile memory module 406 may be a SLC (Single Level Cell) NAND flash memory module (i.e., a flash memory module capable of storing one bit in one memory cell), a MLC (Multi Level Cell) NAND flash memory module (i.e., a flash memory module capable of storing two bits in one memory cell), a TLC (Triple Level Cell) NAND flash memory module (i.e., a flash memory module capable of storing three bits in one memory cell), other flash memory modules or any memory module having the same features.
In the rewritable non-volatile memory module 406, one or more bits are stored by changing a voltage (hereinafter, also known as a threshold voltage) of each of the memory cells. More specifically, in each of the memory cells, a charge trapping layer is provided between a control gate and a channel. Amount of electrons in the charge trapping layer may be changed by applying a write voltage to the control gate thereby changing the threshold voltage of the memory cell. This operation of changing the threshold voltage is also known as “writing data into the memory cell” or “programming the memory cell”. Each of the memory cells in the rewritable non-volatile memory module 406 has a plurality of storage states depended on changes in the threshold voltage. The storage state to which the memory cell belongs may be determined by applying a read voltage to the memory cell, so as to obtain the one or more bits stored in the memory cell.
Referring to
The memory management circuit 502 is configured to control overall operations of the memory control circuit unit 404. Specifically, the memory management circuit 502 has a plurality of control commands and the control commands are executed to perform various operations such as writing, reading and erasing data during operation of the memory storage device 10. Hereinafter, operations of the memory management circuit 502 are described as equivalent to describing operations of the memory control circuit unit 404.
In the present exemplary embodiment, the control commands of the memory management circuit 502 are implemented in form of firmware. For instance, the memory management circuit 502 has a microprocessor unit (not illustrated) and a ROM (not illustrated), and the control commands are burned into the ROM. When the memory storage device 10 operates, the control commands are executed by the microprocessor to perform operations of writing, reading or erasing data.
In another exemplary embodiment, the control commands of the memory management circuit 502 may also be stored as program codes in a specific area (for example, the system area in a memory exclusively used for storing system data) of the rewritable non-volatile memory module 406. In addition, the memory management circuit 502 has a microprocessor unit (not illustrated), the read only memory (not illustrated) and a random access memory (not illustrated). More particularly, the ROM has a boot code, which is executed by the microprocessor unit to load the control commands stored in the rewritable non-volatile memory module 406 to the RAM of the memory management circuit 502 when the memory control circuit unit 404 is enabled. Then, the control commands are executed by the microprocessor unit to perform operations, such as writing, reading or erasing data.
Further, in another exemplary embodiment, the control commands of the memory management circuit 502 may also be implemented in a form of hardware. For example, the memory management circuit 502 includes a microprocessor, a memory cell management circuit, a memory writing circuit, a memory reading circuit, a memory erasing circuit and a data processing circuit. The memory cell management circuit, the memory writing circuit, the memory reading circuit, the memory erasing circuit and the data processing circuit are coupled to the microprocessor. The memory cell management circuit is configured to manage the memory cells of the rewritable non-volatile memory module 406 or a group thereof. The memory writing circuit is configured to issue a write command sequence for the rewritable non-volatile memory module 406 in order to write data into the rewritable non-volatile memory module 406. The memory reading circuit is configured to issue a read command sequence for the rewritable non-volatile memory module 406 in order to read data from the rewritable non-volatile memory module 406. The memory erasing circuit is configured to issue an erase command sequence for the rewritable non-volatile memory module 406 in order to erase data from the rewritable non-volatile memory module 406. The data processing circuit is configured to process both the data to be written into the rewritable non-volatile memory module 406 and the data read from the rewritable non-volatile memory module 406. Each of the write command sequence, the read command sequence and the erase command sequence may include one or more program codes or command codes, and instruct the rewritable non-volatile memory module 406 to perform the corresponding operations, such as writing, reading and erasing. In an exemplary embodiment, the memory management circuit 502 may further issue command sequence of other types to the rewritable non-volatile memory module 406 for instructing to perform the corresponding operations.
The host interface 504 is coupled to the memory management circuit 502 and configured to receive and identify commands and data sent from the host system 11. In other words, the commands and data transmitted by the host system 11 are transmitted to the memory management circuit 502 through the host interface 504. In the present exemplary embodiment, the host interface 504 is compatible with the SATA standard. However, it should be understood that the present disclosure is not limited thereto, and the host interface 504 may also be compatible with the PATA standard, the IEEE 1394 standard, the PCI Express standard, the USB standard, the SD standard, the UHS-I standard, the UHS-II standard, the MS standard, the MMC standard, the eMMC standard, the UFS standard, the CF standard, the IDE standard, or other suitable standards for data transmission.
The memory interface 506 is coupled to the memory management circuit 502 and configured to access the rewritable non-volatile memory module 406. In other words, data to be written to the rewritable non-volatile memory module 406 is converted into a format acceptable by the rewritable non-volatile memory module 406 through the memory interface 506. Specifically, if the memory management circuit 502 intends to access the rewritable non-volatile memory module 406, the memory interface 506 sends corresponding command sequences. For example, the command sequences may include the write command sequence which instructs to read data, the read command sequence which instructs to read data, the erase command sequence which instructs to erase data, and other command sequences configured to instruct performing various memory operations (e.g., changing a read voltage level or performing a garbage collection procedure). These command sequences are generated by the memory management circuit 502 and transmitted to the rewritable non-volatile memory module 406 through the memory interface 506, for example. The command sequences may include one or more signals, or data transmitted in the bus. The signals or the data may include command codes and program codes. For example, information such as identification codes and memory addresses are included in the read command sequence.
The error checking and correcting circuit 508 is coupled to the memory management circuit 502 and configured to perform an error checking and correcting operation to ensure the correctness of data. Specifically, when the memory management circuit 502 receives the write command from the host system 11, the error checking and correcting circuit 508 generates an ECC (error correcting code) and/or an EDC (error detecting code) for data corresponding to the write command, and the memory management circuit 502 writes data corresponding to the write command and the corresponding ECC and/or the EDC into the rewritable non-volatile memory module 406. Then, when the memory management circuit 502 reads the data from the rewritable non-volatile memory module 406, the corresponding ECC and/or the EDC are also read, and the error checking and correcting circuit 508 performs the error checking and correcting operation on the read data based on the ECC and/or the EDC.
In the present exemplary embodiment, the error checking and correcting circuit 508 encodes and decodes based on a low density parity check (LDPC) code. However, in another exemplary embodiment, the error checking and correcting circuit 508 may also encode and decode based on various codes such as a BCH code, a convolutional code, a turbo code or so on. For those skilled in the art, encoding and decoding data by using any of above codes belongs to a common knowledge, and thus related description is omitted hereinafter.
In an exemplary embodiment, the memory control circuit unit 404 further includes a buffer memory 510 and a power management circuit 512.
The buffer memory 510 is coupled to the memory management circuit 502 and configured to temporarily store data and commands from the host system 11 or data from the rewritable non-volatile memory module 406. The power management unit 512 is coupled to the memory management circuit 502 and configured to control a power of the memory storage device 10.
In the present exemplary embodiment, the memory cells of the rewritable non-volatile memory module 406 constitute a plurality of physical programming units, and the physical programming units constitute a plurality of physical erasing units. Specifically, the memory cells on the same word line constitute one or more of the physical programming units. If each of the memory cells can store more than one bit, the physical programming units on the same word line can be at least classified into a lower physical programming unit and an upper physical programming unit. For instance, a least significant bit (LSB) of one memory cell belongs to the lower physical programming unit, and a most significant bit (MSB) of one memory cell belongs to the upper physical programming unit. Generally, in the MLC NAND flash memory, a writing speed of the lower physical programming unit is higher than a writing speed of the upper physical programming unit, and/or a reliability of the lower physical programming unit is higher than a reliability of the upper physical programming unit.
In the present exemplary embodiment, the physical programming unit is a minimum unit for programming. That is, the physical programming unit is the minimum unit for writing data. For example, the physical programming unit is a physical page or a physical sector. When the physical programming unit is the physical page, the physical programming unit usually includes a data bit area and a redundancy bit area. The data bit area includes multiple physical sectors configured to store user data, and the redundant bit area is configured to store system data (e.g., an error correcting code). In the present exemplary embodiment, the data bit area includes 32 physical sectors, and a size of each physical sector is 512 bytes (B). However, in other exemplary embodiments, the data bit area may also include 8, 16 physical sectors or different number (more or less) of the physical sectors, and the size of each physical sector may also be greater or smaller. On the other hand, the physical erasing unit is the minimum unit for erasing. Namely, each physical erasing unit contains the least number of memory cells to be erased together. For instance, the physical erasing unit is a physical block.
Referring to
The memory management circuit 502 configures logical units 612(0) to 612(C) for mapping at least a part of the physical units 610(0) to 610(A) in the storage area 601. In the present exemplary embodiment, the host system 11 accesses the data stored in the storage area 601 through a logical address (LA). Therefore, each of the logical units 612(0) to 612(C) refers to one logical address. However, in another exemplary embodiment, each of the logical units 612(0) to 612(C) may also refer to one logical programming unit, one logical erasing unit or a composition of a plurality of consecutive or non-consecutive logical addresses, depending on practical requirements. In addition, each of the logical units 612(0) to 612(C) may also be mapped to one or more physical units.
In the present exemplary embodiment, the memory management circuit 502 records a mapping relation (also known as a logical-physical mapping relation) between the logical units and the physical units into at least one logical-physical mapping table. When the host system 11 intends to read the data from the memory storage device 10 or write the data into the memory storage device 10, the memory management circuit 502 may access the data in the memory storage device 10 according to the logical-physical mapping table.
Referring to
It is noted that, in the present exemplary embodiment, each memory cell is configured to store one bit, and thus the threshold voltages of the memory cells can fall within two possible distributions (e.g., the distributions 710 and 720). However, in other exemplary embodiments, if one memory cell is configured to store a plurality of bits, the corresponding threshold voltages can fall within four (e.g., the MLC NAND flash memory), eight (e.g., the TLC NAND flash memory), or any other number of possible distributions. In addition, the bit(s) represented by each distribution is not particularly limited in the disclosure. For example, in another exemplary embodiment of
Generally, when intending to read data stored in the first memory cells, the memory management circuit 502 sends a read command sequence (hereinafter, also known as a first read command sequence) to the rewritable non-volatile memory module 406. The first read command sequence is configured to instruct reading data from physical addresses of the first memory cells based on a voltage level. In an exemplary embodiment, this voltage level is also known as a default hard-decision voltage level. According to this read command sequence, the rewritable non-volatile memory module 406 applies a read voltage (e.g., a voltage level VH1) to the first memory cells and transmit the obtained data to the memory management circuit 502. In this case, the voltage level VH1 is the default hard-decision voltage level. If the threshold voltage of one specific memory cell is less than the applied voltage level VH1 (e.g., the memory cell has a threshold voltage belonging to the distribution 710), the memory management circuit 502 reads the bit “0”. If the threshold voltage of one specific memory cell is greater than the applied voltage level VH1 (e.g., the memory cell has a threshold voltage belonging to the distribution 720), the memory management circuit 502 reads the bit “0”.
However, with increases in usage time of the rewritable non-volatile memory module 406, a performance degradation may occur on the memory cells in the rewritable non-volatile memory module 406. For example, after the performance degradation has occurred on the memory cells belonging to the distributions 710 and 720, the distributions 710 and 720 may gradually move close to each other or even overlap with each other. For example, a distribution 711 and a distribution 721 in
Hence, after the data is read based on the default hard-decision voltage level (e.g., the voltage level VH1), the error checking and correcting circuit 508 decodes the data so as to attempt correcting possible errors in the data. Herein, the data read based on the hard-decision voltage level is also known as hard-bit information (e.g., a hard-bit HB1 in
In the soft-decoding mode, the memory management circuit 502 sends another read command sequence (hereinafter, also known as a second read command sequence) to instruct reading data from the first memory cells based on a plurality of voltage levels. In an exemplary embodiment, those voltage levels are also known as default soft-decision voltage levels. For example, those default soft-decision voltage levels correspond to the default hard-decision voltage level previously used. According to the second read command sequence, the rewritable non-volatile memory module 406 sequentially applies a plurality of read voltages to the first memory cells and return the obtain data to the memory management circuit 502.
Referring to
In an exemplary embodiment, one of the default soft-decision voltage levels (e.g., the voltage level VS3 in
After the data is read based on the default soft-decision voltage levels (e.g., the voltage levels VS1 to VS5), the error checking and correcting circuit 508 decodes the data so as to attempt correcting possible errors in the data. Herein, the data read based on a plurality of soft-decision voltage levels is also known as soft-bit information (e.g., soft-bit information 831 including soft-bits SB1 to SB5 or soft-bit information 832 generated by performing a logical operation on a part of soft-bits, as shown in
Particularly, because the soft-bit information corresponding to each of the memory cells can provide more channel information as compared to the hard-bit information, an error correcting capability of the soft-decoding operation is often higher than an error correcting capability of the hard-decoding operation. Then, the error checking and correcting circuit 508 determines whether the performed soft-decoding operation succeeds (or fails). If the soft-decoding operation succeeds (e.g., all errors in the data are corrected), the error checking and correcting circuit 508 can output successfully-decoded data.
If the soft-decoding operation still fails (e.g., errors in the data still cannot be completely corrected), the memory management circuit 502 sends a plurality of test command sequences to instruct reading the first memory cells based on a plurality of test voltage groups to obtain corresponding soft-bit information. Each of the test voltage groups includes a plurality of test voltage levels, and each of the test voltage groups (or the test voltage levels therein) correspond to one offset value. The offset value is, for example, recorded in a lookup table and configured to shift the default hard-decision voltage level (or the default soft-decision voltage levels) in order to generate the corresponding test voltage group. Further, a total number of the test voltage levels is the same in each of the test voltage groups.
According to the obtained soft-bit information, the memory management circuit 502 obtains a plurality of estimating parameters. Each of the estimating parameters corresponds to a total number of the memory cells matching a specific state condition among the first memory cells. According to the estimating parameters, the memory management circuit 502 can update the default hard-decision voltage level. For example, in the exemplary embodiment of
Referring to
According to the soft-bit information 931 (or the soft-bit information 932), the memory management circuit 502 may count a total number of the memory cells each having a threshold voltage belonging to a transition state region among the first memory cells. Herein, the transition state region includes a region between any two of the voltage levels VC1_1 to VC1_5. In the present exemplary embodiment, the transition state region refers to a region RT1 between a voltage level having a maximum voltage (i.e., the voltage level VC1_5) and a voltage level having a minimum voltage (i.e., the voltage level VC1_4) in the specific test voltage group. Alternatively, in another exemplary embodiment, the transition state region may also refer to a region RT1′ between the voltage levels VC1_2 and VC1_3. For example, the memory management circuit 502 can obtain a total number of the memory cells each having a threshold voltage belonging to the region RT1 by counting a total number of the memory cells corresponding to the soft-bit information “101”, “111”, “011” and “001”. Alternatively, the memory management circuit 502 may also obtain a total number of the memory cells each having a threshold voltage belonging to the region RT1′ by counting a total number of the memory cells corresponding to the soft-bit information “111” and “011”. Then, the memory management circuit 502 can record the counted total number or one corresponding value to serve as the estimating parameter corresponding to the specific test voltage group (or the offset value +Δ).
Referring to
According to the soft-bit information 941 (or the soft-bit information 942), the memory management circuit 502 can count a total number of the memory cells each having a threshold voltage belonging to a transition state region among the first memory cells. Herein, the transition state region includes a region between any two of the voltage levels VC2_1 to VC2_5. In the present exemplary embodiment, the memory management circuit 502 can obtain a total number of the memory cells each having a threshold voltage belonging to a region RT2 (i.e., a region between the voltage levels VC2_4 and VC2_5) by counting a total number of the memory cells corresponding to the soft-bit information “101”, “111”, “011” and “001”. Alternatively, in another exemplary embodiment, the memory management circuit 502 can obtain a total number of the memory cells each having a threshold voltage that falls between the voltage levels VC2_2 and VC2_3 by counting a total number of the memory cells corresponding to the soft-bit information “111” and “011”. Then, the memory management circuit 502 can record the counted total number or one corresponding value to serve as the estimating parameter corresponding to said another test voltage group (or the offset value +2Δ).
Referring to
According to the soft-bit information 951 (or the soft-bit information 952), the memory management circuit 502 can further count a total number of the memory cells each having a threshold voltage belonging to a transition state region among the first memory cells. Herein, the transition state region includes a region between any two of the voltage levels VC3_1 to VC3_5. In the present exemplary embodiment, the memory management circuit 502 can obtain a total number of the memory cells each having a threshold voltage belonging to a region RT3 (i.e., a region between the voltage levels VC3_4 and VC3_5) by counting a total number of the memory cells corresponding to the soft-bit information “101”, “111”, “011” and “001”. Alternatively, in another exemplary embodiment, the memory management circuit 502 can obtain a total number of the memory cells each having a threshold voltage that falls between the voltage levels VC3_2 and VC3_3 by counting a total number of the memory cells corresponding to the soft-bit information “111” and “011”. Then, the memory management circuit 502 can record the counted total number or one corresponding value to serve as the estimating parameter corresponding to said yet another test voltage group (or the offset value +3Δ). In this way, in correspondence to more test voltage groups (or offset values +4Δ, −Δ, −2Δ, etc.), more estimating parameters may also be determined.
The memory management circuit 502 updates the default hard-decision voltage level according to a value relationship between the obtained estimating parameters. For example, if a value of the estimating parameter is positively correlated to the corresponding total number, the memory management circuit 502 can compare the obtained estimating parameters and select the offset value corresponding to the smallest one among the estimating parameters. Then, the memory management circuit 502 can update the default hard-decision voltage level according to the selected offset value.
Referring to
In an exemplary embodiment, the memory management circuit 502 can also count a total number of the memory cells each having a threshold voltage belonging to a stable state region among the first memory cells. Herein, the stable state region includes region(s) excluding a region between a voltage level having a maximum voltage and a voltage level having a minimum voltage in one specific test voltage group. Particularly, among multiple regions divided by the test voltage levels in the same test voltage group, the stable state region and the transition state region do not overlap with each other. For example, in an exemplary embodiment of
Referring to
After updating the default hard-decision voltage level, the memory management circuit 502 can send a read command sequence to instruct reading the first memory cells based on the updated default hard-decision voltage level to obtain the corresponding hard-bit information. For example, referring back to
In the soft-decoding mode, the memory management circuit 502 can send a read command sequence to instruct reading the first memory cells based on a plurality of updated default soft-decision voltage levels to obtain the corresponding soft-bit information. For example, in the exemplary embodiments of
Referring to
In the exemplary embodiment of
Referring to
Referring to
In step S1308, an estimating parameter is obtained according to the soft-bit information obtained in step S1307. In step S1309, whether the estimating parameter obtained in step S1308 is better than a default estimating parameter is determined. For example, if a value of an estimating parameter is positively correlated to a total number of the memory cells each having a threshold voltage belonging to a transition state region and the obtained estimating parameter is less than the default estimating parameter, a result of step S1309 is determined as “Yes” and the method proceeds to step S1310 in which the obtained estimating parameter is set as the default estimating parameter. Conversely, if the value of the estimating parameter is positively correlated to the total number of the memory cells each having the threshold voltage belonging to the transition state region and the estimating parameter is greater than the default estimating parameter, the result of step S1309 may be determined as “No” and the method goes back to step S1306. After the method returned to step S1306, a next offset value may be checked (e.g., a plurality of test voltage levels is determined according to the next offset value). It is noted that, in the case where step S1307 is performed for the very first time (i.e., the default estimating parameter is never set), the estimating parameter obtained in step S1308 may be directly set as the default estimating parameter in step S1310.
In step S1311, the default hard-decision voltage level is updated according to the default estimating parameter. For example, the default hard-decision voltage level may be set as an optimal read voltage level according to the offset value corresponding to the default estimating parameter. Thereafter, step S1301 and the steps so forth are repeatedly performed, and the related description is not repeated hereinafter. Further, after many more offset values are checked, if all the offset values are checked (i.e., all the estimating parameters corresponding all usable offset value have been obtained) when step S1306 is performed again, it is determined that the entire decoding operation fails in step S1312. For example, if the error checking and correcting circuit 508 determines that the entire decoding operation fails, the memory management circuit 502 can send a read failure message to the host system 11.
Referring to
If there is still any unchecked offset value, in step S1408, the first memory cells are read based on a plurality of test voltage levels to obtain the soft-bit information. For example, the test voltage levels correspond to one specific offset value selected for checking. In step S1409, an estimating parameter is obtained according to the soft-bit information obtained in step S1408. Then, the method goes back to step S1407 in which whether there is still any unchecked offset value is determined again. If yes, steps S1408 and S1409 are repeatedly performed. If it is determined that all offset values have been checked (i.e., all the estimating parameters corresponding all usable offset value have been obtained) in step S1407, the default hard-decision voltage level is updated according to the obtained estimating parameters in step S1410. For example, one specific offset value may be selected according to a value relationship between the estimating parameters, and the optimal read voltage level may be set according to the specific offset value. Operations regarding how to select the offset value according to the value relationship between the estimating parameters and set the optimal read voltage level have been described in detail in the foregoing embodiments, which are not repeated hereinafter. After step S1410 is performed, step S1401 and the steps so forth are repeatedly performed. In addition, when step S1406 is performed again, because the optimal read voltage level has been used in step S1401 repeatedly performed, it is determined that the entire decoding operation fails in step S1411.
Nevertheless, each of steps depicted in
In summary, after the soft-decoding operation fails, at least two groups of test voltage levels are used to read the same memory cells. Then, the corresponding estimating parameters are obtained, where each of the estimating parameters corresponds to the total number of the memory cells matching one specific state condition among the memory cells. Then, the default hard-decision voltage level may be updated according to the estimating parameters. As a result, the efficiency for searching the optimal read voltage level may be improved in the decoding operation to further improve the decoding efficiency.
The previously described exemplary embodiments of the present disclosure have the advantages aforementioned, wherein the advantages aforementioned not required in all versions of the disclosure. It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present disclosure without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the present disclosure cover modifications and variations of this disclosure provided they fall within the scope of the following claims and their equivalents.
Number | Date | Country | Kind |
---|---|---|---|
105115957 A | May 2016 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
8576622 | Yoon | Nov 2013 | B2 |
9274891 | Lin | Mar 2016 | B2 |
20090016140 | Qureshi | Jan 2009 | A1 |
20110038212 | Uchikawa | Feb 2011 | A1 |
20150205664 | Janik | Jul 2015 | A1 |
20160246673 | Kim | Aug 2016 | A1 |
20160247576 | Park | Aug 2016 | A1 |
20160259683 | Sakurada | Sep 2016 | A1 |
20160266969 | Jeon | Sep 2016 | A1 |
20160378596 | Kim | Dec 2016 | A1 |
20170004038 | Xia | Jan 2017 | A1 |
Entry |
---|
D. h. Lee and W. Sung, “Decision Directed Estimation of Threshold Voltage Distribution in NAND Flash Memory,” in IEEE Transactions on Signal Processing, vol. 62, No. 4, pp. 919-927, Feb. 15, 2014. |
A. Prodromakis, G. Sklias and T. Antonakopoulos, “Emulating the aging of NAND Flash memories as a time-variant communications channel,” 2014 6th International Symposium on Communications, Control and Signal Processing (ISCCP), Athens, 2014, pp. 278-281. |
G. Dong, N. Xie and T. Zhang, “On the Use of Soft-Decision Error-Correction Codes in nand Flash Memory,” in IEEE Transactions on Circuits and Systems I: Regular Papers, vol. 58, No. 2, pp. 429-439, Feb. 2011. |
B. Peleato, R. Agarwal, J. M. Cioffi, M. Qin and P. H. Siegel, “Adaptive Read Thresholds for NAND Flash,” in IEEE Transactions on Communications, vol. 63, No. 9, pp. 3069-3081, Sep. 2015. |
Number | Date | Country | |
---|---|---|---|
20170337106 A1 | Nov 2017 | US |