Flash memory binding optimization method, device, equipment and storage medium

By reading and calculating the change in the number of error correction bits in Plane, the binding relationship that does not meet the threshold is released, which solves the problem of the change in the number of error correction bits before and after binding in the flash memory, ensuring the stability of the flash memory and the security of data storage. sex and accuracy.

CN117234425BActive Publication Date: 2024-09-06SHENZHEN SANDIYIXIN ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311300387.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-09
Publication Date
2024-09-06
Estimated Expiration
2043-10-09

AI Technical Summary

Technical Problem

In existing flash memory technology, forcibly binding Planes to improve read/write speeds may lead to changes in the number of required error correction bits before and after binding, affecting the stability of flash memory.

Method used

By reading the required number of error correction bits for each Plane, calculate the change in the number of required error correction bits before and after binding. If the change exceeds the threshold, unbind the relationship and establish a logical partition based on the existing binding relationship. , to prevent Planes that do not meet the binding requirements from participating in the binding.

Benefits of technology

Ensure the stability of flash memory, improve the security and accuracy of data storage, and improve the end-user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117234425B
    Figure CN117234425B
Patent Text Reader

Abstract

The present invention discloses a flash memory binding optimization method, device, equipment and storage medium. The method includes: reading the number of error correction bits required for each Plane before binding; binding several Planes in the flash memory; reading the number of error correction bits required for each Plane after binding, and calculating the change value of the number of error correction bits required for each Plane before and after binding; releasing the binding relationship between the Plane whose change value of the number of error correction bits required before and after binding is greater than or equal to the change threshold and the remaining Planes; establishing a logical partition based on the existing binding relationship. The present application determines whether to bind by the change value of the number of error correction bits required for the Plane before and after binding, which can avoid incorporating Planes that do not meet the binding requirements into the binding relationship, making the mass-produced flash memory more stable, improving the storage security and accuracy of data, and also improving the user experience of end users.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of flash memory technology, and in particular to a flash memory binding optimization method, device, equipment and storage medium. Background Art

[0002] NAND Flash (NF) is a storage medium used to store data and is a type of Flash memory. It is favored by many storage product manufacturers due to its large capacity and fast read / write speed.

[0003] If flash memory is to be able to store data, it must be equipped with a storage controller for mass production. Mass production includes a series of projects such as capacity calculation, pre-analysis, and scanning. Among them, scanning involves tasks such as full disk reading / writing, data comparison, and analysis of the flash memory, which takes a lot of time. In related technologies, in order to solve the problem of long scanning time, all Planes in the flash memory are bound to increase the read / write speed of the flash memory and speed up the scanning process. However, there are inherent differences in characteristics between different Planes. If forced binding is used to increase the read / write speed of data, it may cause a significant change in the number of error correction bits required for the Planes before and after binding, thereby affecting the stability of the flash memory. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a flash memory binding optimization method, device, equipment and storage medium, which can solve the problem of significant changes in the number of error correction bits required for Plane before and after binding, and ensure the stability of flash memory.

[0005] A first aspect of the present application provides a flash memory binding optimization method, comprising:

[0006] Read the required number of error correction bits of each Plane before binding;

[0007] Bind several Planes in flash memory;

[0008] Read the required number of error correction bits of each Plane after binding, and calculate the change in the required number of error correction bits of each Plane before and after binding;

[0009] Unbinding the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold from the remaining Planes;

[0010] A logical partition is established based on the existing binding relationship.

[0011] In a possible implementation manner of the present application, after the Plane whose change value of the number of error correction bits required before and after binding is greater than or equal to the change threshold is released from the binding relationship with the remaining Planes, the method further includes:

[0012] If there is at least one remaining unbound Plane, the remaining unbound Planes are bound again, the required number of error correction bits for each Plane after binding is read, and the change in the number of error correction bits required for the Plane before and after binding is calculated. The Plane whose change in the number of error correction bits required before and after binding is greater than or equal to the change threshold is unbound from the remaining Planes, and this step is repeated until the remaining unbound Planes cannot be bound to each other.

[0013] In a possible implementation manner of the present application, after reading the required number of error correction bits of each Plane before binding, the method further includes:

[0014] If the number of error correction bits required for the current Plane is greater than a preset invalid threshold, the current Plane is marked as an invalid Plane, wherein the invalid Plane will not be subsequently bound.

[0015] In a possible implementation manner of the present application, the step of releasing the binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold and the remaining Planes includes:

[0016] The binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold is released from the remaining Planes, or

[0017] The binding relationship between the Plane whose required number of error correction bits after binding is greater than or equal to the preset invalid threshold and the remaining Planes is released.

[0018] In a possible implementation manner of the present application, the reading of the required number of error correction bits of each Plane before binding or the reading of the required number of error correction bits of each Plane after binding may be performed as follows:

[0019] Select a predetermined number of blocks based on the current Plane;

[0020] Reading the page template in each of the blocks;

[0021] Generate the required number of error correction bits corresponding to each of the blocks according to the bad column information of the page template;

[0022] The number of error correction bits required for the selected maximum value is determined as the number of error correction bits required for the current Plane.

[0023] A second aspect of the present application provides a flash memory binding optimization device, comprising:

[0024] A reading module, used for reading the required number of error correction bits of each Plane before binding;

[0025] Binding module, used to bind several Planes in flash memory;

[0026] A calculation module, used for reading the number of error correction bits required for each Plane after binding, and calculating the change value of the number of error correction bits required for each Plane before and after binding;

[0027] A release module, used to release the binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold and the remaining Planes;

[0028] The partition module is used to establish a logical partition based on the existing binding relationship.

[0029] In a possible implementation manner of the present application, the following further includes:

[0030] The advanced binding module is used to bind the remaining unbound Planes again if there is at least one remaining unbound Plane, read the required number of error correction bits of each Plane after binding, and calculate the change in the required number of error correction bits of the Plane before and after binding, and release the binding relationship between the Plane whose required number of error correction bits before and after binding is greater than or equal to the change threshold and the remaining Planes, and repeat this step until the remaining unbound Planes cannot be bound to each other.

[0031] In a possible implementation manner of the present application, the following further includes:

[0032] The marking module is used to mark the current Plane as an invalid Plane if the number of error correction bits required for the current Plane is greater than a preset invalid threshold, wherein the invalid Plane will not be subsequently bound.

[0033] In a possible implementation manner of the present application, when the release module is used to release the binding relationship between the Plane whose change value of the number of error correction bits required before and after binding is greater than or equal to the change threshold and the remaining Planes, it includes:

[0034] The binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold is released from the remaining Planes, or

[0035] The binding relationship between the Plane whose required number of error correction bits after binding is greater than or equal to the preset invalid threshold and the remaining Planes is released.

[0036] In a possible implementation manner of the present application, the calculation module includes:

[0037] A selection unit, configured to select a predetermined number of blocks based on the current Plane;

[0038] A template reading unit, used for reading the page template in each of the blocks;

[0039] A generating unit, configured to generate a required number of error correction bits corresponding to each of the blocks according to the bad column information of the page template;

[0040] The determination unit is used to select the maximum value of the required number of error correction bits as the required number of error correction bits of the current Plane.

[0041] The technical solution of the present application includes: reading the number of error correction bits required for each Plane before binding; binding several Planes in the flash memory; reading the number of error correction bits required for each Plane after binding, and calculating the change in the number of error correction bits required for each Plane before and after binding; unbinding the Plane whose change in the number of error correction bits required before and after binding is greater than or equal to the change threshold from the remaining Planes; establishing a logical partition based on the existing binding relationship. Compared with the technical solutions of the related art, the present application does not force the binding of all Planes simply to increase the read / write speed of data, but determines whether to bind based on the change in the number of error correction bits required for Planes before and after binding. This can effectively avoid incorporating Planes that do not meet the binding requirements into the binding relationship, making the mass-produced flash memory more stable, greatly improving the storage security and accuracy of data, and also improving the user experience of end users. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0043] Figure 1It is a flowchart of a flash memory binding optimization method according to an embodiment of the present application;

[0044] Figure 2 is a flow chart of a flash memory binding optimization method according to another embodiment of the present application;

[0045] Figure 3 is a flow chart of a flash memory binding optimization method according to another embodiment of the present application;

[0046] Figure 4 It is a structural diagram of a flash memory binding optimization device shown in an embodiment of the present application;

[0047] Figure 5 is a structural schematic diagram of a flash memory binding optimization device shown in another embodiment of the present application;

[0048] Figure 6 is a structural schematic diagram of a flash memory binding optimization device shown in another embodiment of the present application;

[0049] Figure 7 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application;

[0050] Figure 8 A schematic diagram of the structure of a flash memory shown in an embodiment of the present application;

[0051] Fig. 9 This is a schematic diagram showing the changes in the maximum number of error correction bits and the required number of error correction bits of Plane1, Plane2, Plane3, and Plane4 before and after binding according to an embodiment of the present application;

[0052] Fig.10 This is a schematic diagram showing the changes in the maximum number of error correction bits and the required number of error correction bits of Plane1 and Plane4 before and after binding according to an embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to facilitate the understanding of the present invention, the present invention will be described more comprehensively with reference to the accompanying drawings. The preferred embodiments of the present invention are shown in the accompanying drawings. However, the present invention 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 invention more thoroughly understood.

[0054] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0056] In the related technology, in order to solve the problem of time-consuming scanning, all Planes in the flash memory are bound to increase the read / write speed of the flash memory and speed up the scanning process. However, there are differences in characteristics between different Planes. If forced binding is performed to increase the read / write speed of data, the number of error correction bits required for the Planes before and after binding may change significantly, thereby affecting the stability of the flash memory.

[0057] Therefore, in order to solve the above technical problems, the present application discloses a flash memory binding optimization method to solve the problem that the number of error correction bits required for the Plane before and after binding changes significantly.

[0058] Before introducing the technical solution of the present application, several related knowledge concepts of flash memory are explained.

[0059] like Figure 8 As shown in the figure, the internal structure of the flash memory is divided into DIE (DIE or LUN), Plane, Block and Page in order. The common flash memory on the market is generally 1, 2 or 4 Plane flash memory, each Plane has its own independent CacheRegister and PageRegister.

[0060] The redundant area Spare is a space area used to store error correction codes, and its length is usually configured according to the maximum number of error correction bits (i.e., 72 bits per 1K byte, 72bit / 1K). The redundant area Spare is configured according to the maximum number of error correction bits. On the one hand, the binding of Planes in the flash memory requires the redundant area Spare to have the same length (i.e., the maximum number of error correction bits is the same). On the other hand, the number of error bits that actually occur in Plane is exactly equal to the maximum number of error correction bits. Therefore, the redundant area Spare needs to be configured according to the maximum number of error correction bits.

[0061] The number of error correction bits required refers to the number of error correction bits actually required in the current storage area. For Plane in the flash memory, although the length of the redundant area Spare of Plane is configured according to the maximum value of 72 bits, the number of error bits that may actually occur in Plane is not necessarily 72 bits, but may be 30 bits, 40 bits or 52 bits.

[0062] The technical solution of the present application is described in detail below with reference to the accompanying drawings.

[0063] Figure 1 Shown is a flow chart of a flash memory binding optimization method in one embodiment of the present application.

[0064] See also Figure 1 , a flash memory binding optimization method, comprising the following steps:

[0065] Step S110: Read the required number of error correction bits of each Plane before binding.

[0066] In order to better understand the technical solution of this embodiment, Fig. 9 The example shown is used to illustrate.

[0067] Fig. 9 The figure shows the change of the number of error correction bits before and after multiple Planes are bound in the flash memory. Fig. 9 It can be seen that the flash memory includes four planes, namely Plane1, Plane2, Plane3 and Plane4. Since the redundant area Spare of each Plane is configured according to 72bit / 1K, these four Planes meet the basic conditions for binding.

[0068] Before bundling the four Planes, the required number of error correction bits of each Plane is read first. The required number of error correction bits of each Plane before bundling is shown in Table 1.

[0069] Plane The number of error correction bits required per 1,000 byte Plane1 30bit Plane2 35bit Plane3 40bit Plane4 60bit

[0070] Table 1

[0071] Step S120: Bind several Planes in the flash memory.

[0072] As can be seen from the above content, if you want to bind several Planes in the flash memory, you need to ensure that the length of the redundant area Spare in each Plane is the same, that is, the maximum number of error correction bits corresponding to each Plane is the same, before you can perform the binding operation on the Planes. In actual application scenarios, when the flash memory manufacturer ships the flash memory, it will adjust the data area Data and redundant area Spare of each Plane in the flash memory to the same length, so as to meet the basic conditions for binding the Planes.

[0073] The required error correction bits of Plane1, Plane2, Plane3 and Plane4 are shown in Table 2 respectively.

[0074] Plane Maximum number of error correction bits per 1 kbyte Plane1 72bit Plane2 72bit Plane3 72bit Plane4 72bit

[0075] Table 2

[0076] Since the highest error correction bit number of these four planes is the same, these four planes meet the basic conditions for binding and operations on these four planes can be performed. After the four planes are bound, the Multi-Plane operation in the flash memory protocol can be supported. The Multi-Plane operation is a mode used to improve the read / write speed of the flash memory.

[0077] Step S130: read the number of error correction bits required for each Plane after binding, and calculate the change in the number of error correction bits required for each Plane before and after binding.

[0078] After performing the binding operation on several Planes, 4 Planes are bound to form a "whole" (the "whole" here cannot be understood as forming a "whole" in the true sense. The "whole" formed by the binding operation is a "whole" at the logical level, not a "whole" at the physical level. Each Plane is still independent at the physical level). Due to the differences in properties between the Planes before binding, the number of error correction bits required for each Plane may change to a certain extent after binding. Therefore, it is necessary to ensure that the change in the number of error correction bits required after the binding operation is within the allowable controllable range. Based on the above reasons, it is necessary to calculate the change in the number of error correction bits required for each Plane before and after binding, and select the Planes whose number of error correction bits required after binding has changed significantly.

[0079] Combination Fig. 9, through calculation, the change value of the number of error correction bits required before and after each Plane is bound is shown in Table 3. It should be noted that the change value of the number of error correction bits required before and after the current Plane is bound = |the number of error correction bits required for the current Plane before binding - the number of error correction bits required for the current Plane after binding|.

[0080]

[0081]

[0082] Table 3

[0083] Step S140: Unbinding the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold from the remaining Planes.

[0084] After calculating the change in the number of error correction bits required before and after binding of each Plane, it is necessary to select the Plane whose number of error correction bits required before and after binding has changed significantly, and use the pre-configured change threshold parameter as a reference to determine the Plane whose change in the number of error correction bits required before and after binding is greater than or equal to the change threshold as the target Plane, and release the binding relationship between these target Planes and the remaining Planes. In this embodiment, the change threshold is set to 5 bits. It should be noted that the change threshold can be flexibly set according to actual conditions without specific restrictions. It can be understood that the smaller the value of the change threshold is set, the higher the requirement for the overall stability of the flash memory after binding, and the basic conditions for binding are also set strictly.

[0085] Combined with Table 3, based on the above case, Plane1 and Plane4 can be confirmed as the target Plane. Since the number of error correction bits required after Plane1 and Plane4 are bound changes too much, Plane1 and Plane4 cannot participate in the binding with Plane2 and Plane3. Therefore, the binding relationship between Plane1, Plane4 and Plane2, Plane3 is released.

[0086] The purpose of performing this step in this embodiment is to achieve the following two aspects:

[0087] 1) Mass-produce flash memory with strong stability. Compared with the technical solutions of the related technologies, this embodiment does not simply enforce the binding of several Planes in order to increase the read / write speed of data, so that the mass-produced flash memory is more stable, which can greatly improve the storage security and accuracy of data, and also improve the user experience of end users.

[0088] 2) For flash memory, there is not only a distinction in type, but also a distinction in quality. Flash memory comes from wafers. After the wafers are produced, they will be cut into several chips. The chip level that can pass the original factory test is defined as Good Die, and the chip level that cannot pass the original factory test is defined as Inked Die. Whether it is Good Die flash memory or Inked Die flash memory, it will flow into the market. For Good Die flash memory, since its quality is high-quality flash memory, even if the binding relationship of the Plane corresponding to the error correction bit change value greater than or equal to the change threshold is not released during the mass production stage, the impact on the overall stability of the flash memory will be relatively low. However, as the flash memory is used for a longer time, the oxide layer in the floating gate transistor in the flash memory gradually ages, it becomes easier and easier for electrons to enter and exit the floating gate transistor, and the charge stored in the floating gate transistor becomes more and more prone to abnormalities, and the stability problem of the flash memory will become more and more serious. As for Inked Die flash memory, since it is of low quality, if the binding relationship of the Plane corresponding to the error correction bit change value greater than or equal to the change threshold is not released during the mass production stage, it will only aggravate the problem of flash memory stability. This phenomenon becomes more prominent after the flash memory has been used for a certain period of time, making the data written into the flash memory become quite unstable.

[0089] Therefore, based on the above two reasons, the technical solution of this embodiment can effectively avoid the occurrence of this problem, select those Planes that meet the binding pre-conditions but do not meet the binding post-conditions, and contact the binding relationship between these target Planes and the remaining Planes, so as to ensure that the flash memory can maintain high stability in operation after successful mass production and production.

[0090] Step S150: Establish a logical partition based on the existing binding relationship.

[0091] Continuing with the above case, after the above steps, it is decided to bind Plane2 and Plane3 together and establish logical partitions for management, while Plane1 and Plane4 are managed by separate logical partitions. This is equivalent to establishing three logical partitions to manage the flash memory, such as logical partition A managing Plane2 and Plane3, logical partition B managing Plane1, and logical partition C managing Plane4.

[0092] Figure 2 Shown is a flow chart of a flash memory binding optimization method in another embodiment of the present application.

[0093] See also Figure 2 , a flash memory binding optimization method, comprising the following steps:

[0094] Step S210: Read the required number of error correction bits of each Plane before binding.

[0095] Fig. 9 The figure shows the change of the number of error correction bits before and after multiple Planes are bound in the flash memory. Fig. 9 It can be seen that the flash memory includes four planes, namely Plane1, Plane2, Plane3 and Plane4. Since the redundant area Spare of each Plane is configured according to 72bit / 1K, these four Planes meet the basic conditions for binding.

[0096] Before bundling the four Planes, the number of error correction bits required for each Plane is read first. The number of error correction bits required for each Plane before bundling is shown in Table 1 in step S110.

[0097] Step S220: Bind several Planes in the flash memory.

[0098] As can be seen from the above content, if you want to bind several Planes in the flash memory, you need to ensure that the length of the redundant area Spare in each Plane is the same, that is, the maximum number of error correction bits corresponding to each Plane is the same, before you can perform the binding operation on the Planes. In actual application scenarios, when the flash memory manufacturer ships the flash memory, it will adjust the data area Data and redundant area Spare of each Plane in the flash memory to the same length, so as to meet the basic conditions for binding the Planes.

[0099] The required error correction bit numbers of Plane1, Plane2, Plane3 and Plane4 are respectively shown in Table 2 in step S120.

[0100] Since the highest error correction bit number of these four planes is the same, these four planes meet the basic conditions for binding and operations on these four planes can be performed. After the four planes are bound, the Multi-Plane operation in the flash memory protocol can be supported. The Multi-Plane operation is a mode used to improve the read / write speed of the flash memory.

[0101] Step S230: read the number of error correction bits required for each Plane after binding, and calculate the change in the number of error correction bits required for each Plane before and after binding.

[0102] After performing the binding operation on several Planes, 4 Planes are bound to form a "whole" (the "whole" here cannot be understood as forming a "whole" in the true sense. The "whole" formed by the binding operation is a "whole" at the logical level, not a "whole" at the physical level. Each Plane is still independent at the physical level). Due to the differences in properties between the Planes before binding, the number of error correction bits required for each Plane may change to a certain extent after binding. Therefore, it is necessary to ensure that the change in the number of error correction bits required after the binding operation is within the allowable controllable range. Based on the above reasons, it is necessary to calculate the change in the number of error correction bits required for each Plane before and after binding, and select the Planes whose number of error correction bits required after binding has changed significantly.

[0103] Combination Fig. 9 , through calculation, the change value of the number of error correction bits required before and after each Plane is bound is shown in Table 3 in step S130. It should be noted that the change value of the number of error correction bits required before and after the current Plane is bound = |the number of error correction bits required for the current Plane before binding - the number of error correction bits required for the current Plane after binding|.

[0104] Step S240: Unbinding the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold from the remaining Planes.

[0105] After calculating the change in the number of error correction bits required before and after binding of each Plane, it is necessary to select the Plane whose number of error correction bits required before and after binding has changed significantly, and use the pre-configured change threshold parameter as a reference to determine the Plane whose change in the number of error correction bits required before and after binding is greater than or equal to the change threshold as the target Plane, and release the binding relationship between these target Planes and the remaining Planes. In this embodiment, the change threshold is set to 5 bits. It should be noted that the change threshold can be flexibly set according to actual conditions without specific restrictions. It can be understood that the smaller the value of the change threshold is set, the higher the requirement for the overall stability of the flash memory after binding, and the basic conditions for binding are also set strictly.

[0106] Combined with Table 3, based on the above case, Plane1 and Plane4 can be confirmed as the target Plane. Since the number of error correction bits required after Plane1 and Plane4 are bound changes too much, Plane1 and Plane4 cannot participate in the binding with Plane2 and Plane3. Therefore, the binding relationship between Plane1, Plane4 and Plane2, Plane3 is released.

[0107] The purpose of performing this step in this embodiment can be found in 1) and 2) of step S140, which will not be described in detail here.

[0108] Step S250: If there is at least one remaining unbound Plane, the remaining unbound Planes are bound again, the required number of error correction bits for each Plane after binding is read, and the change in the number of error correction bits required for the Plane before and after binding is calculated. The Plane whose change in the number of error correction bits required before and after binding is greater than or equal to the change threshold is unbound from the remaining Planes, and this step is repeated until the remaining unbound Planes cannot be bound to each other.

[0109] See also Fig.10 , Continuing from the above case, after removing the binding relationship between Plane1, Plane4 and Plane2, Plane3, in order to further optimize the binding space, the possibility of binding Plane1 and Plane4 can be verified separately, and the change value of the number of error correction bits required before and after the binding of the two can be calculated. If the change value of the number of error correction bits required for the two after binding is less than the change threshold, the two can be bound; otherwise, they cannot be bound. It has been verified that Plane1 and Plane4 are suitable for binding together (that is, after Plane1 and Plane4 are bound, the change value of the number of error correction bits required before and after the binding of the two is less than the change threshold).

[0110] It should be noted that in the case of this embodiment, only four Planes are listed for illustration. In actual application, the flash memory may include more than five Planes (assuming six Planes). If four Planes are released from the binding relationship with the remaining two Planes, it is necessary to verify the possibility of binding these four Planes. If it is determined that two of the four Planes can be bound together, it is necessary to further verify the possibility of binding the last two Planes, until the remaining unbound Planes cannot be bound. The reason for repeating this advanced binding step is that for the flash memory, the data writing and reading speed is very important, and executing the Multi-Plane operation is the core key to improving the flash memory data reading / writing speed. Therefore, it is necessary to bind the Planes in the flash memory to form a "whole" as much as possible. Through this step, it is possible to verify which Planes are suitable for binding together and which Planes are not suitable for binding together, and those Planes that are suitable for binding together are bound together, and those Planes that are not suitable are not bound together. While ensuring the read / write speed of the flash memory, the overall stability of the flash memory can be guaranteed as much as possible.

[0111] Step S260: Establish a logical partition based on the existing binding relationship.

[0112] Continuing with the above case, after the above steps, it is determined that Plane2 and Plane3 are bound together and a logical partition is established for management, and Plane1 and Plane4 are bound together and a logical partition is established for management. This is equivalent to establishing two logical partitions to manage the flash memory, such as logical partition A manages Plane2 and Plane3, and logical partition B manages Plane1 and Plane4.

[0113] Regardless of reading the required number of error correction bits for each Plane before binding or the required number of error correction bits for each Plane after reading, it can be determined in the following manner: select a predetermined number of blocks based on the current Plane; read the page template in each block; generate the required number of error correction bits corresponding to each block based on the bad column information of the page template; select the maximum value of the required number of error correction bits to determine it as the required number of error correction bits for the current Plane.

[0114] It should be noted that the page template contains bad column information, through which the required error correction bit number corresponding to the page template can be obtained, and the largest required error correction bit number among all the page templates can be selected as the required error correction bit number of the current Plane. In this embodiment, the number of blocks in the current Plane is selected as 8. In actual application, other numbers of blocks can also be selected. 8 is the best block number after repeated tests. At the same time, the number of blocks should not be selected too much, otherwise it will affect the mass production efficiency.

[0115] In addition, after the binding relationship is clear, the corresponding binding relationship code (MASK code) can be generated. Continuing with the above case, it is confirmed that Plane2 and Plane3 are bound together, and Planel and Plane4 are bound together. Based on the binding relationship between Plane2 and Plane3, the generated binding relationship code is "0110", which corresponds to hexadecimal "0x06"; based on the binding relationship between Plane1 and Plane4, it is "1001", which corresponds to hexadecimal "0x09". Save these two binding relationship codes in the management block used for flash memory. Later, when the storage master writes data to the flash memory, the Losc storage master reads the binding relationship code of the management block in the flash memory to obtain "0x06" and "0x09". The storage master knows that Plane2 and Plane3 have a binding relationship, and Plane1 and Plane4 have a binding relationship. When executing data writing tasks, Plane2 and Plane3 can be operated at the same time to perform data writing tasks, or Plane1 and Plane4 can be operated at the same time to perform data writing tasks.

[0116] Figure 3 Shown is a flow chart of a flash memory binding optimization method in another embodiment of the present application.

[0117] See also Figure 3 , a flash memory binding optimization method, comprising the following steps:

[0118] Step S310: Read the required number of error correction bits of each Plane before binding.

[0119] For the relevant contents of step S310, please refer to the description of step S210, which will not be repeated here.

[0120] Step S320: If the number of error correction bits required for the current Plane is greater than a preset invalid threshold, the current Plane is marked as an invalid Plane, wherein the invalid Plane will not be subsequently bound.

[0121] It should be noted that the purpose of performing this preliminary step is to screen the Planes as much as possible before binding and select those invalid Planes. In this embodiment, since the required error correction bit number of the current Plane has exceeded the maximum error correction bit number, if data is written to the current Plane, the data cannot be corrected back, resulting in data errors. Therefore, these Planes should be directly marked as invalid and no subsequent operations can be performed.

[0122] Step S330: Bind several Planes in the flash memory.

[0123] For the relevant contents of step S330, please refer to the description of step S220, which will not be repeated here.

[0124] Step S340: read the number of error correction bits required for each Plane after binding, and calculate the change in the number of error correction bits required for each Plane before and after binding.

[0125] For the relevant contents of step S340, please refer to the description of step S230, which will not be repeated here.

[0126] Step S350, unbinding the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold from the remaining Planes, or unbinding the Plane whose required error correction bit number after binding is greater than or equal to the preset invalid threshold from the remaining Planes.

[0127] For the reasons and purpose of the condition in step S350 of "canceling the binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold and the remaining Planes", please refer to step S240 and will not be repeated here.

[0128] It should be noted that, compared with step S240, step S350 has an additional condition, which is to select a Plane corresponding to a change value of the error correction bit number greater than or equal to the change threshold or a Plane corresponding to a maximum error correction bit number required after binding. This additional condition is added to take into account that the error correction bit number required by the Plane after binding may exceed its maximum error correction bit number, which will also cause the problem that data errors cannot be corrected, affecting the data security and accuracy of the flash memory.

[0129] Step S360: If there are at least one remaining unbound Plane, bind the remaining unbound Planes again, read the required number of error correction bits for each Plane after binding, and calculate the change in the number of error correction bits required for the Plane before and after binding. Unbind the Plane whose change in the number of error correction bits required before and after binding is greater than or equal to the change threshold from the remaining Planes, and repeat this step until the remaining unbound Planes cannot be bound to each other.

[0130] For the relevant contents of step S360, please refer to step S250, which will not be repeated here.

[0131] Step S370: Establish a logical partition based on the existing binding relationship.

[0132] For the relevant contents of step S370, please refer to the description of step S260, which will not be repeated here.

[0133] It should be noted that the page template contains bad column information, through which the required error correction bit number corresponding to the page template can be obtained, and the largest required error correction bit number among all the page templates can be selected as the required error correction bit number of the current Plane. In this embodiment, the number of blocks in the current Plane is selected as 8. In actual application, other numbers of blocks can also be selected. 8 is the best block number after repeated tests. At the same time, the number of blocks should not be selected too much, otherwise it will affect the mass production efficiency.

[0134] Corresponding to the aforementioned method embodiments, the present application discloses a flash memory binding optimization device and corresponding embodiments.

[0135] Figure 4 Shown is a structural schematic diagram of a flash memory binding optimization device in one embodiment of the present application.

[0136] See also Figure 4 , a flash memory binding optimization device 400 includes: a reading module 410, a binding module 420, a calculation module 430, a release module 440 and a partition module 450. Among them:

[0137] The reading module 410 is used to read the required number of error correction bits of each Plane before binding;

[0138] The binding module 420 is used to bind several Planes in the flash memory;

[0139] The calculation module 430 is used to read the required number of error correction bits of each Plane after binding, and calculate the change value of the required number of error correction bits of each Plane before and after binding;

[0140] The release module 440 is used to release the binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold and the remaining Planes;

[0141] The partition module 450 is used to establish a logical partition based on the existing binding relationship.

[0142] It should be noted that the flash memory binding optimization method implemented by the flash memory binding optimization device disclosed in this embodiment is the same as the above embodiment, so it will not be described in detail here. Optionally, each module in this embodiment and the above other operations or functions are respectively for implementing the methods in the above embodiments.

[0143] Figure 5 Shown is a structural schematic diagram of a flash memory binding optimization device in another embodiment of the present application.

[0144] See also Figure 5 , a flash memory binding optimization device 400, including: a reading module 410, a binding module 420, a calculation module 430, a release module 440, an advanced binding module 460 and a partition module 450. The functions of the reading module 410, the binding module 420, the calculation module 430, the release module 440 and the partition module 450 are shown in Figure 4 The explanation in the above will not be repeated here.

[0145] The advanced binding module 460 is used to bind the remaining unbound Planes again if the number of remaining unbound Planes is at least one, read the required number of error correction bits for each Plane after binding, and calculate the change in the number of error correction bits required for the Plane before and after binding, and release the binding relationship between the Plane whose change in the number of error correction bits required before and after binding is greater than or equal to the change threshold and the remaining Planes, and repeat this step until the remaining unbound Planes cannot be bound to each other.

[0146] It should be noted that the flash memory binding optimization method implemented by the flash memory binding optimization device disclosed in this embodiment is the same as the above embodiment, so it will not be described in detail here. Optionally, each module in this embodiment and the above other operations or functions are respectively for implementing the methods in the above embodiments.

[0147] Figure 6 Shown is a structural schematic diagram of a flash memory binding optimization device in another embodiment of the present application.

[0148] See also Figure 6 , a flash memory binding optimization device 400, including: a reading module 410, a marking module 470, a binding module 420, a calculation module 430, a release module 440, an advanced binding module 460 and a partition module 450. The functions of the reading module 410, the binding module 420, the calculation module 430, the release module 440, the advanced binding module 460 and the partition module 450 are shown in FIG. Figure 5 The explanation in will not be repeated here.

[0149] The marking module 470 is used to mark the current Plane as an invalid Plane if the number of error correction bits required for the current Plane is greater than a preset invalid threshold, wherein the invalid Plane will not be subsequently bound.

[0150] Further, in this embodiment, the releasing module 440 is used to release the binding relationship between the Plane whose change value of the number of error correction bits required before and after binding is greater than or equal to the change threshold and the remaining Planes, including:

[0151] The binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold and the remaining Planes is released, or the binding relationship between the Plane whose required error correction bit number after binding is greater than or equal to the preset invalid threshold and the remaining Planes is released.

[0152] Furthermore, in this embodiment, the calculation module 430 includes a selection unit 431, a template reading unit 432, a generation unit 433 and a determination unit 434. Among them:

[0153] The selection unit 431 is used to select a predetermined number of blocks based on the current Plane.

[0154] The template reading unit 432 is used to read the page template in each block.

[0155] The generating unit 433 is used to generate the required number of error correction bits corresponding to each block according to the bad column information of the page template.

[0156] The determination unit 434 is used to select the maximum value of the required number of error correction bits as the required number of error correction bits for the current Plane.

[0157] It should be noted that the flash memory binding optimization method implemented by the flash memory binding optimization device disclosed in this embodiment is the same as the above embodiment, so it will not be described in detail here. Optionally, each module in this embodiment and the above other operations or functions are respectively for implementing the methods in the above embodiments.

[0158] See also Figure 7 Another embodiment of the present application shows a computing electronic device 700 including a memory 710 and a processor 720 .

[0159] The processor 720 can be a central processing unit (CPU), or 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.

[0160] A general purpose processor may be a microprocessor or the processor may be any conventional processor. The memory 710 may include various types of storage units such as system memory, read-only memory (ROM), and permanent storage.

[0161] Among them, ROM can store static data or instructions required by processor 720 or other modules of the computer. The permanent storage device can be a readable and writable storage device. The permanent storage device can be a non-volatile storage device that does not lose the stored instructions and data even if the computer is powered off. In some embodiments, the permanent storage device uses a large-capacity storage device (such as a magnetic or optical disk, flash memory) as a permanent storage device.

[0162] In some other embodiments, the permanent storage device may be a removable storage device (e.g., a floppy disk, an optical drive). The system memory may be a read-write storage device or a volatile read-write storage device, such as a dynamic random access memory. The system memory may store some or all of the instructions and data required by the processor at run time.

[0163] In addition, memory 710 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (eg, DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic disks and / or optical disks may also be used.

[0164] In some embodiments, the memory 710 may include a removable storage device that can be read and / or written, such as a laser disc (CD), a read-only digital versatile disc (e.g., DVD-ROM, double-layer DVD-ROM), a read-only Blu-ray disc, an ultra-density optical disc, a flash memory card (e.g., SD card, min SD card, Micro-SD card, etc.), a magnetic floppy disk, etc. Computer-readable storage media do not include carrier waves and instantaneous electronic signals transmitted wirelessly or by wire. The memory 710 stores executable code, and when the executable code is processed by the processor 720, the processor 720 can execute part or all of the methods described above.

[0165] In addition, the method according to the present application may also be implemented as a computer program or a computer program product, which includes computer program code instructions for executing some or all of the steps in the above method of the present application.

[0166] Alternatively, the present application can also be implemented as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) on which executable code (or computer program or computer instruction code) is stored. When the executable code (or computer program or computer instruction code) is executed by a processor of an electronic device (or server, etc.), the processor executes part or all of the steps of the above-mentioned method according to the present application.

[0167] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A flash memory binding optimization method, characterized in that: include: Read the required number of error correction bits for each Plane before binding; Binding the several Planes in the flash memory; Read the required number of error correction bits of each Plane after binding, and calculate the change in the required number of error correction bits of each Plane before and after binding; Unbinding the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold from the remaining Planes; A logical partition is established based on the existing binding relationship.

2. The flash memory binding optimization method according to claim 1, characterized in that: After the Plane whose change value of the number of error correction bits required before and after binding is greater than or equal to the change threshold is released from the binding relationship with the other Planes, the method further includes: If there is at least one remaining unbound Plane, the remaining unbound Planes are bound again, the required number of error correction bits for each Plane after binding is read, and the change in the number of error correction bits required for the Plane before and after binding is calculated. The Plane whose change in the number of error correction bits required before and after binding is greater than or equal to the change threshold is unbound from the remaining Planes, and this step is repeated until the remaining unbound Planes cannot be bound to each other.

3. The flash memory binding optimization method according to claim 1, characterized in that: After reading the required number of error correction bits of each Plane before binding, the method further includes: If the number of error correction bits required for the current Plane is greater than a preset invalid threshold, the current Plane is marked as an invalid Plane, wherein the invalid Plane will not be subsequently bound.

4. The flash memory binding optimization method according to claim 3, characterized in that: The step of releasing the binding relationship between the Plane whose change value of the number of error correction bits required before and after binding is greater than or equal to the change threshold and the remaining Planes includes: The binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold is released from the remaining Planes, or The binding relationship between the Plane whose required number of error correction bits after binding is greater than or equal to the preset invalid threshold and the remaining Planes is released.

5. The flash memory binding optimization method according to any one of claims 1 to 4, characterized in that: The reading of the required number of error correction bits of each Plane before binding or the required number of error correction bits of each Plane after reading may be performed as follows: Select a predetermined number of blocks based on the current Plane; Reading the page template in each of the blocks; Generate the required number of error correction bits corresponding to each of the blocks according to the bad column information of the page template; The number of error correction bits required for the selected maximum value is determined as the number of error correction bits required for the current Plane.

6. A flash memory binding optimization device, characterized in that: include: The reading module is used to read the required number of error correction bits for each Plane before binding; A binding module, used for binding the plurality of Planes in the flash memory; A calculation module, used for reading the number of error correction bits required for each Plane after binding, and calculating the change value of the number of error correction bits required for each Plane before and after binding; A release module, used to release the binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold and the remaining Planes; The partition module is used to establish a logical partition based on the existing binding relationship.

7. The flash memory binding optimization device according to claim 6, characterized in that: Also includes: The advanced binding module is used to bind the remaining unbound Planes again if there is at least one remaining unbound Plane, read the required number of error correction bits of each Plane after binding, and calculate the change in the required number of error correction bits of the Plane before and after binding, and release the binding relationship between the Plane whose required number of error correction bits before and after binding is greater than or equal to the change threshold and the remaining Planes, and repeat this step until the remaining unbound Planes cannot be bound to each other.

8. The flash memory binding optimization device according to claim 6, characterized in that: Also includes: The marking module is used to mark the current Plane as an invalid Plane if the number of error correction bits required for the current Plane is greater than a preset invalid threshold, wherein the invalid Plane will not be subsequently bound.

9. The flash memory binding optimization device according to claim 8, characterized in that: The release module is used to release the binding relationship between the Plane whose change value of the number of error correction bits required before and after binding is greater than or equal to the change threshold and the remaining Planes, including: The binding relationship between the Plane whose required error correction bit number before and after binding is greater than or equal to the change threshold is released from the remaining Planes, or The binding relationship between the Plane whose required number of error correction bits after binding is greater than or equal to the preset invalid threshold and the remaining Planes is released.

10. The flash memory binding optimization device according to any one of claims 6 to 9, characterized in that: The calculation module comprises: A selection unit, configured to select a predetermined number of blocks based on the current Plane; A template reading unit, used for reading the page template in each of the blocks; A generating unit, configured to generate a required number of error correction bits corresponding to each of the blocks according to the bad column information of the page template; The determination unit is used to select the maximum value of the required number of error correction bits as the required number of error correction bits of the current Plane.

Citation Information

Patent Citations

  • Method, device and equipment for balancing ECC (Error Correction Code) error correction capability of flash memory and storage medium

    CN116431381A

  • Direct-input redundancy scheme with dedicated error correction code circuit

    US20200183781A1

  • Data storage device and plane selection method thereof

    US20220057946A1

  • Systems and methods for adapting to changing characteristics of multi-level cells in solid-state memory

    US9026867B1

  • Method for improving data access speed of flash media and apparatus employing this method

    WO2009111981A1