Memory management method and storage device

By monitoring and adjusting the word line performance difference of 3D NAND flash memory, the word line degradation characteristics are dynamically matched, solving the problem that the performance degradation of boundary word lines is faster than that of internal word lines, thus improving the reliability and stability of the storage system.

CN123182734APending Publication Date: 2026-11-27SHENZHEN XINGHUO SEMICON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611699984.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-30
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In existing technologies, due to process differences, the performance of boundary word lines in 3D NAND flash memory degrades faster than that of word lines within the same management area, leading to increased bit error rate and affecting the long-term reliability of the storage system.

Method used

By monitoring the performance indicators of word lines within the management area, especially the time change rate of the original bit error rate and the wear and degradation rate, comparing the difference between the boundary word lines and the internal word lines, adjusting the word line index range according to the spatial gradient of the performance indicators of adjacent management areas, and updating the electrical parameter offset table of the management area, the degradation characteristics of the word lines are dynamically matched.

Benefits of technology

It improves the accuracy of electrical parameter compensation, suppresses the deterioration of read margin, and extends the stable operating life of the storage device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182734A_ABST
    Figure CN123182734A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of storage control, and discloses a memory management method and a storage device. The method comprises the following steps: monitoring the performance indexes of word lines in each management area at a preset period, updating the electrical parameter area offset of the area offset table corresponding to each management area based on the performance indexes, wherein the performance indexes comprise an original bit error rate time change rate and a wear degradation rate; comparing the performance index difference of boundary word lines and internal word lines in each management area, the boundary word lines being the word lines adjacent to adjacent management areas in the management area, wherein the internal word lines are the word lines other than the boundary word lines in the management area; when the performance index difference meets the triggering condition of the boundary management operation, adjusting the word line index range of at least one management area in the multiple management areas according to the performance index spatial gradient between the adjacent management areas, so as to re-distribute the boundary word lines to the management areas which are more matched with the performance indexes of the boundary word lines, and updating the area offset table corresponding to the adjusted management area.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of storage control technology, and in particular to a memory management method and a storage device. Background Technology

[0002] With the continuous evolution of semiconductor manufacturing processes, three-dimensional stacked NAND flash memory (3D NAND) has become the mainstream storage medium. In 3D NAND, word lines are stacked in multiple layers along the vertical direction. Due to differences in process technology, the interference between word lines in different layers exhibits a non-linear growth trend. This interference effect directly affects the charge stability of the memory cell.

[0003] In existing technologies, word lines are typically pre-divided into several fixed management areas, with each area configured with an independent set of electrical parameter offsets to achieve partition compensation. Some solutions update the offsets based on the average original bit error rate or wear level of the entire management area, or dynamically adjust the management table parameters based on external factors such as temperature and model. However, in actual 3D NAND applications, boundary word lines are often affected by multiple factors, including electric field boundary effects from adjacent areas, bonding interface trap states, and etch gradients, causing their performance to degrade faster than word lines within the same management area. Furthermore, as the number of layers and the number of bits per cell increase, this difference in reliability degradation rate gradually widens. Simply relying on initial fixed word line grouping or a unified management strategy is no longer sufficient to maintain a stable read margin in the long term, leading to increased bit error rates and impacting the long-term reliability of the storage system. Summary of the Invention

[0004] Based on this, in order to solve the problems of fixed management area boundaries in existing technologies and inability to adapt to dynamic changes in word line degradation space, a memory management method and memory device are proposed.

[0005] In a first aspect, a method is provided for use in a storage device, the storage device including a memory controller and a memory module, the memory module including multiple word lines, dividing the multiple word lines in the memory module into multiple management areas, each management area corresponding to a region offset table, the region offset table recording the region offset of electrical parameters of the word lines within the corresponding management area, the method comprising: The performance indicators of word lines in each management area are monitored at a preset period. Based on the performance indicators, the electrical parameter area offset of the corresponding area offset table of each management area is updated. The performance indicators include the original bit error rate over time and the wear and degradation rate. The original bit error rate over time represents the ratio of the change in the original bit error rate of the word line within the preset period to the preset period. The wear and degradation rate represents the ratio of the word line threshold voltage drift to the erase / write cycle increment within the preset period. Compare the performance index difference between the boundary word lines and the internal word lines in each management area. The boundary word lines are the word lines in the management area that are adjacent to the adjacent management areas, and the internal word lines are the word lines in the management area other than the boundary word lines. When the performance index difference meets the triggering condition of the boundary management operation, the word line index range of at least one of the multiple management areas is adjusted according to the performance index spatial gradient between adjacent management areas, so as to reassign the boundary word line to a management area that better matches its performance index, and update the area offset table corresponding to the adjusted management area.

[0006] In a second aspect, a storage device 12 is provided, comprising: a connection interface 121 for electrically connecting to a host; a memory module 122, which is a 3D NAND Flash, and is a dual-deck stacked architecture and / or a 3D NAND Flash employing a central X-DEC architecture, including multiple word lines and multiple planes, each plane including multiple blocks, each block including multiple word lines, each word line including multiple pages, the multiple pages being addressed by the multiple word lines, and each page including multiple memory cells; and a memory controller 123, coupled to the connection interface 121 and the memory module 122, configured to perform a memory management method as described in any of the first aspects.

[0007] The beneficial effects of this application are as follows: By comparing the performance index difference between the boundary word line and the internal word line within the same management area, when the difference meets the trigger condition, it indicates that the original boundary is no longer suitable for the current degradation distribution. Based on the performance index spatial gradient between adjacent management areas, the boundary word line is redistributed to a more matching management area and the management table is updated. This process enables the management area boundary to adaptively adjust with the evolution of the degradation space, ensuring that each word line always belongs to the management area that best matches its degradation characteristics, thereby improving the accuracy of electrical parameter compensation, effectively suppressing the deterioration of read margin caused by boundary rigidity, and extending the stable operating life of the storage device under complex operating conditions. Attached Figure Description

[0008] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0009] Figure 1 This is a schematic diagram of a data storage system according to an embodiment of this application; Figure 2 This is a schematic diagram of a memory controller according to an embodiment of this application; Figure 3This is a schematic diagram of a memory module according to an embodiment of this application; Figure 4 This is a flowchart illustrating a memory management method according to an embodiment of this application; Figure 5 This is a schematic diagram of the vertical distribution of the management area in a 3D NAND stacking structure according to an embodiment of this application; Figure 6 This is a schematic diagram showing the comparison before and after the dynamic re-division of the boundary lines of the management area according to the embodiments of this application; Figure 7 This is a schematic diagram illustrating the superposition principle of the dual-layer management table structure and electrical parameter offset shown in the embodiments of this application; Figure 8 This is a schematic diagram of the merging and splitting states of the region offset table according to the embodiments of this application; Figure 9 This is a schematic diagram of performance degradation trend fitting and predictive advance adjustment timing shown in the embodiments of this application. Detailed Implementation

[0010] Reference will now be made in detail to exemplary embodiments of this application, examples of which are illustrated in the accompanying drawings. Wherever possible, the same element symbols are used in the drawings and description to denote the same or similar parts.

[0011] Figure 1 This is a schematic diagram of a data storage system according to an embodiment of this application. Please refer to... Figure 1 The data storage system 10 includes a host 11 and a storage device 12. The storage device 12 can be connected to the host 11 and can be used to store data from the host 11. For example, the host 11 can be a smartphone, tablet computer, laptop computer, desktop computer, industrial computer, automotive infotainment system, advanced driver assistance system (ADAS), game console, server, or computer system set up in a specific carrier (such as a vehicle, aircraft, or ship), and the type of host 11 is not limited to these.

[0012] The host 11 includes a processor and memory, and the processor is responsible for all or part of the operation of the host 11. The processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a programmable controller, an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or other similar devices or combinations thereof.

[0013] The memory is connected to the processor and used to cache data. For example, the memory may include random access memory (RAM) or a similar volatile storage device. It should be noted that the memory is located in the host 11 (e.g., on the motherboard of the host 11 or directly in the processor), and not in the storage device 12.

[0014] In addition, storage device 12 may include non-volatile storage devices such as solid-state drives (SSDs) and universal flash storage (UFS) that support host memory buffers (HMBs) or host performance boosters (HPBs).

[0015] Storage device 12 includes a connection interface 121, a memory module 122, and a memory controller 123. The connection interface 121 is used to connect storage device 12 to host 11. For example, connection interface 121 may support UFS, PCIe, NVMe, SATA, or other types of connection interface standards. Therefore, storage device 12 can communicate with host 11 via connection interface 121, for example, exchanging signals, instructions, and / or data.

[0016] Memory module 122 is used to store data. Memory module 122 is a 3D NAND Flash, and may be a dual-deck architecture 3D NAND Flash employing a central X-Decoder (X-DEC) architecture, including multiple word lines and multiple planes. Each plane includes multiple blocks, and each block includes multiple pages. Memory module 122 includes an on-chip temperature sensor and a sense amplifier / page cache, and supports vendor-specific read commands. Memory module 122 may include one or more rewritable non-volatile memory modules, each of which may include one or more memory cell arrays. Memory cells in the memory cell array store data in the form of charge, and the stored data is characterized by a threshold voltage.

[0017] For example, memory module 122 may include one or more rewritable non-volatile memory modules. Each rewritable non-volatile memory module may include one or more memory cell arrays. The memory cells in the memory cell array store data in the form of electric charge, and the stored data is characterized by a threshold voltage.

[0018] For example, memory module 122 may include a single-level cell (SLC) NAND flash memory module, a multi-level cell (MLC) NAND flash memory module, a triple-level cell (TLC) NAND flash memory module, a quad-level cell (QLC) NAND flash memory module, and / or other memory modules with the same or similar characteristics. Among these, MLC, TLC, QLC, and PLC NAND flash memory modules can undergo special screening and testing to meet the requirements of wide operating temperature range (e.g., -40°C to 105°C or higher), high durability, and data retention.

[0019] The memory controller 123 is connected to the connection interface 121 and the memory module 122. The memory controller 123 can be considered as the control core of the storage device 12 and is used to control the storage device 12. For example, the memory controller 123 can be used to control or manage the overall or partial operation of the storage device 12. For example, the memory controller 123 may include a central processing unit (CPU), a digital signal processor (DSP), a programmable controller, an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or other similar devices or combinations thereof.

[0020] The memory controller 123 can send instruction sequences to the memory module 122 to access the memory module 122. For example, the memory controller 123 can send programming instruction sequences to the memory module 122 to instruct the memory module 122 to store data in a specific memory cell. For example, the memory controller 123 can send read instruction sequences to the memory module 122 to instruct the memory module 122 to read data from a specific memory cell. The memory controller 123 can send erase instruction sequences to the memory module 122 to instruct the memory module 122 to erase data stored in a specific memory cell. Furthermore, the memory controller 123 can also send other types of instruction sequences to the memory module 122 to instruct the memory module 122 to perform other types of operations, which are not limited in this application. The memory module 122 can receive instruction sequences from the memory controller 123 and access its internal memory cells accordingly.

[0021] Figure 2 This is a schematic diagram of a memory controller according to an embodiment of this application. Please refer to... Figure 1 and Figure 2The memory controller 123 includes a host interface 21, a memory interface 22, and a memory control circuit 23. The host interface 21 is used to connect to the host 11 via the connection interface 121 for communication with the host 11. The memory interface 22 is used to connect to the memory module 122 for access to the memory module 122.

[0022] Memory control circuitry 23 is connected to host interface 21 and memory interface 22. Memory control circuitry 23 can be used to control or manage the overall or partial operation of memory controller 123. For example, memory control circuitry 23 can communicate with host 11 via host interface 21 and access memory module 122 via memory interface 22. For example, memory control circuitry 23 may include an embedded controller or a microcontroller. In the following embodiments, the description of memory control circuitry 23 is equivalent to the description of the control core in memory controller 123.

[0023] In one embodiment, the memory controller 123 may further include a buffer memory 24. The buffer memory 24 is connected to the memory control circuitry 23 and is used to cache data. For example, the buffer memory 24 may be used to cache instructions from the host 11, data from the host 11, and / or data from the memory module 122. The L2P table is typically resident or cached in the buffer memory 24 to support high-speed access and updates. To ensure the reliability and consistency of the mapping table data during abnormal power loss, the buffer memory 24 may be combined with a backup capacitor or circuitry with power loss protection (PLP) to write critical metadata to a non-volatile log area in the memory module 122 during power loss.

[0024] In one embodiment, the memory controller 123 may further include an error checking and correction circuit 25. The error checking and correction circuit 25 is connected to the memory control circuit 23 and is used to perform encoding and decoding on data to ensure data integrity. For example, the error checking and correction circuit 25 may support various encoding / decoding algorithms such as low-density parity-check code (LDPC code), BCH code, Reed-Solomon code (RS code), and XOR code. The error checking and correction circuit 25 may output at least one of the following: hard-decision decoding iteration count, number of error bits, error bit position, checker weight, and soft-information log-likelihood ratio magnitude, as decoding feedback information for the memory management method.

[0025] Figure 3 This is a schematic diagram of a memory module according to an embodiment of this application. Please refer to... Figures 1 to 3 The memory module 122 includes multiple physical units 301(0) to 301(B). Each physical unit includes multiple storage units for non-volatile storage of data.

[0026] In one embodiment, a physical unit may include a physical erase unit, which can be considered as a physical block, and a physical block may include multiple physical programmatic units (Pages).

[0027] In one embodiment, an entity programming unit may include multiple entity sectors. For example, the data capacity of an entity sector may be 512 bytes (B), and an entity programming unit may include 32 entity sectors. However, the data capacity of an entity sector and / or the total number of entity sectors included in an entity programming unit can be adjusted according to practical needs, and this application is not limited thereto. For example, the storage capacity of an entity programming unit may be 16 kilobytes, and this application is not limited thereto.

[0028] In one embodiment, a physical programmed unit is the smallest unit of synchronously written data in the memory module 122. For example, when performing a programming operation (also known as a write operation) on a physical programmed unit to write data to that physical programmed unit, multiple memory cells in that physical programmed unit can be synchronously programmed to store corresponding data, and when programming a physical programmed unit, a write voltage can be applied to that physical programmed unit to change the threshold voltage of at least some of the memory cells in that physical programmed unit. For example, the threshold voltage of a memory cell may reflect the bit data stored in that memory cell.

[0029] In one embodiment, multiple programmed units in a physical erase unit can be erased simultaneously. For example, when performing an erase operation on a physical erase unit, an erase voltage can be applied to multiple programmed units in this physical erase unit to change the threshold voltage of at least some of the storage cells in these programmed units. By performing an erase operation on a physical erase unit, the data stored in this physical erase unit can be erased.

[0030] In one embodiment, the memory control circuit 23 can logically associate physical units 301(0) to 301(A) and 301(A+1) to 301(B) with data area 31 and free area 32, respectively. Physical units 301(0) to 301(A) in data area 31 all store data from host 11 (also referred to as user data). For example, any physical unit in data area 31 can store valid data and / or invalid data. Furthermore, physical units 301(A+1) to 301(B) in free area 32 do not store any data (e.g., valid data).

[0031] In one embodiment, if a physical unit does not store valid data, this physical unit can be associated with free area 32. Furthermore, physical units in free area 32 can be erased to clear the data within them. In one embodiment, physical units in free area 32 are also referred to as idle physical units. In one embodiment, free area 32 is also referred to as a free pool.

[0032] In one embodiment, in response to the requirements of predictable storage lifetime for industrial and automotive applications, the memory control circuit 23 can implement wear leveling and bad block management strategies, and monitor the number of erase / write cycles, read counts and data retention time of each block in real time, so as to provide the host 11 with a health status report and remaining lifetime prediction of the storage device 12, thereby meeting the diagnostic coverage requirements of relevant functional safety standards.

[0033] In one embodiment, when data needs to be stored, the memory control circuit 23 can select one or more physical units from the free area 32 and instruct the memory module 122 to store the data into the selected physical unit. After the data is stored in this physical unit, this physical unit can be associated with the data area 31. In other words, one or more physical units can be used cyclically between the data area 31 and the free area 32.

[0034] In one embodiment, the memory control circuit 23 may be configured with a plurality of logic units 302(0) to 302(C) to map physical units 301(0) to 301(A) in the data area 31. For example, a logic unit may correspond to a logical block address (LBA) or other logical management unit. A logic unit may be mapped to one or more physical units.

[0035] In one embodiment, if a physical unit is currently mapped by any logical unit, the memory control circuit 23 can determine that the data currently stored in this physical unit includes valid data. Conversely, if a physical unit is not currently mapped by any logical unit, the memory control circuit 23 can determine that this physical unit does not currently store any valid data.

[0036] In one embodiment, the memory control circuit 23 may record the mapping relationship between logical units and physical units in at least one management table (also known as a logical-to-physical mapping table, or L2P table). In one embodiment, the memory control circuit 23 may instruct the memory module 122 to perform operations such as data reading, writing, or erasing based on the information in this logical-to-physical address mapping table.

[0037] Figure 4This is a flowchart illustrating the memory management method provided in the embodiments of this application. Figure 1 This method is applied to a storage device 12 including a memory module 122 and is executed by a memory controller 123. The memory module 122 is a charge-trap flash (CTF) memory module comprising multiple blocks.

[0038] Additionally, memory module 122 includes an on-chip temperature sensor, instruction decoder, word line driver, select gate driver, and sense amplifier / page cache. The sense amplifier / page cache may include a comparator for sensing. The on-chip temperature sensor and sense amplifier / page cache are internal hardware of memory module 122, and no new hardware separate from the storage device 12 is required.

[0039] Furthermore, the memory module 122 can support vendor-specific read commands and return a health status indicator through a status register or a feature register. Vendor-specific read commands include the enhanced read retry command described later, and the health status indicator includes the original bit error rate range, the number of read retries, or the quantized value of the program erase cycle count.

[0040] From the firmware operation logic perspective, the main flow of the memory management method in this application is divided into three stages: The power-on initialization stage loads the management table, initializes the word line index range, and the global baseline table; the background task stage periodically monitors real-time performance indicators, calculates the performance space gradient, determines the repartitioning trigger condition, performs boundary adjustments, and updates the management table; the foreground operation stage responds to host read / write requests, queries the management area where the target word line is located, obtains the offset, and performs the target operation after overlaying the offset. Here, it is necessary to combine... Figure 5 This provides a preliminary description of the management area involved in this application. Please refer to... Figure 5In this embodiment, the 3D stacked structure of the memory module 122 is divided into multiple types of management areas along the vertical direction (Z-axis direction), including, from top to bottom, an etch variation area (PDER), a bonding transition area (DBTR), a bonding interface area (BIR), a central stable area (DCR), and a bottom etch variation area (PDER). The memory module 122 includes multiple word lines, which are divided into multiple management areas. Each management area covers several layers of word lines. Word lines directly adjacent to adjacent management areas are called boundary word lines (WL), and word lines within a management area that are not adjacent to other management areas are called inner word lines (WL). Each management area is configured with a corresponding region offset table, which records the electrical parameter region offset of the word lines within the corresponding management area. Each management area exhibits differentiated degradation characteristics due to different process locations, which is the physical basis for subsequent dynamic boundary adjustment and partition compensation.

[0041] Specifically, Figure 4 The example memory management method can be implemented through steps S1 to S3, as detailed below: Step S1: Monitor the performance indicators of word lines in each management area at a preset period, and update the electrical parameter area offset of the corresponding area offset table of each management area based on the performance indicators. The performance indicators include the original bit error rate over time and the wear and degradation rate. The original bit error rate over time represents the ratio of the change in the original bit error rate of the word line within the preset period to the preset period. The wear and degradation rate represents the ratio of the word line threshold voltage drift to the erase / write cycle increment within the preset period.

[0042] At the firmware level of 3D NAND flash memory, traditional solutions typically rely solely on a single raw absolute value of the bit error rate or the number of erase / write cycles to assess the health of word lines. This approach cannot distinguish between two fundamentally different degradation mechanisms: "a slow increase in bit error rate due to extended data retention time" and "a rapid drift in threshold voltage due to erase / write wear." To address this issue, this application introduces a two-dimensional real-time performance indicator monitoring mechanism.

[0043] The memory control circuit 23 performs performance index sampling as a background low-priority task at a preset period (e.g., every 24 hours) and / or a preset erase / write cycle increment period. The original bit error rate over time is calculated based on the time interval between two adjacent samples, and the wear and degradation rate is calculated based on the erase / write cycle increment between two adjacent samples. Specifically, the performance index includes the following two items: The first item is the Raw Bit Error Rate Time Variation Rate. This metric is defined as: within a preset sampling period... The change in the original bit error rate of the word line. and The ratio, i.e. The raw bit error rate (BER) refers to the error rate of the raw data before ECC decoding. Its value can be obtained by sending a manufacturer-specific read command to the memory module 122 to acquire the error bit count before ECC decoding. This metric is obtained by calculating the change in the raw BER between two adjacent samples and dividing it by the sampling interval. This metric reflects the rate of BER degradation of a word line during data holding or under read interference stress. For example, if the raw BER of a word line during the first sample is... The original bit error rate was [value] when sampled a second time 24 hours later. The original bit error rate time variation rate of this word line is... The larger this value, the worse the data retention capability of the character line or the more severe the impact of reading interference.

[0044] The second item is the Wear Degradation Rate. This metric is defined as the percentage of wear and degradation occurring within a preset erase / write cycle increment. Internal word line threshold voltage drift and The ratio, i.e. The physical meaning of threshold voltage drift is the amount of voltage shift corresponding to a unit erase / write cycle increment, rather than the change in the number of erase / write cycles per unit time. The threshold voltage drift can be obtained by reading the critical voltage distribution of a specific reference memory cell within the word line. It should be noted that the wear degradation rate is not simply the "rate of change of P / E cycle count over time"—because all word lines within the same physical block share almost the same number of erase / write cycles, simply counting the number of erase / write cycles cannot reflect the spatial differences between boundary word lines and internal word lines. This application characterizes the sensitivity of a word line to wear by measuring the actual drift of its threshold voltage after a certain number of erase / write cycles. For example, if a word line experiences an 80 mV drift in its threshold voltage after 500 erase / write cycles, then the wear degradation rate of that word line is... The larger this value, the more sensitive the character line is to erasure and wear, and the faster its electrical properties deteriorate with increasing usage.

[0045] After acquiring the two performance metrics mentioned above, the memory control circuit 23 updates the electrical parameter region offsets in the corresponding region offset tables for each management area based on these metrics. Here, the update operation refers to calculating the new offset and replacing the old offset based on the newly sampled performance metrics using a preset mapping function or lookup table. For example, for the original bit error rate time variation rate, it can be input into a linear or nonlinear mapping function. f The first offset component is obtained. For the wear and degradation rate, it can be input into another mapping function.g The second offset component is obtained. These two offset components will be stored in the region offset table for use in subsequent operations. Through this periodic update mechanism, the offsets in the region offset table can be dynamically adjusted to follow the actual degradation process of word line performance, avoiding the failure of static offsets in long-term use.

[0046] Step S2: Compare the performance index difference between the boundary word lines and the internal word lines in each management area. The boundary word lines are the word lines in the management area that are adjacent to the adjacent management areas, and the internal word lines are the word lines in the management area other than the boundary word lines.

[0047] In the three-dimensional stacked structure of 3D NAND flash memory, due to process factors such as bonding interfaces and etching gradients, word lines at the boundaries of the management area, i.e., boundary word lines, are often affected by multiple factors such as the electric field boundary effect of adjacent areas, interface trap states, and mechanical stress. Their performance degradation rate is usually faster than that of word lines within the same management area, i.e., internal word lines. However, existing management strategies typically treat the entire management area as a homogeneous whole, using a uniform offset for compensation. This leads to the actual compensation requirements of boundary word lines being underestimated or overestimated, thus affecting read margin.

[0048] To address the aforementioned issues, after performing performance index monitoring in step S1, the memory control circuit 23 further executes step S2, which compares the performance index differences between the boundary word lines and internal word lines within each management area. Specifically, for each management area, the memory control circuit 23 first identifies the boundary word lines of that management area—that is, the word lines within that management area that are adjacent to neighboring management areas. For example, if management area A covers a word line index range of... to The management area B covers a word line index range of 100%. to Then, in management area A In management area B This refers to the boundary line. Except for the management area A... Other than the letter lines (i.e.) to The ) represents the internal character line, except for the management area B. The lines outside the character line are internal character lines.

[0049] Subsequently, the memory control circuit 23 calculates the differences between the boundary word lines and the internal word lines in terms of the original bit error rate over time and the wear and degradation rate. For example, for management area A, if its boundary word lines... The original bit error rate time variation rate is The average raw bit error rate time variation rate of its internal word lines is... The difference between the two is Similarly, the difference in wear and degradation rates can be calculated. These differences reflect the degree of uneven degradation within the management area and are an important basis for triggering subsequent boundary management operations. It should be noted that, in the embodiments of this application, boundary management operation refers to the operation of re-dividing the word line index range of the management area, thereby changing the logical affiliation of the boundary word lines.

[0050] The comparison in step S2 can reveal the changing trend of uneven degradation within the management area. When the performance index difference between the boundary line and the internal line is small, it indicates that the current management area boundary is still reasonable. However, when the difference gradually increases and exceeds a certain limit, it indicates that the original management area boundary is no longer suitable for the current degradation distribution, and a boundary adjustment operation needs to be initiated.

[0051] Step S3: When the performance index difference meets the triggering condition of the boundary management operation, adjust the word line index range of at least one of the multiple management areas according to the performance index spatial gradient between adjacent management areas, so as to redistribute the boundary word line to the management area that better matches its performance index, and update the area offset table corresponding to the adjusted management area.

[0052] During the long-term use of 3D NAND flash memory, the degradation difference between the boundary word lines of the management area and the internal word lines gradually accumulates with the increase of erase / write cycles and the extension of data retention time. When this difference exceeds a certain level, it means that the original management area boundary can no longer accurately reflect the actual degradation distribution of the word lines—the electrical characteristics of the boundary word lines have deviated from the overall characteristics of their respective management areas, and are instead closer to the internal word lines of adjacent management areas. In this case, if a fixed management area boundary is still used, it will lead to a serious mismatch between the offset of the electrical parameter area used by the boundary word lines and their actual compensation requirements, thereby causing problems such as decreased read margin and increased bit error rate.

[0053] To solve the above technical problems, it is first necessary to determine whether the performance index difference calculated in step S2 meets the triggering condition for boundary management operation. In this embodiment, the specific implementation of the triggering condition will be detailed in subsequent embodiments. Its core idea is: when the difference between the boundary word line and the internal word line in the same performance index (e.g., the original bit error rate time change rate or wear and degradation rate) reaches a preset re-division threshold, it is considered that the current management area boundary is no longer suitable for the current degradation distribution, and a boundary adjustment operation needs to be initiated.

[0054] Once the trigger condition is met, the memory control circuit 23 adjusts the word line index range of at least one management area based on the performance index spatial gradient between adjacent management areas. Here, "performance index spatial gradient" refers to the rate of change of the performance index along the word line index direction (i.e., the vertical direction). For example, if the boundary word line of management area A... The original bit error rate time variation rate is The internal letter lines of the adjacent management area B The original bit error rate time variation rate is If the gradient between the two is small, it indicates that the boundary word line is more similar to the degradation characteristics of management area B. Meanwhile, if the time variation rate of the average original bit error rate of the internal word lines of management area A is... Then the boundary word line The gradient between the boundary line and the internal line of its management area A is greater, so the boundary line should belong to management area B.

[0055] Based on the aforementioned spatial gradient information, the memory control circuit 23 reassigns boundary word lines to management areas that better match their performance specifications. For example, it reassigns boundary word lines that originally belonged to management area A. The memory is reclassified as belonging to management area B. After the reallocation is completed, the memory control circuit 23 synchronously updates the management table corresponding to the adjusted management area, including updating the word line index range in the management table (for example, changing the word line index range of management area A from...). ~ Updated to ~ The word line index range of management area B is expanded from... ~ Updated to ~ The system also redetermines the electrical parameter area offset of the boundary word line based on the offset information of the newly assigned management area. It should be noted that, in this embodiment, the word line index range is primarily used to record the word line number range currently covered by the management area, and is the core basis for management area boundary adjustment and operation addressing.

[0056] Through the dynamic adjustment mechanism in step S3 above, the boundary of the management area can adaptively adjust as the word line degradation characteristics evolve spatially, ensuring that each word line always belongs to the management area most consistent with its degradation characteristics, thereby significantly improving the accuracy of electrical parameter compensation. Due to the real-time matching of compensation parameters, the deterioration of read margin caused by the rigidity of the management area boundary is effectively suppressed, significantly extending the stable operating life of the storage device under complex operating conditions.

[0057] In firmware management of 3D NAND flash memory, scientifically defining the trigger conditions for boundary management operations is a crucial issue. If the trigger conditions are too lenient, frequent adjustments to the management area boundaries may occur, increasing firmware computational overhead and storage media wear. Conversely, if the trigger conditions are too strict, the optimal adjustment window may be missed, leading to long-term mismatch in compensation parameters. To address this technical problem, this application proposes a dual-threshold triggering mechanism based on differences in the degradation of the same performance indicators.

[0058] Specifically, the triggering conditions for boundary management operations include: the difference between the same performance metric between the boundary word line and the internal word line reaches the corresponding re-division threshold; the same performance metric includes at least one of the original bit error rate over time and the wear and tear rate. Here, the "re-division threshold" is set independently for each performance metric. For example, for the original bit error rate over time, the first re-division threshold can be set to... For the wear and degradation rate, a second threshold can be set to 0.05 mV / cycle. When the difference between the boundary word line and the internal word line in the original bit error rate over time exceeds... When the difference in wear and degradation rates exceeds 0.05 mV / cycle, a boundary management operation based on the original bit error rate time change rate is triggered. Similarly, when the difference in wear and degradation rates exceeds 0.05 mV / cycle, a boundary management operation based on the wear and degradation rate is triggered. In practical applications, the two triggering conditions can take effect independently; that is, as long as either condition is met, the boundary adjustment process can be initiated. The advantage of this design is that it can simultaneously capture two different types of degradation non-uniformity caused by decreased data retention capability and accelerated erase / write wear, ensuring that dynamic adjustment of the management area boundary is triggered in a timely manner regardless of which degradation mechanism dominates.

[0059] After confirming that the triggering conditions have been met, accurately determining which administrative region the boundary word line should belong to is the core issue for ensuring the correctness of the adjustment. If a degradation difference is detected merely between the boundary word line and the internal word lines, and the boundary word line is hastily assigned to an adjacent administrative region, it may lead to misjudgment—because this degradation difference may be caused by transient noise or measurement fluctuations, rather than a genuine change in degradation distribution. To solve this technical problem, this application introduces a determination rule based on bidirectional comparison.

[0060] Specifically, the memory control circuit 23 executes the following steps S3.1 to S3.3 to adjust the word line index range of at least one of the multiple management areas according to the performance index spatial gradient between adjacent management areas: Step S3.1: Determine the spatial gradient of performance indicators along the word line index direction between two adjacent management areas.

[0061] In this embodiment, the performance index spatial gradient refers to the rate of change of the performance index with respect to the word line index (i.e., the position in the vertical direction). The memory control circuit 23 can calculate this gradient by obtaining the average performance index value of the word lines within each of two adjacent management areas (e.g., management area A and management area B), and then calculating the difference between these two average values ​​divided by the distance between the center positions of the two management areas. For example, if the time change rate of the average raw bit error rate of the word lines within management area A is... The time variation rate of the average raw bit error rate of the internal word lines in management area B is... And if the center locations of the two management areas are 10 word line layers apart, then the spatial gradient of the performance index along the word line index direction is: This gradient value reflects the spatial trend and magnitude of change in the performance index.

[0062] Step S3.2: If the difference in the same performance index between the boundary word line and the internal word line of its management area meets the triggering condition, and the difference in the same performance index between the boundary word line and the internal word line of the adjacent management area is smaller, then the boundary word line is determined to be compatible with the adjacent management area.

[0063] Step S3.2 is a crucial decision-making logic. The memory control circuit 23 first confirms that the difference in similar performance indicators between the boundary word line and the internal word lines of the corresponding management area has exceeded the re-division threshold set in step S3, thus satisfying the trigger condition. Then, it further calculates the difference in similar performance indicators between the boundary word line and the internal word lines of the adjacent management area. If the latter's performance indicator difference is less than the former's, it indicates that the degradation characteristics of the boundary word line are closer to those of the internal word lines of the adjacent management area, therefore, the boundary word line is determined to be compatible with the adjacent management area. For example, suppose the boundary word line of management area A... The difference between the internal word lines of management area A and the original bit error rate over time is (Exceeding the first-level segmentation threshold) ), and the boundary line The difference between the internal word lines of management area B and the original bit error rate over time is Then because The memory control circuit 23 determines Adapted for management area B.

[0064] Step S3.3: Modify the word line index range in the corresponding area offset table of the management area where the boundary word line is located and the adjacent management area respectively, and reassign the boundary word line to the appropriate adjacent management area.

[0065] After determining that the boundary word line is compatible with the adjacent management area, the memory control circuit 23 performs the actual reallocation operation. For example, it reallocates the word line... The boundary word line is removed from the word line index range of the offset table corresponding to management area A and added to the word line index range of the offset table corresponding to management area B. Simultaneously, the electrical parameter offset of this boundary word line will no longer use the original offset from management area A, but will be determined based on the offset information of the adapted management area B. Specifically, the current average offset of management area B can be directly assigned to this boundary word line, or it can be calculated by interpolation based on the relative position of the boundary word line in management area B (e.g., the distance from the nearest word line inside management area B). In subsequent periodic sampling, the offset of this boundary word line will be independently iteratively updated based on the performance indicators of its newly assigned management area B. The above process can be found in [reference needed]. Figure 6 This example illustrates a comparison of the management area boundary lines before and after dynamic re-division. Figure 6 In the middle, the left side shows the state before boundary adjustment. The initial boundary between management area A and management area B is located at WL. n-1 At the boundary line WL n Belongs to management area A; there is a continuous performance index spatial gradient along the word line index direction, WL n Its degradation characteristics differ significantly from those of the character lines within management area A, but are more similar to those within management area B. Figure 6 The right side shows the state after the boundary adjustment; the management area boundary has been moved to WL. n At that location, the original boundary line WL n It was reassigned to management zone B, placing it in a management zone that matched its degradation characteristics.

[0066] In the refinement judgment and adjustment mechanism exemplified in steps S3.1 to S3.3 above, not only is the degradation difference between the boundary word line and the word lines within the same management area compared, but it is also compared with the difference in the same performance index between the boundary word line and the word lines within adjacent management areas. Only when the latter is smaller is a fit determined. This bidirectional comparison rule utilizes the directional information of the performance index spatial gradient, representing a refined and asymmetric judgment logic. This ensures that every adjustment to the management area boundary has sufficient basis, avoiding misjudgments and invalid adjustments, thereby improving compensation accuracy while maintaining system stability.

[0067] During real-time monitoring of 3D NAND flash memory, performance metrics sampling is inevitably affected by various noise sources, such as read noise, temperature fluctuations, and power supply voltage disturbances. These noises may cause a temporary exceedance of the trigger condition in the degradation difference between the boundary word line and the internal word line in a sampling result, but the result returns to normal in the next sampling. If boundary adjustment is performed immediately with each trigger, the management area boundary will swing back and forth between two adjacent management areas; this phenomenon is called "boundary jitter." Boundary jitter not only increases the computational overhead of the firmware but may also lead to additional write wear due to frequent updates to the management table. To solve this technical problem, this application proposes the following anti-jitter mechanism: after reallocating the determined suitable boundary word line to the suitable adjacent management area, the memory control circuit 23 further executes the following steps S3.4 to S3.6: Step S3.4: Start the boundary debounce timer for the boundary word line.

[0068] The boundary stabilization timer is a software timer whose initial timing duration can be dynamically set based on the type of the managed area and the current level of degradation. For example, a shorter initial timing duration (e.g., 10 minutes) can be set for the rapidly degrading bond interface area, while a longer initial timing duration (e.g., 60 minutes) can be set for the slower-degrading central stable area. The purpose of this timer is to provide an "observation period" for the boundary word lines, during which no new adjustments are made.

[0069] Step S3.5: Do not perform a reallocation operation on the boundary word line again before the boundary debounce timer expires.

[0070] This means that even if subsequent periodic sampling results show that the performance indicators of the boundary word line meet the trigger conditions again during this "observation period," the memory control circuit 23 will not immediately execute a new reallocation operation. This mechanism effectively suppresses boundary jitter caused by transient noise.

[0071] Step S3.6: If the boundary stabilization timer times out, re-evaluate whether the boundary word line meets the triggering conditions for the boundary management operation; if the triggering conditions are no longer met, reset the boundary stabilization timer and maintain the word line index range of the current management area; if the triggering conditions are still met and the performance index spatial gradient indication needs to be adjusted, perform the corresponding adjustment operation and adjust the timing parameters of the boundary stabilization timer.

[0072] When the boundary stabilization timer times out, the memory control circuit 23 re-evaluates based on the latest sampled data. Three scenarios are possible here: In the first scenario, if the latest data shows that the degradation difference between the boundary word line and the internal word line has fallen back below the re-division threshold, it indicates that the previous trigger may have been caused by transient noise or that the degradation state of the word line has recovered on its own. In this case, the memory control circuit 23 resets the boundary debounce timer, that is, clears the timer to zero and stops counting, while maintaining the current management area word line index range unchanged.

[0073] In the second scenario, if the latest data shows that the triggering conditions are still met, but the direction of the performance index spatial gradient is opposite to the direction of the previous adjustment—for example, the boundary word line was previously adjusted from management area A to management area B, but now the spatial gradient indicates that the boundary word line is more suitable to return to management area A—then the memory control circuit 23 performs a reverse adjustment, redistributing the boundary word line back to its original management area. Simultaneously, the timing duration of the boundary debounce timer is increased by a preset increment (e.g., 50%) to prevent another reverse adjustment from occurring in a short period. The timing duration has an upper limit (e.g., a maximum of 240 minutes), and will not increase further after reaching the upper limit to avoid the debounce window being infinitely extended, preventing normal boundary adjustments from being executed in a timely manner.

[0074] In the third scenario, if the latest data shows that the triggering conditions are still met and the direction of the spatial gradient is consistent with the direction of the previous adjustment, then the current attribution is correct and no further adjustment is needed. In this case, the memory control circuit 23 resets the boundary debounce timer and maintains the current word line index range.

[0075] Steps S3.4 to S3.6 above introduce a boundary stabilization timer, setting a quiet period after adjustment; after timeout, tiered processing is applied (maintaining the status if the trigger condition disappears, and reversing the adjustment and incrementing the timer duration if the condition is continuously met). This mechanism is not a simple delay, but an intelligent stabilization strategy with adaptive incrementing and conditional branching. While ensuring that the management area boundary can respond promptly to real degradation changes by the user, it effectively suppresses invalid adjustments caused by noise or measurement fluctuations, significantly improving system stability and firmware execution efficiency.

[0076] In addition to the background periodic monitoring and boundary adjustment processes in steps S1 to S3 mentioned above, the storage device 12 also needs to respond to real-time operation requests from the host 11 during actual operation. When the host 11 needs to read, write, or erase specific data, it sends corresponding operation instructions to the memory controller 123 through the connection interface 121. After receiving these instructions, the memory control circuit 23 executes the operations in steps S4 to S6, as detailed below: Step S4: In response to the target operation event on the target word line, determine the target management area where the target word line is located.

[0077] After receiving the operation command sent by the host 11 to the memory controller 123 through the connection interface 121, the memory control circuit 23 first detects a target operation event. This target operation event indicates that a corresponding target operation needs to be performed on one or more word lines in the memory module 122, i.e., the target word line, such as a read operation, a write operation, or an erase operation, etc.

[0078] After detecting a target operation event, the memory control circuit 23 needs to determine which management area the target word line currently belongs to. This determination process relies on the management area configuration information maintained by the memory control circuit 23 in the buffer memory 24. Specifically, the memory control circuit 23 maintains a management area mapping table, which records the identifier of each management area and its corresponding word line index range. For example, management area A covers... to Management area B covers to And so on. When it is necessary to determine the management area where the target word line is located, the memory control circuit 23 traverses the management area mapping table according to the word line index number of the target word line, searches for the management area containing the word line index number, and determines it as the target management area.

[0079] It is important to emphasize that, since the word line index range of the management area may have been dynamically adjusted in step S3, the word line index range in the management area mapping table is updated in real time. This means that even if a re-division of the management area boundary occurs between two host operations, the memory control circuit 23 can determine the assignment of the target word line based on the latest management area division result when responding to the next target operation event, thereby ensuring the accuracy of the operation parameters.

[0080] Step S5: Adjust the reference electrical parameters according to the electrical parameter area offset in the corresponding area offset table of the target management area.

[0081] After determining the target management area where the target word line is located, the memory control circuit 23 needs to adjust the reference electrical parameters to be used according to the corresponding area offset table of the target management area. The reference electrical parameters here refer to the standard operating voltage values ​​set for the entire memory module 122, such as standard read voltage, standard programming voltage, standard erase voltage, etc. However, since word lines in different management areas have different electrical characteristics and degradation levels, directly using a uniform standard voltage value may lead to problems such as insufficient read margin, programming failure, or incomplete erasure. Therefore, it is necessary to specifically adjust the reference electrical parameters using the area offset of the electrical parameters recorded in the area offset table.

[0082] To achieve this adjustment, Figure 4The example method may also include configuring a global baseline table, which, together with the region offset table configured in the management area in the aforementioned embodiments, constitutes a two-layer management table structure. The global baseline table stores baseline electrical parameters corresponding to each operation type, while the region offset table stores electrical parameter region offsets, including at least two offset components, each mapped to different types of performance indicators. The first offset component is mapped based on the original bit error rate time change rate, and the second offset component is mapped based on the wear and degradation rate. See details for further information. Figure 7 The dual-layer management table structure consists of an upper-layer global reference table and a lower-layer region offset table. The global reference table stores reference electrical parameters common to all chips, such as standard read voltage, standard programming voltage, and standard erase voltage. The region offset table stores the first offset component (mapped from the original bit error rate over time) and the second offset component (mapped from the wear and degradation rate) for the corresponding management area. The two types of parameters are input voltage superposition formula, combined with weighting coefficients and temperature compensation values, to finally obtain the operating voltage adapted to the target management area.

[0083] The global baseline table is a relatively stable data structure throughout the entire lifecycle of the storage device 12, recording standard baseline electrical parameters for each operation type (read, write, erase). For example, for a read operation, the global baseline table stores the standard read voltage value (e.g., 4.5V) and the standard read pass voltage value (e.g., 6.0V); for a write operation, it stores the standard programming voltage start value (e.g., 15V), the standard programming verification voltage (e.g., 0.5V), and the standard voltage step precision (e.g., 0.2V); for an erase operation, it stores the standard erase voltage (e.g., 20V), the standard erase verification voltage (e.g., -1.5V), and the standard pre-programming voltage (e.g., 12V). These standard values ​​are set for the memory module 122 under ideal conditions and can serve as a baseline for subsequent adjustments.

[0084] The region offset table is a dynamic data structure maintained independently by each management area, recording the electrical parameter offset of that management area relative to the global reference table. Unlike existing schemes that only record a single voltage compensation value, the region offset table in this application stores at least two independent offset components, corresponding to two different types of performance degradation mechanisms: The first offset component (denoted as) This is a voltage compensation amount derived from mapping the original bit error rate over time. This component reflects the voltage compensation required for word lines due to bit error rate degradation during data holding or under read interference stress. For example, if the boundary word line of a certain management area shows a high original bit error rate over time in the most recent sampling, the corresponding first offset component may be a positive value (e.g., +50mV), indicating that the read voltage needs to be appropriately increased to overcome the threshold voltage offset caused by charge leakage.

[0085] The second offset component (denoted as) The second offset component is a voltage compensation amount derived from the wear and degradation rate mapping. This component reflects the voltage compensation required to compensate for the threshold voltage drift caused by the accumulation of erase and write cycles on the word lines. For example, if a management area has experienced many erase and write cycles, its word line wear and degradation rate is high, and the corresponding second offset component may be a negative value (e.g., -30mV), indicating that the programming voltage needs to be appropriately reduced to avoid overprogramming.

[0086] These two offset components are derived from real-time performance metrics through a firmware-preset mapping function or lookup table. For example, the memory control circuit 23 maintains a two-dimensional lookup table, taking the original bit error rate over time and wear degradation rate as inputs, and outputting the corresponding first and second offset components. The values ​​in the lookup table can be pre-calibrated through pre-shipment characteristic tests and aging experiments, or optimized online during the use of the storage device 12 using machine learning algorithms.

[0087] As an embodiment of this application, adjusting the reference electrical parameters according to the electrical parameter area offset in the target management area corresponding area offset table can be achieved through the following steps S5.1 and S5.2: Step S5.1: Read the reference electrical parameters of the corresponding target operation from the global reference table, and read each offset component from the area offset table.

[0088] When a target operation event is triggered, the memory control circuit 23 first reads the corresponding standard reference electrical parameters from the global reference table according to the type of the target operation (read, write, or erase). Simultaneously, based on the target management area identifier determined in step S4, it locates the corresponding area offset table for that management area in the buffer memory 24 and reads the first offset component from that table. Second offset component .

[0089] Step S5.2: Calculate the adjusted reference electrical parameters based on the reference electrical parameters, the weighted sum of each offset component, and the temperature compensation value.

[0090] After obtaining the standard reference electrical parameters and each offset component, the memory control circuit 23 calculates the final adjusted electrical parameters according to the following formula: in, The adjusted reference electrical parameters (i.e., the operating voltage ultimately applied to the target word line). For standard reference electrical parameters read from the global reference table, For the first offset component, This is the second offset component. and These are the weighting coefficients for the first offset component and the second offset component, respectively. This is the temperature compensation value.

[0091] Temperature compensation value This is used to compensate for threshold voltage drift caused by temperature changes. The memory control circuit 23 can obtain the current temperature through the on-chip temperature sensor built into the memory module 122, and then calculate the temperature compensation value according to the temperature compensation coefficient recorded in the management table. For example, when the temperature rises from 25°C to 85°C, the temperature compensation value may be -20mV to offset the threshold voltage drop caused by the high temperature. Through the above weighted superposition calculation, the adjusted reference electrical parameters can simultaneously reflect the combined effects of data retention degradation, wear degradation, and temperature changes on the word line electrical characteristics, thereby achieving multi-dimensional fine compensation.

[0092] The above embodiment constructs a two-layer structure of "global reference table + regional offset table". The offset is decomposed into a first component based on the RBER time change rate and a second component based on the wear and degradation rate. By weighting and superimposing temperature compensation values, the structure achieves decoupling and independent compensation of multi-dimensional degradation factors. The compensation parameters more accurately match the composite degradation characteristics of the word lines and avoid the deviation of single-dimensional compensation.

[0093] Since fixed weights cannot adapt to changes in the importance of the two offset components under varying conditions such as operation type, management area type, and lifespan stage, this application also provides a dynamic adjustment mechanism for the weight coefficients, namely... Figure 4 The example method may also include: determining the weighting coefficients corresponding to each offset component based on the operation type, management area type, and real-time operating status of the memory module. Specifically, the weighting coefficients... and These are not fixed constants, but rather variables that can be dynamically adjusted according to the actual operating scenario. For example, for read operations, since read operations require high accuracy of the threshold voltage, and the original bit error rate over time directly reflects the rate of bit error rate degradation during data holding, the weighting coefficient of the first offset component... It can be set to a larger value (e.g., The weighting coefficient of the second offset component It can be set to a smaller value (e.g., Conversely, for write operations, because the programming process is more sensitive to wear and tear, therefore... and The values ​​can be interchanged.

[0094] Furthermore, the type of management area also affects the setting of weighting coefficients. For management areas with significant process defects, such as the Bond Interface Area (BIR), the time variation rate of the original bit error rate of the word lines is usually high. The value of can be appropriately increased, while for the central stable region (DCR), since its electrical characteristics are the most stable, the two weighting coefficients can be taken to a more balanced value.

[0095] The real-time operating status of the memory module 122, including the current erase / write cycle count, data retention time, and operating temperature, also affects the value of the weighting coefficient. For example, in the early stages of the memory device 12's lifespan, wear and tear have not yet accumulated significantly, therefore... The value can be relatively small, but in the later stages of the life cycle, wear and degradation become the dominant factor. The value of needs to be increased accordingly. The memory control circuit 23 maintains a weighting coefficient lookup table, indexed by operation type, management area type, and current lifespan stage, and retrieves the value from the table each time step S5.2 is executed. and The current value.

[0096] Through the dynamic weight adjustment mechanism in the above example, the weight coefficient is dynamically determined based on the operation type, management area type, and real-time operating status of the memory module. This method enables the compensation strategy to have full lifecycle self-adaptability, automatically optimizing the compensation ratio under different operating conditions, and further improving the compensation accuracy and adaptability.

[0097] Step S6: Perform the target operation on the target word line according to the adjusted reference electrical parameters.

[0098] The adjusted reference electrical parameters are calculated through step S5. Then, the memory control circuit 23 can perform the actual target operation on the target word line according to this parameter. The target operation is a read operation, a write operation, or an erase operation. The specific content and adjustment method of the reference electrical parameters also differ for different operation types.

[0099] If the target operation to be performed is a read operation, the reference electrical parameters include the read voltage and the read pass voltage. Read voltage (Read Voltage, This is the voltage applied to the target word line, used to sense the conduction state of each memory cell in the target word line, thereby reading the data stored therein. Read Pass Voltage (LV) The voltage applied to the adjacent word lines (non-target word lines) of the target word line is used to ensure that all memory cells on the adjacent word lines are fully conductive, thus forming a conductive path from the bit line to the source to read the data from the target word line. In step S5, the memory control circuit 23 independently adjusts the read voltage and the read pass voltage. For example, for word lines in the bonding interface region, the read voltage may need to be increased by a positive offset (e.g., +100mV), while the read pass voltage may need to be increased by a smaller offset (e.g., +50mV) to compensate for the threshold voltage offset caused by the interface trap state.

[0100] If the target operation to be performed is a write operation, the reference electrical parameters include the programming voltage, the programming verification voltage, and the voltage step accuracy. Programming voltage (Program Voltage, A high-voltage pulse applied to the target word line is used to inject electrons into the floating gate or charge trapping layer of the memory cell, thereby changing its threshold voltage to store data. Program Verify Voltage (PPV) is a high-voltage pulse applied to the target word line to inject electrons into the floating gate or charge trapping layer of the memory cell, thus changing its threshold voltage to store data. Voltage Step Precision (VPP) is a verification voltage applied to the target word line after each programming pulse to check whether the threshold voltage of the memory cell has reached the target value. This refers to the voltage increment of each programming pulse in the Incremental Step Pulse Programming (ISPP) algorithm. In step S5, the memory control circuit 23 can adjust these parameters according to the degree of degradation of the management area. For example, for a management area with severe wear, the starting value of the programming voltage or the voltage step accuracy can be appropriately reduced to avoid over-programming leading to a broadening of the threshold voltage distribution.

[0101] If the target operation to be performed is an erase operation, the reference electrical parameters include the erase voltage, erase verification voltage, pre-programmed voltage, and voltage step accuracy. The erase voltage (Erase Voltage, The erase verification voltage is a high voltage applied to the substrate of the block containing the target word line to extract charge from the memory cell, causing its threshold voltage to return to the erase state. The pre-programmed voltage (PPV) is a verification voltage applied after each erase pulse to check whether the threshold voltage of the memory cell has dropped below the target value for the erase state. The first step is a medium-voltage pulse applied before the actual erase operation. This pulse is used to adjust the threshold voltage of all memory cells to a more consistent level, thereby improving the uniformity of the erase operation. The voltage stepping accuracy also applies to the incremental pulse erase algorithm in the erase operation. In step S5, the memory control circuit 23 can adjust these parameters according to the degree of degradation of the management area. For example, for management areas with severe wear, the erase voltage can be appropriately increased or the duration of the erase pulse can be extended to ensure that all memory cells are thoroughly erased.

[0102] After adjusting the reference electrical parameters, the memory control circuit 23 sends a sequence of instructions containing the adjusted parameters to the memory module 122 via the memory interface 22, instructing the memory module 122 to perform the corresponding target operation on the target word line. In this way, the electrical parameters used by each word line when performing the operation are tailored to the real-time degradation state of its management area, thereby maximizing the reliability and stability of the operation.

[0103] Furthermore, when the target operation is a read operation, this application also provides an important refinement scheme for optimizing the setting of the read pass voltage for adjacent word lines. Specifically, when the target operation is a read operation, performing the target operation on the target word line according to the adjusted reference electrical parameters can be achieved through the technical solutions exemplified in steps S6.1 and S6.2, as detailed below: Step S6.1: Identify the management area to which the word line adjacent to the target word line belongs.

[0104] In the three-dimensional stacked structure of 3D NAND flash memory, adjacent word lines of a target word line may belong to a different management area than the target word line. For example, if the target word line... Located at the boundary of management area A, its adjacent word lines It may belong to management area B. Due to the differences in electrical characteristics between different management areas, applying a uniform read pass voltage to adjacent word lines may not provide optimal read conditions. Therefore, the memory control circuit 23 first needs to identify each word line adjacent to the target word line and determine which management area each of these adjacent word lines belongs to.

[0105] Step S6.2: Determine the read pass voltage applied to the adjacent word line according to the area offset table of the management area to which the adjacent word line belongs.

[0106] After determining the management region affiliation of adjacent word lines, the memory control circuit 23 queries the region offset table corresponding to the management region to which these adjacent word lines belong, and obtains the read pass voltage value applicable to that management region. Since different management regions record different electrical parameter region offsets in their region offset tables, the read pass voltages for different management regions may also differ. For example, if the adjacent word line to the left of the target word line belongs to the Bonding Interface Region (BIR), its read pass voltage may need to be set to a higher value (e.g., 6.5V) to ensure that the memory cells in this region with high threshold voltages due to interface trap states can be fully turned on; while the adjacent word line to the right of the target word line belongs to the Center Stable Region (DCR), its read pass voltage can use a standard value (e.g., 6.0V). The memory control circuit 23 applies these differentiated adjusted read pass voltages to the corresponding adjacent word lines, thereby creating an optimal conduction path for reading the target word line.

[0107] Through the refined processing in steps S6.1 and S6.2, this application achieves partitioned differential voltage control for adjacent word lines during the read operation, effectively avoiding the problem of read path impedance mismatch caused by differences in the management areas of adjacent word lines, and further improving the accuracy and reliability of the read operation.

[0108] In the dynamic boundary adjustment mechanism of steps S1 to S3, the adjustment target is the "management area boundary word line," meaning word lines are migrated only between adjacent management areas. However, when a management area (e.g., the bonding transition region DBTR or the etch variation region PDER) does not exhibit uniform degradation but rather significant spatial dispersion, boundary re-division alone cannot solve the problem of "inconsistent compensation requirements for multiple word lines within the area." For example, if the original bit error rate time variation rate of the word line on the side closest to the bonding interface region BIR within the bonding transition region DBTR has increased to... Hours, while the side closer to the central stable zone DCR is still only If the same area offset table is used to uniformly compensate the management area at this time, one side will be undercompensated and the other side overcompensated. To solve this technical problem, the memory control circuit 23 periodically counts the distribution of word line performance indicators within each management area in the background, and when the dispersion exceeds a certain threshold, it further divides the management area into multiple sub-management areas, i.e. Figure 4 The example method may also include: splitting or merging at least one of the multiple management areas when the performance index statistics of the internal word lines in each management area meet the triggering conditions for management area splitting or merging operations.

[0109] It should be noted that the main body executing the above scheme is the memory control circuit 23, which completes the statistics and rewriting through the management table and region offset table maintained in the buffer memory 24.

[0110] In the above embodiment, the statistical values ​​of each word line within the management area include the spatial dispersion of the original bit error rate over time and the spatial dispersion of the wear and degradation rate. The spatial dispersion of the original bit error rate over time refers to the degree of dispersion in the distribution of the original bit error rate over time among the word lines within the same management area. It can be quantified using standard deviation, variance, or interquartile range. Let the management area... R shared within N The set of original bit error rate time variation rates for each internal word line is { , , ..., , ..., }, then the mean The corresponding standard deviation is , The larger the value, the more significant the difference in the rate at which the data continues to deteriorate within the management area.

[0111] Similarly, the spatial dispersion of wear and degradation rate is a measure of the degree of dispersion of the wear and degradation rate distribution of each character line within the same management area, and can be described in a similar manner. and The formula calculation only requires... Replace with (Wear and degradation rate of single-character lines).

[0112] Based on the above statistics, when the performance index statistics of the internal word lines in each management area meet the triggering conditions for management area splitting operation, the memory control circuit 23 will split or merge at least one of the multiple management areas. Specifically, the memory control circuit 23 can execute steps A to D as follows: Step A: After each periodic sampling in step S1 is completed, the memory control circuit 23 performs a time-varying sequence of the original bit error rate of all internal word lines within this management area. Calculate its dispersion Using similar methods The calculation formula calculates the wear degradation rate sequence { Discreteness of} .

[0113] Step B: The memory control circuit 23 will... Compared with the preset first dispersion threshold Comparison, will Compared with the preset second dispersion threshold In comparison, among them, and The threshold can be set according to the type of management area: for example, the BIR in the bonding interface area degrades quickly and has a naturally high dispersion, so the threshold can be relaxed; the DCR threshold in the central stable area should be tightened.

[0114] Step C: When or When the condition is met, the management area segmentation trigger condition is determined. At this time, the memory control circuit 23 divides the management area into multiple continuous intervals along the word line index direction—for example, according to the discreteness mutation point, or according to the equal number of words interval, or according to the gradient inflection point of the original bit error rate over time. Each interval constitutes a sub-management area.

[0115] Step D: After partitioning, the memory control circuit 23 configures sub-management tables for each sub-management area: the corresponding original management table serves as the parent management table, preserving the hierarchical relationship. The region offset table of the original management area (parent management area) is not used as the sole basis; instead, the current offset of the parent management area is used as the initial value of the sub-management table and written into the newly allocated entry in the buffer memory 24. The sub-management table inherits the management area type label of the parent management area (e.g., still labeled DBTR), but has an independent word line index range field and an independent offset update channel. In subsequent step S1, each sub-management area independently iterates and updates its region offset according to its own word line measured indicators, without interfering with each other.

[0116] The above embodiment advances the "management area" from a single-layer vertical partition to a two-level granularity of "management area - sub-management area", so that even the non-uniform degradation of space within the area can be accurately compensated by partitioning, avoiding under-compensation or over-compensation caused by a one-size-fits-all approach to large management areas; at the same time, the parent management area structure is preserved, which facilitates the compatibility of upper-level logic with the original process.

[0117] Since fixed-granularity region offset tables either waste storage space (when offsets within regions are consistent) or have insufficient compensation accuracy (when offsets within regions are dispersed), in one embodiment of this application, when the performance index statistics of the internal word lines in each management region meet the triggering conditions for management region splitting or merging operations, splitting or merging at least one management region among multiple management regions can be achieved through the following technical solutions exemplified by steps S7 to S9: Step S7: Periodically calculate the distribution dispersion of electrical parameter area offsets in the area offset table corresponding to each management area.

[0118] In actual operation of 3D NAND firmware, the space of the buffer memory 24 is limited, while the number of region offset table entries increases with the number of management areas / sub-management areas. If all management areas retain independent region offset tables for a long time, two problems will occur: first, the degradation curves of some adjacent management areas are highly consistent, making independent table creation redundant; second, some management areas have strong internal positional dependencies, and the granularity of a single table is insufficient. Therefore, region offset table merging and splitting are introduced, as illustrated in the diagram. Figure 8 The region offset table has two dynamic adjustment modes: merging and splitting. Figure 8The left side shows the merging process: the independent area offset tables of management area A and management area B are merged into a common offset table when the offset dispersion is low enough. The table retains the word line index range markers of the original management area and releases redundant storage space. Figure 8 The right side shows the splitting process: when the internal offset dispersion of a single area offset table is high, it is split into sub-table 1 and sub-table 2, which correspond to different character line position intervals within the management area, thereby improving the compensation granularity without splitting the management area.

[0119] The memory control circuit 23 performs periodic statistical analysis of the distribution dispersion of electrical parameter area offsets within the area offset table corresponding to each management area. Here, the distribution dispersion of electrical parameter area offsets refers to the degree of dispersion of the offset values ​​(which can refer to the first offset component, the second offset component, or the total offset) corresponding to multiple word lines within a certain area offset table. Let the area offset table... T Record M Bar offset { , , ..., },but: That is, the dispersion of the distribution.

[0120] Step S8: If the dispersion of the electrical parameter area offset of a certain management area is lower than the first dispersion threshold, merge the area offset table of the management area and the area offset tables of the adjacent management areas into a common offset table, use word line index range to mark the original management areas, and release the storage space of the merged area offset table.

[0121] when Below the first dispersion threshold This indicates that the required compensation amounts for each word line within the management area are highly consistent and not significantly different from those of adjacent management areas, making independent table creation meaningless. Based on this, the memory control circuit 23 merges the region offset table of the management area and the region offset tables of adjacent management areas into a shared offset table. It uses the word line index range to mark the original management areas and releases the storage space of the merged region offset table. Specifically, the memory control circuit 23 selects the region offset tables of the management area and at least one adjacent management area (e.g., management area A and management area B) to generate a shared offset table. The offset can be the average of the two areas or the current value of management area A. The original management table entries for management areas A and B are retained, and the logical division and word line affiliation of each management area remain unchanged. Only the region offset table pointers in the management tables are changed to point to the same shared offset table, achieving reuse of physical storage resources.

[0122] To distinguish the original affiliation, the range is marked with a word-line index within the shared offset table or management table: for example, management area A covers... Management area B covers After merging, two index range labels are retained in the header of the shared offset table. When the front-end operation (i.e., step S5) looks up the table, it still hits the corresponding management area logic according to the target word index, but physically it reads the same table.

[0123] Finally, the merged original region offset table entries are marked as reclaimable in buffer memory 24, and the physical storage space is released or reused for other sub-management tables. This process does not change word line affiliation or management area partitioning logic; it only reduces redundancy in offset table storage.

[0124] The solution in step S8 reduces firmware memory usage and table lookup maintenance overhead in areas with consistent degradation, and is particularly beneficial for resource reclamation after the number of sub-management areas expands.

[0125] Step S9: If the dispersion of the electrical parameter area offset of a certain management area is higher than the second dispersion threshold, the area offset table corresponding to the management area is split into multiple sub-tables, and different sub-tables correspond to different word line position intervals within the management area.

[0126] Conversely, when Above the second dispersion threshold ( This indicates that the granularity of a single offset table is insufficient. The memory control circuit 23 splits the region offset table corresponding to the management area into multiple sub-tables, with each sub-table corresponding to a different word line position interval within the management area. Specifically, the memory control circuit 23 divides the management area into two or more word line position intervals along the word line index direction (e.g., interval P1 is closer to the BIR side, interval P2 is closer to the DCR side), copies and splits the original region offset table into a first sub-table and a second sub-table, and writes the offset of the corresponding interval to each. The management area itself is not split and remains a single logical management area; its management table adds a "sub-table index field" to record the mapping between interval P1 and sub-table 1, and interval P2 and sub-table 2.

[0127] After the region offset table is split, the foreground operation needs to locate the sub-table first and then retrieve the offset, i.e., perform the target operation on the target word line, including: Step S9.1: Locate the corresponding sub-table according to the word line position range where the target word line is located; Step S9.2: Read the electrical parameter region offset recorded in the sub-table, which is used to adjust the reference electrical parameters. Specifically, when the memory control circuit 23 responds to the target operation event, it first determines the position range of the target word line in the management area by the target word line index (for example, whether the word line index falls on P1), then selects the sub-table according to the mapping relationship, reads the offset component in it, and passes it to the formula superposition example in step S5.2. This achieves the effect of "not splitting the management area, but with finer offset granularity", avoiding the compensation error caused by uniform offset in a high-discrete management area, while not increasing the complexity of boundary adjustment by increasing the number of management areas.

[0128] Considering the lag in the word line index range of at least one management area among multiple management areas after the passive waiting trigger condition is met, resulting in a read margin loss window, therefore, in one embodiment of this application, Figure 4 The example method may also include the technical solutions exemplified in steps S10 to S13, as detailed below: Step S10: Fit the performance degradation trend based on the real-time performance indicators of each management area.

[0129] The existing steps S2 and S3 are a passive mode of "adjusting only when the index exceeds the threshold." However, in the long-term operation of 3D NAND, boundary word line degradation often has inertia—by the time the difference exceeds the limit, the read margin may have already been lost for some time. To move the adjustment window forward, this application introduces predictive maintenance, that is, the memory control circuit 23 fits the performance degradation trend according to the real-time performance index of each management area. In implementation, timestamp samples of the original bit error rate time change rate sequence and wear degradation rate sequence are maintained for each management area (or sub-management area), and the trend curve is fitted using exponential smoothed moving average (EMA). Let the first step be... t Periodic observation values The corresponding exponential smoothing value is Then the fitting formula is ,in, For smoothing coefficients, a larger value can be taken in the BIR region. Values ​​are taken in the DCR region to follow mutations more quickly. Values ​​are used to suppress sampling noise. The performance degradation trend term can be further used. Approximate. This yields the performance degradation slope for each management area. (Refer to...) Figure 9 The horizontal axis represents time, and the vertical axis represents the degree of performance degradation. Discrete dots represent real-time sampled performance index values, the smoothed curve is the performance degradation trend line obtained by fitting an exponentially smoothed moving average (EMA), and the horizontal dashed line is the trigger threshold for boundary management operations. To obtain the predicted trigger time obtained by extrapolation, which is the predicted time when each management area is expected to meet the trigger conditions for boundary management operations, the window is adjusted in advance to the time period between the predicted time and the actual trigger time. When the prediction error is high, the sampling frequency is increased to improve the monitoring accuracy by increasing the number of sampling points and avoiding incorrect adjustments.

[0130] Step S11: Extrapolate future time periods based on the fitted degradation trend to obtain the predicted time when each management area is expected to meet the boundary management operation triggering conditions.

[0131] In specific implementation, the memory control circuit 23 calculates using extrapolation: if the current boundary difference... slope The trigger threshold is Then predict the number of remaining periods: Predicted time The rate of change of the original bit error rate over time and the rate of wear and degradation can be calculated separately. Choose the earlier one.

[0132] Step S12: If the time difference between the predicted time and the current time is less than the preset lead time limit and the prediction error index is lower than the confidence threshold, then the management area word line index range adjustment is performed in advance before the predicted time arrives.

[0133] In step S12, the prediction error index The mean square error (MSE) between the recent extrapolated value and the actual observed value can be used to characterize this error, and the calculation formula is as follows: in, L This is the length of the historical sample window used to calculate the error. If... and (in, (where the confidence threshold is used), indicating that the prediction is reliable and close to triggering. The memory control circuit 23 calls steps S3.1 to S3.3 in advance to complete the boundary word line reallocation, avoiding the continued reading and writing of word lines with mismatch parameters within the hysteresis window after the difference actually exceeds the limit.

[0134] Step S13: If the prediction error index is not lower than the confidence threshold, increase the sampling frequency of the performance index, wait for the real-time monitored performance index to meet the triggering conditions of the boundary management operation, and then perform the adjustment of the word line index range in the management area.

[0135] when Extrapolation is unreliable. Instead of adjusting it beforehand, the background sampling period in step S1 is changed from... shortened to (For example, For the original period The process continues until the real-time difference truly meets the trigger condition that the degradation difference of the same performance index between the boundary word line and the internal word line reaches the corresponding re-division threshold, and then proceeds to the main process of step S3. In this way, both "accurate prediction leads to early intervention" and "inaccurate prediction prevents unintended actions" are taken into account.

[0136] The technical solutions in steps S10 to S13 above utilize the exponential smoothing moving average algorithm to fit the degradation trend and extrapolate to predict the trigger time. Adjustments are performed in advance before the prediction time, and a prediction error fallback mechanism is set (i.e., when the error is large, the sampling frequency is increased instead of blindly adjusting). This upgrades passive response to active prevention, thereby upgrading boundary re-division from event-driven to trend-driven, reducing the reading voltage mismatch window, and using the prediction error threshold as a guardrail to effectively prevent boundary jitter caused by erroneous extrapolation.

[0137] It should be noted that, in the embodiments of this application, multiple management regions include a bonding interface region, a bonding transition region, an etching variation region, and a central stable region. Word lines located in the bonding interface region exhibit interface bonding process defects, word lines located in the etching variation region exhibit plasma etching process defects, word lines located in the central stable region have the most stable electrical characteristics, and word lines located in the bonding transition region exhibit gradually changing electrical characteristics along the word line position. The process backgrounds for the four types of management regions are as follows: Bonding Interface Region (BIR): Concentrated bonding interface trap states, strong RTN, and rapid RBER degradation; Etching Variation Region (PDER): Uneven top / bottom plasma etching edges, with a wide threshold distribution; Central Stable Region (DCR): Centrally stacked, with the most uniform process; Bonding Transition Region (DBTR): Between BIR and DCR, exhibiting gradient changes.

[0138] Based on this, when monitoring the performance indicators of word lines in each management area, the memory control circuit 23 configures differentiated sampling weights for different types of management areas. Management areas with more significant process defects are assigned higher sampling weights. For example, the sampling weight of the bonding interface area is higher than that of the bonding transition area, the sampling weight of the bonding transition area is higher than that of the central stable area, and the sampling weight of the etching variation area is higher than that of the central stable area. Specifically, in the periodic sampling task of step S1, not all management areas are assigned the same number of sampling times. Assuming a base sampling weight of 1, BIR can be assigned 2~4, PDER 1.5~2, DBTR 1.2, and DCR 0.8 (downsampling). The sampling weight acts on two dimensions simultaneously: first, the number of word lines tested in a single cycle; a higher weight means more word lines are covered by the sampling; second, the weighting coefficient of the management area's indicator in the EMA trend fitting; a higher weight means a greater impact of the current sampled value on the smoothing result. This scheme allocates limited sense amplifier readout and ECC statistical bandwidth to high degradation risk areas, enabling earlier detection of BIR / PDER boundary anomalies without excessively consuming the readout interference budget of the DCR area.

[0139] Furthermore, considering that relying solely on internal performance indicators for boundary adjustments and offset updates ignores the influence of external factors such as wear levels, temperature, and model, the adjustment range may be inappropriate. Therefore, Figure 4 The example method also includes the following scheme executed by the memory control circuit 23: acquiring information on the wear level, temperature, and model of the memory module; and correcting the adjustment range of the word line index range in the management area and the update range of the electrical parameter area offset based on the wear level, temperature, and model information of the memory module. The wear level, temperature, and model information are explained below: 1) Wear level information: Average P / E cycle count, data retention time, invalid page ratio, etc. for each management area, which can be obtained from the FTL wear leveling module; 2) Temperature information: Reported by the on-chip temperature sensor built into the memory module 122; 3) Model information: Read from the memory module ID page / ONFI parameters upon power-up, identifying the number of stacking layers, manufacturer, and process version.

[0140] The logic by which the memory control circuit 23 corrects the adjustment range of the word line index range of the management area and the update range of the electrical parameter area offset is shown in 1) to 3) below: 1) If the loss is high (e.g., average P / E > 3000), the boundary word line migration in step S3 can be more aggressive (migrating multiple boundary word lines at once), and the offset update step size is increased; if the loss is low, the step size is reduced to debouncing.

[0141] 2) If the temperature is high (e.g., temperature > 70°C), the reading voltage offset is additionally compensated for the temperature reduction, and the boundary trigger threshold is temporarily relaxed to avoid false triggering due to high temperature transients.

[0142] 3) If the model information indicates that the particle is a 128-layer double stack from a certain manufacturer, the default position of the BIR and the boundary of the PDER are initialized according to the model preset mask, and the "boundary word line" identification in step S2 directly applies the model template.

[0143] The corrected adjustment range and update range are written back to the management table control field in the buffer memory 24 for use when step S3 and / or step S5 are executed next time.

[0144] The above scheme obtains information on the wear level, temperature, and model of the memory module, and corrects the adjustment and update range accordingly. This makes the dynamic repartitioning not only respond to the "current difference" but also to the "device life stage and environment", thereby enhancing the robustness and environmental adaptability of the adjustment strategy and avoiding over-adjustment or under-adjustment under extreme operating conditions.

[0145] This application also provides a storage device, including: a connection interface 121 for electrically connecting to a host; a memory module 122, the memory module 122 being a 3D NAND Flash, and being a dual-deck stacked architecture and / or a 3D NAND Flash employing a central X-DEC architecture, including multiple word lines and multiple planes, each plane including multiple blocks, each block including multiple word lines, each word line including multiple pages, the multiple pages being addressed by the multiple word lines, and each page including multiple memory cells; and a memory controller 123, coupled to the connection interface 121 and the memory module 122, configured to perform the above-described memory management method.

[0146] In one possible embodiment, the method steps of the above embodiments are applied to the memory module 122, which may be a 3D NAND Flash chip array, and the execution body of each method step is the memory control circuit 23, which is jointly implemented by hardware circuits such as the coordination buffer memory 24 and the error checking and correction circuit 25. It is worth noting that the method steps of the above embodiments can be implemented as multiple program codes or circuits, and this application does not impose any limitations.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A memory management method applied to a storage device, the storage device comprising a memory controller and a memory module, the memory module comprising multiple word lines, characterized in that, The method involves dividing multiple word lines in the memory module into multiple management areas, with each management area corresponding to a region offset table. The region offset table records the electrical parameter region offset of the word lines within the corresponding management area. The performance indicators of word lines in each management area are monitored at a preset period. Based on the performance indicators, the electrical parameter area offset of the corresponding area offset table of each management area is updated. The performance indicators include the original bit error rate over time and the wear and degradation rate. The original bit error rate over time represents the ratio of the change in the original bit error rate of the word line within the preset period to the preset period. The wear and degradation rate represents the ratio of the word line threshold voltage drift to the erase / write cycle increment within the preset period. Compare the performance index difference between the boundary word lines and the internal word lines in each management area. The boundary word lines are the word lines in the management area that are adjacent to the adjacent management areas, and the internal word lines are the word lines in the management area other than the boundary word lines. When the performance index difference meets the triggering condition of the boundary management operation, the word line index range of at least one of the multiple management areas is adjusted according to the performance index spatial gradient between adjacent management areas, so as to reassign the boundary word line to a management area that better matches its performance index, and update the area offset table corresponding to the adjusted management area.

2. The memory management method according to claim 1, characterized in that, The method further includes: In response to a target operation event on a target word line, the target management area where the target word line is located is determined; Adjust the reference electrical parameters according to the electrical parameter area offset in the target management area corresponding to the area offset table; The target word line is subjected to the target operation based on the adjusted reference electrical parameters.

3. The memory management method according to claim 1, characterized in that, The triggering conditions for the boundary management operation include: The difference in the same performance index between the boundary word line and the internal word line reaches the corresponding re-division threshold, and the same performance index includes at least one of the original bit error rate time change rate and wear and degradation rate.

4. The memory management method according to claim 3, characterized in that, The step of adjusting the word line index range of at least one of the plurality of management areas according to the spatial gradient of performance indicators between adjacent management areas includes: Determine the spatial gradient of performance metrics between two adjacent management areas along the word line index direction; If the difference in the same performance index between the boundary word line and the internal word line of its management area meets the triggering condition, and the difference in the same performance index between the boundary word line and the internal word line of the adjacent management area is smaller, then the boundary word line is determined to be compatible with the adjacent management area. Modify the word line index range in the corresponding area offset table of the management area where the boundary word line is located and the adjacent management area respectively, and reassign the boundary word line to the appropriate adjacent management area.

5. The memory management method according to claim 1, characterized in that, The method further includes: When the performance index statistics of the internal word lines in each of the management areas meet the triggering conditions for the management area splitting or merging operation, at least one of the multiple management areas will be split or merged.

6. The memory management method according to claim 5, characterized in that, The statistical values ​​of each word line within the management area include the spatial dispersion of the original bit error rate time variation rate and the spatial dispersion of the wear and degradation rate; when the performance index statistical values ​​of the word lines within each management area meet the triggering conditions for management area splitting or merging operations, at least one of the multiple management areas is split or merged, including: Periodically analyze the distribution dispersion of electrical parameter area offsets in the area offset table corresponding to each management area; If the dispersion of the electrical parameter area offset of a certain management area is lower than the first dispersion threshold, the area offset table of that management area and the area offset tables of the adjacent management areas are merged into a common offset table. The word line index range is used to mark the original management areas, and the storage space of the merged area offset table is released. If the dispersion of the electrical parameter area offset of a certain management area is higher than the second dispersion threshold, the area offset table corresponding to that management area is split into multiple sub-tables, and different sub-tables correspond to different word line position intervals within the management area.

7. The memory management method according to claim 5, characterized in that, After the region offset table is split into multiple sub-tables, performing target operations on the target word line includes: Based on the position range of the target character line, locate the corresponding sub-table; Read the electrical parameter area offset recorded in this sub-table to adjust the reference electrical parameters.

8. The memory management method according to claim 4, characterized in that, After reassigning the determined matching boundary word lines to the matching adjacent management areas, the method further includes: Start the boundary debounce timer for this boundary character line; Before the boundary debounce timer expires, the boundary word line must not be reallocated again; If the boundary stabilization timer times out, re-evaluate whether the boundary word line meets the triggering conditions for the boundary management operation; if the triggering conditions are no longer met, reset the boundary stabilization timer and maintain the word line index range of the current management area; if the triggering conditions are still met and the performance index spatial gradient indication needs to be adjusted, perform the corresponding adjustment operation and adjust the timing parameters of the boundary stabilization timer.

9. The memory management method according to claim 2, characterized in that, The method further includes: Configure a global benchmark table, which stores the benchmark electrical parameters corresponding to each operation type; the regional offset table stores the regional offset of electrical parameters, which includes at least two offset components, respectively mapped to different types of performance indicators; The first offset component is obtained by mapping the original bit error rate over time, and the second offset component is obtained by mapping the wear and degradation rate. The step of adjusting the reference electrical parameters according to the electrical parameter area offset in the corresponding area offset table of the target management area includes: Read the reference electrical parameters for the corresponding target operation from the global reference table, and read each offset component from the area offset table; The adjusted reference electrical parameters are calculated based on the reference electrical parameters, the weighted sum of each offset component, and the temperature compensation value.

10. The memory management method according to claim 9, characterized in that, The method further includes: determining the weighting coefficients corresponding to each offset component based on the operation type, management area type, and real-time operating status of the memory module.

11. The memory management method according to claim 1, characterized in that, The method further includes: The performance degradation trend was fitted based on the real-time performance indicators of each management area; Extrapolating the fitted degradation trend to future time periods, we obtain the predicted time when each management area is expected to meet the boundary management operation triggering conditions. If the time difference between the predicted time and the current time is less than the preset lead time limit and the prediction error index is lower than the confidence threshold, then the management area word line index range adjustment will be performed in advance before the predicted time arrives. If the prediction error index is not lower than the confidence threshold, the sampling frequency of the performance index is increased. After the real-time monitored performance index meets the triggering conditions of the boundary management operation, the management area word line index range adjustment is then performed.

12. The memory management method according to claim 2, characterized in that, The target operation is a read operation, a write operation, or an erase operation; If the target operation to be performed is a read operation, the reference electrical parameters include the read voltage and the read pass voltage; If the target operation to be performed is a write operation, the reference electrical parameters include the programming voltage, the programming verification voltage, and the voltage step accuracy. If the target operation to be performed is an erase operation, the reference electrical parameters include the erase voltage, erase verification voltage, pre-programmed voltage, and voltage step accuracy.

13. The memory management method according to claim 12, characterized in that, When the target operation is a read operation, performing the target operation on the target word line according to the adjusted reference electrical parameters includes: Identify the management area to which the word line adjacent to the target word line belongs; Based on the offset table of the management area to which the adjacent word line belongs, determine the read pass voltage applied to the adjacent word line.

14. The memory management method according to claim 1, characterized in that, The multiple management areas include a bonding interface area, a bonding transition area, an etching variation area, and a central stable area; the method further includes: when monitoring the performance indicators of word lines in each management area, configuring differentiated sampling weights for different types of management areas, with higher sampling weights configured for management areas with more significant process defects.

15. The memory management method according to claim 1, characterized in that, The method further includes: Obtain information on the wear level, temperature, and model of the memory module; Based on the wear and tear information, temperature information, and model information of the memory module, the adjustment range of the word line index in the management area and the update range of the electrical parameter area offset are corrected.

16. A storage device, characterized in that, include: Connection interface, used for electrical connection to the host; The memory module is a 3D NAND Flash, and is a dual-Deck stacked architecture and / or a 3D NAND Flash with a central X-DEC architecture, including multiple word lines and multiple planes, each plane including multiple blocks, each block including multiple word lines, each word line including multiple pages, the multiple pages being addressed by the multiple word lines, and each page including multiple memory cells; as well as A memory controller, coupled to the connection interface and the memory module, is configured to perform the memory management method as described in any one of claims 1 to 15.