Method and system for flash memory write-in under sector mode

A sector and flash memory technology, applied in the field of flash memory management, it can solve the problems of multiple programming, reduced flash write speed, affecting flash read and write speed, etc., to achieve the effect of improving read and write speed

Active Publication Date: 2012-07-04
ARKMICRO TECH
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the prior art, the sector management mode can also be used to manage the Flash, which can further expand the availability of the flash memory, but both the page management mode and the sector management mode will cause the write speed of the flash memory to be reduced. It is currently the minimum management mode for Flash operations, but because the quality of each block and sector is different, the quality of the sectors of multiple blocks is intricate, and the operation of the computer on Flash is based on its own file system. Therefore, the address it writes will be different each time, and the operation of Flash cannot program multiple times in a page, which will cause the operation of Flash this time to fall into a certain sector of a certain page. In the next operation, the remaining sectors cannot be operated, and it must jump to the page boundary, so there must be some sectors in the middle that have not written data, and the data will not be continuously stored in the flash memory, so it must be Read the discontinuous data from the previous block, and then write it continuously to another empty block to complete a whole block writing, and in this case, due to the addition of a whole block read and a whole block write, The speed of Flash writing is reduced, which affects the reading and writing speed of Flash.

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 system for flash memory write-in under sector mode
  • Method and system for flash memory write-in under sector mode
  • Method and system for flash memory write-in under sector mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] After determining the distribution map of good and bad sectors, the following describes the operation process of this sector.

[0068] Step S101: Obtain the logical address and logical length of the data written to Flash in this operation, and find the logical block of this operation;

[0069] Step S102: Find the cache block corresponding to the logical block of this operation from the mapping table; find the logical block and the current corresponding cache from the mapping table according to the calculated block number of the logical block that needs to read and write data in this operation block; the corresponding relationship mentioned here means that in the logical address space, there is not a one-to-one correspondence between cache blocks and logical blocks, and one cache block can correspond to multiple logical blocks.

[0070] Step S103: Find a temporary storage block corresponding to the cache block from the mapping table; the temporary storage block is used t...

Embodiment 2

[0100] In this specific embodiment, the erasure of the temporary storage block is not performed every time, but is erased after the temporary storage block is full, such as Figure 6 As shown, it specifically includes the following steps:

[0101] Step S201 , step S202 , and step S203 are respectively the same as step S101 , step S102 , and step S103 in Embodiment 1, and descriptions thereof will not be repeated here. The difference between this embodiment and Embodiment 1 is that the step of writing the data to be written in this operation to the found cache block and the temporary storage block corresponding to the cache block includes:

[0102] Step S204: judging whether the last operation writes data into the cache block;

[0103] Step S205: If the last operation has written data into the cache block, read the last written data from the temporary storage block, and write the data into the corresponding cache block;

[0104] Step S206: After judging that the last operatio...

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 embodiment of the invention discloses a method for flash memory write-in under a sector mode, comprising the following steps of: judging whether data exist in a temporary storage block after finding a logical block, a cache block and the temporary storage block of current operation, and if the data exist in the temporary storage block, reading the data and writing the data into the cache block; then, writing the data of the operation into the cache block until the remained data are not enough to be written full of the length of a page; and then, temporarily storing the data with the remained length on the temporary block to end the operation. The invention also provides a system for flash memory write-in under a sector mode according to the method for flash memory write-in. By using the method and device provided by the invention, frequent whole-block reading and writing can be avoided, and the reading and writing speeds of Flash are greatly increased.

Description

technical field [0001] The invention relates to the field of flash memory management, in particular to a sector-based flash memory management method and device. Background technique [0002] During the production and use of flash memory, due to various reasons, some bad chips will appear, but not all blocks or pages of these bad chips are damaged. In the block-based management method, as long as the bad bits in the block If the number exceeds the limit value, the block is discarded. This method leads to a relatively low utilization rate of the flash memory, and the continuous increase of the capacity of the flash memory block also causes great waste in the way of discarding the entire block. [0003] In the prior art, the management method of the flash memory is changed to take the page as the unit. First, the flash memory is scanned to determine good pages and bad pages, and a bad page table is formed, and then the bad page information in the bad page table is removed, and...

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): G06F3/06G06F12/06
Inventor 叶欣李汉光文中海廖新平常军锋石岭
Owner ARKMICRO TECH
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