发明名称 Flash storage device and data writing method thereof
摘要 A flash storage device comprises a flash memory and a controller. The flash memory comprises a plurality of blocks comprising a plurality of ordinary pages and a plurality of reserved pages. The controller receives a current write command and write data from a host, determines a mother block and an FAT block corresponding to the write command, divides data of the mother block and data of the FAT block into a plurality of original data segments and a plurality of updating data segments, integrates the original data segments with the updating data segments to obtain integrated data segments, writes the integrated data segments to an integrated block respectively in a plurality of processing periods of a plurality of subsequent write commands, and writes the subsequent write data to the reserved pages of a plurality of subsequent blocks.
申请公布号 US8966159(B2) 申请公布日期 2015.02.24
申请号 US201113337970 申请日期 2011.12.27
申请人 Silicon Motion, Inc. 发明人 Ou Hsu-Ping
分类号 G06F12/00;G06F12/02;G11C16/06 主分类号 G06F12/00
代理机构 Wang Law Firm, Inc. 代理人 Wang Law Firm, Inc. ;Wang Li K.;Hsu Stephen
主权项 1. A flash storage device, coupled to a host, comprising: a flash memory, comprising a plurality of blocks, wherein each of the blocks comprises a plurality of ordinary pages and a plurality of reserved pages; and a controller, receiving a current write command and write data from the host, determining a mother block corresponding to the write command, and determining whether data integration of the mother block and a file allocation table (FAT) block is needed in execution of the current write command, and when the data integration is needed, dividing data of the mother block and data of the FAT block into a plurality of original groups and a plurality of updating groups, each of the original groups has a plurality of pages arranged to constitute an original data segment, each of the updating groups has a plurality of pages arranged to constitute a updating data segment, integrating the original data segments with the updating data segments to obtain integrated data segments, receiving a plurality of subsequent write commands and subsequent write data from the host, writing the integrated data segments to an integrated block respectively in a plurality of processing periods of the subsequent write commands, and writing the subsequent write data to the reserved pages of a plurality of subsequent blocks corresponding to the subsequent write commands during the processing periods of the subsequent write commands, wherein the controller records numbers of the reserved pages used by the blocks in a reserved page usage table, wherein when the controller is in an idle state, the controller searches the reserved page usage table for a target block having the highest number of the used reserved pages, and performs data integration of the reserved pages and the ordinary pages of the target block.
地址 Jhubei TW
您可能感兴趣的专利