Method, controller and related storage device for improving read retry of flash memory
By periodically refreshing data in flash memory and selecting a read retry table based on the programmed timestamp, combined with an error checking mechanism, the problems of flash memory lifespan and data retention are solved, improving read efficiency and data reliability.
Patent Information
- Application Number
- CN202210491505.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-01-10
- Filing Date
- 2019-02-12
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2039-02-12
AI Technical Summary
Flash memory has issues with lifespan and data retention, especially after a certain number of write cycles and data storage time, which can lead to data read errors, resulting in delays and reduced efficiency in the read retry process.
By periodically refreshing the data in the flash memory cells, the controller selects the read retry table and performs the refresh operation based on the programmed timestamp, reducing the read voltage adjustment range, and conditionally refreshes memory cells with high error rates in conjunction with the error checking mechanism.
It effectively reduces the latency of read retries, improves read efficiency and data reliability, and reduces the burden of read retries.
Smart Images

Figure CN115016962B_ABST
Abstract
Description
[0001] This application is a divisional application of Chinese invention application filed on February 12, 2019, with application number 201910111370.5 and entitled "Method, controller and related storage device for improving read retry of flash memory". Technical Field
[0002] This invention relates to flash memory, and more particularly to a method, related controller, and related storage device for improving read retry in flash memory. Background Technology
[0003] In recent years, flash memory has become increasingly widespread, especially in various mobile devices. This is because flash memory offers advantages over other existing storage devices, such as high speed, high density, and non-volatility. However, despite these advantages, flash memory still has undeniable drawbacks, namely its lifespan and data retention. Storage cells (e.g., blocks) in flash memory often malfunction after a certain number of uses, resulting in the inability to read correct data. The causes of these errors are primarily related to the number of program / erase cycles and the data storage time. Generally, flash memory has a higher probability of errors after more program / erase cycles or after a long period without updated data. Therefore, controllers often need to retry read operations on the flash memory, adjusting the read voltage to improve the chances of correct data retrieval. However, during these retry operations, various combinations of read voltages may be tried depending on the aforementioned variables such as the number of program / erase cycles and data storage time to ensure correct data retrieval. This process, however, increases latency and reduces read efficiency. Summary of the Invention
[0004] In view of the aforementioned problems, this invention discloses a management mechanism for a flash memory device to improve read retries. Specifically, the method of this invention reduces the impact of data storage time on read retries by periodically refreshing the data stored in the memory cells of the flash memory. That is, the storage time of the data in the memory cells varies within a small range, thus effectively reducing the adjustment amplitude of the read voltage during read retries. Furthermore, this invention also incorporates an error checking mechanism, performing conditional refreshes on memory cells with excessively high error rates, thereby further reducing the burden of read retry operations.
[0005] An embodiment of the present invention discloses a method for managing multiple storage cells in a flash memory module. The method includes: establishing a programming timestamp corresponding to the data write time of each first storage cell; selecting a corresponding read retry table to perform a read operation on the first storage cell according to the programming timestamp of the first storage cell; and performing a first refresh operation according to the programming timestamp of the first storage cell with written data.
[0006] An embodiment of the present invention discloses a controller for managing multiple storage cells of a flash memory. The controller includes a storage cell and a processing unit. The storage cell stores program code. The processing unit is coupled to the storage cell and is used to read the program code from the storage cell and execute the program code to perform the following operations: establishing a programming timestamp corresponding to the data write time of each first storage cell; selecting a corresponding read retry table to perform a read operation on the first storage cell based on the programming timestamp of the first storage cell; and performing a first refresh operation based on the programming timestamp of the first storage cell that has already had data written to it.
[0007] An embodiment of the present invention discloses a storage device. The storage device includes a flash memory module and a controller. The flash memory module includes a plurality of storage cells. The controller is used to access the flash memory module and includes a storage cell and a processing unit. The storage cell stores program code. The processing unit is coupled to the storage cell and is used to read the program code from the storage cell to execute the program code, thereby performing the following operations: establishing a programming timestamp corresponding to the data write time of each first storage cell; selecting a corresponding read retry table to perform a read operation on the first storage cell according to the programming timestamp of the first storage cell; and performing a first refresh operation according to the programming timestamp of the first storage cell with written data. Attached Figure Description
[0008] Figure 1 The architecture of the relevant storage device, controller, and flash memory module according to an embodiment of the present invention is illustrated.
[0009] Figure 2 This invention explains how to select the retry table for reading.
[0010] Figure 3 This invention explains how the first refresh operation is performed on the first storage unit.
[0011] Figure 4 A flowchart illustrating the selection of the read retry table and the execution of the first refresh operation in an embodiment of the present invention is provided.
[0012] Figure 5 A flowchart illustrating the second refresh operation in an embodiment of the present invention is shown.
[0013] Figure 6 This section explains the error checking method for selecting the second sub-memory unit in this embodiment of the invention.
[0014] Figure 7 Explain the relationship between the first refresh operation and the second refresh operation in the embodiments of the present invention.
[0015] The reference numerals in the attached figures are explained as follows:
[0016] 100 storage devices
[0017] 120 controller
[0018] 122 processing units
[0019] 124 storage units
[0020] 130 Flash Module
[0021] 130_1~130_N flash memory chips
[0022] UNT1~UNTM First Storage Unit
[0023] SUNT1~SUNTQ Second Storage Unit
[0024] SSUNT1~SSUNTZ Second Sub-Storage Unit
[0025] Steps 410-430 and 510-530
[0026] 200 host Detailed Implementation
[0027] Numerous specific details are described below to provide the reader with a thorough understanding of embodiments of the invention. However, those skilled in the art will appreciate how the invention can be implemented in the absence of one or more specific details, or by utilizing other methods or components. In other instances, well-known structures, materials, or operations are not shown or described in detail to avoid obscuring the core concepts of the invention.
[0028] Furthermore, any examples or explanations given in this specification should not be limited or defined by any vocabulary used herein. Rather, these examples or explanations should be considered as descriptions of a particular embodiment and are for illustrative purposes only. Those skilled in the art will understand that any vocabulary used in these examples or explanations will be applicable to other embodiments given elsewhere in this specification. Terms used to indicate these non-limiting examples include, but are not limited to, “for example,” “as,” “for instance,” “in one embodiment,” and “in an example.”
[0029] The flowcharts and blocks in the specification illustrate the architecture, functionality, and operation achievable by systems, methods, and computer software products based on various embodiments of the invention. In this regard, each block in the flowchart or function block diagram may represent a module, segment, or portion of program code, comprising one or more executable instructions for implementing a specified logical function. Furthermore, each block in the function block diagram and / or flowchart, and combinations of blocks, can be implemented substantially by a dedicated hardware system that performs the specified function or action, or by a combination of dedicated hardware and computer program instructions. These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing apparatus to operate in a particular manner such that the instructions stored in the computer-readable medium implement the function / action specified by the blocks in the flowchart and / or function block diagram.
[0030] Figure 1 This is a schematic diagram of an embodiment of the present invention. As shown, the storage device 100 includes a controller 120 and a flash memory module 130, and is controlled by a host device 200 (the storage device 100 may even be part of the host device 200). The host device 200 may include at least one central processing unit (not shown), and controls the operation of the host device 200 by running an operating system and applications, and is linked to peripheral devices (not shown). The storage device 100 can be used to provide storage space to the host device 200, storing the program code and data necessary for running the operating system and various applications. Examples of the host device 50 may include: multifunctional mobile phones, tablet computers, wearable devices, and personal computers such as desktop computers or laptop computers. Examples of the storage device 100 may include (but are not limited to): solid state drives (SSDs) and various embedded storage devices (e.g., embedded storage devices conforming to UFS or eMMC specifications).
[0031] The controller 120 can be used to access the flash memory module 130. In one embodiment, the flash memory module 130 may be a 3D NAND-type flash memory and may include at least one flash memory chip, but this is not a limitation of the invention. Each flash memory chip includes multiple blocks, and the controller 120 performs data erasure operations on the flash memory module 130 on a block-by-block basis. Additionally, a block may record a specific number of data pages, and the controller 120 performs data writing operations on the flash memory module 130 on a page-by-page basis.
[0032] The controller 120 may include processing circuitry such as a microprocessor 122 and a storage unit 124, such as a read-only memory (ROM). The ROM 124 is primarily used to store program code and specific data, while the microprocessor 122 is used to execute the program code to control access to the flash memory module 130. Additionally, the controller 120 may also include other interface logic, control logic, and buffers, etc., to assist in implementing the various operations described below. However, for the sake of brevity, these are omitted here. Those skilled in the art, after reading the following, should understand how to combine known circuits with the circuit components and architectures disclosed herein to implement the various operations and related applications mentioned in the embodiments of the present invention.
[0033] In this embodiment, the host 200 can indirectly access the storage device 100 by transmitting a host command and a corresponding logical address to the controller 120. The controller 120 receives the host command (read or write command) and the logical address, and translates the host command into a memory operation command. The controller then uses the operation command to control the flash memory module 130 to read, write, program, or erase memory units, pages, or blocks at specific physical addresses within the flash memory module 130. Furthermore, the controller 120 also executes program code 1242C and / or references data within the memory unit 124 to perform a series of operations to achieve the specific operations mentioned below.
[0034] For read operations, if the controller 120 fails to read the correct data in a single read operation, the controller 120 will read one or more read retry tables stored in the storage unit 124. Based on the read voltage recorded in the read retry table, the controller controls the flash memory module 130 to read the data with different read voltages, thereby correctly reading the data required by the host 200.
[0035] In this invention, the selection of the read retry table by the controller 120 is related to the data retention time. The controller 120 establishes a programming timestamp corresponding to the first storage cell for each write operation in the flash memory module 130. When the host 200 subsequently issues a read command, the controller 120 selects the read retry table based on the information in the programming timestamp and the system time. In one embodiment, the first storage cell may be a super block.
[0036] Please refer to further information. Figure 2 An example is provided. In this example, it is assumed that the flash memory module 130 includes first storage cells UNT1 to UNTM (this is not a limitation of the present invention), and that data is written to the first storage cell UNT1 in usage process P1, data is written to the first storage cell UNT2 in usage process P2, and data is written to the first storage cell UNT3 in usage process P3. Then, if, in usage process P1, the host 200 issues a read command requesting to read data from the first storage cell UNT1, the controller 120 will use the retry table RTAB1 to perform the read. If, in usage process P2, the host 200 issues a read command requesting to read data from the first storage cell UNT1, the controller 120 will use the read retry table RTAB2 to perform the read, and the read operation for data in the first storage cell UNT2 in usage process P2 will use the read retry table RTAB1 to perform the read. If, during process P3, the host 200 issues a read command requesting to read data from the first storage unit UNT1, the first storage unit UNT2, and the first storage unit UNT3, the controller 120 will use the read retry tables RTAB3, RTAB2, and RTAB1 respectively to perform the reads. The read retry tables RTAB3, RTAB2, and RTAB1 are sequentially used to read data with retention times ranging from longest to shortest.
[0037] In one embodiment, to reduce the number of read retry entries and thus improve read retry efficiency, the controller 120 performs a global and periodic first refresh operation on the programming timestamp corresponding to the first storage cell in the flash memory module 130. Please refer to... Figure 3 The following example is provided to further understand the operating principle and impact of the first refresh operation of the present invention. As shown in the figure, it is assumed that the flash memory 130 includes first storage cells UNT1 to UNTM (this is not a limitation of the present invention). The controller 120 maintains a refresh list RLIST in the storage cells 124, records the programming timestamp corresponding to each first storage cell, and refreshes the cells according to their age.
[0038] Assume that in usage process P1, data is written to the first storage units UNT1 and UNT4; in usage process P2, data is written to the first storage units UNT2 and UNT5; and in usage process P3, data is written to the first storage units UNT6 and UNT8. Then, the controller 120 refreshes the first storage units in the previous usage process within the current usage process, completing this refresh before the current usage process ends. In this embodiment, during usage process P2, the controller 120 refreshes the first storage units UNT1 and UNT4, which were written to in the previous usage process P1, according to the refresh list RLIST, and completes the refresh operation before the end of usage process P2; similarly, during usage process P3, the controller 120 refreshes the first storage units UNT2 and UNT5, which were written to in the previous usage process P2, according to the refresh list RLIST, and completes the refresh operation before the end of usage process P3. In usage period P4, the controller 120 refreshes the first memory cells UNT6 and UNT8, which were written with data in the previous usage period P3, according to the refresh list RLIST, and completes the refresh operation before the end of usage period P4. Additionally, the first memory cell newly written by the refresh operation will also be refreshed in the next usage period. For example, assuming that in usage period P2, the refresh operation for the first memory cells UNT1 and UNT4 moved the data to the first memory cells UNT3 and UNT7, then in usage period P3, the first memory cells UNT3 and UNT7 will also be refreshed, and so on.
[0039] In this way, the data retention time of any first storage cell in the flash memory module 130 is at most the length of two usage cycles (assuming that the refresh is completed no later than the end of one usage cycle). Therefore, the storage cell 124 of the controller 120 only needs to store two read retry tables, RTAB1 and RTAB2, to cover all read errors caused by excessive storage time. For example, if in usage cycle P2, when intending to read data in the first storage cell UNT1, if the data in the first storage cell UNT1 has been moved to the first storage cell UNT3 through the aforementioned refresh operation, then only the read retry table RTAB1 needs to be used for reading; similarly, in usage cycle P2, if intending to read data in the first storage cell UNT4, if the data in the first storage cell UNT4 has not been refreshed, then the read retry table RTAB2 needs to be used for reading.
[0040] The above selection of the first refresh operation and the retry table can be summarized as follows: Figure 4 The process shown includes the following steps:
[0041] Step 410: Establish a programming timestamp corresponding to the data write time of each first storage unit;
[0042] Step 420: Based on the programming timestamp of the first storage unit, select a corresponding read retry table to perform a read operation on the first storage unit; and
[0043] Step 430: Perform a first refresh operation based on the programming timestamp of the first storage cell containing the written data.
[0044] Since steps 410 to 430 are simplified versions of the operations described in the foregoing embodiments, they will not be repeated here.
[0045] In one embodiment, to increase data reliability and ensure a high success rate for read retries, a second refresh operation is performed in addition to the first refresh operation. The process of the second refresh operation is as follows: Figure 5 As shown, it includes the following steps:
[0046] Step 510: Perform an error check on at least a portion of each of the second storage units containing the written data; and
[0047] Step 520: When the error check result indicates that the number of error bits is greater than a threshold, read the data stored in a first storage unit including the second storage unit, correct the data, and write it to another first storage unit; and
[0048] Step 530: Establish a programming timestamp for the other first storage unit.
[0049] Please further pair it. Figure 6 The following description is provided to further understand how the second refresh operation is performed in the embodiments of the present invention. As shown in the figure, the flash memory 130 may include multiple second storage cells SUNT1, SUNT2, ... and SNUTQ of the same size. Each storage cell SUNT1 to SUNTQ may further include the same number of second sub-storage cells SSUNT1 to SSUNT2.
[0050] In step 510, the controller 120 performs error checks on at least a portion of each second storage cell SUNT1 to SUNTQ. In one embodiment, the controller 120 unit may select a second sub-storage cell SSUNT1 from the second storage cell SUNT1, a second sub-storage cell SSUNT2 from the second storage cell SUNT2, ..., and a second sub-storage cell SSUNTQ from the second storage cell SUNTQ for error checking. This selection method is to avoid uneven sampling. For example, if sub-storage cells SSUNT1 or SSUNTQ are selected for checking in each second storage cell, sub-storage cells with the same number may be physically close and have similar physical characteristics, while other storage cells with different physical characteristics and prone to errors may be ignored. In one embodiment, the second storage cells SUNT1 to SUNTQ may be super pages, and the second sub-storage cells SSUNT1 to SSUNTQ may be data pages.
[0051] In this invention, the second refresh operation is conditional; that is, the controller 120 will only perform the second refresh operation on the second storage unit if the selected second sub-storage unit fails the error check. In step 520, the controller 120 determines whether to pass the error check by checking whether the number of error bits in the selected second sub-storage unit exceeds a threshold. If the error check result indicates that at least a portion of the error bits in a second storage unit exceeds the threshold, the controller 120 reads the data stored in the first storage unit including the second storage unit, corrects the data, and writes it to another first storage unit. In other words, if the number of error bits in a data page within a super data page is found to be too high, the data in a first super block including the second super data page will be refreshed. Furthermore, in step 530, a programming timestamp is established for the first storage unit. This is the second refresh operation of this invention.
[0052] In this embodiment, the first storage unit that needs to be refreshed is inserted into the order of the refresh list RLIST stored in storage unit 124 of controller 120. Please refer to... Figure 7 Explanation. For example... Figure 7As shown, the controller 120 originally performs the first refresh operation according to the refresh list RLIST, periodically performing it in the order of UNT2, UNT3, UNT4, and UNT6. It also periodically performs error checks simultaneously. However, when the controller 120 finds at time T1 that a checked second storage unit SUNT2 fails the check, it inserts a corresponding second refresh operation into the refresh list RLIST for the first storage unit UNT3, which includes the second storage unit SUNT2, and at time T2, performs a refresh operation on the data in the first storage unit UNT3.
[0053] As described above, this invention periodically refreshes the first storage unit (e.g., a superblock) containing written data. Furthermore, in each usage process, it executes the storage units written in the previous usage process, thereby effectively reducing the number of read retry tables required. Moreover, by periodically selecting portions of the second storage unit (e.g., data pages) for error checking, it better ensures that read retries can still be performed efficiently even after the number of read retry tables is reduced. In this way, the efficiency of read retries is improved.
[0054] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for managing multiple storage cells in a flash memory module, characterized in that, include: Performing the first type of refresh operation includes: In the first usage process, data is written to a superblock; In a second usage process, data is written to another superblock, wherein the second usage process follows the first usage process, and wherein the first and second usage processes have a fixed duration of the same length; and The first type of refresh operation is performed in the second usage process, and the first type of refresh operation is completed in the second usage process for refreshing all superblocks for which data was written in the first usage process; and Performing the second type of refresh operation includes: For multiple super data pages with written data, according to the arrangement order of the multiple super data pages, a data page with a specific order is selected from each super data page for error checking, wherein the relative order of the data pages selected in different super data pages is different from each other, and the error checking is performed periodically; and When the error check indicates that the number of error bits in a specific data page is greater than a threshold, a second type of refresh operation is performed to read the data stored in a superblock containing the specific data page, and the corrected data is written to another superblock; wherein the method also maintains a refresh list, and the first type of refresh operation is performed according to the order of the refresh list; and when the error check indicates that the number of error bits in the specific data page is greater than the threshold, the second type of refresh operation for the superblock containing the specific data page is inserted into the order of the refresh list.
2. The method as described in claim 1, characterized in that, Also includes: For reading superblocks whose data was written during the first usage process, a first read retry table is selected; as well as For reading superblocks whose data was written during the second usage process, a second read retry table is selected.
3. A controller for managing multiple storage cells of a flash memory, characterized in that, include: A storage unit used to store a piece of program code; as well as A processing unit, coupled to the storage unit, is configured to read the program code from the storage unit, execute the program code, and thereby perform the following operations: Performing the first type of refresh operation includes: In the first usage process, data is written to a superblock; In a second usage process, data is written to another superblock, wherein the second usage process follows the first usage process, and wherein the first and second usage processes have a fixed duration of the same length; and The first type of refresh operation is performed in the second usage process, and the first type of refresh operation is completed in the second usage process for refreshing all superblocks for which data was written in the first usage process; and Performing the second type of refresh operation includes: For multiple super data pages with written data, according to the arrangement order of the multiple super data pages, a data page with a specific order is selected from each super data page for error checking, wherein the relative order of the data pages selected in different super data pages is different from each other, and the error checking is performed periodically; and When the error check indicates that the number of error bits in a specific data page is greater than a threshold, a second type of refresh operation is performed to read the data stored in a superblock containing the specific data page, and the corrected data is written to another superblock; wherein the controller also maintains a refresh list, and the first type of refresh operation is performed according to the order of the refresh list; and when the error check indicates that the number of error bits in the specific data page is greater than the threshold, the second type of refresh operation for the superblock containing the specific data page is inserted into the order of the refresh list.
4. The controller as described in claim 3, characterized in that, The processing unit executes the program code to: For reading superblocks whose data was written during the first usage process, a first read retry table is selected; as well as For reading superblocks whose data was written during the second usage process, a second read retry table is selected.
5. A storage device, characterized in that, include: A flash memory module, comprising multiple storage units; as well as A controller for accessing the flash memory module, including: A storage unit for storing program code; and A processing unit, coupled to the storage unit, is configured to read the program code from the storage unit, execute the program code, and thereby perform the following operations: Performing the first type of refresh operation includes: In the first usage process, data is written to a superblock; In a second usage process, data is written to another superblock, wherein the second usage process follows the first usage process, and wherein the first and second usage processes have a fixed duration of the same length; and The first type of refresh operation is performed in the second usage process, and the first type of refresh operation is completed in the second usage process for refreshing all superblocks for which data was written in the first usage process; and Performing the second type of refresh operation includes: For multiple super data pages with written data, according to the arrangement order of the multiple super data pages, a data page with a specific order is selected from each super data page for error checking, wherein the relative order of the data pages selected in different super data pages is different from each other, and the error checking is performed periodically; and When the error check indicates that the number of error bits in a specific data page is greater than a threshold, a second type of refresh operation is performed to read the data stored in a superblock containing the specific data page, and the corrected data is written to another superblock; wherein the controller also maintains a refresh list, and the first type of refresh operation is performed according to the order of the refresh list; and when the error check indicates that the number of error bits in the specific data page is greater than the threshold, the second type of refresh operation for the superblock containing the specific data page is inserted into the order of the refresh list.
6. The storage device as claimed in claim 5, characterized in that, The controller selects a first read retry table for reading superblocks whose data has been written in the first usage process; and selects a second read retry table for reading superblocks whose data has been written in the second usage process.
Citation Information
Patent Citations
Flash memory data correction and scrub techniques
CN101630279A
Data writing method and apparatus
CN105242871A
Memory system and operating method thereof
CN106251903A
