×

Data storage device and data maintenance method thereof

  • US 9,940,058 B2
  • Filed: 10/07/2016
  • Issued: 04/10/2018
  • Est. Priority Date: 02/17/2016
  • Status: Active Grant
First Claim
Patent Images

1. A data storage device, comprising:

  • a flash memory, having a plurality of single-level cell (SLC)-spare blocks, a plurality of triple-level cell (TLC)-data blocks, and a plurality of TLC-spare blocks; and

    a controller, equally distributing the TLC-data blocks into three regions having the same number of TLC-data blocks, and receiving a prewrite data sector and a logic address of the prewrite data sector, and obtaining a first sub-prewrite data sector, a second sub-prewrite data sector and a third sub-prewrite data sector according to the prewrite data sector and the logic address, wherein in a first stage, the controller further;

    determining a first TLC-data block corresponding to the logic address of the prewrite data sector according to the logic address, defining the region that contains the first TLC-data block as a first region;

    determining whether the first TLC-data block has valid data, selecting a TLC-data block with the lowest erase count from the first region to serve as a new first TLC-data block when the first TLC-data block has valid data;

    selecting a second TLC-data block and a third TLC-data block from the regions other than the first region according to the new first TLC-data block;

    respectively writing the first sub-prewrite data sector, the second sub-prewrite data sector and the third sub-prewrite data sector into the new first TLC-data block, the second TLC-data block and the third TLC-data block by a SLC storage mode; and

    mapping the first new TLC-data block, the second TLC-data block, the third TLC-data block to the logic address.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×