A data storage method and data storage system for a memory chip

By introducing single storage mode and multi-storage mode in the memory chip, the appropriate storage mode is selected according to the capacity of the written data, the performance degradation problem of pseudo-single-layer storage unit when writing data is solved, the write amplification is reduced, and the storage is extended The lifespan of the chip and ensures data stability.

CN118626024BActive Publication Date: 2024-11-05合肥康芯威存储技术有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411110510.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-05
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

In the memory chip, the performance of the pseudo-single-layer memory unit when writing data is sharply reduced, resulting in write amplification, affecting the life of the memory chip and data stability.

Method used

By introducing single storage mode and multi-storage mode in the memory chip, an appropriate storage mode is selected according to the capacity of the written data, and the storage mode of the storage unit is managed through the controller to avoid data erasing and reduce write amplification.

Benefits of technology

Enhance data stability, extend the life of the memory chip, and ensure the reliability of data storage later in the life of the memory chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626024B_ABST
    Figure CN118626024B_ABST
Patent Text Reader

Abstract

The present invention provides a data storage method and a data storage system for a memory chip, belonging to the field of memory technology. The data storage method comprises the following steps: when writing data into a memory chip, determining whether the capacity of the written data is less than a preset capacity; when the capacity of the written data is less than the preset capacity, setting the memory unit to a single storage mode, storing one data unit of the written data in each memory unit, and the read voltage of the written data is greater than the minimum value of the intermediate flash memory threshold voltage width of the memory unit; and when the capacity of the written data is greater than or equal to the preset capacity, setting the memory unit to a multi-storage mode, retaining the written data stored when the memory unit is in a single storage mode, and storing the written data again in the memory unit. The data storage method and the data storage system for a memory chip provided by the present invention can improve the storage function of the memory chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of storage technology, and in particular relates to a data storage method and a data storage system for a storage chip. Background Art

[0002] When triple-level cells (TLC) and quad-level cells (QLC) are set in the non-volatile memory cells of the memory chip, in order to take into account both storage performance and storage capacity, part of the TLC or QLC will be simulated as SLC, that is, part of the TLC or QLC will be used as a pseudo-single-level cell (pseudo-SLC, pSLC).

[0003] When storing data, only one data unit of write data is stored in the pSLC. After the pSLC is fully written with one data unit of write data, the write data of the pSLC is moved to other TLCs or QLCs. However, this process will cause a sharp drop in the performance of the pSLC and lead to write amplification. Summary of the invention

[0004] The object of the present invention is to provide a data storage method and a data storage system for a memory chip, which can solve the problem of accuracy of classification results.

[0005] To achieve the above object, the present invention provides a data storage method and a data storage system of a memory chip, and the data storage method of the memory chip at least comprises the following steps:

[0006] When writing data into the storage chip, determining whether the capacity of the written data is less than the preset capacity;

[0007] When the capacity of the write data is less than a preset capacity, the storage unit is set to a single storage mode, and when the storage unit is in the single storage mode, one data unit of the write data is stored in each of the storage units, and a read voltage of the write data is greater than a minimum value of an intermediate flash memory threshold voltage width of the storage unit; and

[0008] When the capacity of the write data is greater than or equal to the preset capacity, the storage unit is set to a multi-storage mode. When the storage unit is in the multi-storage mode, the write data stored when the storage unit is in a single storage mode is retained and the write data is stored again in the storage unit.

[0009] In one embodiment of the present invention, the preset capacity is obtained by the following formula:

[0010] Preset capacity = total capacity of blank storage units / number of data units in storage units;

[0011] The total capacity of the blank storage units is the total capacity of the storage units to which data is written, and the number of data units of the storage units is the maximum number of data units that can be stored in one storage unit.

[0012] In one embodiment of the present invention, in the memory chip, a controller sends a status flag to a non-volatile memory unit to control a storage mode of the memory unit.

[0013] In one embodiment of the present invention, when the storage unit is in the single storage mode, the read voltage of the write data is less than the maximum value of a flash memory threshold voltage width following the intermediate flash memory threshold voltage width.

[0014] In one embodiment of the present invention, when the storage unit is in the single storage mode, the read voltage of the written data is located in an initial read voltage interval after the width of the intermediate flash memory threshold voltage.

[0015] In one embodiment of the present invention, when the memory cell is in the single storage mode, the increment of the voltage step during programming is equal to one twentieth to one third of the increment of the voltage step during initial programming.

[0016] In one embodiment of the present invention, the data storage method of the memory chip further includes the following steps:

[0017] During programming, it is determined whether the threshold voltage is within a preset range. If the threshold voltage is within the preset range, the storage mode of the storage unit is allowed to switch from the single storage mode to the multi-storage mode.

[0018] In an embodiment of the present invention, if the threshold voltage exceeds the preset range, the storage mode of the memory cell is allowed to switch from the pseudo single-layer memory cell mode to the normal operation mode.

[0019] In one embodiment of the present invention, the upper limit value of the threshold voltage is the middle value of the width of an initial flash memory threshold voltage after the initial read voltage interval corresponding to the threshold voltage, and the lower limit value of the threshold voltage is the middle value of the width of an initial flash memory threshold voltage before the initial read voltage interval corresponding to the threshold voltage.

[0020] The present invention also provides a data storage system of a memory chip, the data storage system comprising:

[0021] a memory storing program instructions; and

[0022] The processor runs the program instructions to implement the data storage method of the memory chip as described above.

[0023] In summary, the present invention provides a data storage method and a data storage system for a memory chip, which provide a single storage mode and a multiple storage mode for a memory unit. In the early stage of the life of the memory chip, the single storage mode or the multiple storage mode is selected according to the capacity of the written data, which can enhance the stability of the data. At the same time, when switching from the single storage mode to the multiple storage mode, there is no need to erase the data, which reduces the write amplification and increases the life of the memory chip. The restriction on writing data in the single storage mode can ensure the stability of the written data. In the later stage of the life of the memory chip, the memory unit is allowed to switch from the pseudo single-layer storage unit mode to the normal working mode, which ensures the reliability of data storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0025] Figure 1 It is a schematic diagram of the structure of a storage chip in one embodiment of the present application.

[0026] Figure 2 4 is a diagram showing the relationship between the number of memory cells and the read voltage of a single-layer memory cell in an embodiment of the present application.

[0027] Figure 3 4 is a diagram showing the relationship between the number of memory cells and the read voltage of a three-layer memory cell in an embodiment of the present application.

[0028] Figure 4 It is a flow chart of a data storage method of a storage chip in one embodiment of the present application.

[0029] Figure 5 4 is a diagram showing the relationship between programming voltage and step number in one embodiment of the present application.

[0030] Figure 6 1 is a diagram showing the relationship between read voltages of a three-layer memory cell in a single storage mode in an embodiment of the present application.

[0031] Figure 7 1 is a diagram showing the relationship between read voltages of a three-layer memory cell in a multi-storage mode in an embodiment of the present application.

[0032] Figure 8 1 is a graph showing the relationship between problematic read voltages of a three-layer memory cell in a multi-storage mode in an embodiment of the present application.

[0033] Fig. 9 It is a schematic diagram of the data storage system structure of the storage chip in one embodiment of the present application. DETAILED DESCRIPTION

[0034] In order to facilitate the understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present application are given in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thoroughly and comprehensively understood.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0036] In the description of the present invention, it should be understood that the orientations or positional relationships indicated by the terms "center", "upper", "lower", "front", "back", "left", "right", etc. are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. The degrees indicated by "high" and "low" are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or component referred to must have high and low, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0037] See also Figure 1As shown, compared with traditional magnetic disks, the storage chip 200 using Nand flash memory as the storage medium has the characteristics of non-volatility, fast read and write speed, shock resistance, low power consumption, and small size. It has been widely used in embedded systems, consumer electronics, aerospace and other fields. In the storage chip 200, a controller 201 and a non-volatile storage unit 202 are provided. The controller 201 can execute multiple logic gates or control instructions implemented in hardware or firmware form, and perform operations such as writing, reading and erasing data in the non-volatile storage unit 202 according to the instructions of the host 100. Among them, the non-volatile storage unit 202 includes multiple flash memory blocks 203, and the flash memory blocks 203 can belong to the same memory die or belong to different memory die. And the non-volatile storage unit 202 can include a single-level cell (SLC), a multi-level cell (MLC), a triple-level cell (Triple Level Cell), a quad-level cell (QLC) or a combination of two or more of these storage cells. Among them, a single-layer storage unit can store, for example, 1 bit (one data unit) of data, a multi-layer storage unit can store, for example, 2 bits (two data units) of data, a triple-layer storage unit can store, for example, 3 bits (three data units) of data, and a quad-layer storage unit can store, for example, 4 bits (four data units) of data. Compared with single-layer storage units and multi-layer storage units, triple-layer storage units and quad-layer storage units store larger amounts of data, but have shorter erase and write lifespans and relatively poor read and write performances.

[0038] See also Figure 1 As shown, in each memory chip 200 , one read voltage or a combination of two or more read voltages may be used to represent the state of a valid bit of a current memory cell.

[0039] For details, please refer to Figure 1 and Figure 2 As shown, in one embodiment of the present invention, a single-layer storage cell has one valid bit, which only represents two valid states, and thus corresponds to two read voltages, and the two read voltages are located in two read voltage intervals. The two read voltage intervals are, for example, P0 and P1. The spacing between two adjacent read voltage intervals is the flash memory threshold voltage width, and there is a flash memory threshold voltage width A between the two read voltage intervals P0 and P1. And the flash memory threshold voltage width is, for example, A. Whether the valid bit in the single-layer storage cell is 0 or 1 is distinguished by the flash memory threshold voltage width A. If the flash memory voltage of the valid bit is greater than the flash memory threshold voltage width A, the valid bit is 0. If the flash memory voltage of the valid bit is less than the flash memory threshold voltage width A, the valid bit is 1.

[0040] See also Figure 1 and Figure 3 As shown, in one embodiment of the present invention, the three-layer storage cell has three valid bits, which can represent 8 valid states, and then corresponds to 8 read voltages, and the 8 read voltages are located in 8 read voltage intervals. The 8 read voltage intervals are, for example, P0, P1, P2, P3, P4, P5, P6 and P7. The spacing between two adjacent read voltage intervals is the flash memory threshold voltage width, and there are 7 flash memory threshold voltage widths between the 8 read voltage intervals. And the 7 flash memory threshold voltage widths are, for example, A, B, C, D, E, F and G. When the least significant bit (LSB) in the three-layer storage cell is 0 or 1, it can be distinguished based on whether the flash memory voltage of the least significant bit is greater than the flash memory threshold voltage width D. If the flash memory voltage of the least significant bit is greater than the flash memory threshold voltage width D, the least significant bit is 0, and if the flash memory voltage of the least significant bit is less than the flash memory threshold voltage width D, the least significant bit is 1. The value of the middle significant bit (CSB) is related to the flash threshold voltage width A, C and F, and the value of the most significant bit (MSB) is related to the flash threshold voltage width B, D and E. Figure 3 shown.

[0041] It can be known that a multi-layer storage cell has two valid bits, which can represent four valid states, and thus has four corresponding read voltages, and the four read voltages are located in four read voltage intervals. There are three flash threshold voltage widths between the four read voltage intervals. A four-layer storage cell has four valid bits, which can represent 16 valid states, and thus has 16 corresponding read voltages, and the 16 read voltages are located in 16 read voltage intervals. There are 15 flash threshold voltage widths between the 16 read voltage intervals.

[0042] It should be noted that the read voltage range and flash threshold voltage width will change with the use of the memory chip. When the memory chip leaves the factory, only the initial read voltage range and initial flash threshold voltage width can be limited. And for the size of the initial read voltage range and initial flash threshold voltage width, each manufacturer has its own standards to achieve the normal storage function of the memory chip.

[0043] Please refer to the figure combination Figure 1 and Figure 4 As shown, the present invention provides a data storage method for a data chip, which is a data storage method provided for a memory chip 200 including multi-layer memory cells, three-layer memory cells, and four-layer memory cells, which exceed single-layer memory cells. The data storage method for the data chip includes steps S110 to S130.

[0044] Step S110: when writing data into the storage chip, determining whether the capacity of the written data is less than a preset capacity.

[0045] Step S130: When the capacity of the written data is less than the preset capacity, the storage unit is set to a single storage mode.

[0046] Step S140: When the capacity of the written data is greater than or equal to the preset capacity, the storage unit is set to a multi-storage mode.

[0047] See also Figure 1 and Figure 4 As shown, in one embodiment of the present invention, for a storage chip 200 including multi-layer storage units, three-layer storage units, four-layer storage units, etc., which exceed single-layer storage units, the storage units therein are provided with a pseudo-single-layer storage unit mode and a normal working mode. When the storage unit is in the normal working mode, data writing, reading, erasing, etc. can be performed in the storage unit according to the instructions of the host 100, and the number of data bits stored in each storage unit is the maximum number of storage bits that can be stored. When the storage unit is in the pseudo-single-layer storage unit mode, a storage unit only stores the write data of one data unit. After the pseudo-single-layer storage unit is fully written with the write data of one data unit, the write data of the pseudo-single-layer storage unit is moved to other storage units, and the data stored in the pseudo-single-layer storage unit is erased at the same time. And the storage mode of the storage unit can be controlled by sending a status flag to the non-volatile storage unit 202 through the controller 201. In this embodiment, when the controller 201 sends 0xDF to the nonvolatile memory unit 202, the memory unit is in a normal working mode, and when the controller 201 sends 0xDA to the nonvolatile memory unit 202, the memory unit is in a pseudo single-layer memory unit mode.

[0048] See also Figure 1 and Figure 4 As shown, in one embodiment of the present invention, two storage modes are added to the storage unit, namely, a single storage mode and a multi-storage mode. When the storage unit is in the single storage mode, only one data unit (1 bit) of storage data is written in each storage unit, that is, the storage unit is used as a single-layer storage unit. When the storage unit is in the multi-storage mode, the data written in the storage unit in the single storage mode is retained, and the data written in the storage unit in the single storage mode is not erased. At this time, since the storage unit in the storage chip 200 is a multi-layer storage unit, a three-layer storage unit, a four-layer storage unit, etc., which exceeds a single layer, the storage unit can store write data again. In the process of converting the storage mode of the storage unit, there is no need to erase the storage unit, and the storage mode of the storage unit can be directly switched, thereby avoiding the problem of too many erase times of the storage unit causing a sharp decline in the quality of the storage unit and causing write amplification.

[0049] See also Figure 1 and Figure 4As shown, in one embodiment of the present invention, each time data is written to the storage chip 200, it is necessary to determine whether the capacity of the written data is less than the preset capacity. The preset capacity is obtained by the following formula:

[0050] Preset capacity = total capacity of blank storage units / number of data units in the storage unit.

[0051] The total capacity of blank storage units is the total capacity of storage units that have not been written with data. The number of data units of a storage unit is the maximum number of data units that can be stored in a storage unit. The number of data units of a multi-layer storage unit is 2, the number of data units of a three-layer storage unit is 3, and the number of data units of a four-layer storage unit is 4.

[0052] See also Figure 1 and Figure 4 As shown, in one embodiment of the present invention, the defined preset capacity can ensure that the total amount of currently written data and written data does not exceed the total amount of data stored in the storage unit in the single storage mode.

[0053] See also Figure 1 and Figure 4 As shown, in one embodiment of the present invention, after determining whether the capacity of the written data is less than the preset capacity, the storage mode of the storage unit is controlled according to the relationship between the capacity of the written data and the preset capacity. Specifically, the storage mode of the storage unit can be controlled by sending a status flag to the non-volatile storage unit 202 by the controller 201. In this embodiment, when the controller 201 sends 0xEA to the non-volatile storage unit 202, the storage unit is in a single storage mode, and when the controller 201 sends 0xEE to the non-volatile storage unit 202, the storage unit is in a multi-storage mode. Among them, when the storage unit is in a single storage mode, the storage unit can write, read and erase data. When the storage unit is in a multi-storage mode, the storage unit can only write and read. At this time, the erase function of the storage unit is turned off to avoid the main controller 201 erasing the storage unit during the data writing process, thereby erasing the data written when the storage unit is in the single storage mode.

[0054] See also Figure 5As shown, in one embodiment of the present invention, the process of writing data in a storage cell is the process of programming the storage cell. The storage cell is implemented using a gate field effect transistor, and the programming of the storage cell is implemented by tunneling. When an electric field is applied to the tunnel oxide layer, electrons enter the floating gate through the tunnel oxide layer. And the programming of the Nand storage cell is implemented using an increment step programming pulse (ISPP). When programming using the step programming pulse, the increment ΔVpp and the holding time of the voltage step are first set. The increment ΔVpp of the fixed voltage step is the increment of the programming voltage Vpp each time. Next, the programming voltage Vpp is applied to the control gate of the storage cell, and the electrons pass through the oxide layer into the floating gate. Afterwards, check whether the threshold voltage Vth exceeds the preset value. If the check passes, it means that the threshold voltage Vth distribution of the storage cell meets the requirements and the programming ends. Otherwise, the next programming voltage Vpp is set according to the increment ΔVpp of the voltage step. When the number of step programming pulses reaches the threshold, the check fails and the programming fails. The threshold voltage Vth is a bias voltage required when the memory cell forms a channel, and increases with the increase of the programming voltage Vpp.

[0055] See also Figure 2 , Figure 3 and Figure 5 As shown, in one embodiment of the present invention, combined with the programming process and the relationship between the valid bit state of the storage cell and the read voltage, the threshold voltage Vth and the read voltage in the programming process are in a corresponding state, and the threshold voltage Vth of each storage cell is equal to the read voltage, so the threshold voltage Vth needs to fall within the corresponding read voltage range.

[0056] See also Figures 6 to 8 As shown in the figure, after a storage unit stores data in the single storage mode, it switches to the multi-storage mode to store data again. Since the data written in the single storage mode will not be erased during the storage mode conversion process, if the read voltage of the data written in the single storage mode is not restricted, then when it is subsequently switched to the multi-storage mode to store data again, the data will be in a state of confusion. Therefore, it is necessary to limit the read voltage of the data written in the single storage mode.

[0057] See also Figures 6 to 8 As shown, in one embodiment of the present invention, the memory cell is a three-layer memory cell for illustration. When the memory cell is in a single storage mode, only two read voltage intervals need to be set, namely, a read voltage interval P0 less than 0 and a read voltage interval Pa greater than 0. The read voltage for writing data to the memory cell in the single storage mode is located in the read voltage interval Pa. When limiting the read voltage for writing data to the memory cell in the single storage mode, on the one hand, combined with Figure 6 and Figure 7As shown, writing data to the storage unit in the single storage mode is equivalent to using the least significant bit of the storage unit, so it is necessary to set the range of the read voltage interval Pa to be greater than the minimum value of the flash memory threshold voltage width D, that is, the read voltage interval Pa is located to the right of the left end point of the flash memory threshold voltage width D. At this time, when the storage unit is switched to the multi-storage mode, the written data will not be confused. Because if the read voltage interval Pa is located to the left of the left end point of the flash memory threshold voltage width D, when it is subsequently converted to the multi-storage mode, the least significant bit is equivalent to being unused, which causes confusion between the subsequent data and the previously written data.

[0058] See also Figures 6 to 8 As shown, in the present application, the flash memory threshold voltage width D is the middle value of the 7 flash memory threshold voltage widths, so it is defined as the middle flash memory threshold voltage width. That is, when the storage unit is in a single storage mode, the range of the read voltage of the written data needs to be set to be greater than the minimum value of the middle flash memory threshold voltage width of the storage unit. In other embodiments, if the storage unit is a four-layer storage unit or a multi-layer storage unit, the least significant bit of the storage unit is also distinguished by the middle value of multiple flash memory threshold voltage widths. Therefore, when the storage unit is in a single storage mode, it is also applicable to limit the read voltage of the written data to be greater than the minimum value of the middle flash memory threshold voltage width of the storage unit.

[0059] See also Figures 6 to 8 As shown, in one embodiment of the present invention, after limiting the minimum value of the read voltage for writing data in single storage mode, it can be ensured that when the storage unit is switched to multi-storage mode, there will be no confusion in the written data. However, if the value of the read voltage for writing data in single storage mode is too large, there will be a problem that the subsequent writing of data is difficult to operate. That is, if the storage unit is in single storage mode, the read voltage interval Pa for writing data is greater than the maximum value of the flash memory threshold voltage width E, that is, the read voltage interval Pa for writing data is still on the right side of the flash memory threshold voltage width E, as shown in FIG. Figure 8 As shown. When the storage unit is switched to the multi-storage mode, it is also necessary to reduce the read voltage of the data written in the single storage mode, that is, to transfer the read voltage to the flash memory threshold voltage width D, the read voltage interval P4 range or the flash memory threshold voltage width E. This process is complicated to implement. Therefore, on the other hand, the read voltage interval Pa of the data written in the single storage mode needs to be less than the maximum value of the flash memory threshold voltage width E, that is, to the left of the right end point of the flash memory threshold voltage width E. Therefore, it is necessary to limit the read voltage of the data written in the storage unit in the single storage mode to be less than the maximum value of the flash memory threshold voltage width after the middle flash memory threshold voltage width.

[0060] See also Figures 6 to 8As shown, in the present application, it is necessary to limit the read voltage of the written data when the storage unit is in the single storage mode to be greater than the minimum value of the intermediate flash memory threshold voltage width of the storage unit, and less than the maximum value of the flash memory threshold voltage width after the intermediate flash memory threshold voltage width of the storage unit. Furthermore, when the storage unit is in the single storage mode, the read voltage of the written data is limited to be located in the read voltage interval after the intermediate flash memory threshold voltage width. Furthermore, the read voltage interval Pa of the written data in the single storage mode can be further limited. If the storage unit is a three-layer storage unit, the read voltage of the written data when the storage unit is in the single storage mode can be limited to the initial read voltage interval P4. That is, the read voltage interval Pa of the written data in the single storage mode is limited to the read voltage interval P4. That is, when the storage unit is in the single storage mode, the read voltage of the written data is located in the initial read voltage interval after the intermediate flash memory threshold voltage width.

[0061] See also Figures 5 to 8 As shown, in one embodiment of the present invention, in order to ensure that the read voltage of the written data is more concentrated when the storage unit is in the single storage mode, that is, the range of the read voltage interval Pa is smaller, the increment ΔVpp of the voltage step can be limited. For example, the increment ΔVpp of the voltage step can be limited to be equal to one twentieth to one third of the increment of the voltage step during initial programming. Thus, the read voltage of the written data in the single storage mode is within the read voltage interval P4. Among them, the increment of the voltage step during initial programming is the increment of the voltage step of the memory chip in the normal mode.

[0062] See also Figures 6 to 8As shown, in one embodiment of the present invention, the memory chip 200 can correctly read and write data. The key is to be able to distinguish the state of the read data by reading the voltage. At this time, the flash memory threshold voltage width between each read voltage interval is greater than zero. That is, the flash memory threshold voltage widths A, B, C, D, E, F and G are all greater than zero. However, after a long period of reading and writing, the memory chip 200 is affected by read disturbances and write disturbances, and the range of the read voltage gradually increases, and the flash memory threshold voltage width between adjacent read voltages gradually decreases, and even makes the read voltages on both sides of the smaller flash memory threshold voltage width overlap. That is, after a long period of reading and writing, two adjacent read voltage intervals overlap. At this time, the data stored in the two overlapping read voltage intervals will be wrong. When the memory cell with an error exceeds the error correction range of the master control, the memory cell cannot meet the demand for storing data. Therefore, when the flash memory threshold voltage width gradually decreases and the read voltage interval gradually increases, if the memory cell is switched from a single storage mode to a multi-storage mode, the data storage risk is greater than switching the memory cell from a pseudo single-layer storage cell mode to a normal working mode. Therefore, in the early stage of the life of the memory chip 200, when the read voltage distribution is concentrated, the memory chip 200 is allowed to switch from the single storage mode to the multi-storage mode, thereby reducing write amplification and improving the life. In the later stage of the chip life, the memory cell is allowed to switch from the pseudo single-layer memory cell mode to the normal working mode to ensure reliability. Specifically, the working mode of the memory chip 200 can be selected by limiting the threshold voltage Vth during programming.

[0063] Therefore, the combination Figure 2 and Figure 5 As shown, in one embodiment of the present invention, before determining whether the capacity of the written data is less than the preset capacity, the data storage method of the memory chip 200 further includes determining whether the threshold voltage Vth is within a preset range. If the threshold voltage Vth is within the preset range, the working mode of the memory unit is allowed to switch from the single storage mode to the multi-storage mode. If the threshold voltage Vth exceeds the preset range, the working mode of the memory unit is allowed to switch from the pseudo single-layer memory unit mode to the normal working mode. Wherein, the preset range is obtained according to the read voltage interval corresponding to each threshold voltage Vth of the memory unit in the normal working mode. In a specific embodiment, the upper limit of the threshold voltage Vth is set to the middle value of the initial flash memory threshold voltage width after the initial read voltage interval corresponding to it, and the lower limit is set to the middle value of the initial flash memory threshold voltage width before the initial read voltage interval corresponding to it. That is, if the initial read voltage interval P4 corresponding to the threshold voltage Vth, the preset range of the threshold voltage Vth is limited to between the midpoint of the initial flash memory threshold voltage width D and the midpoint of the initial flash memory threshold voltage width E.

[0064] See also Fig. 9As shown, a data storage system of a memory chip provided in an embodiment of the present application also includes a processor 101, a memory 102, and a program stored in the memory 102 and executable on the processor 101, and the processor 101 executes a data storage method for implementing the above-mentioned memory chip.

[0065] See also Fig. 9 As shown, the memory 102 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory may also be an external storage device of an electronic device, such as a plug-in mobile 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. Further, the memory may also include both an internal storage unit of the electronic device and an external storage device. The memory can be used not only to store application software and various types of data installed in the electronic device, but also to temporarily store data that has been output or is to be output.

[0066] See also Fig. 9 As shown, in some embodiments, the processor 101 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple packaged integrated circuits with the same function or different functions, including one or more central processing units (CPU), microprocessors, digital processing chips, graphics processors and a combination of various control chips.

[0067] The processor executes the operating system of the vehicle-mounted device and various installed application programs. The processor executes the application programs to implement the steps in the above method embodiment.

[0068] Exemplarily, the program may be divided into one or more modules, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules may be a series of program instruction segments capable of implementing specific functions, which are used to describe the execution process of the program in the vehicle-mounted device.

[0069] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to perform part of the functions of the lithium battery cold solder joint detection method of each embodiment of the present invention.

[0070] In summary, the present invention provides a data storage method and a data storage system for a memory chip, wherein the data storage method for the memory chip includes first determining through a threshold voltage whether the memory cell is switched from a pseudo single-layer memory cell mode to a normal working mode, or from a single storage mode to a multi-storage mode. Afterwards, if the memory chip is in the early stage of its life, the memory cell is allowed to switch from a single storage mode to a multi-storage mode, thereby reducing write amplification and increasing the life of the memory chip. If the memory chip is in the late stage of its life, the memory cell is allowed to switch from a pseudo single-layer memory cell mode to a normal working mode to ensure the reliability of the memory chip.

[0071] The embodiments of the present invention disclosed above are only used to help illustrate the present invention. The embodiments do not describe all the details in detail, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A data storage method for a memory chip, characterized in that: The non-volatile storage unit of the memory chip includes at least two layers of storage units, and the data storage method of the memory chip includes at least the following steps: When writing data into the storage chip, determining whether the capacity of the written data is less than the preset capacity; When the capacity of the write data is less than a preset capacity, the storage unit is set to a single storage mode, and when the storage unit is in the single storage mode, one data unit of the write data is stored in each of the storage units, and a read voltage of the write data is greater than a minimum value of an intermediate flash memory threshold voltage width of the storage unit; and When the capacity of the write data is greater than or equal to the preset capacity, the storage unit is set to a multi-storage mode. When the storage unit is in the multi-storage mode, the write data stored when the storage unit is in a single storage mode is retained and the write data is stored again in the storage unit.

2. The data storage method of a memory chip according to claim 1, characterized in that: The preset capacity is obtained by the following formula: Preset capacity = total capacity of blank storage units / number of data units in storage units; The total capacity of the blank storage units is the total capacity of the storage units to which data is written, and the number of data units of the storage units is the maximum number of data units that can be stored in one storage unit.

3. The data storage method of a memory chip according to claim 1, characterized in that: In the memory chip, a controller sends a status flag to a non-volatile memory unit to control the storage mode of the memory unit.

4. The data storage method of a memory chip according to claim 1, characterized in that: When the memory cell is in a single storage mode, a read voltage of the write data is less than a maximum value of a flash memory threshold voltage width following the intermediate flash memory threshold voltage width.

5. The data storage method of a memory chip according to claim 1, characterized in that: When the storage unit is in a single storage mode, the read voltage of the written data is located within an initial read voltage interval after the width of the intermediate flash memory threshold voltage.

6. The data storage method of a memory chip according to claim 1, characterized in that: When the memory cell is in the single storage mode, the increment of the voltage step during programming is equal to one twentieth to one third of the increment of the voltage step during initial programming.

7. The data storage method of a memory chip according to claim 1, characterized in that: The data storage method of the memory chip further comprises the following steps: During programming, it is determined whether the threshold voltage is within a preset range. If the threshold voltage is within the preset range, the storage mode of the storage unit is allowed to switch from the single storage mode to the multi-storage mode.

8. The data storage method of a memory chip according to claim 7, characterized in that: If the threshold voltage exceeds the preset range, the storage mode of the storage unit is allowed to switch from the pseudo single-layer storage unit mode to the normal operation mode.

9. The data storage method of a memory chip according to claim 7, characterized in that: The upper limit value of the threshold voltage is the middle value of the width of an initial flash threshold voltage after the initial read voltage interval corresponding to the threshold voltage, and the lower limit value of the threshold voltage is the middle value of the width of an initial flash threshold voltage before the initial read voltage interval corresponding to the threshold voltage.

10. A data storage system of a memory chip, characterized in that: The data storage system comprises: a memory storing program instructions; and A processor runs the program instructions to implement the data storage method of the memory chip according to any one of claims 1 to 9.