A reliability optimization method based on high-density flash memory

By dividing the life stages in high-density flash memory and designing the corresponding Gray code arbitration mechanism, the problem of reliability and performance degradation of high-density flash memory is solved, the read performance and lifespan are improved, the Gray code conversion overhead is optimized, and different Phase reliability and performance balance.

CN115016736BActive Publication Date: 2024-09-13EAST CHINA NORMAL UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210673067.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-15
Publication Date
2024-09-13
Estimated Expiration
2042-06-15

AI Technical Summary

Technical Problem

In the process of pursuing higher storage density and low cost, high-density flash memory faces the problem of reduced reliability and performance. In particular, the difference in reliability of pages under different Gray codes leads to unbalanced read performance and shortened lifespan.

Method used

Adopt the Gray code arbitration method that is aware of the flash memory life stage, divide the flash memory into young, middle-aged and old stages, design the corresponding Gray code arbitration mechanism according to the reliability characteristics of each stage, optimize the Gray code conversion overhead, and improve the read performance and longevity.

Benefits of technology

By sensing the Gray code arbitration mechanism at different life stages, it improves the read performance and lifespan of high-density flash memory, reduces Gray code conversion overhead, and achieves reasonable placement of hot read data and error rate control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115016736B
    Figure CN115016736B
Patent Text Reader

Abstract

The invention discloses a reliability optimization method based on high-density flash memory, which is characterized in that a Gray code arbitration method based on the life stage of the flash memory is adopted to realize the reliability optimization of the high-density flash memory. The method is to set a data reread counter and a rewrite counter in a flash memory controller to distinguish the life stage of the flash memory, and design a corresponding Gray code arbitration mechanism for each flash memory life stage to schedule page resources inside the flash memory and optimize the reliability of the flash memory. Compared with the prior art, the invention has Gray code arbitration based on the life stage of the flash memory, realizes the improvement of the reading performance and life of the high-density flash memory, optimizes the additional Gray code conversion overhead of the high-density flash memory after enabling multiple Gray codes, effectively reduces the background reread and rewrite operations, greatly improves the reading performance and life of the multi-coded flash memory based on the high-density flash memory, and the method is simple, has good use effect, and has certain application prospects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of flash memory reliability, and in particular to a reliability optimization method based on high-density flash memory. Background Art

[0002] With the rapid development of 3D NAND flash memory technology, it has the advantages of large capacity, low cost and light volume, and is an important storage medium in solid-state drives (SSDs). The realization of high-density flash memory mainly lies in two technical aspects: first, the number of stacked layers has increased significantly, from the early 24 layers to the most advanced 220+ layers. Second, the improvement of storage element density, from SLC flash memory (1-bit / cell) to QLC flash memory (4-bits / cell). Flash memory vendors are still committed to higher-density flash memory, such as PLC (5-bits / cell) and HLC (6-bits / cell). These methods can significantly improve storage density and reduce production costs. However, high-density and low-cost flash memory faces two key problems, reliability and performance degradation, which hinder its further development. Previous work proposed a two-step programming (TSP) algorithm to improve write performance. Compared with the previous one-step programming (OSP) algorithm, TSP is more reliable. TSP consists of coarse-grained programming in the first step and fine-grained programming in the second step. Taking QLC flash memory as an example, in the first step of programming, the memory cells in the word line are programmed to the intermediate 16-level state. After programming the adjacent word line to the intermediate state, the memory cells on the current word line are programmed to the final state. In this case, the interference between word lines can be minimized. However, the above basic TSP programming algorithm introduces a higher programming delay. In order to improve programming efficiency, previous work proposed to reduce the overall programming delay by accelerating the first step of programming, and proposed several optimized TSP schemes. TSP(N,M) is used to represent different TSP algorithms, where N and M are the number of programming states in the first and second steps, respectively, including TSP(16,16), TSP(8,16) and TSP(4,16), among which TSP(4,16) has the shortest programming time.

[0003] However, different TSP algorithms support different Gray codes, which are highly correlated with read performance. Use GC(A,B,C,D) to represent different Gray codes, where A,B,C, and D are the number of reference voltages required to read four pages in QLC flash memory. Previous work has provided a variety of different Gray codes for QLC flash memory, mainly including GC(1,2,4,8), GC(1,2,6,6), GC(1,4,5,5), and GC(3,4,4,4).

[0004] Table 1 below shows the distribution of Gray code voltage levels of QLC flash memory and the number of reference voltages corresponding to pages under different Gray codes:

[0005] Table 1 Gray code voltage level distribution of QLC flash memory

[0006]

[0007] For example, under GC(3,4,4,4), reading the LSB page requires adding three reference voltages, while the remaining pages require adding four reference voltages. Among all TSP algorithms, TSP(16,16) can support any Gray code, such as GC(3,4,4,4). TSP(8,16) supports GC(1,2,4,8), and TSP(4,16) supports GC(1,2,6,6). TSP(4,16) with GC(1,2,6,6) has an unbalanced read performance among the four pages, which is called Unbalanced Gray Code (UGC). TSP(16,16) with GC(3,4,4,4) has a relatively balanced read performance among the four pages, which is called Balanced Gray Code (BGC). For balanced Gray code, its overall reliability will be better than that of unbalanced Gray code. The reason is that when the word line adopts unbalanced Gray code, the reliability difference between pages is large, the high-order page has poor reliability, and the low-order page has good reliability. Therefore, the reliability between pages is different when different Gray codes are adopted.

[0008] Table 2 below compares the read and write performance of different Gray codes and the supported TSP algorithms:

[0009] Table 2 Comparison of different Gray codes

[0010]

[0011] The present invention selects GC (3, 4, 4, 4) with better reliability and GC (1, 2, 6, 6) with better write performance to perform Gray code arbitration to improve the reliability and life of the flash memory.

[0012] In summary, in high-density flash memory, different Gray codes have different reliability characteristics. However, poor reliability will cause re-read operations to affect read performance, and even cause re-write operations to affect life. Summary of the invention

[0013] The purpose of the present invention is to provide a reliability optimization method based on high-density flash memory in view of the deficiencies of the prior art. The Gray code arbitration method corresponding to the design of different flash memory stages is adopted to optimize the reliability of high-density flash memory, so as to improve the read performance and improve the lifespan. The method defines three periods of the flash memory life stage, namely, youth, middle age and old age. Among them, in the youth stage, each page has excellent reliability; in the middle age stage, the balanced Gray code has good reliability, and the high-order pages of the unbalanced Gray code begin to have reread operations; in the old age stage, the balanced Gray code also has reread operations, and the high-order pages of the unbalanced Gray code gradually have rewrite phenomena, but the low-order pages still have good reliability. Through the Gray code arbitration mechanism perceived by the life stage, the read performance and lifespan of multi-encoded flash memory based on high-density flash memory are improved. The present invention perceives the reliability of flash memory, designs a corresponding Gray code arbitration mechanism for each flash memory life stage, and optimizes the additional Gray code conversion overhead of the high-density flash memory after enabling multiple Gray codes, thereby not only improving the read performance, but also improving the lifespan of the flash memory.

[0014] The specific technical scheme for achieving the purpose of the present invention is: a reliability optimization method based on high-density flash memory, which is characterized by adopting a Gray code arbitration method based on the life stage perception of the flash memory to achieve reliability optimization of the high-density flash memory. The method sets a Gray code arbitration mechanism based on the life stage perception of the flash memory composed of a data reread counter and a rewrite counter in the flash memory controller, perceives the flash memory reliability, divides it into different stages, designs a corresponding Gray code arbitration mechanism for each flash memory life stage, divides it into different life stages according to the reading situation of the page under the Gray code, and designs a Gray code arbitration mechanism for the reliability characteristics of the page under the Gray code in the corresponding life stage, thereby achieving reliability optimization of the high-density flash memory and improving the read performance and lifespan.

[0015] The present invention divides the entire life stage of a flash memory into three periods, namely, youth, middle age and old age, and designs a special Gray code arbitration mechanism for each flash memory period. The youth period refers to that the pages in the entire flash memory have good reliability, and in this stage, no additional reread and rewrite operations are generated; the middle age period refers to that when data is read, a reread operation begins to appear on the high-order pages of the unbalanced Gray code; the old age period refers to that a reread operation also appears on the data using the balanced Gray code. At this time, the high-order data under the unbalanced Gray code is rewritten due to an increase in the error rate caused by low reliability, but the low-order data pages still have good reliability and no reread operation occurs.

[0016] The key of the present invention is to divide the life period of the flash memory into multiple stages, and design a corresponding Gray code arbitration mechanism according to the reliability characteristics of the pages under each Gray code in each stage, so as to improve the reading performance and life. The basic idea is to use high-reliability pages to store hot read data as much as possible and minimize the conversion of Gray code.

[0017] The three life stages of the flash memory can be basically clearly divided, so the following Gray code arbitration mechanism can be designed for each stage. The balanced Gray code (BGC) used takes GC (3,4,4,4) as an example, and the corresponding two-step programming algorithm is TSP (16,16), while the unbalanced Gray code (UGC) takes GC (1,2,6,6) as an example, and the corresponding two-step programming algorithm is TSP (4,16).

[0018] For the youth stage, the flash memory reliability is good, so the page encoded with UGC unbalanced Gray code has comparable read performance to the page encoded with BGC balanced Gray code. However, TSP(4,16) has better programming performance than TSP(16,16). So, at this stage, it is recommended to use UGC as the default encoding and adopt the supported TSP(4,16) two-step programming algorithm. In this case, both read and write performance are very good. More importantly, only UGC encoding is used at this time, so there is no Gray code conversion cost.

[0019] For the middle-aged period, the data encoded using the TSP (4,16) programming algorithm and UGC may introduce re-read operations on the TSB and MSB based pages, adding two changes compared to the young period. First, BGC will be selected as the initial Gray code to encode the data written for the first time. Second, when the access count of the TSB and MSB pages encoded with UGC exceeds T UR When the data is updated, it is migrated to the blocks using BGC. Since frequently accessed data and data that is reread on low-reliability pages are moved to more reliable BGC blocks, read performance is optimized.

[0020] In the old age, the TSB and MSB pages encoded with TSP(4,16) and UGC are no longer reliable, and BGC will still be selected as the initial Gray code. Since the LSB and CSB pages based on the UGC block are still reliable, the hot read data will still be transferred to these two pages when they are identified in the BGC block. Since the reliability of the TSB and MSB pages encoded with UGC is low at this stage, only the first step of TSP(4,16) is processed, and only the first two pages in the word line are programmed. For the data previously programmed to the UGC-based block, the data of the TSB and MSB pages should be transferred to the BGC-based block during rewrite.

[0021] How to determine the flexible conversion of various life stages during the actual operation process, based on the definition of life stages, the present invention proposes a detection scheme for life stages. The basic idea is to check the reread operation on the TSB or MSB page of the UGC-based block, program the data into the UGC-based block regularly, and read the data on the TSB or MSB page. If no reread operation occurs, it is defined as the youth stage. If several retry operations occur, it will enter the middle age stage. The threshold of the number of rereads can be set flexibly, and it is recommended to set the threshold according to the maximum number of rereads supported in the flash memory. Finally, if the retry fails, the LDPC-based soft decoding will be activated and it will enter the old age stage. This is because in the current design, the rewrite operation will be activated. The detection scheme is simple but effective because the reread operation on the TSB or MSB page of the UGC-based block is a good measure of the reliability of the flash memory.

[0022] Compared with the prior art, the present invention has Gray code arbitration sensed by the life stage of the flash memory, thereby improving the read performance and life of the high-density flash memory, optimizing the additional Gray code conversion overhead of the high-density flash memory after enabling multiple Gray codes, and improving the read performance and life of the multi-coded flash memory based on the high-density flash memory. The method is simple, the use effect is good, and it has certain application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 Figure 1. Gray code arbitration mechanism for flash memory life stage awareness.

[0024] Figure 2 This is a flash memory architecture diagram. DETAILED DESCRIPTION

[0025] The present invention designs a corresponding Gray code arbitration mechanism according to the reliability characteristics of the page under the Gray code, thereby achieving the improvement of the reading performance and the improvement of the life span. In order to explore the various life stages of the flash memory, the present invention divides the entire life stage of the flash memory into three periods, namely, the youth period, the middle-aged period and the old age period. Among them, the youth period refers to the good reliability of the pages in the entire flash memory. In this stage, no additional reread and rewrite operations are generated. The middle-aged period refers to the high-order pages of the unbalanced Gray code starting to have a reread operation when the data is read. The old age period refers to the data using the balanced Gray code also having a reread operation. At this time, the high-order data under the unbalanced Gray code is rewritten due to the increase in the error rate caused by the low reliability. However, the low-order data page still has good reliability and no reread operation occurs.

[0026] See also Figure 1 , life stage-aware Gray code arbitration, performs the following operations respectively:

[0027] Step 1: AH is written for the first time;

[0028] Step 2: Data A and C are read frequently;

[0029] Step 3: Data B and H are updated;

[0030] Step 4: Update data D and E;

[0031] Step 5: Read data D and E frequently.

[0032] See also Figure 1 a. For the adolescent stage, pages programmed with TSP(4,16) and encoded with UGC have comparable read performance to BGC. In the adolescent stage, using UGC as the default Gray code, both read and write performance are excellent. More importantly, there is no Gray code conversion cost. The specific steps for Gray code arbitration in the adolescent stage are as follows:

[0033] All data is encoded with UGC and programmed using TSP (4,16) for the first write (perform step 1) and when the data is frequently accessed (perform step 2). Since the flash memory has good reliability at this stage, no conversion occurs and the updated data will still be encoded with UGC (perform step 3).

[0034] See also Figure 1 b. For the middle-aged phase, data programmed with TSP(4,16) and encoded with UGC may introduce retries on TSB- and MSB-based pages. The middle-aged phase adds two changes compared to the young phase. First, BGC will be selected as the initial Gray code to encode the data written for the first time. Second, when the access count of the TSB or MSB page using UGC exceeds T UR When the data is read frequently and retried on low reliability pages, it is transferred to the blocks with BGC. The read performance is optimized because the frequently read data and the data retried on the low reliability pages are transferred to the blocks with BGC. The specific operation steps of the middle-aged Gray code arbitration are as follows:

[0035] Data AH is first written to the BGC-based block (execute step 1) and then updated to the UGC-based block (execute steps 3 and 4). Data A and C in the BGC-based block are frequently accessed and exceed the threshold, but since the reliability of the BGC-based block is still high at this stage, the conversion is not triggered (execute step 2). However, if the data (D and E) stored in the UGC-based block is accessed, they will be transferred to the block with BGC for read performance optimization (execute step 5). It should be noted that data D and E should be combined with another two pages of hot-read data from the TSB or MSB page on the UGC-based block, and four pages of data are programmed into one word line.

[0036] See also Figure 1c. In the old age, the TSB and MSB pages are no longer reliable using TSP(4,16) and UGC encoding, and BGC will still be selected as the initial Gray code, since the LSB and CSB pages of the UGC-based block are still reliable. Therefore, when they are identified in the BGC-based block, the hot read data is still transferred to these two pages. Since the reliability of the TSB and MSB pages of UGC encoding is low at this stage, only the first step of TSP(4,16) is processed, and only the first two pages in the word line are programmed. For the data previously programmed to the UGC-based block, the data of the TSB and MSB pages should be transferred to the BGC-based block during rewrite. The specific operation steps of Gray code arbitration in the old age are as follows:

[0037] Data AH is first written to the BGC-based block (execute step 1), and for data updates, they will be written to the BGC-based block (execute steps 3 and 4). For frequently accessed data in the BGC block, they are transferred to the LSB or MSB page of the UGC block to optimize the read performance (execute step 2).

[0038] See also Figure 2 The present invention adds a life stage-aware Gray code arbitration mechanism module to the high-density flash memory-based architecture, which is mainly implemented in the following steps:

[0039] 1) According to the reliability characteristics of different Gray codes, the hot read data is reasonably placed in each life stage of the flash memory. The basic implementation process is to set a counter to count whether reread and rewrite operations occur on each type of page of different Gray codes.

[0040] 2) Based on step 1, initially, the flash memory is in the youth stage. If a reread operation is found on the counters of the TSB and MSB pages of the unbalanced Gray code, then the current life stage enters the middle age stage from the youth stage.

[0041] 3) Based on step 2, if a re-read operation is found on the page using the balanced Gray code, and a re-write operation occurs on the TSB and MSB pages using the unbalanced Gray code, then the flash memory enters the old age from the middle age.

[0042] 3) Based on steps 1 to 3, in the youth stage, UGC is used as the default Gray code; in the middle age stage, BGC is used as the code for the first data write, and UGC is used to accelerate programming after the update. When hot-read data is found on the TSB or MSB page of UGC, it is migrated to the BGC block; in the old age stage, the initial code is still BGC, and BGC is still used after the data is updated. Only when hot-read data is found, it needs to be migrated to the LSB or CSB page of UGC for access acceleration.

[0043] The above life stage-aware Gray code arbitration mechanism formulates corresponding Gray code selection rules for the three stages of the divided flash memory, while considering the placement of hot read data and reducing the conversion between Gray codes.

[0044] The algorithm for fast programming of the present invention can only support Gray code with poor read performance, while Gray code with good read performance can only be supported by poor programming algorithms. Through the life stage-aware Gray code arbitration mechanism, the access characteristics of the data and the page reliability characteristics under Gray code programming can be fully considered to improve the read performance and life of multi-encoded flash memory based on high-density flash memory. The present invention optimizes the additional Gray code conversion overhead of high-density flash memory after enabling multiple Gray codes and effectively reduces the background re-read and re-write operations, thereby not only improving the read performance, but also improving the life of the flash memory.

[0045] The above is only a further explanation of the present invention and is not intended to limit this patent. Any equivalent implementation of the present invention should be included in the scope of the claims of this patent.

Claims

1. A reliability optimization method based on high-density flash memory, characterized in that A Gray code arbitration method based on the perception of the life stage of a flash memory is adopted to achieve reliability optimization of a high-density flash memory. The method is to set a data reread counter and a rewrite counter in a flash memory controller to implement a Gray code arbitration mechanism based on the perception of the life stage of the flash memory, including the Gray code types used when data is first written, updated, and frequently read, so as to improve the reliability and life of the flash memory. The flash memory life stage is divided into youth, middle age, and old age. Gray code arbitration is performed based on the reliability characteristics of pages under each Gray code in each stage, so that high-reliability pages store hot-read data, reduce reread and rewrite operations on hot-read data, reduce Gray code conversion, and improve read performance and life. The youth stage is when the pages in the entire flash memory have good reliability, and no additional reread and rewrite operations are generated in this stage. The middle age stage is when data is read, high-order pages of unbalanced Gray codes begin to have reread and rewrite operations. operation; in the old age, the data using balanced Gray code also has a reread operation. At this time, the high-order data under the unbalanced Gray code is rewritten due to the increase in error rate caused by low reliability, but the low-order data page still has good reliability and no reread operation occurs; the Gray code arbitration mechanisms in different life stages are the Gray code arbitration mechanisms of the youth, middle-aged and old age of the flash memory respectively; the Gray code arbitration mechanism in the youth stage uses the two-step programming algorithm TSP (4,16), and the page using UGC has the same read and write performance as the page of the balanced Gray code. UGC is used as the default encoding in this stage, and both have good read and write performance, and there is no Gray code conversion cost; the Gray code arbitration mechanism in the middle age stage selects BGC as the initial Gray code to encode the data written for the first time. When the access count of the TSB and MSB pages encoded with UGC exceeds T UR When the data is rewritten, the frequently accessed data and the data reread on the low reliability page are migrated to the block using BGC, so that the read performance is optimized; the Gray code arbitration mechanism in the old age period selects BGC as the initial Gray code, and the LSB and CSB pages of the block based on UGC are still reliable. When it is identified in the BGC block, the hot read data is still transferred to these two pages. Due to the low reliability of UGC in this stage, only the first step of TSP (4, 16) is programmed, that is, only the first two pages in the word line are programmed. For the data previously programmed to the UGC block, the data of the TSB and MSB pages are transferred to the BGC block during the rewrite; the Gray code arbitration mechanism in different life stages is a detection scheme designed to flexibly convert various life stages according to the actual operation process. By checking the reread operation on the TSB or MSB page based on the UGC block, if no reread operation occurs, it is defined as the youth stage; if several retry operations occur, it enters the middle age stage, and the threshold of the number of rereads is set according to the maximum number of rereads supported in the flash memory; If the retry fails, LDPC-based soft decoding will be activated, data rewriting will occur, and it will enter the old age.