Data storage device and data access-method
AssigneeSilicon Motion, Inc.
InventorsLi-Shuo Hsiao, Chang-Kai Cheng
Life of this patent
Estimating the term…
Abstract
The present invention provides a data-storage device including a flash memory and a controller. The flash memory includes a plurality of blocks, and each of the blocks has a plurality of pages, wherein each of the pages has a plurality of sub-pages and a plurality of spare areas, each of the spare areas is arranged to store a spare data sector, and the spare data sector respectively corresponds to the sub-pages. The controller is arranged to access the sub-pages according to the spare data sector.
Claims10
A data-storage device, comprising:
- a flash memory, comprising a plurality of blocks, and each of the blocks has a plurality of pages, wherein each of the pages has a plurality of sub-pages and a plurality of spare areas, each of the spare areas is arranged to store a spare data sector, and each of the spare data sectors corresponds to one of the sub-pages;
- and
- a controller, arranged to access the sub-pages according to the spare data sectors,
- wherein the minimum access unit of the flash memory is the sub-page, each of the spare data sectors comprises a metadata arranged to record the information of the corresponding sub-page and an ECC parity of the metadata, and each of the sub-pages comprises a data area and an ECC parity of the data area, wherein the metadata includes properties of data in the blocks, wherein the properties include a mapping relationship of the physical sub-pages and the logical sub-pages,
- wherein when the controller receives an access command from a host to write a first sector of a first page of the plurality of pages and the first sector constitutes a sub-page, the controller write sector data indicated by the access command directly into the sub-page indicated by the access command.
A data-accessing method, applied to a data-storage device, wherein the data-storage device comprises a flash memory, the flash memory comprises a plurality of blocks, each of the blocks comprises a plurality of pages, each of the pages comprises a plurality of sub-pages, and the data-accessing method comprises:
- receiving an access command arranged to access a first sub-page of the sub-pages, wherein each of the pages further comprises a plurality of spare areas, each of the spare areas is arranged to store a spare data sector, and each of the spare data sectors corresponds to one of the sub-pages;
- and
- accessing the first sub-page according to the spare data sector corresponding to the first sub-page, wherein the minimum access unit of the flash memory is the sub-page, each of the spare data sectors comprises a metadata arranged to record the information of the corresponding sub-page and an ECC parity of the metadata, and each of the sub-pages comprises a data area and an ECC parity of the data area, wherein the metadata includes properties of data in the blocks, wherein the properties include a mapping relationship of the physical sub-pages and the logical sub-pages;
- and
- when an access command is received from a host to write a first sector of a first page of the plurality of pages and the first sector constitutes a sub-page, writing sector data indicated by the access command directly into the sub-page indicated by the access command.
Dependencies are inferred from the claim text.