A method and device for determining optimal read voltage parameters of flash memory and flash memory device

By constructing and updating the linear relationship model between the read-retry voltage offset value and the number of bit flips, and dynamically adjusting the read-retry voltage parameters, the read error problem of NAND Flash memory in aging and non-standard environments is solved, and data recovery is improved. success rate and performance.

CN118314943BActive Publication Date: 2024-08-30BIWIN STORAGE TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410756574.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-08-30
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

The read error probability of existing NAND Flash memory increases in aging and non-standard environments. The existing Read Retry technology lacks flexibility and adaptability, resulting in a decrease in data recovery efficiency and performance.

Method used

By constructing a linear relationship model between the read-retry voltage offset value and the number of bit flips, the read-retry voltage parameters are dynamically adjusted, and the adaptive learning model is used to update the model to improve the data recovery success rate and reduce performance loss.

Benefits of technology

Significantly improves the accuracy and reliability of flash memory in the data reading process, enabling it to adapt to various working conditions and aging states, avoiding the insufficiency of static parameter adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314943B
    Figure CN118314943B
Patent Text Reader

Abstract

The present application relates to the field of storage technology, and provides a method, device and flash memory device for determining the optimal read voltage parameter of a flash memory, the method comprising: obtaining a new read retry voltage offset value corresponding to the flash memory minimization predicted bit flip number according to a linear relationship model between a read retry voltage offset value and a bit flip number; judging whether data can be successfully read under the new read retry voltage offset value; if so, adding the new read retry voltage offset value to the header of a read retry offset table to form a new read retry offset table; and updating the linear relationship model through an adaptive learning model according to the new read retry offset table. The present application can improve the success rate of data recovery and reduce performance loss through this efficient and adaptive voltage parameter determination method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and in particular to a method and apparatus for determining optimal read voltage parameters of a flash memory, and a flash memory device. Background Art

[0002] In modern electronic devices, NAND Flash memory is widely used due to its high density and non-volatility. While the storage density of NAND Flash memory continues to increase with technological advancements, the reliability of the memory cells is facing challenges. As memory ages, cells may age, and the cumulative effects of charge loss and program / erase cycles increase, leading to an increased probability of read errors. To address this challenge, existing technologies employ a Read Retry (read retry offset) mechanism. This mechanism attempts to find a parameter configuration that successfully reads data by retrying the read operation multiple times and adjusting specific read parameters during each retry.

[0003] Existing Read Retry technology mainly relies on preset parameter levels, which are usually determined according to the standard characteristics of Flash. When a read operation fails, the controller will try these preset levels one by one. Although this method can effectively recover data in some cases, it also has some obvious limitations. First, the preset levels may not cover all possible error modes, especially when the memory is aging or working under non-standard environmental conditions. Second, this method often lacks flexibility in finding effective levels because it cannot be adjusted according to real-time errors. In addition, due to the limited number of preset levels, when all levels cannot successfully correct the error, the traditional Read Retry method may cause unnecessary performance degradation. Therefore, the existing technology is insufficient in adaptability and efficiency in dealing with data recovery in NAND Flash, especially when facing complex or unexpected errors. Summary of the Invention

[0004] In view of this, the embodiments of the present application provide an efficient and adaptive method, apparatus, and flash memory device for determining the optimal read voltage parameters of a flash memory, which can improve the success rate of data recovery while reducing performance loss.

[0005] In a first aspect, an embodiment of the present application provides a method for determining an optimal read voltage parameter of a flash memory, comprising:

[0006] Obtaining a new read retry voltage offset value corresponding to a predicted minimized bit flip number according to a linear relationship model between the read retry voltage offset value and the bit flip number;

[0007] determining whether data can be successfully read under the new read retry voltage offset value;

[0008] If so, adding the new read retry voltage offset value to the header of the read retry offset table to form a new read retry offset table;

[0009] According to the new read retry offset table, the linear relationship model is updated through an adaptive learning model.

[0010] In some embodiments, before obtaining the predicted new read retry voltage offset value corresponding to the minimized bit flip number based on the linear relationship model between the read retry voltage offset value and the bit flip number, the method further includes:

[0011] Constructing the linear relationship model specifically includes:

[0012] Performing a read retry operation on a storage page according to each read retry voltage offset value in the read retry offset table to obtain a set of bit flip number data;

[0013] Assigning a one-to-one correspondence between each element in the data set and a read retry voltage offset value;

[0014] According to the number w of registers in the flash memory, a linear relationship model including w independent variables is constructed.

[0015] In some embodiments, the linear relationship model is:

[0016] ;

[0017] Wherein, y is the number of bit flips, and the independent variable is the read retry voltage offset value applied to different registers, arrive is the coefficient of the linear relationship model, is the difference between the number of bit flips actually observed and the number of bit flips predicted by the linear relationship model.

[0018] In some embodiments, determining the coefficients of the linear relationship model includes:

[0019] Minimize the difference The sum of squares;

[0020] Taking partial derivatives of each of the coefficients and setting the partial derivatives to 0, thereby obtaining a set of regular equations;

[0021] The values ​​of the coefficients are obtained according to the canonical equation.

[0022] In some embodiments, the minimization of the difference The formula for the sum of squares is:

[0023] ;

[0024] in, It is The number of bit flips observed after read operations, It is The first read operation corresponds to A read retry voltage offset value;

[0025] The formula for obtaining the partial derivative of each coefficient is:

[0026] ;

[0027] A set of regular equations is obtained:

[0028] ;

[0029] in, is the design matrix, is the vector of the observed number of bit flips, is the coefficient vector;

[0030] in, , , ;

[0031] According to the canonical equation, the coefficients are obtained The value of the vector is: .

[0032] In some embodiments, obtaining a new read retry voltage offset value corresponding to the predicted minimized bit flip number according to a linear relationship model between the read retry voltage offset value and the bit flip number includes:

[0033] According to the linear relationship model between the read retry voltage offset value and the bit flip number, a gradient descent method is used to obtain a new read retry voltage offset value corresponding to the predicted minimized bit flip number;

[0034] The step of using the gradient descent method to obtain a new read retry voltage offset value corresponding to the predicted minimized number of bit flips includes:

[0035] Selecting a read retry voltage offset value that minimizes the number of bit flips from the read retry offset table as an initial read retry voltage offset value for iteration of the gradient descent method;

[0036] For each iteration, calculating a gradient of the predicted bit flip number with respect to each read retry voltage offset value, and updating the read retry voltage offset value;

[0037] Applying the read retry voltage offset value obtained in each iteration to a read retry operation, and recording the corresponding number of bit flips;

[0038] When the iteration termination condition is reached, the gradient descent method iteration is terminated, and the read retry voltage offset value of the current iteration is output, and the current read retry voltage offset value is used as the new read retry voltage offset value.

[0039] In some embodiments, the termination condition includes:

[0040] If the change in the read retry voltage offset value during the iteration is less than the minimum adjustment granularity supported by the hardware, the iteration is terminated; or

[0041] The iteration is terminated when the maximum preset number of iterations is reached.

[0042] In some embodiments, updating the linear relationship model by an adaptive learning model according to the new read retry offset table includes:

[0043] According to the new read retry offset table, the coefficients of the linear relationship model are updated by an adaptive learning model to obtain an updated linear relationship model, specifically including:

[0044] Applying the new read retry voltage offset value to the linear relationship model to obtain an adaptive update rule for coefficients in the linear relationship model;

[0045] The new read retry voltage offset value is applied to the linear relationship model to obtain the following formula:

[0046] ;

[0047] in, is the new read retry voltage offset value, Based on the current coefficient The predicted value of the number of bit flips obtained;

[0048] Among them, the updating rule of the coefficient is ;

[0049] in, is the loss function, is the loss function with respect to coefficients The partial derivative of .

[0050] In a second aspect, an embodiment of the present application provides a device for determining an optimal read voltage parameter of a flash memory, comprising:

[0051] An acquisition module, configured to acquire a new read retry voltage offset value corresponding to a predicted minimized number of bit flips based on a linear relationship model between the read retry voltage offset value and the number of bit flips;

[0052] a judgment module, configured to judge whether data can be successfully read under the new read retry voltage offset value;

[0053] an adding module, configured to, if yes, add the new read retry voltage offset value to the header of the read retry offset table to form a new read retry offset table;

[0054] An updating module is used to update the linear relationship model through an adaptive learning model according to the new read retry offset table.

[0055] In a third aspect, an embodiment of the present application provides a flash memory device, which includes a processor and a memory, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the above-mentioned method for determining the optimal read voltage parameter of the flash memory.

[0056] The embodiments of the present application have the following beneficial effects: the present application significantly improves the accuracy and reliability of the flash memory during the data reading process through real-time analysis and dynamic adjustment of the read retry voltage parameters. The dynamic adjustment mechanism of the present invention enables the flash memory to adapt to various working conditions and aging states. Compared with the static parameter adjustment in the prior art, it can more accurately adapt to the actual situation of the flash memory unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0058] Figure 1 A first flow chart of a method for determining optimal read voltage parameters of a flash memory according to an embodiment of the present application is shown;

[0059] Figure 2 A second flow chart of the method for determining the optimal read voltage parameter of a flash memory according to an embodiment of the present application is shown;

[0060] Figure 3 A structural schematic diagram of a device for determining optimal read voltage parameters of a flash memory according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0061] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0062] The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but rather merely represents selected embodiments of the present application. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.

[0063] Hereinafter, the terms "including", "having" and their cognates used in various embodiments of the present application are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the aforementioned items, and should not be understood as excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the aforementioned items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the aforementioned items. In addition, the terms "first", "second", "third" and the like are only used to distinguish descriptions and should not be understood as indicating or implying relative importance.

[0064] Unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meaning as in the context of the relevant technical field and will not be interpreted as having an idealized meaning or an overly formal meaning unless clearly defined in the various embodiments of the present application.

[0065] The following describes some embodiments of the present application in detail with reference to the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.

[0066] The method for determining the optimal read voltage parameter of the flash memory is described below with reference to some specific embodiments.

[0067] Figure 1 A flow chart of a method for determining optimal read voltage parameters of a flash memory according to an embodiment of the present application is shown. Exemplarily, the method for determining optimal read voltage parameters of a flash memory includes the following steps:

[0068] Step S100 : obtaining a new read retry voltage offset value corresponding to a predicted minimized bit flip number according to a linear relationship model between the read retry voltage offset value and the bit flip number.

[0069] The method of the present application is to analyze in real time the relationship between the read retry voltage offset value (ReadRetry voltage parameter) stored in the SSD (solid state drive) master and the number of bit flips, and dynamically adjust the voltage offset value to reduce the number of bit flips (bit flip number).

[0070] After the method starts, when the firmware enters the Read Retry operation, it first checks whether the solid-state drive has saved a previously constructed linear relationship model between the read retry voltage offset value and the number of bit flips. If so, step S100 is executed.

[0071] If the solid-state drive does not store a linear relationship model between the read retry voltage offset value and the bit flip number, a linear relationship model is first constructed.

[0072] like Figure 2 As shown, the steps of building a linear relationship model include:

[0073] The constructing of the linear relationship model comprises:

[0074] Step S110 : performing a read retry operation on a memory page according to each read retry voltage offset value in the read retry offset table to obtain a set of bit flip number data.

[0075] In this step, during the read retry operation, multiple read operations are performed on the Page (storage page) according to the Read Retry Offset Table to obtain a set of bit flip count data sets. , for length Read retry offset table, data collection Include elements, representing the number of bit flips corresponding to each set of data in the application read retry offset table.

[0076] At the same time, each set of read retry voltage offset values ​​(offset values) corresponding to each read retry operation is recorded, where each set of read retry voltage offset values ​​is a row of the read retry offset table, which is essentially a vector. Each set of read retry voltage offset values ​​corresponding to each read retry operation forms a data corresponding set. , including the elements , each element of which is a vector.

[0077] Step S120: collect the data Each bit in the flip value and set Each set of read retry voltage offset values ​​in the is corresponded one to one.

[0078] In this step, the data set It is obtained by performing a read retry operation under each set of read retry voltage offset values, so that the set Each set of read retry voltage offset values ​​in the data set corresponds to An element in .

[0079] Step S130: constructing a linear relationship model including w independent variables according to the number w of registers in the flash memory.

[0080] In this step, each type of flash memory has a different number of read voltages that can be adjusted based on the number of bits it can store. These are controlled by the corresponding number of read voltage offset registers. The NAND read voltage can be adjusted by writing each set of read retry voltage offset values ​​into the corresponding register. For example, SLC (single-level cell flash memory) has 1 register and TLC (triple-level cell flash memory) has 7 registers. In the multivariate linear relationship model, the voltage offset of each register (i.e., the corresponding read retry voltage offset value) is used as the independent variable to construct a linear relationship model with The linear relationship model of the independent variables can be expressed by formula 1, where formula 1 is:

[0081] .

[0082] Wherein, y is the number of bit flips, and the independent variable is the read retry voltage offset value applied to different registers, arrive is the linear relationship model coefficient, It captures all other factors that may affect the number of bit flips except voltage offset, that is, the difference between the actual observed number of bit flips and the number of bit flips predicted by the linear relationship model; Indicates the number of read voltage offset registers of the flash memory cell, that is:

[0083] .

[0084] In other words, if it is SLC mode flash memory, Equal to 1; if it is MLC mode flash memory, then Equal to 3; if it is TLC mode flash memory, then Equal to 7, etc. If it is a flash memory of other modes, the value of w can also be different from the above values, and no specific limitation is made here.

[0085] It should be noted that the linear relationship model in this application is a multiple linear regression model.

[0086] The purpose of this application is to obtain a set of coefficients , so that the difference between the number of bit flips predicted by the linear relationship model and the actual number of bit flips observed is minimized, wherein the actual number of bit flips observed can be obtained from the firmware after each read operation. In this application, the coefficients in the linear relationship model are determined by the least squares method.

[0087] The coefficients in the linear relationship model The determination includes:

[0088] The coefficients in the linear relationship model are obtained by minimizing the difference The sum of squares is obtained.

[0089] Wherein, the minimization of the difference The formula for the sum of the squares is Formula 2; where Formula 2 is:

[0090] .

[0091] in, Each read operation is indexed. Indicates the In the first read operation The voltage offset value written to the register, the dependent variable Represents the corresponding number of bit flips, that is, in Formula 2 It is The number of bit flips observed after read operations, It is The first read operation corresponds to A read retry voltage offset value.

[0092] Furthermore, to minimize the difference The sum of the squares of each coefficient in Formula 2 needs to be Find the partial derivative and set it to 0, as shown in Formula 3; where Formula 3 is:

[0093] .

[0094] Furthermore, according to Formula 3, a set of regular equations can be obtained, as shown in Formula 4; wherein Formula 4 is:

[0095] .

[0096] Among them, in formula 4 To design a matrix, each row of which corresponds to the voltage offset value of a read operation, is the vector of the observed number of bit flips, is the coefficient vector;

[0097] in, , , .

[0098] Furthermore, the coefficient vector is obtained according to the regular equation formula 4 The value of is shown in Formula 5; where Formula 5 is:

[0099] .

[0100] The coefficients obtained from formula 5 are The value of makes the number of bit flips predicted by the linear relationship model closest to the actual observed value.

[0101] In getting the coefficient After determining the value of , this application uses gradient descent to find the read retry voltage offset value that minimizes the predicted number of bit flips. Gradient descent is an iterative optimization algorithm used to find the local minimum of a differentiable function. This application uses gradient descent to iteratively update the voltage offset value to reduce the predicted number of bit flips.

[0102] Specifically, the step of using the gradient descent method to obtain a new read retry voltage offset value corresponding to minimizing the predicted bit flip number for the flash memory includes:

[0103] First, the read retry voltage offset value that minimizes the number of bit flips is selected from the read retry offset table as the initial read retry voltage offset value for the gradient descent method iteration. .

[0104] Then, for each iteration, the read retry voltage offset value is updated by calculating the gradient of the predicted bit flip number with respect to each read retry voltage offset value according to Formula 6.

[0105] Wherein, Formula 6 is:

[0106] .

[0107] In formula 6, ;gradient Indicates the predicted bit flip number with respect to the The rate of change of the read retry voltage offset value, is the learning rate, which determines the size of the update step, and t is the number of iterations.

[0108] Furthermore, the read retry voltage offset value obtained in each iteration is applied to the read retry operation, and the corresponding bit flip number is recorded.

[0109] In each iteration, the read retry voltage offset value obtained in the previous iteration is used as the read retry voltage offset value in the current iteration.

[0110] Finally, when the termination condition is reached, the gradient descent method iteration is terminated, and the read retry voltage offset value of the current iteration is output, and the current read retry voltage offset value is used as the new read retry voltage offset value. That is, when any of the iteration termination conditions is met, the iteration is terminated and the last updated read retry voltage offset value is output. .

[0111] The termination conditions include:

[0112] (1) If the read retry voltage offset value during the iteration is less than the minimum adjustment granularity supported by the hardware , indicating that the read retry voltage offset value has stabilized, and the iteration can be terminated.

[0113] Right now , the iteration can be terminated.

[0114] (2) To avoid endless iterations, a maximum number of iterations is preset. , if this number is reached, the iteration is stopped, that is , you can stop the iteration.

[0115] Step S200 , determining whether data can be successfully read under the new read retry voltage offset value.

[0116] If the data is successfully read, step S300 is executed to add the new read retry voltage offset value to the header of the read retry offset table to form a new read retry offset table. If the data is not successfully read, the algorithm ends and an error message is output. Adding the new read retry voltage offset value to the header of the read retry offset table in this step facilitates later debugging and porting.

[0117] Step S400 : updating the linear relationship model through an adaptive learning model according to the new read retry offset table.

[0118] Among them, the adaptive learning model in this step is an online learning method.

[0119] In order to ensure that the linear relationship model is always optimized, this application uses an online learning method to dynamically update the coefficients of the linear relationship model to form a new linear relationship model. The online learning method allows the linear relationship model to reflect new data patterns in real time without retraining the entire model. Step S400 specifically includes:

[0120] Substituting the new read retry voltage offset value into Formula 1, we obtain Formula 7;

[0121] Wherein, Formula 7 is:

[0122] .

[0123] In formula 7 is the new read retry voltage offset value, Based on the current coefficient The predicted value of the number of bit flips obtained.

[0124] The coefficients are obtained according to Formula 7 Online update rules; wherein, the update rules are .in, is the learning rate.

[0125] in, Is the loss function, here we use square loss , is the loss function with respect to coefficients The partial derivative of . According to the above, the coefficient The update rule can be:

[0126] .

[0127] In this embodiment, after the new linear relationship model is formed in step S400, the new linear relationship model and the new read retry offset table are saved.

[0128] According to the above steps, the coefficients are obtained and the new read retry voltage offset value, according to the coefficient A new linear relationship model and the new read retry offset table can be obtained by combining the new read retry voltage offset value. In this embodiment, the new linear relationship model and the new read retry offset table are saved for next use.

[0129] The present application first obtains a new read retry voltage offset value corresponding to the flash memory's minimized predicted bit flip number based on a linear relationship model between the read retry voltage offset value and the bit flip number; if data can be successfully read under the new read retry voltage offset value; the new read retry voltage offset value is added to the header of the read retry offset table to form a new read retry offset table; and based on the new read retry offset table, the linear relationship model is updated through an adaptive learning model to form a new linear relationship model. The present application significantly improves the accuracy and reliability of the flash memory during data reading by analyzing and dynamically adjusting the read retry voltage parameters in real time. The dynamic adjustment mechanism of the present invention enables the flash memory to adapt to various working conditions and aging states. Compared with the static parameter adjustment in the prior art, it can more accurately adapt to the actual situation of the flash memory unit.

[0130] Figure 3 A schematic diagram of the structure of a device for determining the optimal read voltage parameter of a flash memory according to an embodiment of the present application is shown. Exemplarily, the device for determining the optimal read voltage parameter of a flash memory includes:

[0131] The acquisition module 10 is configured to acquire a new read retry voltage offset value corresponding to the predicted minimized bit flip number according to a linear relationship model between the read retry voltage offset value and the bit flip number.

[0132] The judgment module 20 is used to judge whether data can be successfully read under the new read retry voltage offset value.

[0133] The adding module 30 is configured to add the new read retry voltage offset value to the header of the read retry offset table to form a new read retry offset table if data can be successfully read under the new read retry voltage offset value.

[0134] The updating module 40 is configured to update the linear relationship model through an adaptive learning model according to the new read retry offset table.

[0135] It can be understood that the device of this embodiment corresponds to the method for determining the optimal read voltage parameter of the flash memory in the above embodiment. The options in the above embodiment are also applicable to this embodiment, so they will not be described again here.

[0136] The present application also provides a flash memory device. Exemplarily, the flash memory device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the terminal device to execute the above-mentioned flash memory optimal read voltage parameter determination method or the functions of each module in the above-mentioned flash memory optimal read voltage parameter determination device.

[0137] The processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including at least one of a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor or any conventional processor, etc., and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of this application.

[0138] The memory may be, but is not limited to, random access memory (RAM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), and electrically erasable programmable read-only memory (EEPROM). The memory is used to store computer programs, and the processor can execute the computer programs accordingly after receiving an execution instruction.

[0139] The present application also provides a readable storage medium for storing the computer program used in the above-mentioned terminal device.

[0140] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architectures, functions and operations of the devices, methods and computer program products according to the multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or flowchart, and the combination of boxes in the structure diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions.

[0141] In addition, the functional modules or units in the various embodiments of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0142] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling a computer device (which can be a smart phone, personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0143] The above is only a specific implementation method of the present application, but the scope of protection of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the scope of protection of the present application.

Claims

1. A method for determining optimal read voltage parameters of a flash memory, It is characterized in that include: Constructing a linear relationship model between the read retry voltage offset value and the bit flip number; According to the linear relationship model, obtaining a new read retry voltage offset value corresponding to the predicted minimized bit flip number; determining whether data can be successfully read under the new read retry voltage offset value; If yes, then adding the new read retry voltage offset value to the header of the read retry offset table to form a new read retry offset table; According to the new read retry offset table, updating the linear relationship model through an adaptive learning model; Wherein, the linear relationship model is: ; Among them, y is the number of bit flips, and the independent variable For the read retry voltage offset values ​​applied to different registers, arrive are the coefficients of the linear relationship model, is the difference between the number of bit flips actually observed and the number of bit flips predicted by the linear relationship model, and w is the number of registers in the flash memory; Wherein, according to the linear relationship model, obtaining a new read retry voltage offset value corresponding to the predicted minimized bit flip number includes: According to the linear relationship model between the read retry voltage offset value and the bit flip number, a new read retry voltage offset value corresponding to the predicted minimized bit flip number is obtained by using a gradient descent method; Wherein, updating the linear relationship model through an adaptive learning model according to the new read retry offset table includes: Applying the new read retry voltage offset value to the linear relationship model to obtain an adaptive update rule for coefficients in the linear relationship model; The new read retry voltage offset value is applied to the linear relationship model, and the obtained formula is: ; in, is the new read retry voltage offset value, Based on the current coefficient The predicted value of the number of bit flips obtained; Among them, the updating rule of the coefficient is: ; in, is the loss function, is the loss function with respect to coefficients The partial derivative of is the learning rate, is the number of new bit flips.

2. The method for determining the optimal read voltage parameter of a flash memory according to claim 1, It is characterized in that The constructing of a linear relationship model between a read retry voltage offset value and a bit flip number comprises: Perform a read retry operation on the storage page according to each read retry voltage offset value in the read retry offset table to obtain a set of bit flip number data sets; Corresponding each element in the data set to a read retry voltage offset value one by one; According to the number w of registers in the flash memory, a linear relationship model including w independent variables is constructed.

3. The method for determining the optimal read voltage parameter of a flash memory according to claim 1, It is characterized in that Determination of the coefficients of the linear relationship model includes: Minimize the difference The sum of squares; Taking partial derivatives for each of the coefficients and setting the partial derivatives to 0, a set of regular equations is obtained; The values ​​of the coefficients are obtained according to the canonical equation.

4. The method for determining the optimal read voltage parameter of a flash memory according to claim 3, It is characterized in that The minimization of the difference The formula for the sum of squares is: ; in, It is The number of bit flips observed after the read operation, n is the maximum number of bit flip read operations, It is The read operation corresponds to A read retry voltage offset value; The formula for calculating the partial derivative of each coefficient is: ; A set of regular equations is obtained: ; in, is the design matrix, is the vector of observed bit flip numbers, is the coefficient vector; in, , , ; According to the canonical equation, the coefficients are obtained The value of the vector is given by: .

5. The method for determining the optimal read voltage parameter of a flash memory according to claim 1, It is characterized in that The method of using the gradient descent method to obtain a new read retry voltage offset value corresponding to the predicted minimized bit flip number includes: Selecting a read retry voltage offset value that minimizes the number of bit flips from the read retry offset table as an initial read retry voltage offset value for iteration of the gradient descent method; For each iteration, calculating a gradient of the predicted number of bit flips with respect to each read retry voltage offset value, and updating the read retry voltage offset value; Applying the read retry voltage offset value obtained in each iteration to the read retry operation, and recording the corresponding bit flip number; When the termination iteration condition is reached, the gradient descent method iteration is terminated, and the read retry voltage offset value of the current iteration is output, and the current read retry voltage offset value is used as the new read retry voltage offset value.

6. The method for determining the optimal read voltage parameter of a flash memory according to claim 5, It is characterized in that The termination iteration conditions include: If the change in the read retry voltage offset value during the iteration is less than the minimum adjustment granularity supported by the hardware, the iteration is terminated; or The iteration is terminated when the maximum preset number of iterations is reached.

7. A device for determining optimal read voltage parameters of a flash memory, It is characterized in that include: A construction module is used to construct a linear relationship model between a read retry voltage offset value and a bit flip number; An acquisition module, used for acquiring a new read retry voltage offset value corresponding to the predicted minimized bit flip number according to the linear relationship model; A judging module, used for judging whether data can be successfully read under the new read retry voltage offset value; an adding module, configured to, if yes, add the new read retry voltage offset value to the header of the read retry offset table to form a new read retry offset table; An updating module, configured to update the linear relationship model through an adaptive learning model according to a new read retry offset table; Wherein, the linear relationship model is: ; Among them, y is the number of bit flips, and the independent variable For the read retry voltage offset values ​​applied to different registers, arrive are the coefficients of the linear relationship model, is the difference between the actually observed number of bit flips and the number of bit flips predicted by the linear relationship model; Wherein, according to the linear relationship model, obtaining a new read retry voltage offset value corresponding to the predicted minimized bit flip number includes: According to the linear relationship model between the read retry voltage offset value and the bit flip number, a new read retry voltage offset value corresponding to the predicted minimized bit flip number is obtained by using a gradient descent method; Wherein, updating the linear relationship model through an adaptive learning model according to the new read retry offset table includes: Applying the new read retry voltage offset value to the linear relationship model to obtain an adaptive update rule for coefficients in the linear relationship model; The new read retry voltage offset value is applied to the linear relationship model, and the obtained formula is: ; in, is the new read retry voltage offset value, Based on the current coefficient The predicted value of the number of bit flips is obtained, where w is the number of registers in the flash memory; Among them, the updating rule of the coefficient is: ; in, is the loss function, is the loss function with respect to coefficients The partial derivative of is the learning rate, is the number of new bit flips.

8. A flash memory device, It is characterized in that The flash memory device comprises a processor and a memory, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the method for determining the optimal read voltage parameter of the flash memory according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Reading voltage calculation in solid-state storage devices

    CN105324819A

  • Flash voltage rapid read retry error correction method and device based on adaptive learning

    CN117076189A