Patent ID: 8954648
Filing Date: 2015-02-10
Classification: G06F,Y02D

Abstract:
1. An operating method for a memory device, wherein the memory device comprises a controller, a memory, and a flash memory, comprising: dividing an address mapping table stored in the memory to a plurality of mapping table units based on logical addresses; updating relationships between the logical addresses and physical addresses stored in the mapping table units; determining whether data access performed by the controller to the flash memory fulfills the conditions of a first specific requirement; when the data access fulfills the conditions of the first requirement, selecting a target mapping table unit from the mapping table units, and storing the target mapping table unit and a corresponding time stamp as a mapping table unit data to the flash memory; recording information about an operation performed by the controller on the address mapping table as an operation record in an operation record register of the memory; when the data access performed by the controller to the flash memory fulfills the conditions of a second requirement, storing the operation record and a corresponding time stamp to the flash memory; when the power of the memory device is switched on, reading a plurality of latest mapping table unit data corresponding to a plurality of relatively latest time stamps from the flash memory; reading a plurality of latest operation records corresponding to the plurality of relatively latest time stamps from the flash memory; updating the plurality of latest mapping table unit data according to the plurality of latest operation records to obtain a plurality of updated mapping table units; combining the updated mapping table units together to obtain an updated address mapping table; when the power of the memory device is switched on, and an absolutely latest operation record corresponding to an absolutely latest time stamp cannot be read out from the flash memory, reading a physical address of a target free block corresponding to the absolutely latest time stamp from the flash memory, wherein the absolutely latest time stamp is the latest one among the plurality of relatively latest time stamps; reading a mapping relationship between the physical addresses and logical addresses from the target free block; and rebuilding the absolutely latest operation record according to the mapping relationship between the physical addresses and logical addresses read from the target free block.