Flash memory analysis method, electronic equipment and storage medium
By generating storage unit peek diagrams and peek color scale diagrams, and using relative electron numbers to analyze flash memory anomalies, the problem of insufficient voltage distribution diagram information in the existing technology is solved, and fast and accurate location of flash memory anomalies is achieved.
Patent Information
- Application Number
- CN202310201823.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-02
- Publication Date
- 2024-09-03
AI Technical Summary
In the existing technology, when unexpected errors occur in flash memory data, although it is common to draw voltage distribution diagrams, the threshold voltage distribution diagram contains limited information, cannot accurately locate all abnormal problems, and lacks efficient analysis methods.
By determining the relative number of electrons in each storage unit of the flash memory, a peek view of the storage unit and a peek color scale diagram are generated to assist in analyzing and quickly locating abnormalities. The specific method includes shifting the judgment line of the threshold voltage distribution diagram, reading the data of the initial and shifted positions, and judging the flip change of the bit value, thereby determining the relative number of electrons.
It achieves rapid and accurate positioning of flash memory abnormalities, identifies the real cause of flash memory abnormalities, and improves analysis efficiency.
Smart Images

Figure CN118588142A
Abstract
Description
Technical Field
[0001] The present application relates to the field of storage technology, and in particular to a flash memory analysis method, electronic device and storage medium. Background Art
[0002] When some unexpected errors occur in the flash memory (Flash) data, such as decoding failure, flash programming failure, high error correcting code (ECC), etc., the most common analysis method is to draw a voltage distribution diagram. However, the threshold voltage distribution diagram itself contains limited information. The threshold voltage distribution diagram alone cannot accurately locate all abnormal problems, so there is a lack of other more efficient flash analysis methods. Summary of the invention
[0003] In view of the above, it is necessary to provide a flash memory analysis method, an electronic device and a storage medium, so as to assist in analyzing and quickly locating abnormal conditions of the flash memory by obtaining the relative number of electrons in each storage unit.
[0004] A first aspect of the present application provides a flash memory analysis method, the flash memory analysis method comprising:
[0005] Determine the relative number of electrons in each memory cell of the flash memory;
[0006] generating a memory cell peek diagram and / or a memory cell peek color scale diagram based on the relative number of electrons in each memory cell;
[0007] The flash memory is analyzed for abnormalities according to the storage unit peek diagram and / or the storage unit peek color scale diagram.
[0008] According to an optional embodiment of the present application, determining the relative number of electrons in each storage unit of the flash memory includes:
[0009] The relative number of electrons in each memory cell is obtained by offsetting the decision line of the threshold voltage distribution diagram.
[0010] According to an optional embodiment of the present application, obtaining the relative number of electrons in the storage unit by shifting the decision line of the threshold voltage distribution diagram includes:
[0011] Reading first data corresponding to an initial position of a decision line of the threshold voltage distribution diagram;
[0012] Shifting the decision line of the threshold voltage distribution diagram by one unit, and reading second data corresponding to the shifted position after the decision line of the threshold voltage distribution diagram is shifted by one unit;
[0013] Determining whether a bit value flipping change occurs in the storage unit according to the first data and the second data;
[0014] When it is determined that a flip change of a bit value occurs in the storage unit, a relative number of electrons in the storage unit is determined according to the flip change.
[0015] According to an optional embodiment of the present application, judging whether a bit value flipping change occurs in the storage unit according to the first data and the second data includes:
[0016] If the decision line of the threshold voltage distribution diagram is shifted to the left by one unit, it is determined whether a flip change of the bit value from 1 to 0 occurs in the storage unit according to the first data and the second data;
[0017] If the decision line of the threshold voltage distribution diagram is shifted rightward by one unit, it is determined whether a flip change in which the bit value of the storage unit is flipped from 0 to 1 occurs based on the first data and the second data.
[0018] According to an optional embodiment of the present application, the method further includes:
[0019] When it is determined that the memory cell does not undergo a flipping change in which the bit value is flipped from 1 to 0, the decision line of the threshold voltage distribution diagram continues to be shifted to the left by one unit until the decision line of the threshold voltage distribution diagram shifts to a first preset threshold value and the memory cell still does not undergo a flipping change in which the bit value is flipped from 1 to 0, and the relative number of electrons in the memory cell is recorded as the first preset number;
[0020] When it is determined that the memory cell has not undergone a flipping change in bit value from 0 to 1, continue to shift the decision line of the threshold voltage distribution diagram to the right by one unit until the decision line of the threshold voltage distribution diagram shifts to a second preset threshold value and the memory cell has not undergone a flipping change in bit value from 0 to 1, and record the relative number of electrons in the memory cell as the second preset number.
[0021] According to an optional embodiment of the present application, before shifting the decision line of the threshold voltage distribution diagram by one unit, the method further includes:
[0022] Identifying the type of the flash memory;
[0023] When the type of the flash memory is a multi-layer memory cell or a triple-layer memory cell, the threshold voltage distribution map is split into threshold voltage distribution maps of a single page.
[0024] According to an optional embodiment of the present application, performing abnormality analysis on the flash memory according to the storage unit peek view and / or the storage unit peek color scale map includes:
[0025] Matching a target storage unit peek view similar to the storage unit peek view in a preset storage unit peek view library and / or matching a target storage unit peek color scale map similar to the storage unit peek color scale map in a preset storage unit peek color scale map library;
[0026] The flash memory is analyzed for abnormalities according to the target storage unit peek image library and / or the target storage unit peek color scale image library.
[0027] According to an optional embodiment of the present application, before reading the second data corresponding to the offset position after the decision line of the threshold voltage distribution diagram is offset by one unit, the method further includes:
[0028] Turn off the randomization module and the error correction code decoding module.
[0029] According to an optional embodiment of the present application, the horizontal axis of the storage unit peeking diagram represents different values of each storage unit, and the vertical axis is the number of corresponding values. The storage unit peeking color scale diagram is a diagram that presents the relative number of electrons of each storage unit at different positions in the form of a color scale, and each color block represents the relative number of electrons of a storage unit at a specific position.
[0030] A second aspect of the present application provides an electronic device, the electronic device comprising:
[0031] A memory, configured to store at least one instruction;
[0032] The processor is used to implement the flash memory analysis method as described above when executing the at least one instruction.
[0033] A third aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the flash memory analysis method as described above is implemented.
[0034] It can be seen from the above technical scheme that the embodiment of the present application determines the relative number of electrons in each storage unit of the flash memory, thereby generating a storage unit peek view and / or a storage unit peek color scale diagram according to the relative number of electrons in each storage unit, and then performing an abnormality analysis on the flash memory according to the storage unit peek view and / or the storage unit peek color scale diagram, so as to quickly and accurately locate the cause of the abnormality of the flash memory. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A coordinate system of a threshold voltage distribution diagram corresponding to the SLC flash memory provided in an embodiment of the present application;
[0036] Figure 2A coordinate system of a threshold voltage distribution diagram corresponding to the MLC flash memory provided in an embodiment of the present application;
[0037] Figure 3 A coordinate system of a threshold voltage distribution diagram corresponding to the TLC flash memory provided in an embodiment of the present application;
[0038] Figure 4 A schematic diagram of a flash memory analysis method according to an embodiment of the present invention;
[0039] Figure 5 A schematic diagram of a decision line of an SLC flash memory offset threshold voltage distribution diagram provided in an embodiment of the present application;
[0040] Figure 6 A schematic diagram of a peek view of a storage unit provided in an embodiment of the present application;
[0041] Figure 7 A schematic diagram of a storage unit peeking at a color scale diagram provided in an embodiment of the present application;
[0042] Figure 8 A schematic diagram of the interval ratio provided in the embodiment of the present application;
[0043] Fig. 9 A schematic diagram of a storage unit peek view of different SLC pages of the same Flash provided in an embodiment of the present application;
[0044] Fig.10 A schematic diagram of another storage unit peek view of different SLC pages of the same Flash provided by an embodiment of the present application;
[0045] Fig.11 A schematic diagram of a memory cell peeking at a color scale diagram that is interrupted after 15% of flash memory programming provided by an embodiment of the present application;
[0046] Fig.12 A schematic diagram of a memory cell peeking at a color scale diagram that is interrupted after 45% of flash memory programming provided by an embodiment of the present application;
[0047] Fig.13 A schematic diagram of a storage unit peeking at a color scale diagram for copying two different data provided in an embodiment of the present application;
[0048] Fig.14 A schematic diagram of a storage unit peeking at a color scale diagram for copying two similar data provided in an embodiment of the present application;
[0049] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "or", "for example" is intended to present related concepts in a concrete way.
[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It should be understood that, unless otherwise specified in the present application, " / " means or. For example, A / B can represent A or B. "And / or" in the present application is only a kind of association relationship describing associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can represent: a, b, c, a and b, a and c, b and c, a, b and c seven situations. It should be understood that the order of the steps shown in the flowchart of this article can be changed, and some can also be omitted.
[0052] The basic storage unit of flash memory is a double-layer floating gate MOS tube (Cell), which relies on storing a specific number of electrons to record data. When an abnormal situation occurs in Flash, such as programming interruption, over-programming, and weak programming, there are certain regularities in the changes in the number of electrons in each storage cell. The most common analysis method is to draw a voltage distribution diagram, but the amount of information contained in the threshold voltage distribution diagram itself is very limited. The threshold voltage distribution diagram alone cannot accurately locate all abnormal problems, so there is a lack of other more efficient flash analysis methods.
[0053] In order to discover the real cause of the flash memory abnormality, the embodiments of the present application provide a flash memory analysis method, an electronic device, and a computer-readable storage medium.
[0054] Before explaining the technical solution of the embodiment of the present application in detail, the contents related to 3D NAND flash memory are briefly introduced as follows:
[0055] Cell is the smallest storage unit of 3D NAND flash memory. Data can be represented by the number of electrons (voltage) stored in the oxide layer of the storage cell. For each state, the number of electrons (voltage) presents a specific distribution within a certain range.
[0056] The memory cells of the flash memory store data according to different threshold voltage distributions. In other words, when different data values are programmed in the memory cells of the flash memory, the threshold voltage of the memory cells of the flash memory changes from one threshold voltage distribution to another threshold voltage distribution. Where a memory cell has a threshold voltage within a particular threshold voltage distribution, the memory cell can be said to have a "threshold voltage state" corresponding to the logical state represented by the threshold voltage distribution. The threshold voltage distribution refers to the probability density corresponding to different values of the threshold voltage.
[0057] According to the number of bits that each storage cell can store, flash memory is divided into single level cell (SLC) flash memory, multi level cell (MLC) flash memory, triple level cell (TLC) flash memory and other flash memory with the same characteristics. Among them, SLC flash memory refers to flash memory in which each storage cell can only store 1 bit (1 bit) of data; MLC flash memory refers to flash memory in which each storage cell can store 2 bits (2 bits) of data, and TLC flash memory refers to flash memory in which each storage cell can store 3 bits (3 bits) of data.
[0058] For the convenience of analysis, before executing step 41 of the flash memory analysis method described in the embodiment of the present application, the embodiment of the present application first establishes a coordinate system, such as Figures 1 to 3 As shown, the relative number of electrons in the storage unit is divided into several levels. Since the number of electrons depends on the distance that the decision line can be offset, the number of electrons that can be stored in the SLC flash memory is 0 to 251, the number of electrons that can be stored in the MLC flash memory is 0 to 419, and the number of electrons that can be stored in the TLC flash memory is 0 to 755.
[0059] Figure 1 The coordinate system corresponding to the threshold voltage distribution diagram of SLC flash memory is given. The threshold voltage distribution diagram of SLC flash memory represents two different threshold voltage distributions for storing data in a single-layer flash memory cell. That is, the limited voltage range is divided into two regions, each region represents a storage logic. Figure 1In the example, where the single-layer flash memory cell has a threshold voltage within the threshold voltage distribution marked as "1", the single-layer flash memory cell stores logic "1". Where the single-layer flash memory cell has a threshold voltage within the threshold voltage distribution marked as "0", the single-layer flash memory cell stores logic "0". With the relative number of electrons in the single-layer flash memory cell as the horizontal axis and the vertical axis at the location where the relative number of electrons is 0, a coordinate system corresponding to the threshold voltage distribution diagram of the single-layer flash memory cell is obtained.
[0060] Figure 2 The coordinate system corresponding to the threshold voltage distribution diagram of MLC flash memory is given. The threshold voltage distribution diagram of MLC flash memory represents four different threshold voltage distributions for storing data in multi-layer flash memory storage cells. That is, the limited voltage range is divided into 4 regions, each region represents a storage logic. Figure 2 In the example, where the multi-layer flash memory cell has a threshold voltage within the threshold voltage distribution marked as "11" (i.e., the most significant bit (MSB) "1" and the least significant bit (LSB) "1"), the multi-layer flash memory cell stores logic "11". Where the multi-layer flash memory cell has a threshold voltage within the threshold voltage distribution marked as "01" (i.e., MSB "0" and LSB "1"), the multi-layer flash memory cell stores logic "01". Where the multi-layer flash memory cell has a threshold voltage within the threshold voltage distribution marked as "00" (i.e., MSB "0" and LSB "0"), the multi-layer flash memory cell stores logic "00". Where the multi-layer flash memory cell has a threshold voltage within the threshold voltage distribution marked as "10" (i.e., MSB "1" and LSB "0"), the multi-layer flash memory cell stores logic "10".
[0061] The multi-layer flash memory cells are logically split to obtain two types of pages. Since the voltage distribution of the four storage logics 11, 01, 00, 10 of the multi-layer flash memory cells is divided into four intervals, in order to facilitate analysis and reduce the types of storage logic, and the multi-layer flash memory cells can store 2 bits of data, the least significant bit of the multi-layer flash memory cells is extracted and called the lower page, and the most significant bit of the multi-layer flash memory cells is extracted and called the upper page.
[0062] For the lower page, the relative number of electrons in the multi-layer flash memory storage unit is used as the horizontal axis, and the vertical axis is established where the relative number of electrons is 0. The relative number of electrons is 210 as the dividing point of the voltage distribution range of different storage logics, and the coordinate system corresponding to the threshold voltage distribution diagram of the multi-layer flash memory storage unit is obtained.
[0063] For the upper page, the relative number of electrons in the multi-layer flash memory storage unit is used as the horizontal axis, and the vertical axis is established where the relative number of electrons is 0. The relative numbers of electrons are 126 and 294 as the dividing points of the voltage distribution ranges of different storage logics, and the coordinate system corresponding to the threshold voltage distribution diagram of the multi-layer flash memory storage unit is obtained.
[0064] It should be noted that Figure 2 The correspondence between the threshold voltage and the storage logic shown is only one embodiment. In another embodiment of the present invention, the storage logic can also be arranged as "11", "10", "00" and "01", or other arrangements. In addition, in another embodiment, the first bit from the left can also be defined as the LSB, and the second bit from the left can be defined as the MSB.
[0065] Figure 3 The coordinate system corresponding to the threshold voltage distribution diagram of TLC flash memory is given. The threshold voltage distribution diagram of TLC flash memory represents four different threshold voltage distributions for storing data in a three-layer flash memory storage cell. That is, the limited voltage range is divided into 8 regions, each region represents a storage logic. Figure 3In the example, where the three-layer flash memory cell has a threshold voltage within the threshold voltage distribution labeled “111” (i.e., the most significant bit (MSB) “1”, the center significant bit (CSB) “1”, and the least significant bit (LSB) “1”), the three-layer flash memory cell stores logic “111”. Where the three-layer flash memory cell has a threshold voltage within the threshold voltage distribution labeled “110” (i.e., MSB “1”, CSB “1”, and LSB “0”), the three-layer flash memory cell stores logic “110”. Where the three-layer flash memory cell has a threshold voltage within the threshold voltage distribution labeled “100” (i.e., MSB “1”, CSB “0”, and LSB “0”), the three-layer flash memory cell stores logic “100”. Where the three-layer flash memory cell has a threshold voltage within the threshold voltage distribution labeled “000” (i.e., MSB “0”, CSB “0”, and LSB “0”), the three-layer flash memory cell stores a logical “000”. Where the three-layer flash memory cell has a threshold voltage within the threshold voltage distribution labeled “010” (i.e., MSB “0”, CSB “1”, and LSB “0”), the three-layer flash memory cell stores a logical “010”. Where the three-layer flash memory cell has a threshold voltage within the threshold voltage distribution labeled “011” (i.e., MSB “0”, CSB “1”, and LSB “1”), the three-layer flash memory cell stores a logical “011”. Where the three-layer flash memory cell has a threshold voltage within the threshold voltage distribution labeled “001” (i.e., MSB “0”, CSB “0”, and LSB “1”), the three-layer flash memory cell stores a logical “001”. Where a triple layer flash memory cell has a threshold voltage within the threshold voltage distribution labeled "101" (ie, MSB "1", CSB "0", and LSB "1"), the triple layer flash memory cell stores logic "101".
[0066] The three-layer flash memory storage unit is logically split to obtain three types of pages. Since the voltage distribution of the eight storage logics 111, 110, 100, 000, 010, 011, 001, 101 of the three-layer flash memory storage unit is divided into eight intervals, in order to facilitate analysis and reduce the types of storage logic, and the three-layer flash memory storage unit can store 3 bits of data, the least significant bit of the three-layer flash memory storage unit is extracted and called the lower page, the middle significant bit of the three-layer flash memory storage unit is extracted and called the middle page, and the most significant bit of the three-layer flash memory storage unit is extracted and called the upper page.
[0067] For the lower page, the relative number of electrons in the three-layer flash memory storage unit is used as the horizontal axis, and the vertical axis is established where the relative number of electrons is 0. The relative numbers of electrons are 126 and 462 as the dividing points of the voltage distribution ranges of different storage logics, and the coordinate system corresponding to the threshold voltage distribution diagram of the three-layer flash memory storage unit is obtained.
[0068] For the middle page, the relative number of electrons in the three-layer flash memory storage unit is used as the horizontal axis, and the vertical axis is established where the relative number of electrons is 0. The relative numbers of electrons are 210, 378 and 546 as the dividing points of the voltage distribution ranges of different storage logics, and the coordinate system corresponding to the threshold voltage distribution diagram of the three-layer flash memory storage unit is obtained.
[0069] For the upper page, the relative number of electrons in the three-layer flash memory storage unit is used as the horizontal axis, and the vertical axis is established where the relative number of electrons is 0. The relative numbers of electrons are 294 and 630 as the dividing points of the voltage distribution ranges of different storage logics, and the coordinate system corresponding to the threshold voltage distribution diagram of the three-layer flash memory storage unit is obtained.
[0070] It should be noted that Figure 3 The correspondence between the threshold voltage and the storage logic shown is only one embodiment. In another embodiment of the present invention, the storage logic may also be arranged as "111", "110", "100", "101", "000", "001", "011" and "010", or other arrangements. In addition, in another embodiment, the first bit from the left may be defined as the MSB, the second bit from the left may be defined as the CSB, and the third bit from the left may be defined as the LSB.
[0071] In flash memory, data is stored by charging the memory cells of the flash memory. Taking MLC as an example, each memory cell can store two bits of data, namely "11, 10, 01, 00". Depending on the voltage applied to the memory cells of the flash memory, the number of electrons stored inside is different, and the state "11" requires the lowest voltage to be applied, while the state "00" requires the highest voltage to be applied. Therefore, different voltages need to be maintained to store different numbers of electrons inside the memory cells. When reading data, the voltage of the flash memory memory cell is read to determine which of the four types of bit data stored in the flash memory memory cell. Therefore, the bit data stored in the memory cell of the flash memory corresponds to the number of electrons inside the memory cell (determined by the voltage). Usually, the number of electrons and voltage stored in the four bit data "11, 10, 01, 00" are from low to high.
[0072] Please refer to Figure 4 , Figure 4 A flowchart of a flash memory analysis method provided in an embodiment of the present application. The flash memory analysis method provided in an embodiment of the present application can be applied to one or more electronic devices. It is understandable that the order of the steps in the flowchart can be changed and some steps can be omitted according to different requirements.
[0073] 41, determine the relative number of electrons in each memory cell of the flash memory.
[0074] The electronic device determines the relative number of electrons in each storage cell of the flash memory, thereby generating a storage cell peek view and / or a storage cell peek color scale diagram based on the relative number of electrons in each storage cell, and then performs an abnormality analysis on the flash memory based on the storage cell peek view and / or the storage cell peek color scale diagram.
[0075] In an optional implementation, determining the relative number of electrons in each storage cell of the flash memory may include: obtaining the relative number of electrons in each storage cell by offsetting a decision line of a threshold voltage distribution diagram.
[0076] In the prior art, there is no solution to directly obtain the relative number of electrons in a storage cell. In the embodiment of the present application, the relative number of electrons in each storage cell is obtained by offsetting the decision line of the threshold voltage distribution diagram of the flash memory (Flash). After the Flash is programmed, the number of electrons in the programmed storage cell is in a relatively stable range. After the number of electrons is fixed, the position change of the decision line of the threshold voltage distribution diagram will change the bit value represented by the storage cell. At this time, by continuously offsetting the decision line, the position that just flips the bit value represented by the storage cell is found, and the position can be used as the relative number of electrons in the storage cell.
[0077] like Figure 5 As shown, taking SLC flash memory as an example, the starting decision line of the threshold voltage distribution diagram is located on the left side of the storage cell, that is, the position of the storage cell is to the right of the starting position of the decision line of the threshold voltage distribution diagram, and the bit value represented by the storage cell at this time is 0. When the decision line of the threshold voltage distribution diagram is slowly shifted to the right until it is just moved to the right of the relative number of electrons represented by the storage cell, the bit value represented by the storage cell at this time is 1. Obviously, the bit value represented by the storage cell has flipped from 0 to 1, and the offset position after the decision line of the offset threshold voltage distribution diagram is determined as the relative number of electrons of the storage cell.
[0078] In an optional embodiment, obtaining the relative number of electrons in the storage unit by shifting the decision line of the threshold voltage distribution diagram includes:
[0079] Reading first data corresponding to an initial position of a decision line of the threshold voltage distribution diagram;
[0080] Shifting the decision line of the threshold voltage distribution diagram by one unit, and reading second data corresponding to the shifted position after the decision line of the threshold voltage distribution diagram is shifted by one unit;
[0081] Determining whether a bit value flipping change occurs in the storage unit according to the first data and the second data;
[0082] When it is determined that a flip change of a bit value occurs in the storage unit, a relative number of electrons in the storage unit is determined according to the flip change.
[0083] The initial position refers to the position of the starting decision line of the threshold voltage distribution diagram, and the offset position refers to the position after the decision line of the threshold voltage distribution diagram is offset by N units, where N is a natural number. The unit is a reference for moving the default read reference voltage to the left or right by the offset degree between two adjacent threshold voltage states in the threshold voltage distribution of the NAND flash memory.
[0084] The memory cell stores multi-bit values by changing the threshold voltage. Specifically, there is a charge capture layer between the control gate and the channel of each memory cell. By applying a write voltage to the control gate, the amount of electrons in the charge capture layer can be changed, thereby changing the threshold voltage of the memory cell. As the threshold voltage changes, each memory cell in the memory cell array has multiple storage logics. And by reading the voltage, it is possible to determine which storage logic the memory cell belongs to, thereby obtaining the bit stored in the memory cell.
[0085] Wherein, shifting the decision line of the threshold voltage distribution diagram by one unit may include: shifting the decision line of the threshold voltage distribution diagram by one unit to the left, and shifting the decision line of the threshold voltage distribution diagram by one unit to the right.
[0086] In an optional embodiment, if the decision line of the threshold voltage distribution diagram is offset to the left by one unit, then judging whether a bit value flipping change has occurred in the storage unit based on the first data and the second data includes: judging whether a bit value flipping change from 1 to 0 has occurred in the storage unit based on the first data and the second data.
[0087] When it is determined that the memory cell has undergone a flip change in which the bit value is flipped from 1 to 0, the offset position of the decision line of the threshold voltage distribution diagram is used as the relative number of electrons in the memory cell. When it is determined that the memory cell has not undergone a flip change in which the bit value is flipped from 1 to 0, the decision line of the threshold voltage distribution diagram is continuously shifted to the left by one unit until the decision line of the threshold voltage distribution diagram is shifted to a first preset threshold value and the memory cell still has not undergone a flip change in which the bit value is flipped from 1 to 0, and the relative number of electrons in the memory cell is recorded as the first preset number.
[0088] The first preset threshold is a predefined critical value at which the decision line cannot continue to shift to the left. For example, when the decision line moves to a certain position to the left and the timeout reaches the preset time threshold, it is determined that the decision line cannot continue to shift to the left, and the position is the first preset threshold. In other embodiments, the first preset threshold can also be defined according to actual needs, and the present invention does not impose any limitation.
[0089] Assuming that the position of the storage cell is to the left of the starting position of the decision line of the threshold voltage distribution diagram, the bit value represented by the storage cell is 1. When the decision line of the threshold voltage distribution diagram is slowly shifted to the left until it is just moved to the left of the number of electrons represented by the storage cell, the bit value represented by the storage cell is 0. Obviously, the bit value represented by the storage cell has flipped from 1 to 0. The leftward shift position of the decision line of the threshold voltage distribution diagram is used as the relative number of electrons of the storage cell.
[0090] Assume that the location of the storage cell is to the right of the starting position of the decision line of the threshold voltage distribution diagram, then the bit value represented by the storage cell is 0. Then the decision line of the threshold voltage distribution diagram is slowly shifted to the left. However, no matter how many units the decision line of the threshold voltage distribution diagram is shifted to the left, it is impossible to move to the right of the number of electrons represented by the storage cell. Obviously, the bit value represented by the storage cell will not flip from 1 to 0, nor will it flip from 0 to 1.
[0091] In an optional embodiment, if the decision line of the threshold voltage distribution diagram is offset to the right by one unit, then judging whether a bit value flipping change has occurred in the storage unit based on the first data and the second data includes: judging whether a bit value flipping change from 0 to 1 has occurred in the storage unit based on the first data and the second data.
[0092] When it is determined that the memory cell has undergone a flip change in which the bit value is flipped from 0 to 1, the offset position of the decision line of the threshold voltage distribution diagram is used as the relative number of electrons in the memory cell. When it is determined that the memory cell has not undergone a flip change in which the bit value is flipped from 0 to 1, the decision line of the threshold voltage distribution diagram is continuously shifted to the right by one unit until the decision line of the threshold voltage distribution diagram is shifted to a second preset threshold value and the memory cell still has not undergone a flip change in which the bit value is flipped from 0 to 1, and the relative number of electrons in the memory cell is recorded as the second preset number.
[0093] The second preset threshold is a predefined critical value at which the decision line cannot continue to shift to the right. For example, when the decision line moves to a certain position to the right and the timeout reaches the preset time threshold, it is determined that the decision line cannot continue to shift to the right, and the position is the second preset threshold. In other embodiments, the second preset threshold can also be defined according to actual needs, and the present invention does not impose any limitation.
[0094] Assume that the position of the storage cell is to the right of the starting position of the decision line of the threshold voltage distribution diagram, then the bit value represented by the storage cell is 0. When the decision line of the threshold voltage distribution diagram is slowly shifted to the right until it is just moved to the right of the number of electrons represented by the storage cell, the bit value represented by the storage cell is 1. Obviously, the bit value represented by the storage cell has flipped from 0 to 1. The rightward shift position of the decision line of the threshold voltage distribution diagram is used as the relative number of electrons of the storage cell.
[0095] Assume that the location of the storage cell is to the left of the starting position of the decision line of the threshold voltage distribution diagram, then the bit value represented by the storage cell is 1. Then the decision line of the threshold voltage distribution diagram is slowly shifted to the right. However, no matter how many units the decision line of the threshold voltage distribution diagram is shifted to the right, it is impossible to move to the left of the number of electrons represented by the storage cell. Obviously, the bit value represented by the storage cell will not flip from 0 to 1, nor from 1 to 0.
[0096] It should be understood that the first preset number and the second preset number are different for different types of flash memory. For SLC flash memory, the first preset number is 0, and the second preset number is 252. For MLC flash memory, the first preset number is 0, and the second preset number is 420. For TLC flash memory, the first preset number is 0, and the second preset number is 756.
[0097] It should be noted that when reading the first data corresponding to the initial position of the decision line of the threshold voltage distribution diagram, the randomization module and the error correction code decoding module of the flash memory need to be turned off. When reading the second data corresponding to the offset position after the decision line of the threshold voltage distribution diagram is offset by one unit, the randomization module and the error correction code decoding module of the flash memory also need to be turned off.
[0098] Since the threshold voltage distribution diagram of MLC flash memory / TLC flash memory has far more decision lines than the threshold voltage distribution diagram of SLC flash memory, MLC flash memory / TLC flash memory needs to consider different threshold voltage ranges when offsetting the decision lines of the threshold voltage distribution diagram. Therefore, in order to further understand how the embodiments of the present application determine the relative number of electrons in a storage cell, the embodiments of the present application are divided into two different processing methods according to the type of flash memory.
[0099] The following is the process for SLC flash memory:
[0100] ① The decision line of the threshold voltage distribution diagram is not shifted, that is, the initial position of the decision line of the threshold voltage distribution diagram is kept unchanged, and the Page is read.
[0101] The data in the read Page is called the first data.
[0102] When reading, the randomization module and the error correction code decoding module need to be turned off to save the first data read.
[0103] ② After shifting the decision line of the threshold voltage distribution diagram to the left or right by one unit, read the Page.
[0104] The data in the read Page is called the second data.
[0105] When reading, the randomization module and the error correction code decoding module are turned off, and the read second data is saved.
[0106] ③Compare the data (first data) corresponding to the non-shifted decision line with the data (second data) corresponding to the shifted decision line, and determine whether there is a flip change in the bit value based on the comparison result. If the second step is to shift the decision line of the threshold voltage distribution diagram to the left, determine whether there is a flip change in the bit value from 1 to 0 based on the comparison result. If there is a flip change in the bit value from 1 to 0, the position of the decision line on the horizontal axis at this time is used as the relative number of electrons in the storage unit corresponding to the bit value. If the second step is to shift the decision line of the threshold voltage distribution diagram to the right, determine whether there is a flip change in the bit value from 0 to 1 based on the comparison result. If there is a flip change in the bit value from 0 to 1, the position of the decision line on the horizontal axis at this time is used as the relative number of electrons in the storage unit corresponding to the bit value.
[0107] ④ Repeat steps ② and ③ until the positions of the decision lines of all threshold voltage distribution diagrams have been shifted. For a storage unit whose bit value has not flipped from 1 to 0 when the decision line is shifted to the first preset threshold, the relative number of electrons in the storage unit is recorded as 0; for a storage unit whose bit value has not flipped from 0 to 1 when the decision line is shifted to the second preset threshold, the relative number of electrons in the storage unit is recorded as 252.
[0108] The following is the processing process for MLC flash memory / TLC flash memory:
[0109] ① Do not shift the decision line of the threshold voltage distribution diagram, that is, keep the initial position of the decision line of the threshold voltage distribution diagram unchanged, and read the Page.
[0110] The data in the read Page is called the first data.
[0111] When reading, the randomization module and the error correction code decoding module need to be turned off to save the first data read.
[0112] It should be noted that the electronic device needs to identify the type of flash memory. When the type of the flash memory is MLC flash memory / TLC flash memory, the threshold voltage distribution diagram is split into threshold voltage distribution diagrams of a single page. Then, according to the different types of pages read, a coordinate system of the threshold voltage distribution diagram of the corresponding page is established. For MLC flash memory, the threshold voltage distribution diagram is first split into a threshold voltage distribution diagram of the upper page and a threshold voltage distribution diagram of the lower page; then a coordinate system of the threshold voltage distribution diagram of the upper page is established, and a coordinate system of the threshold voltage distribution diagram of the lower page is established. For details, please see Figure 2 For TLC flash memory, the threshold voltage distribution diagram is first split into a threshold voltage distribution diagram of the upper page, a threshold voltage distribution diagram of the middle page, and a threshold voltage distribution diagram of the lower page; then a coordinate system corresponding to the threshold voltage distribution diagram of the upper page, a coordinate system corresponding to the threshold voltage distribution diagram of the middle page, and a coordinate system corresponding to the threshold voltage distribution diagram of the lower page are established. For details, please see Figure 3 and its related description.
[0113] ②Set the Flash to SLC mode and read the Page.
[0114] When reading, the randomization module and error correction code decoding module are turned off to save the read data. The purpose of this step is to divide the TLC data into left and right parts according to whether the read result is bit 0 or bit 1 when reading TLC data in SLC mode, so as to facilitate the subsequent steps to distinguish the positions of storage cells in different intervals on the coordinate system.
[0115] ③ Set the Flash to TLC mode, shift the decision line of the threshold voltage distribution diagram to the left or right by one unit, and then read the Page.
[0116] The data in the read Page is called the second data.
[0117] When reading, the randomization module and the error correction code decoding module are turned off, and the read second data is saved.
[0118] ④ Determine the interval where the decision line is located after the decision line of the threshold voltage distribution diagram of step ③ is offset, and exclude other storage units that are not in the interval where the decision line is located according to the data obtained in step ②. Then make the following judgment: compare the data (first data) corresponding to the non-offset decision line with the data (second data) corresponding to the offset decision line, and judge whether there is a flip change of the bit value according to the comparison result. If the third step is to offset the decision line of the threshold voltage distribution diagram to the left, judge whether there is a flip change of the bit value from 1 to 0 according to the comparison result. If there is a flip change of the bit value from 1 to 0, the position of the decision line on the horizontal axis at this time is used as the relative number of electrons of the storage unit corresponding to the bit value. If the third step is to offset the decision line of the threshold voltage distribution diagram to the right, judge whether there is a flip change of the bit value from 0 to 1 according to the comparison result. If there is a flip change of the bit value from 0 to 1, the position of the decision line on the horizontal axis at this time is used as the relative number of electrons of the storage unit corresponding to the bit value.
[0119] ⑤ Repeat steps ③ and ④ until the positions of the decision lines of all threshold voltage distribution diagrams have been shifted. For a storage cell whose bit value has not flipped from 1 to 0 when the decision line is shifted to the first preset threshold, the relative number of electrons in the storage cell is recorded as 0; for a storage cell whose bit value has not flipped from 0 to 1 when the decision line is shifted to the second preset threshold, the relative number of electrons in the storage cell is recorded as 420 (MLC flash memory) or 756 (TLC flash memory).
[0120] 42. Generate a storage unit peek diagram and / or a storage unit peek color scale diagram according to the relative electron quantity of each storage unit.
[0121] After obtaining the relative number of electrons in each storage cell, the relative number of electrons in each storage cell can be processed and a statistical graph can be drawn: a storage cell peek graph (hereinafter referred to as a CS graph) and a storage cell peek color scale graph (hereinafter referred to as a CS color scale graph), so as to view and analyze the cause of the flash memory abnormality.
[0122] Among them, the CS diagram is a diagram generated by statistically analyzing the relative number of electrons in each storage unit, such as Figure 6 FIG. 1 is a peek into the storage cell of SLC flash memory. Figure 6 The horizontal axis of the storage unit peek diagram shown represents different values of each storage unit, and the vertical axis is the number of corresponding values.
[0123] Among them, the CS color scale diagram is a diagram that presents the relative number of electrons in each storage unit at different positions in the form of color scale, such as Figure 7 As shown in the figure. Each block with different shades of color in the figure represents the relative number of electrons or the changing trend of the storage unit at a specific position. Figure 7 The CS color scale diagram of SLC is shown in FIG. According to the CS color scale diagram, the distribution and change trend of the relative number of electrons in the storage cells at different positions can be more intuitively seen.
[0124] 43. Perform an abnormality analysis on the flash memory according to the storage unit peeking diagram and / or the storage unit peeking color scale diagram.
[0125] The CS diagram can help analyze whether the Flash data is programmed normally, the degree of interference, the detailed electronic offset, electronic leakage or over-programming, etc.
[0126] The CS color scale diagram can assist in analyzing the degree of interference to the flash memory data and changes in the electron distribution.
[0127] In an optional implementation, the performing abnormality analysis on the flash memory according to the storage unit peek view and / or the storage unit peek color scale map includes:
[0128] Matching a target storage unit peek view similar to the storage unit peek view in a preset storage unit peek view library and / or matching a target storage unit peek color scale map similar to the storage unit peek color scale map in a preset storage unit peek color scale map library;
[0129] The flash memory is analyzed for abnormalities according to the target storage unit peeking diagram and / or the target storage unit peeking color scale diagram.
[0130] According to the memory cell peek diagram, the ratio of the area ratio of each logic interval in the threshold voltage distribution diagram to the total area of each logic interval can be analyzed. After a small change in the shape of the threshold voltage distribution diagram, in order to determine the impact of the change in the shape of the threshold voltage distribution diagram, it is necessary to determine whether a large number of memory cells have been transferred to other intervals. The ordinary threshold voltage distribution diagram needs to count the area changes of each interval, while the memory cell peek diagram only needs to compare the area ratio of each interval before and after. Moreover, the ordinary threshold voltage distribution diagram cannot confirm the ratio of the first preset number of memory cells in the threshold voltage distribution diagram and the ratio of the second preset number of memory cells. After expansion, the CS diagram can also count the area or ratio of any interval range, such as Figure 8 shown.
[0131] The stability of the page can be analyzed based on the storage unit peek. Fig. 9 and Fig.10The following are the storage cell views of different SLCs of the same Flash. The bit values (0 and 1) of these two storage cell views are evenly distributed, indicating that normal programming has been completed. By comparing the CS library, the storage cells corresponding to the bit value 0 of the general SLC will be about 20% more unstable. However Fig.10 The CS diagram shown shows that the storage cells corresponding to the unstable bit value 0 account for nearly 50%, and there are many storage cells close to the decision line, which means that there are many unstable storage cells in the page, many storage cells are not fully charged, and the bit value 0 is prone to bit value flipping after being disturbed.
[0132] Based on the storage unit peek, the Flash's overwriting, weak programming, and over-programming behaviors can be analyzed. Overwriting: about 25% of the bit values are changed from 1 to 0; over-programming: the ratio is: bit value 0>50%>bit value 1; weak programming: the ratio is: bit value 1>50%>bit value 0.
[0133] Based on the storage unit peeking diagram, the possibility and location of bit value flipping in the storage unit can be analyzed. The relative number of electrons and their location in the storage unit closest to the decision line can be counted. The closer to the decision line, the more likely the bit value flipping will occur. This method can check whether the data is stable and the specific distribution pattern of unstable data.
[0134] like Figures 11 to 14 As shown, the distribution and change trend of the relative number of electrons in storage cells at different positions can be intuitively analyzed by peeking at the color scale diagram of the storage unit. By comparing the changes in the depth of the color before and after different color scale diagrams, the degree of data interference and the changes in the distribution of electrons can be seen.
[0135] The CS color map can be used to check whether the stored data can effectively remove the influence of coupling between storage cells. If storage cells with relatively few electrons or storage cells with relatively many electrons are clustered together, it is easy to form a large potential difference and electron transfer occurs, resulting in data errors.
[0136] By peeking at the color scale graph based on the storage unit, the data written to the Flash page can be checked for duplication. For example, the two duplicated data have the following differences: the Data part of the data is exactly the same, but the Meta part of the data is different. It can be seen that after duplication, the color scale graph of the Meta part of the data has obvious abnormalities, its color scale distribution is uneven, and there are more color blocks representing bit 0 in the color scale graph, so the Meta part of the data may be duplicated.
[0137] By peeking at the color scale diagram of the storage unit, it can be checked whether the Flash is an abnormal sample. The abnormal sample may cause a certain row or multiple rows and a certain column or multiple columns of data written to the Flash to be all bits 0 or bits 1.
[0138] The flash memory analysis method provided in the embodiment of the present application offsets the decision line of the threshold voltage distribution diagram of Flash to locate which storage cells have undergone bit value flipping changes during the decision line offset process. The relative number of electrons in the storage cells where the bit value flipping changes have occurred corresponds to the offset position of the decision line of the threshold voltage distribution diagram at this time. For MLC or TLC, the threshold voltage distribution diagram is split into a threshold voltage distribution diagram of a single Page and then the decision line of the corresponding threshold voltage distribution diagram is offset. After determining the relative number of electrons in each storage cell, the relative number of electrons in each storage cell is statistically analyzed to draw a CS diagram; the relative number of electrons in each storage cell is represented by blocks of different colors to draw a CS color scale diagram. By establishing a CS diagram library and a CS color scale diagram library, subsequent similarity comparison can be performed to quickly locate Flash problems.
[0139] See also Fig.15 , Fig.15 This is a schematic block diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 15 may be a server or a terminal device.
[0140] The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored computer-readable instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), digital signal processors (DSP), embedded devices, etc. The electronic device can be any electronic product that can interact with users, such as personal computers, servers, production equipment, tablet computers, smart phones, etc. The electronic device may include network devices and / or user devices. Among them, the network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of multiple network electronic devices, or a cloud composed of a large number of hosts or network electronic devices based on cloud computing. The network in which the electronic device is located includes, but is not limited to: the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (VPN), etc.
[0141] like Fig.15As shown, the electronic device 15 includes a communication interface 151, a memory 152, a processor 153, an input / output (I / O) interface 154 and a bus 155. The processor 153 is coupled to the communication interface 151, the memory 152 and the I / O interface 154 through the bus 155.
[0142] The communication interface 151 is used for communication. The communication interface 151 may be an existing interface on the electronic device 15, or a newly created interface on the electronic device 15. The communication interface 151 may be a network interface, such as a wireless local area network (WLAN) interface, a cellular network communication interface, or a combination thereof.
[0143] The memory 152 may be used to store an operating system and computer programs. For example, the memory 152 stores a program corresponding to the above-mentioned flash memory analysis method.
[0144] It should be understood that the memory 152 may include a program storage area and a data storage area. The program storage area may be used to store an operating system, an application program required by at least one method (such as a flash memory analysis method, etc.), etc.; the data storage area may store data created according to the use of the electronic device 15, etc. In addition, the memory 152 may include a volatile memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other storage devices.
[0145] The processor 153 provides computing and control capabilities to support the operation of the entire computer device. For example, the processor 153 is used to execute the computer program stored in the memory 152 to implement the steps in the above-mentioned flash memory analysis method.
[0146] It should be understood that the processor 153 is a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0147] The I / O interface 154 is used to provide a channel for user input or output. For example, the I / O interface 154 can be used to connect various input and output devices (mouse, keyboard or 3D touch device, etc.) and a display, so that the user can enter information or visualize the information.
[0148] The bus 155 is at least used to provide a channel for mutual communication among the communication interface 151 , the memory 152 , the processor 153 , and the I / O interface 154 in the electronic device 15 .
[0149] Those skilled in the art will understand that Fig.15 The structure shown is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0150] In one embodiment, when the processor 153 executes the computer program stored in the memory 152 to implement the flash memory analysis method, the following steps are implemented:
[0151] Determine the relative number of electrons in each memory cell of the flash memory;
[0152] generating a memory cell peek diagram and / or a memory cell peek color scale diagram based on the relative number of electrons in each memory cell;
[0153] The flash memory is analyzed for abnormalities according to the storage unit peek diagram and / or the storage unit peek color scale diagram.
[0154] Specifically, the specific implementation method of the processor 153 for the above instructions can refer to the description of the relevant steps in the aforementioned flash memory analysis method embodiment, which will not be repeated here.
[0155] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. The computer program includes program instructions. The method implemented when the program instructions are executed can refer to the various embodiments of the flash memory analysis method of the present application.
[0156] The computer-readable storage medium may be an internal storage unit of the electronic device described in the foregoing embodiment, such as a hard disk or memory of the electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device.
[0157] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the electronic device, etc.
[0158] The electronic device and computer-readable storage medium provided by the aforementioned embodiments determine the relative number of electrons in each storage cell of the flash memory, thereby generating a storage cell peek view and / or a storage cell peek color scale diagram according to the relative number of electrons in each storage cell, and then performing an abnormality analysis on the flash memory based on the storage cell peek view and / or the storage cell peek color scale diagram.
[0159] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0160] It should also be understood that the term "and / or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations. It should be noted that, in this article, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "including a..." does not exclude the presence of other identical elements in the process, method, article or system including the element.
[0161] The serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description is only a specific implementation mode of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A flash memory analysis method, characterized in that: The flash memory analysis method comprises: Determine the relative number of electrons in each memory cell of the flash memory; generating a memory cell peek diagram and / or a memory cell peek color scale diagram based on the relative number of electrons in each memory cell; The flash memory is analyzed for abnormalities according to the storage unit peek diagram and / or the storage unit peek color scale diagram.
2. The flash memory analysis method according to claim 1, characterized in that: Determining the relative number of electrons in each storage unit of the flash memory includes: The relative number of electrons in each memory cell is obtained by offsetting the decision line of the threshold voltage distribution diagram.
3. The flash memory analysis method according to claim 2, characterized in that: Obtaining the relative number of electrons in the memory cell by shifting the decision line of the threshold voltage distribution diagram includes: Reading first data corresponding to an initial position of a decision line of the threshold voltage distribution diagram; Shifting the decision line of the threshold voltage distribution diagram by one unit, and reading second data corresponding to the shifted position after the decision line of the threshold voltage distribution diagram is shifted by one unit; Determining whether a bit value flipping change occurs in the storage unit according to the first data and the second data; When it is determined that a flip change of a bit value occurs in the storage unit, a relative number of electrons in the storage unit is determined according to the flip change.
4. The flash memory analysis method according to claim 3, characterized in that: The determining whether a bit value flipping change occurs in the storage unit according to the first data and the second data includes: If the decision line of the threshold voltage distribution diagram is shifted to the left by one unit, it is determined whether a flip change of the bit value from 1 to 0 occurs in the storage unit according to the first data and the second data; If the decision line of the threshold voltage distribution diagram is shifted rightward by one unit, it is determined whether a flip change in which the bit value of the storage unit is flipped from 0 to 1 occurs based on the first data and the second data.
5. The flash memory analysis method according to claim 3, characterized in that: The method further comprises: When it is determined that the memory cell does not undergo a flipping change in which the bit value is flipped from 1 to 0, the decision line of the threshold voltage distribution diagram continues to be shifted to the left by one unit until the decision line of the threshold voltage distribution diagram shifts to a first preset threshold value and the memory cell still does not undergo a flipping change in which the bit value is flipped from 1 to 0, and the relative number of electrons in the memory cell is recorded as the first preset number; When it is determined that the memory cell has not undergone a flipping change in bit value from 0 to 1, continue to shift the decision line of the threshold voltage distribution diagram to the right by one unit until the decision line of the threshold voltage distribution diagram shifts to a second preset threshold value and the memory cell has not undergone a flipping change in bit value from 0 to 1, and record the relative number of electrons in the memory cell as the second preset number.
6. The flash memory analysis method according to claim 3, characterized in that: Before shifting the decision line of the threshold voltage distribution diagram by one unit, the method further includes: Identifying the type of the flash memory; When the type of the flash memory is a multi-layer memory cell or a triple-layer memory cell, the threshold voltage distribution map is split into threshold voltage distribution maps of a single page.
7. The flash memory analysis method according to claim 1, characterized in that: The performing abnormality analysis on the flash memory according to the storage unit peeking diagram and / or the storage unit peeking color scale diagram comprises: Matching a target storage unit peek view similar to the storage unit peek view in a preset storage unit peek view library and / or matching a target storage unit peek color scale map similar to the storage unit peek color scale map in a preset storage unit peek color scale map library; The flash memory is analyzed for abnormalities according to the target storage unit peek view and / or the target storage unit peek color scale library.
8. The flash memory analysis method according to claim 1, characterized in that: The horizontal axis of the storage unit peeking diagram represents the different values of each storage unit, and the vertical axis is the number of corresponding values. The storage unit peeking color scale diagram is a diagram that presents the relative number of electrons of each storage unit at different positions in the form of color scale, and each color block represents the relative number of electrons of a storage unit at a specific position.
9. An electronic device, characterized in that: The electronic device comprises: A memory, configured to store at least one instruction; A processor, configured to implement the flash memory analysis method as described in any one of claims 1 to 8 when executing the at least one instruction.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, the flash memory analysis method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Method for enhancing data stability of flash memory medium and related equipment thereof
CN119088323A
Flash memory problem positioning method and device, equipment and storage medium
CN119917330A
Flash memory problem positioning method and device, equipment and storage medium
CN119917330B
