System and method for accessing data on flash memory

A technology for accessing data and flash memory, applied in the field of digital information storage, it can solve the problems of complex and large, incomplete functions, etc., and achieve the effect of simple principle

Inactive Publication Date: 2008-02-20
NANJING ZHONGXING XIN SOFTWARE CO LTD
View PDF6 Cites 47 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] The technical problem to be solved by the present invention is to provide a system and method for accessing data on flash memory, which can overcome the disadvantages of complex and bulky implementation of data access on flash memory or incomplete functions in the prior art. The system provided by the present invention The method is simple and easy to implement, and it is generally applicable to NOR FLASH and NAND FLASH; and it also has the functions of wear balance and power-off protection

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
  • System and method for accessing data on flash memory
  • System and method for accessing data on flash memory
  • System and method for accessing data on flash memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0128] (a) One is to search for the boundary where the wear count of two adjacent storage blocks becomes smaller. When an empty block is encountered during the search process, it is processed according to the above-mentioned empty block processing method, such as the following sub-steps:

[0129] (1) Search backwards from the first storage block, and locate the boundary where the wear count of the two adjacent blocks before and after becomes smaller, then the block in front of the boundary is the tail block, the latter block is the head block, and the tail block is the tail block. The wear count of the block is used as the system wear count;

[0130] (2) If an empty block is encountered during the search process of sub-step (1) (the wear count of the empty block will be a special value, such as 0xFF), the empty block is the tail block, and the latter block (block wrapping may occur) ) is the head block, if the empty block is the last storage block, directly use the wear count ...

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

The utility model relates to a method for accessing data from flash memories, which comprises the following steps: a) dividing flash memories into a plurality of segments, each segment stores the wear counting of the erasing times of the segment into a byte on the first page; the segments are subdivided into pages, and each page stores the occupation mark of the page into the initial byte; providing a effective index through checking for each access data copy stored sequentially to memorize the page address and length information of the copies; b) conducting initialization, determining the location of head and the tail segments according to the wear counting of segments, and determining the system wear counting according to the wear counting of the head and the tail segments; c) writing data into and reading data from the flash memory, and distributing the blank page according to the conditions of tail segment, and writing the copy and the index together into the page; or finding effective index according to the location of the tail segment to read the copy. The utility model is suitable for NOR FLASH and NAND FLASH in which the wear balance is achieved through wear counting, and the power failure protection is realized by checking copy index.

Description

technical field [0001] The invention relates to the field of digital information storage, in particular to a system and method for accessing data on a flash memory. Background technique [0002] With the development of information technology, there are more and more smart devices with built-in processors, and the advancement of semiconductor technology has made the price of flash memory (FLASH) continue to decrease, and it has become a natural trend for smart devices to use FLASH to store data. [0003] The current FLASH is mainly divided into NOR FLASH and NAND FLASH, both of which are erased in blocks, but NOR FLASH can be written in bytes, and the data in it can be read directly; NAND FLASH Then a block is divided into multiple pages and written in units of pages, and any access to the data must go through a dedicated interface. Due to these characteristics of FLASH, storing data on it requires targeted design. [0004] The erasing life of FLASH blocks is limited. It is...

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 Applications(China)
IPC IPC(8): G06F12/06
Inventor 朱晓斌侯建文廖粤东
Owner NANJING ZHONGXING XIN SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products