Flash memory reading device and flash memory reading method thereof
By using and adjusting the priorities of multiple read strategies sequentially in the flash memory reading device, efficiency problems caused by differences in read strategies of different blocks are solved and more efficient data reading is achieved.
Patent Information
- Application Number
- CN202310388364.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-14
- Filing Date
- 2023-04-12
- Publication Date
- 2024-09-20
AI Technical Summary
In flash memory, different blocks have different writing conditions and aging conditions, which requires different reading strategies when reading data. It is difficult to quickly find a suitable reading strategy with existing technology, which affects the reading efficiency of flash memory.
A flash memory reading device is designed, including a storage circuit and a read control circuit, which stores multiple read strategies. The read control circuit is used sequentially according to the priority of the strategies until a suitable strategy is found and its priority is increased. to improve reading efficiency.
By adjusting the priority of the read strategy, the reading efficiency of flash memory is significantly improved, the time to find a suitable strategy is reduced, and the speed of data reading is improved.
Smart Images

Figure CN118672484A
Abstract
Description
Technical Field
[0001] The present invention relates to a memory device, and in particular to a flash memory reading device and a flash memory reading method thereof. Background Art
[0002] Generally speaking, different blocks in a flash memory have different write conditions or aging conditions, so different read strategies may be required to read the stored data in different flash memory blocks. For example, different threshold voltages may be required to determine the stored data in a flash memory cell. Since the faster a read strategy suitable for reading a flash memory block is found, the higher the read efficiency of the flash memory will be, so how to quickly find a read strategy suitable for reading a flash memory block from multiple read strategies is a topic worthy of attention. Summary of the invention
[0003] The present invention provides a flash memory reading device and a flash memory reading method thereof, which can effectively improve the reading efficiency of the flash memory.
[0004] The flash memory reading device of the present invention comprises a storage circuit and a reading control circuit. The storage circuit stores a plurality of reading strategies. The reading control circuit is coupled to the storage circuit, and when reading the stored data of the target block of the flash memory, the plurality of reading strategies are used in sequence according to the priorities of the plurality of reading strategies to read the target block until a reading strategy suitable for reading the target block is found, and the priority level of the reading strategy suitable for reading the target block is increased.
[0005] In one embodiment of the present invention, the read control circuit increases the priority of the read strategy suitable for reading the target block to the highest priority level.
[0006] In one embodiment of the present invention, the read control circuit increases the priority level of the read strategy suitable for reading the target block by a preset level.
[0007] In one embodiment of the present invention, each read strategy includes a threshold voltage table, and each threshold voltage table includes at least one threshold voltage for determining storage data of a flash memory cell.
[0008] In one embodiment of the present invention, when reading the stored data of the target block of the flash memory, the read control circuit sequentially uses the plurality of read strategies to read the target block starting from the last used read strategy.
[0009] The present invention also provides a flash memory reading method of a flash memory reading device, comprising the following steps: when reading the storage data of a target block of the flash memory, using the plurality of reading strategies in sequence according to the priorities of the plurality of reading strategies to read the target block until a reading strategy suitable for reading the target block is found; and increasing the priority level of the reading strategy suitable for reading the target block.
[0010] In one embodiment of the present invention, the flash memory reading method of the flash memory reading device includes increasing the priority of the reading strategy suitable for reading the target block to the highest priority level.
[0011] In an embodiment of the present invention, the flash memory reading method of the flash memory reading device includes increasing the priority level of the reading strategy suitable for reading the target block by a predetermined level.
[0012] In one embodiment of the present invention, each read strategy includes a threshold voltage table, and each threshold voltage table includes at least one threshold voltage for determining storage data of a flash memory cell.
[0013] In one embodiment of the present invention, when reading the stored data of the target block of the flash memory, the target block is read using the plurality of read strategies in sequence starting from the last used read strategy.
[0014] Based on the above, when reading the storage data of the target block of the flash memory, the embodiment of the present invention uses different read strategies to read the target block in sequence according to the priority of the read strategy until a read strategy suitable for reading the target block is found, and the priority level of the read strategy suitable for reading the target block is increased, thereby effectively improving the reading efficiency of the flash memory.
[0015] In order to make the above features and advantages of the present invention more clearly understood, embodiments are given below with reference to the accompanying drawings for detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a schematic diagram of a flash memory reading device according to an embodiment of the present invention;
[0017] Figure 2 is a schematic diagram of reading a memory block of a flash memory according to an embodiment of the present invention;
[0018] Figure 3 is a schematic diagram of adjusting the priority of a reading strategy according to an embodiment of the present invention;
[0019] Figure 4 is a schematic diagram of reading a memory block of a flash memory according to an embodiment of the present invention;
[0020] Figure 5 is a schematic diagram of adjusting the priority of a reading strategy according to an embodiment of the present invention;
[0021] Figure 6 The present invention is a flowchart of a flash memory reading method of a flash memory reading device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0022] In order to make the content of the present invention more understandable, the following embodiments are specifically cited as examples on which the present invention can be implemented. In addition, wherever possible, components / members with the same reference numerals are used in the drawings and embodiments to represent the same or similar components.
[0023] Figure 1 is a schematic diagram of a flash memory reading device according to an embodiment of the present invention, please refer to Figure 1 The flash memory reading device 100 may include a storage circuit 102 and a read control circuit 104, wherein the read control circuit 104 is coupled to the storage circuit 102 and the flash memory 106. The storage circuit 102 is used to store a plurality of read strategies, wherein each read strategy has a different priority. Each read strategy may, for example, include a threshold voltage table, wherein the threshold voltage table records at least one threshold voltage for determining the storage data of the flash memory cell of the flash memory 106. For example, when the flash memory 106 is implemented as a multi-level cell (MLC) flash memory, the threshold voltage table may record a plurality of threshold voltages to determine a plurality of bits of data stored in the flash memory cell.
[0024] The flash memory 106 may include a plurality of memory blocks, and the read control circuit 104 may select a memory block from the plurality of memory blocks as a target block for data reading. When reading the stored data of the target block, the read control circuit 104 may sequentially use different read strategies according to the priorities of the plurality of read strategies to read the target block until a read strategy suitable for reading the target block is found, and after determining the read strategy suitable for reading the target block, the priority level of the read strategy suitable for reading the target block is increased. The read control circuit 104 may, for example, use an error correction code (ECC) to determine whether the read strategy used can correctly read the stored data of the target block, and further determine whether the read strategy used is suitable for reading the target block.
[0025] Since the types of read strategies corresponding to the memory blocks of the flash memory 106 are generally not too many, the priority level of the read strategy suitable for reading the memory blocks of the flash memory 106 will be increased, which can effectively increase the speed at which the read control circuit 104 finds a suitable read strategy, thereby improving the read efficiency of the flash memory.
[0026] For example, Figure 2 1 is a schematic diagram of a method for reading a memory block of a flash memory according to an embodiment of the present invention. Figure 2In the embodiment, the storage circuit 102 stores 12 storage read strategies S1-S12, the flash memory 106 includes memory blocks B1-B10, and the read control circuit 104 performs read operations on the memory blocks B1-B10 in sequence. Assume that in the present embodiment, the memory blocks B1, B3, B5, B7, and B9 of the flash memory 106 are suitable for reading with the read strategy S1, and the memory blocks B2, B4, B6, B8, and B10 of the flash memory 106 are suitable for reading with the read strategy S5.
[0027] The method of adjusting the priority of the read strategy when the read control circuit 104 reads the flash memory 106 can be as follows: Figure 3 As shown. Assume that when the read control circuit 104 reads the memory block B1, the priorities of the read strategies S1-S12 are in descending order, and the read control circuit 104 starts to try to read the memory block B1 from the read strategy S1 with the highest priority. Since the read strategy suitable for reading the memory block B1 is the read strategy S1, and the read strategy S1 has the highest priority, the read control circuit 104 does not adjust the priority level of the read strategy S1.
[0028] Similarly, when the read control circuit 104 reads the memory block B2 next, the read control circuit 104 attempts to read the memory block B2 starting from the read strategy used last time (i.e., read strategy S1). Since the read strategy suitable for reading the memory block B2 is read strategy S5, the read control circuit 104 needs to try 5 read strategies before finding a suitable read strategy (read strategy S5). After confirming that the read strategy suitable for reading the memory block B2 is read strategy S5, the read control circuit 104 raises the level of the read strategy S5 by one level, that is, the levels of the read strategies S5 and S4 are interchanged.
[0029] When the read control circuit 104 reads the memory block B3 next, the read control circuit 104 starts to try to read the memory block B3 from the read strategy used last time (i.e., read strategy S5, at this time, after the priority adjustment, the priority level of read strategy S5 is level 4). Since the read strategy suitable for reading the memory block B3 is read strategy S1, the read control circuit 104 needs to try 10 read strategies before finding a suitable read strategy (read strategy S1). After confirming that the read strategy suitable for reading the memory block B3 is read strategy S1, since read strategy S1 has the highest priority, the read control circuit 104 does not adjust the priority level of read strategy S1.
[0030] Similarly, the read control circuit 104 also adjusts the priority level of the read strategy S5 in the same manner when reading the memory blocks B4-B10. When the priority level of the read strategy S5 is adjusted to be higher than the read strategy S1, if the read control circuit 104 determines that the read strategy suitable for reading the memory block (for example, reading the memory block B9) is the read strategy S1, the read control circuit 104 will also increase the level of the read strategy S1 by one level. For example, when it is determined that the read strategy suitable for reading the memory block B9 is the read strategy S1, the read control circuit 104 will also swap the levels of the read strategies S1 and S5, that is, increase the priority level of the read strategy S1 by one level.
[0031] In this embodiment, by increasing the priority level of the read strategy (read strategy S5) suitable for reading the memory block, when the read strategies S1 and S5 are the two read strategies with the highest priority levels, the read control circuit 104 only needs to try two read strategies to find a suitable read strategy. Compared with the prior art that does not change the priority of the read strategy, the reading efficiency of the flash memory can be greatly improved.
[0032] It is worth noting that the method of adjusting the priority level of the read policy is not limited to Figure 2 , Figure 3 The adjustment method of the embodiment, for example, in other embodiments, the priority level of the read strategy suitable for reading the memory block can also be increased by more levels, such as 2 or 3 levels, but not limited to this. Alternatively, the priority level of the read strategy determined to be suitable for reading the memory block is adjusted to the highest level. For example, in Figure 4 , Figure 5 In the embodiment, the storage circuit 102 stores 55 storage read strategies S1-S55, the flash memory 106 includes memory blocks B1-B8, and the read control circuit 104 performs read operations on the memory blocks B1-B8 in sequence. Assume that in this embodiment, the read strategies suitable for the memory blocks B1-B8 of the flash memory 106 are read strategies S28, S1, S54, S5, S18, S2, S1, and S40 in sequence.
[0033] The method of adjusting the priority of the read strategy when the read control circuit 104 reads the flash memory 106 can be as follows: Figure 5As shown. Assuming that when the read control circuit 104 reads the memory block B1, the priorities of the read strategies S1 to S55 are in descending order, and the read control circuit 104 starts to try to read the memory block B1 from the read strategy S1 with the highest priority. Since the read strategy suitable for reading the memory block B1 is the read strategy S28, the read control circuit 104 needs to try 28 read strategies before finding a suitable read strategy (read strategy S28). After confirming that the read strategy suitable for reading the memory block B1 is the read strategy S28, the read control circuit 104 raises the level of the read strategy S28 to the highest level, and the priority levels of the read strategies S1 to S27, which originally have a higher priority level than the read strategy S28, are lowered by one level respectively.
[0034] Similarly, when the read control circuit 104 reads the memory block B2 next, the read control circuit 104 attempts to read the memory block B2 starting from the read strategy used last time (i.e., read strategy S28). Since the read strategy suitable for reading the memory block B2 is read strategy S1, the read control circuit 104 needs to try two read strategies to find a suitable read strategy (read strategy S1). After confirming that the read strategy suitable for reading the memory block B2 is read strategy S1, the read control circuit 104 raises the level of the read strategy S1 to the highest level, that is, the levels of the read strategies S1 and S28 are interchanged.
[0035] When the read control circuit 104 reads the memory block B3 next, the read control circuit 104 starts to try to read the memory block B3 from the read strategy used last time (i.e., read strategy S1). Since the read strategy suitable for reading the memory block B3 is read strategy S54, the read control circuit 104 needs to try 54 read strategies before finding a suitable read strategy (read strategy S54). After confirming that the read strategy suitable for reading the memory block B3 is read strategy S54, the read control circuit 104 raises the level of read strategy S54 to the highest level, and the priority levels of the read strategies S1 to S53, which originally have a higher priority level than the read strategy S54, are lowered by one level respectively.
[0036] Similarly, the read control circuit 104 also adjusts the priority level of the read strategy in the same manner when reading the memory blocks B4-B8. Since in this embodiment, only the read strategies S1, S2, S5, S18, S28, S40, and S54 are used to read the memory blocks B1-B8, when the priority levels of the read strategies S1, S2, S5, S18, S28, S40, and S54 are adjusted to the highest 7 levels, it can be regarded that the read control circuit 104 only uses the 7 read strategies S1, S2, S5, S18, S28, S40, and S54 to read the memory blocks B1-B8, which can greatly improve the read efficiency of the flash memory.
[0037] Figure 6 It is a flow chart of a flash memory reading method of a flash memory reading device according to an embodiment of the present invention. It can be seen from the above embodiments that the flash memory reading method of the flash memory reading device may at least include the following steps. First, when reading the storage data of the target block of the flash memory, the target block is read using the read strategies in sequence according to the priorities of multiple read strategies until a read strategy suitable for reading the target block is found (step S602), wherein each read strategy includes a threshold voltage table, and the threshold voltage table includes at least one threshold voltage for determining the storage data of the flash memory unit. Then, the priority level of the read strategy suitable for reading the target block is increased (step S604). The method of increasing the priority level of the read strategy suitable for reading the target block may be, for example, to increase the priority level of the read strategy suitable for reading the target block to the highest priority level, or to increase the priority level of the read strategy suitable for reading the target block by a preset level, such as one or two levels, but is not limited thereto.
[0038] After increasing the priority level of the read strategy suitable for reading the target block, when reading another target block again, the process may return to step S602 and continue to use the read strategies in sequence according to the priorities of the plurality of read strategies to read the target block until a read strategy suitable for reading the target block is found. For example, the process may start from the read strategy used last time and try to use a plurality of read strategies in sequence to read the target block until a read strategy suitable for reading the target block is found.
[0039] In summary, when reading the storage data of the target block of the flash memory, the embodiment of the present invention uses different read strategies in sequence according to the priority of the read strategy to read the target block until a read strategy suitable for reading the target block is found, and the priority level of the read strategy suitable for reading the target block is increased, thereby effectively improving the reading efficiency of the flash memory.
[0040] Although the present invention has been disclosed as above by way of embodiments, it is not intended to limit the present invention. Any person skilled in the art may make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the claims.
Claims
1. A flash memory reading device, characterized in that: include: A storage circuit storing a plurality of read strategies; as well as The read control circuit is coupled to the storage circuit. When reading the storage data of the target block of the flash memory, the read control circuit uses the multiple read strategies in sequence according to the priorities of the multiple read strategies to read the target block until a read strategy suitable for reading the target block is found, and the priority level of the read strategy suitable for reading the target block is increased.
2. The flash memory reading device according to claim 1, characterized in that: The read control circuit increases the priority of the read strategy suitable for reading the target block to the highest priority level.
3. The flash memory reading device according to claim 1, characterized in that: The read control circuit increases the priority level of the read strategy suitable for reading the target block to a preset level.
4. The flash memory reading device according to claim 1, characterized in that: Each read strategy includes a threshold voltage table, and each threshold voltage table includes at least one threshold voltage for determining storage data of a flash memory cell.
5. The flash memory reading device according to claim 1, characterized in that: When reading the stored data of the target block of the flash memory, the read control circuit uses the plurality of read strategies in sequence starting from the last used read strategy to read the target block.
6. A flash memory reading method of a flash memory reading device, characterized in that: include: When reading the stored data of the target block of the flash memory, the target block is read using the multiple read strategies in sequence according to the priorities of the multiple read strategies until a read strategy suitable for reading the target block is found; as well as The priority level of the read strategy suitable for reading the target block is increased.
7. The flash memory reading method of the flash memory reading device according to claim 6, characterized in that: include: The priority of the read strategy suitable for reading the target block is increased to the highest priority level.
8. The flash memory reading method of the flash memory reading device according to claim 6, characterized in that: include: The priority level of the read strategy suitable for reading the target block is increased to a preset level.
9. The flash memory reading method of the flash memory reading device according to claim 6, characterized in that: Each read strategy includes a threshold voltage table, and each threshold voltage table includes at least one threshold voltage for determining storage data of a flash memory cell.
10. The flash memory reading method of the flash memory reading device according to claim 6, characterized in that: include: When reading the stored data of the target block of the flash memory, the target block is read using the plurality of read strategies in sequence starting from the last used read strategy.
