Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for updating mapping table data based on nand flash

A data update and mapping table technology, applied in the memory field, can solve the problems of untimely update of mapping table data and inconsistency of user data, so as to improve update efficiency, ensure consistency, and avoid other errors

Active Publication Date: 2021-04-02
GIGADEVICE SEMICON (BEIJING) INC
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method and device for updating mapping table data based on NAND flash, so as to solve the problem in the prior art that the updating of mapping table data is not timely due to device power failure or other failures and thus inconsistent with user data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for updating mapping table data based on nand flash
  • Method and device for updating mapping table data based on nand flash

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] figure 1 It is a flow chart of a NAND flash-based mapping table data update method in Embodiment 1 of the present invention. This embodiment is applicable to the data update operation of NAND flash, and is applied to a NAND flash storage device. The storage device includes data blocks and The table block stores the mapping table data in the table block, and the method can be executed by a device for updating the mapping table data based on NAND flash, and the device can be configured in the firmware of the storage device.

[0023] The NAND flash-based mapping table data update method of Embodiment 1 of the present invention The method specifically includes:

[0024] S110. When the update of the mapping table data starts, an update start flag is created, and the update start flag is saved to an update start position of the mapping table data in the table block.

[0025] The table data in the table block includes mapping table data, and the mapping table data is a table ...

Embodiment 2

[0038] figure 2 It is a structural schematic diagram of a NAND flash-based mapping table data update device in Embodiment 2 of the present invention, which is applied to a NAND flash storage device, and the storage device includes a data block and a table block, and the table block stores mapping table data. like figure 2 As shown, the device includes a start flag establishment module 210, an end flag establishment module 220, an end flag search module 230 and a data update module 240, wherein,

[0039] The start flag establishment module 210 is used to set up the update start flag when the mapping table data update starts, and save the update start flag to the update start position of the mapping table data in the table block;

[0040] An end flag establishment module 220, configured to establish an update end flag when the update of the mapping table data ends, and save the update end flag to the update end position of the mapping table data in the table block;

[0041] ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the invention disclose a method and a device for updating mapping table data based on NAND flash. The method for updating mapping table data based on NAND flash comprises: establishingan updating start flag and an updating end flag, after a storage device is restarted, according to presence or absence of the updating end flag, completing related operation of data update. Through establishing the updating start flag and the updating end flag in a NAND flash mapping table data updating process, after update is interrupted, just the updating start flag and the updating end flag need to be searched, and whether update operation is completed can be determined, so as to complete the update operation in time. The method and the device solve a problem in the prior art that user data is not consistent since mapping table data update is not in time caused by device power failure or other faults. The method and the device improve update efficiency, and ensure consistence of user data and table data, so as to prevent other errors caused by inconsistence of the data.

Description

technical field [0001] The embodiment of the present invention relates to memory technology, and in particular to a method and device for updating mapping table data based on NAND flash. Background technique [0002] NAND flash is a kind of Flash memory, which is a non-volatile storage device. [0003] The NAND flash storage device contains many storage units, and each storage unit contains many data blocks for storing user data. In addition, the storage device also needs to store management data that manages these data blocks and user data, such as mapping tables and index tables. , data block status, data block erasure times and other data, wherein the mapping table is a table that records the mapping relationship between logical addresses and physical addresses of user data. When used, these management data can be called table data, and the data blocks storing these table data are called table blocks. [0004] In order to ensure the correctness of the data read by the s...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/06
CPCG06F3/0619G06F3/064G06F3/0679
Inventor 陈诚
Owner GIGADEVICE SEMICON (BEIJING) INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products