Data storage device and flash memory control method
First Claim
1. A data storage device, comprising:
- a flash memory, divided into a plurality of blocks with each block comprising a plurality of physical pages; and
a control unit, coupling the flash memory to a host and comprising a microcontroller and a random access memory, wherein;
the microcontroller maintains a plurality of logical-to-physical address mapping tables and a link table on the flash memory to record mapping information between the host and the flash memory, allocates the blocks of the flash memory to provide a system block, and records a link table indicator in the system block to indicate a position of the link table;
the link table indicates positions of the plurality of logical-to-physical address mapping tables, each entry in the link table corresponds to one logical-to-physical address mapping table; and
wherein the microcontroller erases user data of logical addresses corresponding to N logical-to-physical address mapping tables by downloading the link table from the flash memory to the random access memory, invalidating N entries corresponding to the N logical-to-physical address mapping tables in the link table on the random access memory, uploading the link table with the N entries of invalid data back to the flash memory, and updating the system block with an updated link table indicator, where N is an integer.
1 Assignment
0 Petitions
Accused Products
Abstract
A data storage device and a flash memory control method with high erasing efficiency are disclosed. A microcontroller is configured to maintain a plurality of logical-to-physical address mapping tables and a link table on a flash memory to record mapping information between a host and the flash memory. The link table indicates positions of the plurality of logical-to-physical address mapping tables, and each entry in the link table corresponds to one logical-to-physical address mapping table. When erasing user data of logical addresses corresponding to N logical-to-physical address mapping tables, the microcontroller is configured to invalidate N entries corresponding to the N logical-to-physical address mapping tables in the link table, where N is an integer.
52 Citations
8 Claims
-
1. A data storage device, comprising:
-
a flash memory, divided into a plurality of blocks with each block comprising a plurality of physical pages; and a control unit, coupling the flash memory to a host and comprising a microcontroller and a random access memory, wherein; the microcontroller maintains a plurality of logical-to-physical address mapping tables and a link table on the flash memory to record mapping information between the host and the flash memory, allocates the blocks of the flash memory to provide a system block, and records a link table indicator in the system block to indicate a position of the link table; the link table indicates positions of the plurality of logical-to-physical address mapping tables, each entry in the link table corresponds to one logical-to-physical address mapping table; and wherein the microcontroller erases user data of logical addresses corresponding to N logical-to-physical address mapping tables by downloading the link table from the flash memory to the random access memory, invalidating N entries corresponding to the N logical-to-physical address mapping tables in the link table on the random access memory, uploading the link table with the N entries of invalid data back to the flash memory, and updating the system block with an updated link table indicator, where N is an integer. - View Dependent Claims (2, 3, 4)
-
-
5. A flash memory control method, comprising:
-
maintaining a plurality of logical-to-physical address mapping tables and a link table on a flash memory to record mapping information between a host and the flash memory, wherein the flash memory provides a storage space divided into a plurality of blocks with each block comprising a plurality of pages, the link table indicates positions of the plurality of logical-to-physical address mapping tables, each entry in the link table corresponds to one logical-to-physical address mapping table, allocating the blocks of the flash memory to provide a system block; recording a link table indicator in the system block to indicate a position of the link table; erasing user data of logical addresses corresponding to N logical-to-physical address mapping tables by downloading the link table from the flash memory to a random access memory, invalidating N entries corresponding to the N logical-to-physical address mapping tables in the link table on the random access memory, uploading the link table with the N entries of invalid data back to the flash memory, and updating the system block with an updated link table indicator, where N is an integer. - View Dependent Claims (6, 7, 8)
-
Specification