First read optimization method and three-dimensional memory device, electronic device
By generating a second read instruction to pre-read and store the data in a register, the problem of voltage instability during the first read of a 3D storage device is solved, resulting in faster read times and higher data accuracy.
Patent Information
- Application Number
- CN202411693097.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-11-25
AI Technical Summary
When a 3D storage device is read for the first time after a long period of inactivity, the cell read voltage is unstable, which leads to an increase in the temporary failure bit count, prolonged read time, or failure to read.
By determining whether the read instruction is the first read instruction, a second read instruction is generated to pre-read and store the data in the register, and then the actual read and data transfer are performed.
It reduces read time, improves data read accuracy, and reduces the number of temporary invalid bits.
Smart Images

Figure CN119739328B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of three-dimensional storage technology, and in particular to a first-read optimization method and a three-dimensional storage device and electronic device. Background Technology
[0002] When performing the first read operation after a long idle period, the cell read voltage of the 3D storage device becomes transiently unstable, resulting in an increase in the temporary failed bit count (FBC).
[0003] This results in slow reading times for 3D storage devices on the first read, or even failure to read them at all. Summary of the Invention
[0004] The purpose of this application is to provide an optimized first-read method and a three-dimensional storage device and electronic device to reduce data reading time and improve the accuracy of read data.
[0005] This application discloses a first-read optimization method applied to a three-dimensional storage device connected to a host device. The method includes the following steps:
[0006] Receive the first read instruction sent by the main control unit and determine whether the first read instruction is the first read instruction;
[0007] When the first read instruction is the first read instruction, the location information of the target data block in the first read instruction is extracted, and a second read instruction is generated based on the location information of the target data block.
[0008] The second read instruction is executed to pre-read the target data block, and the pre-read data is stored only in a register;
[0009] The first read instruction is executed to actually read the target data block, and the read target data is transmitted to the host device through the main control unit.
[0010] Optionally, when the first read instruction is the first read instruction, the step of extracting the location information of the target data block in the first read instruction and generating a second read instruction based on the location information of the target data block includes:
[0011] The location information of the target data block includes the label of the target data block and the first page position of the target data block that the first read instruction needs to read, thereby obtaining the first page position of the target data block and the preset number of pages to be read;
[0012] Add the position of the first page to the preset number of pages to read before you get the last page.
[0013] Generate a second read instruction, wherein the second read instruction reads the target data block from the first page to the last page;
[0014] Each of the target data blocks corresponds to a preset number of pre-read pages.
[0015] Optionally, when the first read instruction is the first read instruction, the step of extracting the location information of the target data block in the first read instruction and generating a second read instruction based on the location information of the target data block includes:
[0016] The location information of the target data block includes the label of the target data block and the first page position of the target data block that the first read instruction needs to read, thereby obtaining the first page position of the target data block and the preset number of pages to be read;
[0017] Add the position of the first page to the preset number of pages to read before you get the last page.
[0018] Generate a second read instruction, wherein the second read instruction reads the target data block from the first page to the last page;
[0019] Each of the target data blocks corresponds to the same preset pre-read page number.
[0020] Optionally, the preset number of pages to be pre-read is the average or median number of pages to be pre-read in each target data block within the three-dimensional storage device.
[0021] Optional, including:
[0022] Obtain the number of pages to be read before the target data block, the reading time before the read, and the error correction time.
[0023] A first curve is constructed based on the pre-read time and the pre-read page number;
[0024] A second curve is constructed based on the error correction time and the number of pre-read pages;
[0025] The number of pages to be read at the intersection of the first curve and the second curve is determined as the preset number of pages to be read in the target data block.
[0026] Optionally, the step of generating the second read instruction, wherein the second read instruction reads the target data block from the first page to the last page, includes:
[0027] Detect the condition parameters of the target data block, and obtain the number of pages to be read under the current condition parameters for the target data block;
[0028] Add the last page to the number of pages read to obtain the corrected last page;
[0029] A second read instruction is generated, wherein the read range of the target data block is from the first page to the padded end page;
[0030] In this context, each target data block compensates for different page read counts under different condition parameters.
[0031] Optionally, after receiving the first read instruction sent by the main control unit and determining whether the first read instruction is the first read instruction, the method further includes:
[0032] When the first read instruction is not the first read / write instruction, the first read instruction is executed, and the read target data is transmitted to the host device through the main control unit.
[0033] Optionally, the preset number of pages to be read is in the range of 250-350 pages.
[0034] This application also discloses a three-dimensional storage device, the three-dimensional storage device comprising:
[0035] NAND flash memory cells, which are used to store data;
[0036] A main control unit is connected to the NAND flash memory unit and is used to control the NAND flash memory unit to perform read and write operations.
[0037] An execution control unit, connected between the main control unit and the NAND flash memory cell, is configured to execute the first read optimization method described above, the method comprising:
[0038] Receive the first read instruction sent by the main control unit and determine whether the first read instruction is the first read instruction;
[0039] When the first read instruction is the first read instruction, the location information of the target data block in the first read instruction is extracted, and a second read instruction is generated based on the location information of the target data block.
[0040] The second read instruction is executed to pre-read the target data block, and the pre-read data is stored only in a register;
[0041] The first read instruction is executed to actually read the target data block, and the read target data is transmitted to the host device through the main control unit.
[0042] This application also discloses an electronic device, the electronic device comprising:
[0043] At least one processor; and,
[0044] A memory communicatively connected to the at least one processor; wherein,
[0045] The memory stores instructions that can be executed by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform a first-read optimization method.
[0046] Compared to existing methods for reading data from 3D storage devices, this application executes a second read instruction after determining that the first read instruction is the first read instruction. Furthermore, the second read instruction does not need to transmit the read information to the main control unit. Therefore, the second read instruction does not perform data error correction during execution. Moreover, when the first read instruction is executed after the second read instruction has been executed, it is no longer the first read instruction. This reduces the temporary fault bit count (FBC) generated by the 3D storage device when executing the first read instruction, thereby reducing data reading time and improving the accuracy of the read data. Attached Figure Description
[0047] 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:
[0048] Figure 1 This is a schematic diagram of a first-read optimization method according to the first embodiment of this application;
[0049] Figure 2 This is a schematic diagram of a method for setting a range of page numbers to be read using a second read instruction, according to a first embodiment of this application;
[0050] Figure 3 This is a schematic diagram of a first-read optimization method according to a second embodiment of this application;
[0051] Figure 4 This is a schematic diagram of a first-read optimization method according to a second embodiment of this application;
[0052] Figure 5 This is a schematic diagram of a three-dimensional storage device according to an embodiment of this application;
[0053] Figure 6 This is a schematic diagram of an electronic device according to an embodiment of this application.
[0054] 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 three-dimensional storage device; 30 is a main control unit; 40 is a NAND flash memory unit; 41 is a data block; 42 is a register; 50 is an execution control unit; 51 is a detection and judgment module; and 52 is an instruction sending module. Detailed Implementation
[0055] 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.
[0056] 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.
[0057] In addition, terms such as “center,” “horizontal,” “up,” “down,” “left,” “right,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” and “outer” that indicate orientation or positional relationship are based on the orientation or relative positional relationship shown in the accompanying drawings. They are only for the purpose of simplifying the description of this application and do not indicate that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0058] Furthermore, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to fixed connections, detachable connections, or integral connections; they can refer to mechanical connections or electrical connections; they can refer to direct connections or indirect connections through an intermediate medium, or internal connections 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.
[0059] The present application will now be described in detail with reference to the accompanying drawings and optional embodiments.
[0060] Example 1:
[0061] Figure 1 This is a schematic diagram of a first-read optimization method according to the first embodiment of this application, as shown below. Figure 1 As shown, this application discloses a first-read optimization method applied to a three-dimensional storage device 10, which is connected to a host device. The method includes:
[0062] S1: Receive the first read instruction sent by the main control unit, and determine whether the first read instruction is the first read instruction;
[0063] For example, it can be determined whether the first read instruction is the first read instruction by setting a judgment and detection module. The judgment and detection module is equipped with a timer and a temperature sensor. The timer can be used to detect the interval between the first read instruction and the previous read instruction, and the temperature sensor can be used to determine the current ambient temperature.
[0064] For example, if the interval at room temperature exceeds 24 hours, it is considered the first read; if it does not exceed 24 hours, it is considered a non-first read. Room temperature includes 20-50 degrees Celsius. If the interval at high temperature exceeds 1 hour, it is considered the first read; if it does not exceed 1 hour, it is considered a non-first read. High temperature includes above 100 degrees Celsius.
[0065] S210: When the first read instruction is the first read instruction, extract the location information of the target data block in the first read instruction, and generate a second read instruction based on the location information of the target data block;
[0066] The three-dimensional storage device 20 may include multiple NAND flash memory cells 40, and each NAND flash memory cell 40 includes multiple data blocks 41. The data block 41 in which the information to be read in the first read instruction is located is the target data block 41.
[0067] When it is determined that the first read instruction is the first read instruction, it is necessary to obtain the information in the first read instruction. This information includes the label of the target data block 41 that the first read instruction needs to read, i.e., the target data block 41. The target data block 41 also contains information about which NAND flash memory cell 40 the data block 41 belongs to, and which page the data to be read starts from in the target data block 41, for example, page 200 of the 3rd data block of the 5th NAND flash memory cell 40.
[0068] For example, when the first read instruction reads only pages 300-1000 of the first data block 41 of the 5th NAND flash memory cell 40, the information of the target data block 41 obtained is [(5, 1, 300)]. When the first read instruction reads pages 300-1000 of the first data block 41 of the 5th NAND flash memory cell 40, pages 500-1000 of the second data block 41 of the 5th NAND flash memory cell 40, and pages 600-1000 of the third data block 41 of the 5th NAND flash memory cell 40, the information obtained is [(5, 1, 300), (5, 1, 500), (5, 1, 600)].
[0069] S3: Execute the second read instruction to pre-read the target data block, and store the pre-read data only in the register;
[0070] When the read instruction is to transfer the read data to register 42, there is no need to transfer it to the main control unit 30. At this time, the data will be read from the target data block 41 into register 42 instead of being transferred to the main control unit 30. Thus, the data error correction step will not be triggered when the second read instruction is executed.
[0071] A data block 41 includes multiple data pages. The second read instruction can read all the data pages in the target data block 41, or it can read a portion of the data pages within the second read instruction.
[0072] S4: Execute the first read instruction to actually read the target data block, and transmit the read target data to the host device through the main control unit.
[0073] After the second read instruction is executed, the first read instruction is executed to perform the actual read operation, thereby transmitting the read target data to the host device.
[0074] Compared to existing reading methods for 3D storage devices, this application executes a second reading instruction after determining that the first reading instruction is the first reading instruction. Moreover, the second reading instruction does not need to transmit the read information to the main control unit 30. Therefore, the second reading instruction does not perform data error correction during execution. Furthermore, when the first reading instruction is executed after the second reading instruction has been executed, the first reading instruction is no longer the first reading instruction. This reduces the temporary fault bit count (FBC) generated by the 3D storage device 20 when executing the first reading instruction, thereby reducing data reading time and improving the accuracy of read data.
[0075] S1: After receiving the first read instruction sent by the main control unit and determining whether the first read instruction is the first read instruction, the following steps are also included:
[0076] S220: When the first read instruction is not the first read / write instruction, the first read instruction is executed, and the read target data is transmitted to the host device through the main control unit.
[0077] In simple terms, if it is determined that the first read instruction is not the first read instruction, then there is no need to execute the operation of step S3, and the read operation is performed directly according to the first read instruction.
[0078] like Figure 2 As shown, in order to further improve the data reading speed, this application does not read all the data pages in the target data block 41 when executing the second read instruction operation, but performs a partial data page pre-read operation.
[0079] S210: When the first read instruction is a first read instruction, the step of extracting the location information of the target data block in the first read instruction and generating a second read instruction based on the location information of the target data block includes:
[0080] S2111: The location information of the target data block includes the label of the target data block and the first page position of the target data block that the first read instruction needs to read, and obtains the first page position of the target data block and the preset number of pre-read pages;
[0081] The preset number of prefetched pages for data block 41 can be pre-stored in a memory table, or a separate storage unit can be set up to store the preset number of prefetched pages for data block 41.
[0082] The preset prefetch page count for data block 41 can be obtained experimentally. For example, the steps are as follows: First, perform a full erase and write operation on the NAND flash memory cell 40; second, store it at 125°C for 3 hours to simulate a long-term high-temperature storage scenario; third, store it at room temperature for 1 hour; fourth, perform a read operation, reading from the first page to the last page of each data block 41, and plot the relationship curve between the number of data pages and the FBC in the first read operation; fifth, perform a read operation, reading from the first page to the last page of each data block, and plot the relationship curve between the number of data pages and the FBC in the second read operation; from the two relationship curves, the range of pages in which the Temporary Failure Bit Count (FBC) appears most frequently in each data block 41 can be obtained.
[0083] S2112: Add the position of the first page to the preset pre-read page number to obtain the last page;
[0084] S2113: Generate the second read instruction, wherein the second read instruction reads the target data block from the first page to the last page;
[0085] Each target data block 41 corresponds to a preset pre-read page number, that is, different target data blocks 41 correspond to their own preset pre-read page numbers.
[0086] For example, when the first read instruction needs to read pages 300-1500 of the first data block 41, the preset pre-read page number corresponding to the first data block 41 stored in the memory table is 300 pages. Then the second read instruction directly reads the data of pages 300-600 of the first data block 41, and this part of the data does not need to be passed into the main control unit 30.
[0087] Since the preset pre-read page number corresponding to each data block 41 stored in the memory table is written into the product before it leaves the factory and is fixed, the preset pre-read page number corresponding to each data block 41 stored in the memory table may not be applicable as the usage scenario changes. This may result in situations where even if the second read instruction is executed before the first read instruction is executed, the data reading speed still cannot be improved.
[0088] Therefore, this application also adds a detection step for conditional parameters, as follows:
[0089] S2113: The step of generating the second read instruction, wherein the second read instruction reads the target data block from the first page to the last page, includes:
[0090] S21131: Detect the condition parameters of the target data block, and obtain the number of pages to be read under the current condition parameters for the target data block;
[0091] S21132: Add the last page to the number of pages read to obtain the corrected last page;
[0092] The condition parameters may include the interval between the first read instruction and the previous read instruction, as well as the ambient temperature. Since different ambient temperatures can cause significant variations in the Temporary Failure Bit Count (FBC) of the same data block 41, and different intervals can also lead to significant variations in the FBC of the same data block 41, setting a fixed preset prefetch page count is insufficient for data blocks 41 that have not been read for extended periods.
[0093] The number of pages to be read can also be pre-stored in a memory table, or a separate storage unit can be set up to store the number of pages to be read for the target data block 41 under different condition parameters.
[0094] S21133: Generate a second read instruction, wherein the second read instruction reads the target data block from the first page to the padded end page;
[0095] In this context, each target data block 41 compensates for different page reading numbers under different condition parameters.
[0096] For example, the memory table stores the first data block 41 under high-temperature conditions, such as 125 degrees Celsius. During an interval of 0-1 hour, the number of pages read is 0; during an interval of 1-2 hours, the number of pages read is 250. When the first read instruction needs to read pages 300-1500 of the first data block 41, the preset pre-read page count for the first data block 41 stored in the memory table is 300 pages. If the condition parameters for the target data block 41 to be read in the first read instruction are high-temperature environment and an interval of 2 hours, then a second read instruction is sent. The second read instruction pre-reads the target data block 41 within a range of 300-850 pages, and this portion of data does not need to be transmitted to the main control unit 30. This ensures that data can still be read quickly even after long-term storage.
[0097] For example, the memory table stores data at room temperature (e.g., 20-50 degrees Celsius). For the first data block 41, the number of pages read during intervals of 0-24 hours is 0; during intervals longer than 24 hours, the number of pages read is 250. When a first read instruction needs to read pages 300-1500 of the first data block 41, the preset pre-read page count for the first data block 41 stored in the memory table is 300 pages. If the condition parameters for the target data block 41 to be read in the first read instruction are room temperature and an interval of more than 24 hours, then a second read instruction is sent. The second read instruction pre-reads 300-850 pages of data from the target data block 41, and this portion of data does not need to be transmitted to the main control unit 30. This ensures that data can still be read quickly even after long periods of inactivity.
[0098] Example 2:
[0099] Figure 3 This is a schematic diagram of a first-read optimization method according to a second embodiment of this application, as shown below. Figure 3 As shown, unlike the first embodiment, this embodiment uses a uniform preset pre-read page number for each data block 41. Specifically:
[0100] S210: When the first read instruction is a first read instruction, the step of extracting the location information of the target data block in the first read instruction and generating a second read instruction based on the location information of the target data block includes:
[0101] S2121: The location information of the target data block includes the label of the target data block and the first page position of the target data block that the first read instruction needs to read, and obtains the first page position of the target data block and the preset number of pre-read pages;
[0102] S2122: Add the position of the first page to the preset pre-read page number to obtain the last page;
[0103] S2123: Generate the second read instruction, wherein the second read instruction reads the target data block from the first page to the last page;
[0104] Each of the target data blocks 41 corresponds to the same preset pre-read page number.
[0105] In this embodiment, the preset pre-read page number can be obtained by first experimentally determining the original pre-read page number of each data block 41, and then by calculating the average or median to obtain the preset pre-read page number set in this embodiment. That is, the preset pre-read page number in this embodiment is the average or median of the number of pre-read pages required in each data block 41 within the three-dimensional storage device 20.
[0106] By using the averaging method, the preset number of prefetched pages can handle most data blocks 41, and the execution time of the second instruction is shorter.
[0107] Using the median to determine a uniform preset prefetch page number, compared to using the average, avoids the extreme situation where data block 41 requires prolonged error correction. In summary, when the Temporary Failure Bit Count (FBC) of each data block 41 exhibits a wide and dispersed range of page numbers, using the median to determine a uniform preset prefetch page number better prevents extreme scenarios.
[0108] Compared to the scheme in the first embodiment where each data block 41 corresponds to a preset number of pre-read pages, the scheme in this embodiment requires less computation when reading data and the algorithm is also simpler.
[0109] Furthermore, each data block 41 in this embodiment adopts a uniform preset pre-read page number, and the reading range of the second reading instruction can be changed according to different condition parameters.
[0110] S2123: The step of generating the second read instruction, wherein the second read instruction reads the target data block from the first page to the last page, includes:
[0111] S21231: Detect the condition parameters of the target data block, and obtain the number of pages to be read under the current condition parameters for the target data block;
[0112] S21233: Add the last page to the number of pages read to obtain the corrected last page;
[0113] S21233: Generate a second read instruction, wherein the second read instruction reads the target data block from the first page to the padded end page;
[0114] In this embodiment, each target data block 41 has a different number of pages read under different condition parameters. Compared with the solution of the first embodiment, since each data block 41 in this embodiment corresponds to a preset number of pages to be read, it is only necessary to store the number of pages read under different condition parameters in the memory table. It is not necessary to store it for each data block 41, but only to store a uniform one.
[0115] Example 3:
[0116] Figure 4 This is a schematic diagram of a first-read optimization method according to a second embodiment of this application, as shown below. Figure 4 As shown, the horizontal axis represents the page number, and the vertical axis represents time. Unlike the second embodiment, this embodiment determines the unified preset pre-read page number differently. This embodiment plots the preset pre-read page number as a first curve M1 formed by the pre-read time and the pre-read page number of data block 41, and a second curve M2 formed by the error correction time and the pre-read page number. The page number at the intersection of the first curve M1 and the second curve M2 is set as the preset pre-read page number. Specifically:
[0117] Step 1: Obtain the number of pages to be read before the target data block, the read time before the target data block, and the error correction time before the target data block.
[0118] Step 2: Construct a first curve based on the pre-read time and the number of pre-read pages;
[0119] Step 3: Construct a second curve based on the error correction time and the number of pre-read pages;
[0120] Step 4: Determine the number of pages to be read at the intersection of the first curve and the second curve as the preset number of pages to be read in the target data block.
[0121] Compared to the solution in the second embodiment, the preset pre-read page number selected in this embodiment takes into account the error correction time, thus resulting in faster data reading speed and improved reading speed of the entire three-dimensional storage device 20.
[0122] Combination Figure 4It is found that the preset number of pages to be read is in the range of 250-350 pages, and the total data reading time is relatively fast. The preferred preset number of pages to be read is 300 pages.
[0123] Figure 5 This is a schematic diagram of a three-dimensional storage device according to an embodiment of this application, as shown below. Figure 5 As shown, this application also discloses a three-dimensional storage device 20, which includes:
[0124] NAND flash memory cell 40, the NAND flash memory cell 40 being used to store data;
[0125] The main control unit 30 is connected to the NAND flash memory unit 40 and is used to control the NAND flash memory unit 40 to perform read and write operations.
[0126] An execution control unit 50 is connected between the main control unit 30 and the NAND flash memory unit 40. The execution control unit 50 is used to execute the first read optimization method of the three-dimensional storage device 20 described above, the method including:
[0127] S1: Receive the first read instruction sent by the main control unit, and determine whether the first read instruction is the first read instruction;
[0128] S210: When the first read instruction is the first read instruction, extract the location information of the target data block in the first read instruction, and generate a second read instruction based on the location information of the target data block;
[0129] S3: Execute the second read instruction to pre-read the target data block, and store the pre-read data only in the register;
[0130] S4: Execute the first read instruction to actually read the target data block, and transmit the read target data to the host device through the main control unit.
[0131] The execution control unit 50 can be integrated into the main control unit 30, or it can be independent of the main control unit 30.
[0132] The execution control unit 50 further includes a detection and judgment module 51 and an instruction sending module 52. The detection and judgment module 51 is connected to the main control unit 30. The detection and judgment module 51 is equipped with a timer to detect the interval between the first read instruction and the previous read instruction, and to determine whether the first read instruction is the first read instruction. It is also equipped with a temperature sensor to determine the current ambient temperature. The instruction sending module 52 is connected to the detection and judgment module 51 and to the NAND flash memory unit 40. The instruction sending module 52 is used to send a second read instruction.
[0133] Compared to existing reading methods for 3D storage devices, this application executes a second reading instruction after determining that the first reading instruction is the first reading instruction. Moreover, the second reading instruction does not need to transmit the read information to the main control unit 30. Therefore, the second reading instruction does not perform data error correction during execution. Furthermore, when the first reading instruction is executed after the second reading instruction has been executed, the first reading instruction is no longer the first reading instruction. This reduces the temporary fault bit count (FBC) generated by the 3D storage device 20 when executing the first reading instruction, thereby reducing data reading time and improving the accuracy of read data.
[0134] Figure 6 This is a schematic diagram of an electronic device according to an embodiment of this application, as shown below. Figure 6 As shown, this application also discloses an electronic device 10, which includes: at least one processor 12; and a memory 11 communicatively connected to the at least one processor 12; wherein the memory 11 stores instructions executable by the at least one processor 12, and the instructions are executed by the at least one processor 12 to enable the at least one processor 12 to execute the above-described first read optimization method of the three-dimensional storage device 20, including the steps of:
[0135] S1: Receive the first read instruction sent by the main control unit, and determine whether the first read instruction is the first read instruction;
[0136] S210: When the first read instruction is the first read instruction, extract the location information of the target data block in the first read instruction, and generate a second read instruction based on the location information of the target data block;
[0137] S3: Execute the second read instruction to pre-read the target data block, and store the pre-read data only in the register;
[0138] S4: Execute the first read instruction to actually read the target data block, and transmit the read target data to the host device through the main control unit.
[0139] 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.
[0140] 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 may 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 may 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 may 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 the program code of the first read optimization method of the three-dimensional storage device 20. In addition, the memory 11 can also be used to temporarily store various types of data that have been output or will be output.
[0141] 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 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 the first read optimization method of three-dimensional storage device 20.
[0142] 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.
[0143] The network interface 14 may optionally include a standard wired interface 21 or a wireless interface 21 (such as a Wi-Fi interface 21), which is typically used to establish a communication connection between the electronic device 10 and other electronic devices 10.
[0144] Figure 6 Only an electronic device 10 with a first-read optimization method having a memory 11, a processor 12, a display 13, a network interface 14, and a three-dimensional storage device 20 is shown. 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.
[0145] 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.
[0146] The electronic device 10 may also include radio frequency (RF) circuits, sensors, and audio circuits, etc., which will not be described in detail here.
[0147] In the above embodiments, when the processor 12 executes the first read optimization method of the three-dimensional storage device 20 stored in the memory 11, it can implement the following steps:
[0148] S1: Receive the first read instruction sent by the main control unit, and determine whether the first read instruction is the first read instruction;
[0149] S210: When the first read instruction is the first read instruction, extract the location information of the target data block in the first read instruction, and generate a second read instruction based on the location information of the target data block;
[0150] S3: Execute the second read instruction to pre-read the target data block, and store the pre-read data only in the register;
[0151] S4: Execute the first read instruction to actually read the target data block, and transmit the read target data to the host device through the main control unit.
[0152] 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.
[0153] 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.
[0154] 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 first-read optimization method, applied to a three-dimensional storage device, wherein the three-dimensional storage device is connected to a host device, characterized in that, The method includes: Receive the first read instruction sent by the main control unit and determine whether the first read instruction is the first read instruction; When the first read instruction is the first read instruction, the location information of the target data block in the first read instruction is extracted, and a second read instruction is generated based on the location information of the target data block. The second read instruction is executed to pre-read the target data block, and the pre-read data is stored only in a register; The first read instruction is executed to actually read the target data block, and the read target data is transmitted to the host device through the main control unit. When the first read instruction is the first read instruction, the step of extracting the location information of the target data block in the first read instruction and generating a second read instruction based on the location information of the target data block includes: The location information of the target data block includes the label of the target data block and the first page position of the target data block that the first read instruction needs to read, thereby obtaining the first page position of the target data block and the preset number of pages to be read; Add the position of the first page to the preset number of pages to read before you get the last page. Generate a second read instruction, wherein the second read instruction reads the target data block from the first page to the last page; Each target data block corresponds to its own preset pre-read page number, or each target data block corresponds to the same preset pre-read page number.
2. The first-read optimization method according to claim 1, characterized in that, The preset number of pre-read pages is the average or median number of pages that need to be pre-read in each target data block within the three-dimensional storage device.
3. The first read optimization method according to claim 1, characterized in that, include: Obtain the number of pages to be read before the target data block, the reading time before the read, and the error correction time. A first curve is constructed based on the pre-read time and the pre-read page number; A second curve is constructed based on the error correction time and the number of pre-read pages; The number of pages to be read at the intersection of the first curve and the second curve is determined as the preset number of pages to be read in the target data block.
4. The first read optimization method according to claim 1, characterized in that, The step of generating the second read instruction, wherein the second read instruction reads the target data block from the first page to the last page, includes: Detect the condition parameters of the target data block, and obtain the number of pages to be read under the current condition parameters for the target data block; Add the last page to the number of pages read to obtain the corrected last page; A second read instruction is generated, wherein the read range of the target data block is from the first page to the padded end page; In this context, each target data block compensates for different page read counts under different condition parameters.
5. The first read optimization method according to claim 1, characterized in that, After receiving the first read instruction sent by the main control unit and determining whether the first read instruction is the first read instruction, the method further includes: When the first read instruction is not the first read / write instruction, the first read instruction is executed, and the read target data is transmitted to the host device through the main control unit.
6. The first read optimization method according to claim 3, characterized in that, The preset number of pages to be read is in the range of 250-350 pages.
7. A three-dimensional storage device, characterized in that, The three-dimensional storage device includes: NAND flash memory cells, which are used to store data; A main control unit is connected to the NAND flash memory unit and is used to control the NAND flash memory unit to perform read and write operations. An execution control unit, connected between the main control unit and the NAND flash memory cell, is configured to execute the first read optimization method according to any one of claims 1-6, the method comprising: Receive the first read instruction sent by the main control unit and determine whether the first read instruction is the first read instruction; When the first read instruction is the first read instruction, the location information of the target data block in the first read instruction is extracted, and a second read instruction is generated based on the location information of the target data block. The second read instruction is executed to pre-read the target data block, and the pre-read data is stored only in the register; The first read instruction is executed to actually read the target data block, and the read target data is transmitted to the host device through the main control unit.
8. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the first read optimization method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
System approach to reduce stable threshold voltage (VT) read disturb degradation
CN112951298A
