Method, apparatus and device for setting decision line and storage medium

By dividing specific blocks within the memory chip into storage partitions and using preset decision voltages to form a bit quantity mapping relationship, and setting precise decision voltages for each partition, the problem of inaccurate data reading in the memory chip is solved, and the efficiency of software decoding is improved.

CN118116445BActive Publication Date: 2026-11-20SHENZHEN SHICHUANGYI ELECTRONICS CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410273797.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-11
Publication Date
2026-11-20
Estimated Expiration
2044-03-11

AI Technical Summary

Technical Problem

When reading data, some blocks of data in existing memory chips cannot be read correctly using the initial decision voltage and the reread decision voltage in the reread voltage table, resulting in inaccurate data reading and low software decoding efficiency.

Method used

A specific block within the memory chip is divided into a preset number of storage partitions. Data is read using a preset decision voltage to form a mapping relationship of the number of bits of the same type. A precise decision voltage for each partition is set, and data within the storage partition is read using the precise decision voltage for each partition.

Benefits of technology

It enables accurate reading of specific blocks of data in the memory chip and improves software decoding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118116445B_ABST
    Figure CN118116445B_ABST
Patent Text Reader

Abstract

The application discloses a method, device and equipment for setting a decision line, and a storage medium. The method comprises the following steps: dividing a specific block in a storage chip into a preset number of storage partitions, wherein the storage partitions comprise a plurality of pages; reading data in part of the storage partitions by using a preset decision voltage to obtain first bit data; counting the number of the first bit data to obtain second bit data; forming a same-type bit number mapping relationship according to the preset decision voltage and the second bit data; setting a partition accurate decision voltage of the storage partitions based on the same-type bit number mapping relationship; and reading data corresponding to each of the storage partitions in the specific block by using the partition accurate decision voltage. Through the above steps, the data in the specific block can be accurately read out, and the soft decoding efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of memory chip technology, and in particular to a method, apparatus, device and storage medium for setting decision lines. Background Technology

[0002] Currently, the main method for reading data from memory chips is to use an initial decision voltage to read all the data in the memory chip. If an error occurs in the read data, a reread operation is performed. If the reread operation still cannot read the correct data, a software decoding operation is performed.

[0003] When reading data from a memory chip, there may be instances where data in certain blocks of the memory chip cannot be read using the factory-installed initial decision voltage, the reread decision voltage in the reread voltage meter, or software decoding. This results in some blocks of data not being read accurately, and the software decoding efficiency is low. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, device, and storage medium for setting decision lines, which can accurately read data from a specific block and improve software decoding efficiency.

[0005] This application discloses a method for setting a decision line, the steps of which include:

[0006] A specific block within the storage chip is divided into a preset number of storage partitions, each of which includes multiple pages;

[0007] A portion of the data in the storage partition is read using a preset decision voltage to obtain a first bit of data; the first bit of data is counted to obtain a second bit of data; a mapping relationship of the number of bits of the same type is formed between the preset decision voltage and the second bit of data.

[0008] The precise partition decision voltage of the storage partition is set based on the mapping relationship of the number of bits of the same type;

[0009] The data for each storage partition within the specific block is read using the partition-specific decision voltage.

[0010] Optionally, a portion of the data in the storage partition is read using a preset decision voltage to obtain a first bit of data; the first bit of data is counted to obtain a second bit of data; a mapping relationship of the number of bits of the same type is formed based on the preset decision voltage and the second bit of data, including the following steps:

[0011] Pages within the storage partition that require software decoding are classified as first-class storage partitions, and pages within the storage partition that do not require software decoding are classified as second-class storage partitions.

[0012] Data in the first type of storage partition is read using a preset decision voltage to obtain a first bit of data; the first bit of data is counted to obtain a second bit of data; a mapping relationship of the number of bits of the same type is formed based on the preset decision voltage and the second bit of data.

[0013] Optionally, data within the first type of storage partition is read using a preset decision voltage to obtain a first bit of data; the first bit of data is counted to obtain a second bit of data; a mapping relationship of the number of bits of the same type is formed based on the preset decision voltage and the second bit of data, including the following steps:

[0014] N preset decision voltages are obtained, wherein the first preset decision voltage is the first limit decision voltage, and the Nth preset decision voltage is the second limit decision voltage; the difference between any two adjacent preset decision voltages is a preset interval value.

[0015] The data in the first type of memory partition is read sequentially using each preset decision voltage; and the number of 1 and / or 0 bits is recorded when reading data using each preset decision voltage;

[0016] Based on each preset decision voltage and the corresponding number of 1 and / or 0 bits, generate a mapping relationship for the number of bits of the same type in the output;

[0017] Where N is a positive integer greater than 2.

[0018] Optionally, data within the first type of storage partition is read using a preset decision voltage to obtain a first bit of data; the first bit of data is counted to obtain a second bit of data; a mapping relationship of the number of bits of the same type is formed based on the preset decision voltage and the second bit of data, including the following steps:

[0019] Set the first limit decision voltage and the preset interval value;

[0020] The first limit decision voltage is used as the preset decision voltage to read the data in the first type of memory partition, and the number of 1 and / or 0 bits is recorded.

[0021] Based on the first limit decision voltage, the next preset decision voltage is obtained by sequentially adding preset interval values, and the number of 1 and / or 0 bits is recorded and compared with the number of bits of the previous preset decision voltage.

[0022] Stop when the number of 1 and / or 0 bits recorded corresponding to the Nth preset decision voltage is the same as the number of 1 and / or 0 bits recorded corresponding to the (N-1)th preset decision voltage;

[0023] Based on each preset decision voltage and the corresponding number of 1 and / or 0 bits, a bit quantity mapping relationship of the same type is generated.

[0024] Optionally, setting the partition precision decision voltage of the storage partition based on the same type bit quantity mapping relationship includes the following steps:

[0025] When the storage partition is a first-class storage partition, if the number of 1 and / or 0 bits recorded when reading data at the Nth preset decision voltage is the same as the number of 1 and / or 0 bits recorded when reading data at the (N-1)th preset decision voltage, then the average value of the Nth preset decision voltage and the (N-1)th preset decision voltage is taken, and the average value is set as the partition precision decision voltage of the first-class storage partition.

[0026] Optionally, setting the partition precision decision voltage of the storage partition based on the same type bit quantity mapping relationship further includes the step of:

[0027] When the storage partition is a second type of storage partition, the initial decision voltage is set to the partition precision decision voltage of the second type of storage partition.

[0028] Optionally, a specific block within the storage chip is divided into a preset number of storage partitions, each partition comprising multiple pages, and the process further includes the following steps:

[0029] The initial decision voltage is used to read the data in the memory chip;

[0030] When a block of data cannot be read, the data is read again using each reread decision voltage in the reread voltmeter.

[0031] When a block is detected that cannot be read using either the initial decision voltage or the reread decision voltage, the block is marked as a specific block.

[0032] This application also discloses a device for setting a decision line, which includes a read interface, a write interface, a processing module, a cache module, and a display module. The read interface, the write interface, the cache module, and the display module are all connected to the processing module.

[0033] The read interface is used to transmit data from the storage chip and input it into the processing module;

[0034] The processing module is used to select a specific block in the storage chip, divide the specific block into storage partitions, count the mapping relationship of the number of bits of the same type in the storage partitions, and set the precise decision voltage of the partitions.

[0035] The cache module is used to store the data generated during the processing of the processing module;

[0036] The display module is used to display a comparison graph of the number of software decoders.

[0037] This application also discloses an electronic device, the electronic device comprising:

[0038] At least one processor; and,

[0039] A memory communicatively connected to at least one of the processors; wherein,

[0040] The memory stores instructions executable by at least one of the processors, which, when executed by at least one of the processors, enable the at least one of the processors to perform the method for setting a decision line as described in any one of claims 1 to 7.

[0041] This application also discloses a computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method for setting the decision line described above.

[0042] Compared to existing data reading schemes, this application first selects a specific block within the memory chip, then partitions the specific block, and then reads the data within the memory partition using a preset decision voltage. This allows for the acquisition of a mapping relationship of the number of bits of the same type. Through this mapping relationship, the most suitable decision voltage for reading data from the memory partition can be found, which is the partition-precise decision voltage. By using the corresponding partition-precise decision voltage to read the data within the memory partition, the data of the entire specific block can be accurately read, and the efficiency of software decoding can be improved. Attached Figure Description

[0043] The accompanying drawings, which form part of the specification, are used to provide a further understanding of the embodiments of this application and illustrate the implementation methods of this application, together with the textual description, to explain the principles of this application. Obviously, the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any creative effort. In the drawings:

[0044] Figure 1 This is a schematic diagram of a method for setting a decision line according to an embodiment of this application;

[0045] Figure 2 This is a schematic diagram of a setting decision line according to an embodiment of this application;

[0046] Figure 3 This is a schematic diagram of a threshold voltage distribution function;

[0047] Figure 4 This is a schematic diagram of the first type of bit quantity mapping relationship;

[0048] Figure 5 This is a schematic diagram of the second type of bit quantity mapping relationship;

[0049] Figure 6 This is a schematic diagram of a comparison of the number of software decoders.

[0050] Figure 7 This is a schematic diagram of a setting decision line device according to an embodiment of this application;

[0051] Figure 8 This is a schematic diagram of an electronic device according to an embodiment of this application.

[0052] Among them, 10 is an electronic device; 11 is a memory; 12 is a processor; 13 is a display; 14 is a network interface; 20 is a setting decision line device; 21 is a read interface; 22 is a write interface; 23 is a processing module; 24 is a cache module; and 25 is a display module. Detailed Implementation

[0053] It should be understood that the terminology, specific structural and functional details used herein are merely for describing particular embodiments and are representative. However, this application may be implemented in many alternative forms and should not be construed as being limited to the embodiments set forth herein.

[0054] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating relative importance or implying the number of technical features indicated. Therefore, unless otherwise stated, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature; "multiple" means two or more. The term "comprising" and any variations thereof mean non-exclusive inclusion, where one or more other features, integers, steps, operations, units, components, and / or combinations thereof may be present or added.

[0055] Furthermore, unless otherwise explicitly specified and limited, the term "connection" should be interpreted broadly, encompassing electrical connection; direct connection; indirect connection via an intermediate medium; or internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.

[0056] The present application will now be described in detail with reference to the accompanying drawings and optional embodiments.

[0057] This invention provides a method for setting a decision line. The execution subject of this method includes, but is not limited to, at least one of the following electronic devices 1010 that can be configured to execute the method provided in this application: a client, a mobile terminal, etc. The mobile terminal includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.

[0058] Figure 1 This is a schematic diagram of a method for setting a decision line according to an embodiment of this application, as shown below. Figure 1 As shown, this application discloses a method for setting a decision line, the steps of which include:

[0059] S1: Divide a specific block within the storage chip into a preset number of storage partitions, each storage partition comprising multiple pages;

[0060] For example, a specific block can be divided into 10 storage partitions, each containing multiple pages. For instance, if a block contains 2000 pages, the 2000 pages can be divided into 10 equal parts in sequence, with each storage partition containing 200 pages. That is, pages 1-200 are storage partition 1, pages 201-400 are storage partition 2, and so on.

[0061] S2: Read a portion of the data in the storage partition using a preset decision voltage to obtain a first bit of data; count the number of the first bit of data to obtain a second bit of data; establish a mapping relationship between the number of bits of the same type based on the preset decision voltage and the second bit of data;

[0062] Wherein, the first bit data represents the 0 or 1 stored in the storage partition, the second bit data represents the total number of 0s and 1s in the storage partition, the preset decision voltage is used to read the data in the storage partition, by reading the data in the storage partition by multiple different preset decision voltages, the relationship between the preset decision voltage and the number of 1s and 0s in the read data can be obtained, that is, how many 1s and how many 0s correspond to one preset decision voltage. The same type of bit quantity mapping relationship indicates the correspondence between the number of 0s or 1s in the read data and the preset decision voltage when reading data using the preset decision voltage. For example, the data read using the first preset decision voltage includes 1000 0s, and the data read using the second preset decision voltage includes 950 0s.

[0063] S3: Set the precise partition decision voltage of the storage partition based on the mapping relationship of the number of bits of the same type;

[0064] The partition precision decision voltage is the voltage used to correctly read the data within that partition.

[0065] S4: Use the partition precision decision voltage to read the data corresponding to each of the storage partitions within the specific block.

[0066] One storage partition corresponds to one partition precision decision voltage. Different storage partitions may have the same or different partition precision decision voltages.

[0067] Compared to existing data reading solutions, this application first selects a specific block within the memory chip, then partitions the specific block, and then reads the data within the memory partition using a preset decision voltage. This allows for the acquisition of a mapping relationship of the number of bits of the same type. Through this mapping relationship, the most suitable decision voltage for reading data from the memory partition can be found, which is the partition-precise decision voltage. By using the corresponding partition-precise decision voltage to read the data within the memory partition, the data of the entire specific block can be accurately read, and the efficiency of software decoding can be improved.

[0068] Figure 2 This is a schematic diagram of a setting decision line according to an embodiment of this application, as shown below. Figure 2 As shown, the steps include:

[0069] S01: Read the data in the memory chip using the initial decision voltage;

[0070] The initial decision voltage refers to a voltage that is included with the memory chip when it leaves the factory for reading data.

[0071] S02: When it is detected that there is a block that cannot be read, the data is read again using each reread decision voltage in the reread voltmeter;

[0072] The reread voltmeter refers to the voltage level that is maintained after read, write, or erase operations on the memory chip, or after prolonged exposure to extreme environments where electrons are lost from each transistor. Figure 3 The two peaks in the memory shift to the left or right, making it impossible to accurately read the data using the initial decision voltage. Therefore, a reread voltage meter is added to each memory chip. Each reread voltage meter stores multiple reread decision voltages, which are not equal and are all different from the initial decision voltage.

[0073] For example, if a rereading voltmeter includes 20 sets of rereading decision voltages, and the data in the storage chip cannot be read using the initial decision voltage, then the data will be reread using these 20 sets of rereading decision voltages in turn. If the data cannot be read successfully using all 20 sets of rereading decision voltages, then the data will be software decoded to read the accurate data.

[0074] S03: When a block that cannot be read using both the initial decision voltage and the reread decision voltage is detected, the block is marked as a specific block;

[0075] If, after reading the data, a block cannot be read using either the initial decision voltage or each reread decision voltage in the reread voltage table, then soft decoding is initiated. If accurate data still cannot be read, it indicates that the data in this block is severely offset, and it is then marked as a specific block.

[0076] Of course, step S03 also includes: S031: When a block that cannot be read using the initial decision voltage and each reread decision voltage in the reread voltage table is detected, determine whether to perform a forced data reading operation;

[0077] S032: If a forced read operation is performed, the block is marked as a specific block by using the initial decision voltage and each reread decision voltage in the reread voltage table as the block that cannot be read, and partition information is generated.

[0078] If, after reading the data, a block fails to read data through both the initial decision voltage and each reread decision voltage in the reread voltage table, then software decoding is initiated. If accurate data still cannot be read, it indicates that the data in this block is severely offset, and staff can first determine whether a forced data reading operation is necessary.

[0079] The block refers to the multiple blocks included in each memory chip. The number of blocks will vary depending on the product. In step S032, the blocks that cannot be read by using the initial decision voltage and each reread decision voltage in the reread voltage table are identified as specific blocks, and partition information is generated. When the partition information is detected, the specific block will be divided into multiple storage partitions.

[0080] S1: Divide a specific block within the storage chip into a preset number of storage partitions, each storage partition comprising multiple pages;

[0081] For example, a specific block can be divided into 10 storage partitions, each containing multiple pages. For instance, if a block contains 2000 pages, the 2000 pages can be divided into 10 equal parts in sequence, with each storage partition containing 200 pages. That is, pages 1-200 are storage partition 1, pages 201-400 are storage partition 2, and so on.

[0082] Step S2 includes:

[0083] S221: Divide the pages in the storage partition that need to be software decoded into the first type of storage partition, and divide the pages in the storage partition that do not need to be software decoded into the second type of storage partition;

[0084] Specifically, the data in each storage partition is read using the initial decision voltage and each reread decision voltage in the reread voltage table. When there is a page in the storage partition that needs to be soft-decoded, it is determined to be a first type of storage partition. When there is no page in the storage partition that needs to be soft-decoded, it is determined to be a second type of storage partition.

[0085] In simple terms, step S221 involves classifying storage partitions. Since a block contains many pages, the earlier pages are used first when storing data, resulting in significant differences between later pages and earlier pages. Consequently, when partitioning a specific block, the differences between earlier and later storage partitions will also be significant. This can lead to situations where earlier storage partitions cannot read data correctly using the initial decision voltage and the reread decision voltage in the reread voltage table, while later storage partitions can read data correctly using the same voltage. Therefore, storage partitions corresponding to pages that require software decoding are marked as first-class storage partitions, and storage partitions corresponding to pages that do not require software decoding are marked as second-class storage partitions, in order to save computing resources.

[0086] Step S222: Reading data from the first type of storage partition using a preset decision voltage to obtain a first bit of data; counting the number of the first bit of data to obtain a second bit of data; forming a mapping relationship of the number of bits of the same type based on the preset decision voltage and the second bit of data includes the following steps:

[0087] S2226: Obtain N preset decision voltages, wherein the first preset decision voltage is the first limit decision voltage, and the Nth preset decision voltage is the second limit decision voltage; the difference between any two adjacent preset decision voltages is a preset interval value; wherein N is a positive integer greater than 2;

[0088] In this process, the first bit data represents either 0 or 1 stored in the first type of storage partition, and the second bit data represents the total number of 0s and 1s in the first type of storage partition. Data in a single first type of storage partition is read using a preset decision voltage, and the number of bits of the same type of data is recorded, such as the number of 1s or 0s in the first type of storage partition. When reading data using multiple preset voltages, the changes in the number of 1s or 0s under different preset voltages can be observed, and the same steps are applied to each first type of storage partition.

[0089] Figure 3 This is a schematic diagram of a threshold voltage distribution function, combined with... Figure 3As shown, the horizontal axis represents voltage, the vertical axis represents the number of electrons in a transistor, and the dashed line represents the precise decision voltage that can accurately distinguish between 1 and 0. When the voltage in the transistor is to the left of the precise decision voltage, it is determined as data 1, and when the voltage in the transistor is to the right of the precise decision voltage, it is determined as data 0.

[0090] The first limit decision voltage corresponds to Figure 3 The voltage at the leftmost end, corresponding to the lowest voltage value of data 1 with the least electron content, is the second limiting decision voltage. Figure 3 The voltage at the rightmost end, corresponding to the highest voltage value of data 0 with the highest electron content, can be observed by dividing the first and second limit decision voltages into equal parts according to a preset interval. Figure 3 The voltage at the intersection of the two peaks can be used to deduce the exact location of the judgment voltage after the two peaks shift.

[0091] For example: the first limit decision voltage is 0V, the second limit decision voltage is 2V, and the preset interval value is 0.01V. Then, each time the preset decision voltage increases by 0.01V from the first limit decision voltage until it stops at 2V, and the number of 1s or 0s read when reading data using the preset decision voltage is recorded.

[0092] S2227: Use each preset decision voltage sequentially to read the data in the first type of memory partition; and record the number of 1 and / or 0 bits when reading data using each preset decision voltage;

[0093] You can record only the number of 1s or only the number of 0s.

[0094] S2228: Generate a mapping relationship of the number of bits of the same type in the output based on each preset decision voltage and the corresponding number of 1 and / or 0 bits;

[0095] Figure 4 This is a schematic diagram of the first type of bit quantity mapping relationship, combined with... Figure 4 As shown, the horizontal axis represents the preset decision voltage, and the vertical axis represents the number of 1s or 0s corresponding to the preset decision voltage. This application takes a recorded data of 1 as an example. Figure 4 In the aforementioned mapping relationship of the number of bits of the same type, the horizontal axis represents the preset decision voltage, and the vertical axis represents the number of bits of data 1. From Figure 4 As can be seen from this, when the preset decision voltage is located at Figure 3 When the two peaks intersect, whether the voltage shifts slightly to the left or right, the number of bits of data 1 corresponding to the previous preset decision voltage and the next preset decision voltage will not change.

[0096] Step S3 includes:

[0097] S31: When the storage partition is a first type of storage partition, if the number of 1 and / or 0 bits recorded when reading data at the Nth preset decision voltage is the same as the number of 1 and / or 0 bits recorded when reading data at the (N-1)th preset decision voltage, then the average value of the Nth preset decision voltage and the (N-1)th preset decision voltage is taken, and the average value is set as the partition precision decision voltage of the first type of storage partition;

[0098] Among them, only the number of 1 bits or only the number of 0 bits can be compared. The partition precision decision voltage corresponding to different first-class storage partitions can also be one of the preset decision voltages for reading the first-class storage partition. For example, the partition precision decision voltage can be the average of the Nth preset decision voltage and the (N-1)th preset decision voltage. The partition precision decision voltage can also be the Nth preset decision voltage or the (N-1)th preset decision voltage.

[0099] S32: When the storage partition is a second type of storage partition, the initial decision voltage is set to the partition precise decision voltage of the second type of storage partition.

[0100] The initial decision voltage can be used as the precise decision voltage for the second type of storage partition, and can be directly used to read data within the second type of storage partition.

[0101] S4: Use the partition precision decision voltage to read the data corresponding to each of the storage partitions within the specific block.

[0102] Data is read using both the precise voltage corresponding to each Class I storage partition and the precise voltage corresponding to each Class II storage partition, thereby retrieving data from a specific block. After reading the data, it can be moved to other blocks, and then the data in the specific block can be erased.

[0103] Figure 5 This is a schematic diagram of the second type of bit quantity mapping relationship, combined with... Figure 5 The horizontal axis represents the preset decision voltage, and the vertical axis represents the number of 1s or 0s corresponding to the preset decision voltage.

[0104] Step S222, which involves reading data from the first type of storage partition using a preset decision voltage to obtain a first bit of data, performing a count on the first bit of data to obtain a second bit of data, and establishing a mapping relationship between the number of bits of the same type based on the preset decision voltage and the second bit of data, may further include:

[0105] S2221: Set the first limit decision voltage and preset interval value;

[0106] The first limit decision voltage is the same as the first limit decision voltage in step S2226, which is the lowest voltage value for data 1 with the least electron content; the preset interval value is also the same as the preset interval value in step S2226, which is the difference between two adjacent preset decision voltages.

[0107] S2222: Use the first limit decision voltage as the preset decision voltage to read the data in the first type of memory partition and record the number of 1 and / or 0 bits;

[0108] S2223: Based on the first limit decision voltage, the next preset decision voltage is obtained by sequentially adding preset interval values, and the number of 1 and / or 0 bits is recorded and compared with the number of bits of the previous preset decision voltage.

[0109] S2224: Stop when the number of 1 and / or 0 bits in the record corresponding to the Nth preset decision voltage is the same as the number of 1 and / or 0 bits in the record corresponding to the (N-1)th preset decision voltage;

[0110] S2225: Generate a bit quantity mapping relationship of the same type based on each preset decision voltage and the corresponding number of 1 and / or 0 bits.

[0111] Specifically, since steps S2221-S2225 will stop when the number of 1 and / or 0 bits recorded corresponding to the Nth preset decision voltage is no different from the number of 1 and / or 0 bits recorded corresponding to the (N-1)th preset decision voltage, steps S2221-S2225 have fewer preset decision voltages and shorter execution time compared to the scheme of steps S2226-S2228.

[0112] Of course, it's also possible to not categorize the storage partitions; specifically, all storage partitions can be treated as the first type of storage partition. Specifically:

[0113] Step S2: Reading at least a portion of the data within the storage partition using a preset decision voltage, statistically analyzing the data distribution, and forming a mapping relationship of the number of bits of the same type further includes:

[0114] S211: Use a preset decision voltage to read the data in each of the storage partitions, count the data distribution, and form a mapping relationship of the number of bits of the same type.

[0115] Instead of classifying the storage partitions, the data within each partition is directly read using a preset decision voltage. The data distribution is statistically analyzed, and a mapping relationship of the number of bits of the same type is formed. Then, the same steps as for the first type of storage partition are performed, which will not be repeated here.

[0116] To allow testers to intuitively understand the efficiency of this method's software decoding, this application also generates comparison charts for a clear visual representation. Specifically:

[0117] Figure 6 This is a schematic diagram of a comparison of software decoding quantity curves, combined with... Figure 6 As shown, the horizontal axis represents the storage partition number, and the vertical axis represents the number of pages in the storage partition that need to be soft-decoded; curve a represents the number of pages in each storage partition that need to be soft-decoded when reading using the initial decision voltage and each reread decision voltage in the reread voltage table; curve b represents the number of pages in each storage partition that need to be soft-decoded when reading using the partition precise decision voltage.

[0118] Step S221 includes:

[0119] S2211: Read the data in each of the storage partitions using the initial decision voltage and each reread decision voltage in the reread voltage table, and record the number of pages that need to be soft-decoded and the address of the pages that need to be soft-decoded;

[0120] Since the pages are arranged in order, the page number can be used to indicate the page address, for example, page 100, etc.

[0121] S2212: When there are pages in the storage partition that need to be software decoded, it is determined to be a first type of storage partition; when there are no pages in the storage partition that need to be software decoded, it is determined to be a second type of storage partition.

[0122] S2213: Determine the first type of storage partition number corresponding to the page that needs to be soft-decoded based on the address of the page to be soft-decoded, output the number of pages that need to be soft-decoded in each first type of storage partition, and generate the first soft-decoding count curve;

[0123] After partitioning the memory chip, each partition can be labeled. For example, the memory chip can be partitioned into 10 memory partitions, with the first memory partition being memory partition 1, and so on. The output is the number of pages in each memory partition that need to be software decoded. For example, memory partition 1 has 60 pages that need to be software decoded, so the output is (1, 60).

[0124] The horizontal axis of the first software decoding quantity curve represents the storage partition number, and the vertical axis represents the number of pages in the corresponding storage partition that need to be software decoded.

[0125] Correspondingly, step S4: reading the data corresponding to each storage partition within the specific block using the partition precise decision voltage includes:

[0126] S41: Read the data in the corresponding first-class storage partition using the corresponding partition precision decision voltage, and record the number of pages that need to be soft-decoded and the address of the pages that need to be soft-decoded;

[0127] S42: Determine the first type of storage partition number corresponding to the page that needs to be soft-decoded based on the address of the page to be soft-decoded, output the number of pages that need to be soft-decoded in each first type of storage partition, and generate a second soft-decoding quantity curve;

[0128] S43: Plot the first and second soft decoding quantity curves generated in step S2213 onto the same two-dimensional coordinate system to obtain a comparison chart of soft decoding quantity curves.

[0129] This allows us to directly determine the change in the number of pages requiring soft decoding when reading data before and after adding partition precise decision voltage.

[0130] Figure 7 This is a schematic diagram of a setting decision line device according to an embodiment of this application, as shown below. Figure 7 As shown, this application also discloses a decision line setting device 20, which includes a read interface 21, a write interface 22, a processing module 23, a cache module 24, and a display module 25. The read interface 21, the write interface 22, the cache module 24, and the display module 25 are all connected to the processing module 23. The read interface 21 is used to transmit data from the memory chip and input it into the processing module 23. The processing module 23 is used to select a specific block in the memory chip, divide the specific block into memory partitions, statistically analyze the mapping relationship of the number of bits of the same type in the memory partitions, and set the precise decision voltage of the partitions. The cache module 24 is used to store the data generated by the processing of the processing module 23. The display module 25 is used to display a comparison graph of the number of soft decoders.

[0131] Figure 8 This is a schematic diagram of an electronic device according to an embodiment of this application, as shown below. Figure 8 As shown, this application also discloses an electronic device 10, which includes: at least one processor 12; and a memory 11 communicatively connected to at least one processor 12; wherein the memory 11 stores instructions executable by at least one processor 12, which are executed by at least one processor 12 to enable at least one processor 12 to perform the method for setting a decision line as described above.

[0132] Specifically, the electronic device 10 includes, but is not limited to, a memory 11, a processor 12, a display 13, and a network interface 14. The electronic device 10 connects to a network via the network interface 14 to acquire raw test data. The network can be an intranet, the Internet, GSM, WCDMA, 4G, 5G, Bluetooth, Wi-Fi, or a wireless or wired network.

[0133] The memory 11 includes at least one type of readable medium, including flash memory, hard disk, multimedia card, card-type memory 11 (e.g., SD or DX memory 11), random access memory 11 (RAM), static random access memory 11 (SRAM), read-only memory 11 (ROM), electrically erasable programmable read-only memory 11 (EEPROM), programmable read-only memory 11 (PROM), magnetic memory 11, magnetic disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of the electronic device 10, such as the hard disk or memory of the electronic device 10. In other embodiments, the memory 11 can also be an external storage device of the electronic device 10, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. of the electronic device 10. Of course, the memory 11 can also include both internal storage units and external storage devices of the electronic device 10. In this embodiment, the memory 11 is typically used to store the operating system and various application software installed on the electronic device 10, such as program code for setting decision lines. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or will be output.

[0134] In some embodiments, processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor 12, or other data processing chip. This processor 12 is typically used to control the overall operation of the electronic device 10, such as performing data interaction or communication-related control and processing. In this embodiment, processor 12 is used to run program code stored in memory 11 or process data, such as running program code for a method of setting decision lines.

[0135] The display 13 may be referred to as a display screen or display unit. In some embodiments, the display 13 may be an LED display 13, a liquid crystal display 13, a touch-sensitive liquid crystal display 13, and an organic light-emitting diode (OLED) touch screen, etc. The display 13 is used to display information processed in the electronic device 10 and to display a visual working interface, such as displaying the results of data statistics.

[0136] The network interface 14 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface), which is typically used to establish a communication connection between the electronic device 10 and other electronic devices 10.

[0137] The figure only shows an electronic device 10 with a memory 11, a processor 12, a display 13, a network interface 14, and a method for setting decision lines. However, it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.

[0138] Optionally, the electronic device 10 may further include a user interface, which may include a display 13, an input unit such as a keyboard, and optionally a standard wired interface or a wireless interface. Optionally, in some embodiments, the display 13 may be an LED display 13, a liquid crystal display 13, a touch-sensitive liquid crystal display 13, or an organic light-emitting diode (OLED) touchscreen, etc. The display 13 may also be appropriately referred to as a screen or display unit, used to display information processed in the electronic device 10 and to display a visual user interface.

[0139] The electronic device 10 may also include radio frequency (RF) circuits, sensors, and audio circuits, etc., which will not be described in detail here.

[0140] In the above embodiments, when the processor 12 executes the method for setting the decision line stored in the memory 11, it can implement the following steps:

[0141] S1: Divide a specific block within the storage chip into a preset number of storage partitions, each storage partition comprising multiple pages;

[0142] S2: Use a preset decision voltage to read at least a portion of the data in the storage partition, analyze the data distribution, and form a mapping relationship of the number of bits of the same type;

[0143] S3: Based on the mapping relationship of the number of bits of the same type, set the partition precision decision voltage of the storage partition and output a set of partition precision decision voltages;

[0144] S4: Use the partition precision decision voltage to read the data corresponding to each of the storage partitions within the specific block.

[0145] Furthermore, this embodiment of the invention also proposes a computer-readable medium, which can be non-volatile or volatile. This computer-readable medium can be any one or any combination of several of the following: hard disk, multimedia card, SD card, flash memory card, SMC, read-only memory 11 (ROM), erasable programmable read-only memory 1111 (EPROM), portable compact disk read-only memory 11 (CD-ROM), USB memory 11, etc. The computer-readable medium includes a data storage area and a program storage area. The data storage area stores data created based on the use of blockchain nodes, and the program storage area stores a method for setting decision lines. When the method for setting decision lines is executed by the processor 12, it performs the following operations:

[0146] S1: Divide a specific block within the storage chip into a preset number of storage partitions, each storage partition comprising multiple pages;

[0147] S2: Use a preset decision voltage to read at least a portion of the data in the storage partition, analyze the data distribution, and form a mapping relationship of the number of bits of the same type;

[0148] S3: Based on the mapping relationship of the number of bits of the same type, set the partition precision decision voltage of the storage partition and output a set of partition precision decision voltages;

[0149] S4: Use the partition precision decision voltage to read the data corresponding to each of the storage partitions within the specific block.

[0150] It should be noted that, through the above description of the embodiments, those skilled in the art can clearly understand that the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a terminal device (which may be a mobile phone, computer, electronic device, or network device, etc.) to execute the methods of the various embodiments of the present invention.

[0151] It should be noted that the limitations on each step involved in this solution are not considered as limiting the order of steps, provided that they do not affect the implementation of the specific solution. The steps listed first can be executed first, later, or even simultaneously. As long as this solution can be implemented, it should be considered to fall within the scope of protection of this application.

[0152] It should be noted that the inventive concept of this application can form many embodiments, but due to the limited space of the application documents, they cannot all be listed. Therefore, without conflict, the embodiments described above or the technical features can be arbitrarily combined to form new embodiments. After the embodiments or technical features are combined, the original technical effect will be enhanced.

[0153] The above description, in conjunction with specific optional embodiments, provides a further detailed explanation of this application and should not be construed as limiting the specific implementation of this application to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the concept of this application, and all such modifications or substitutions should be considered within the scope of protection of this application.

Claims

1. A method for setting a decision line, characterized in that, The steps of the method for setting the decision line include: A specific block within the storage chip is divided into a preset number of storage partitions, each of which includes multiple pages; A portion of the data in the storage partition is read using a preset decision voltage to obtain a first bit of data; the first bit of data is counted to obtain a second bit of data; a mapping relationship of the number of bits of the same type is formed between the preset decision voltage and the second bit of data. The precise decision voltage for the storage partition is set based on the mapping relationship of the number of bits of the same type. The data corresponding to each storage partition within the specific block is read using the partition precision decision voltage; The process involves reading a portion of the data within the storage partition using a preset decision voltage to obtain a first bit of data; counting the number of the first bit of data to obtain a second bit of data; and establishing a mapping relationship between the preset decision voltage and the second bit of data to determine the number of bits of the same type. The steps include: Pages within the storage partition that require software decoding are classified as first-class storage partitions, and pages within the storage partition that do not require software decoding are classified as second-class storage partitions. Data in the first type of storage partition is read using a preset decision voltage to obtain a first bit of data; the first bit of data is counted to obtain a second bit of data; a mapping relationship of the number of bits of the same type is formed based on the preset decision voltage and the second bit of data. The process includes the following steps: reading data from the first type of storage partition using a preset decision voltage to obtain a first bit of data; counting the number of the first bit of data to obtain a second bit of data; and establishing a mapping relationship between the number of bits of the same type based on the preset decision voltage and the second bit of data. Set the first limit decision voltage and the preset interval value; The first limit decision voltage is used as the preset decision voltage to read the data in the first type of memory partition, and the number of 1 and / or 0 bits is recorded. Based on the first limit decision voltage, the next preset decision voltage is obtained by sequentially adding preset interval values, and the number of 1 and / or 0 bits is recorded and compared with the number of bits of the previous preset decision voltage. Stop when the number of 1 and / or 0 bits recorded corresponding to the Nth preset decision voltage is the same as the number of 1 and / or 0 bits recorded corresponding to the (N-1)th preset decision voltage; Generate a bit quantity mapping relationship of the same type based on each preset decision voltage and the corresponding number of 1 and / or 0 bits; The step of setting the precise partition decision voltage of the storage partition based on the mapping relationship of the number of bits of the same type includes the following steps: When the storage partition is a first-class storage partition, if the number of 1 and / or 0 bits recorded when reading data at the Nth preset decision voltage is the same as the number of 1 and / or 0 bits recorded when reading data at the (N-1)th preset decision voltage, then the average value of the Nth preset decision voltage and the (N-1)th preset decision voltage is taken, and the average value is set as the partition precision decision voltage of the first-class storage partition.

2. The method for setting the decision line according to claim 1, characterized in that, Data in the first type of storage partition is read using a preset decision voltage to obtain a first bit of data; the first bit of data is counted to obtain a second bit of data; a mapping relationship of the number of bits of the same type is formed based on the preset decision voltage and the second bit of data, including the following steps: N preset decision voltages are obtained, wherein the first preset decision voltage is the first limit decision voltage, and the Nth preset decision voltage is the second limit decision voltage; the difference between any two adjacent preset decision voltages is a preset interval value. The data in the first type of memory partition is read sequentially using each preset decision voltage; and the number of 1 and / or 0 bits is recorded when reading data using each preset decision voltage; Based on each preset decision voltage and the corresponding number of 1 and / or 0 bits, generate a mapping relationship for the number of bits of the same type in the output; Where N is a positive integer greater than 2.

3. The method for setting the decision line according to claim 1 or 2, characterized in that, The method for setting the precise partition decision voltage of the storage partition based on the bit quantity mapping relationship of the same type also includes the following steps: When the storage partition is a second type of storage partition, the initial decision voltage is set to the partition precision decision voltage of the second type of storage partition.

4. The method for setting the decision line according to claim 1, characterized in that, The storage chip is divided into a predetermined number of storage partitions, each partition comprising multiple pages. This is preceded by the following steps: The data in the memory chip is read using the initial decision voltage; When a block of data cannot be read, the data is read again using each reread decision voltage in the reread voltmeter. When a block is detected that cannot be read using either the initial decision voltage or the reread decision voltage, the block is marked as a specific block.

5. A device for setting a decision line, characterized in that, The decision line setting device performs the decision line setting method as described in any one of claims 1 to 4. The decision line setting device includes a read interface, a write interface, a processing module, a cache module, and a display module. The read interface, the write interface, the cache module, and the display module are all connected to the processing module. The read interface is used to transmit data from the storage chip and input it into the processing module; The processing module is used to select a specific block in the storage chip, divide the specific block into storage partitions, count the mapping relationship of the number of bits of the same type in the storage partitions, and set the precise decision voltage of the partitions. The cache module is used to store the data generated during the processing of the processing module; The display module is used to display a comparison graph of the number of software decoders.

6. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to at least one of the processors; wherein, The memory stores instructions executable by at least one of the processors, which, when executed by at least one of the processors, enable the at least one of the processors to perform the method for setting a decision line as described in any one of claims 1 to 4.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the method for setting the decision line as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Operation method of memory, memory and memory system

    CN115497540A