US20070226452A1 - Data management for a flash storage device - Google Patents
Data management for a flash storage device Download PDFInfo
- Publication number
- US20070226452A1 US20070226452A1 US11/527,040 US52704006A US2007226452A1 US 20070226452 A1 US20070226452 A1 US 20070226452A1 US 52704006 A US52704006 A US 52704006A US 2007226452 A1 US2007226452 A1 US 2007226452A1
- Authority
- US
- United States
- Prior art keywords
- block
- virtual
- sectors
- data
- physical
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/0223—User address space allocation, e.g. contiguous or non contiguous base addressing
- G06F12/023—Free address space management
- G06F12/0238—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory
- G06F12/0246—Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory in block erasable memory, e.g. flash memory
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2212/00—Indexing scheme relating to accessing, addressing or allocation within memory systems or architectures
- G06F2212/72—Details relating to flash memory management
- G06F2212/7203—Temporary buffering, e.g. using volatile buffer or dedicated buffer blocks
Definitions
- This invention relates to a method of about data storage for a flash memory apparatus, more particularly to a method of about data access for a flash memory apparatus having a screen virtual sector table for each block to record the position relationship between the logic sector number and the virtual sector number.
- a flash memory is known to have characters of lower power consumption, fast data access rate, and can endure vibration and/or movement and hence is a kind of data storing media with highly stability and security.
- the way of data programmed or erased is generally based on block by block. Once, the data are stored in the flash memory, no electrical power is demanded to preserve the data for over 10 years.
- This advantage makes other conventional portable stored device inferior.
- the hard disk driver or soft disk driver all require a reading head to read or write the data on the specific position of the optical or magnetic media disk rotating and bring by a stepping motor. In general, these types of data storage devices are not secure and inferior to the portable due to the vibration.
- a data storage apparatus without stepping motor such as flash memory has a sufficient competitiveness to become a massive hit in the present and future.
- the electrical merchandise such as DSC (digital still camera), mp3 player, hand-held computer or PDA (personal digital assistant), cellular phone, flash memory is a one of most critical members.
- each block may contain 32, 64, 128 or more pages or sectors and each page consists of 1 or 4 virtual sector(s) in accordance the memory specification.
- Each sector typically, is constituted 512.times.8 cells and thus can store 512 bytes.
- the virtual sector herein is distinct from the physical sector. Physical sectors may contain defect(s) in some bocks and result in data therein unstable. Hence, while formatting the flash memory, those blocks are unusable and will be marked.
- the virtual sectors are those sectors exclude sectors in the bad blocks. The virtual sectors are then renumbered by control chip.
- the basic unit of data access for a host is not a block but a logic sector. Therefore, the host communicating with the flash memory apparatus demands a conversion table of logic sectors to virtual sectors.
- Block number quotient of (logic sector number/64 pages*4 virtual sectors)virtual sector number remainder of (logic sector number/64 pages*4 virtual sectors)
- the flash memory can only be used after formatting. It is carried out in a manner of block by block electrically erasing electrical charges in the floating gate.
- the data writing or programming is by storing the charges into predetermined memory cells of the target block. Therefore, to satisfy the protocol of the conversion table of logic sectors to virtual sectors, the data stored in the target block has to move or copy frequently to stratify the protocol the conversion table. It is not only detrimental to the lifetime of the flash memory but also disadvantage to the writing efficiency.
- An object of the present is to introduce concepts of screen table and virtual block to physical block table (V2P table).
- the screen virtual sector table keeps tracing the virtual sector number versus logic sector number and the V2P table having FSP (free sector point) to record the number of free pages make the host or control chipset know the status of available pages in the target block.
- FSP free sector point
- the data programming is no longer based on block but based on page or virtual sector.
- the data in the buffer is written into the target block not from a target page in accordance with the conversion table but from a lowest page if the target block is free. In another situation, the data in the buffer can still be written into a target block if the target pages are available.
- the present invention discloses a data accessed management system for a flash memory device. Especially for those group of data in a unit of called logic sector are sent by a host that desires to be programmed into physical memories of the flash memory device.
- the data accessed management system comprises: (1) a number of virtual block cells; (2) a buffer; (3) a plurality of SVST (screen virtual sector table); and (4) a plurality of V2P (virtual block to physical block).
- the buffer is those memories belonged to the host or RAM in the controller of the flash device.
- the conversion relations between the logic sectors are sent by a host and the destinations of data stored are recorded in a SVST of corresponding virtual block.
- the V2P is memories of 16 bit cells with 9 bits recorded the virtual block number of the V2P belonged corresponding to what the physical block number is, 6 bits provides as free sector point (FSP) recording, and 1 bit for physical condition of the physical block recording.
- FSP free sector point
- the data in the buffer are written by data management system from the sector number 0 of the destination block if the destination block is free.
- the FSP and SVST are updating too.
- the data before the destination sectors are copied to a temperate block and then data in the buffer are programmed by the data management system into the destination sectors of the temperate block, and then the data post the destination sectors are copied to the corresponding sectors.
- FIG. 1 illustrates a format of 16 bits of V2P according to the present invention.
- FIG. 2A shows data written into the virtual sectors in accordance with the order of the data received not the order of the logic sector number.
- FIG. 2B shows a SVST that provides a conversion table between the logic sector number and the virtual sector number.
- FIG. 3 to FIG. 6 shows flow charts for varied situations of data being programmed.
- the operation no matter erasing or writing to the flash memory apparatus is basic on a unit of block.
- the target memory block (or called destination block) must be free.
- the flash memory apparatus in accordance with the present invention can overcome forgoing constraints.
- the data can be written into the destination block in order of the lowest page number to the higher page number no matter the lowest page number is the corresponding page of the logic sectors or not.
- the data can still be written into target pages of data free of the destination block even the target block had data therein.
- each block has a V2P table.
- the V2P table is a description table of 16 bits. Form bit of the 0th to the 8.sup.th depicted the position relationship between the virtual block and physical block. From bit of the 9.sup.th bit to the Eth (Hex) bit, 6 bits in total depicted the usage status of the current block. These 6 bits are called FSP (free sector point) to indicate the usage status of the block.
- FSP free sector point
- FSP free sector point
- SVST screen virtual sector table
- the SVST is a table recorded in the static random access memory (SRAM), which dynamically records the position relationship between the logic sector number and the virtual sector number while the data in the buffer are written into the virtual sectors.
- FIG. 2A and FIG. 2B show an example.
- FIG. 2A illustrating the consecutive virtual sector numbers from 0 to 8 having individual contents to index the logic sector number in each.
- FIG. 2B is a SVST.
- host or control chipset can find easily the corresponding destination of the logic sector number. For instance, referring to FIG. 2B , the content of the address 0 is 2 means that the 0th logic sector is positioned at the 2.sup.nd virtual sector, please see FIG. 2A .
- the content of the address 1 is 5 means that the 1.sup.st logic sector is positioned at the 5.sup.th virtual sector.
- the content of the address 2 is FF means that the 2.sup.nd logic sector is not written into the flash memory.
- the content of the address 3 is 8 means that the 3.sup.rd logic sector is positioned at the 8.sup.th virtual sector. Worthwhile, the contents of 1st, the 3.sup.rd, and the 8.sup.th of the virtual sectors shows the same data, “3” means only the 3.sup.rd logic sector is recorded into the 8.sup.th virtual sector. In the other words, the SVST traces the last logic sector position only, which is stored in the virtual sector 8 .
- the FSP depicted by 6 bits is for the situation of a block having 64 pages or under. It does not intend to limit the claim scope. Therefore, if a block content 128 pages, 7 bits are demanded to depict the FSP.
- FSP in V2P table and the SVST in accordance with the present invention can provide minimum data movement, extend the lifetime of the flash memory, and provide good writing efficiency without changing the conventional data storing protocol between the host and the flash memory. To illustrate, following flow charts will provided.
- the buffer is those memories belonged to the host or RAM in the controller of the flash device.
- the typical situations include: (1) the destination block is free; (2) the destination block of both first record N and second record M is the same and the destination block is free; (3) the destination block contains some data already, but the capacity of the destination sectors of the destination block are enough to store the first record; (4) the destination block contains some data already and the capacity of the destination sectors of the destination block are enough to store both records N and M; the starting destination sectors N′ and M′ are assumed, respectively, for record N and M herein. (5) the destination block contains some data already, but the capacity of the destination sectors of the destination block are enough to store the first record N and second record M. However, the position of the record M is before the record N; (6) the destination block contains some data already and the capacity of the destination sectors of the destination block are not enough to store the first record.
- step 410 the step is to determine if the destination sector number begins from the sector number 0 of the destination block B or not. If it is true, proceeding to the step 420 .
- the position relationship of the logical sector numbers to virtual sector numbers are recorded in the SVST.
- the step 430 is to determine if the buffer contains a second record M. If it is false then ending the procedure, see the step 431 . If it is true, then proceeding to the step 440 to determine if the destination block of the second record M is the same block as record N. If the result of the step 440 is true, proceeding to the step 450 to determine if the destination sector of record M is just follow the ending of the record N, i.e. beginning from sector n. If the result of the step 450 is true, proceeding to the step 460 . In the step 460 , the record M is written into the virtual sectors and updates the FSP according to the occupations of the virtual sectors in this block.
- step 441 the block B data written is ended and finds another free block C to write the second record M.
- the procedures for the second record M written is the same as shown before for the first record N.
- step 410 as the result of the step 410 is false. It means that the destination sector for the first record N is not from the virtual sector number 0 .
- the step 423 is to determine if a second record M is in buffer. If it is false, then ending the programming. If the result of the step 423 is true.
- Another decision step 424 is proceeding. In step 424 , it determines if the destination block of the second record M the same as the first record N.
- step 427 search another free block C, as is shown in step 427 , and then programs the second record M to the virtual sector number 0 of the block C, as is shown in step 428 .
- step 424 the second record M is written and begins from the virtual sector number consecutive the ending virtual sector number of the first record N, please see the step 426 .
- the SVST and FSP are updated once while data are programmed into the flash memory apparatus in accordance with the present invention.
- the destination block A contains data already but the destination sections of the block A are free for storing the data of the first record N.
- the starting destination sector of the record N is N′. Please see the flow chart in FIG. 4 .
- step 520 finding a free block B and then go to the step 530 : copy the contains from the virtual sector number 0 to the virtual sector number N′ ⁇ 1 of the block A to the block B as is seen in step 530 .
- step 540 the data of the first record N in the buffer is then written into block B from the virtual sector number N′ to sector N′+n ⁇ 1.
- step 550 the block A is marked as a replaced block.
- step 560 the remnant initiating from the virtue sector number N′+n of the block A are copied to the same virtual sectors numbers of the block B.
- step 570 the block B is then marked as block A. The contains of the original block A are erased thereafter.
- the destination block A contains data already and the destination sections of the block A are available for storing the data of the first record N and the second record M and the logic sector number of the record M is post the record N.
- the programming procedures for the first record N are the same as aforementioned and thus the detailed descriptions before step 550 are skipped. Only the procedures for the second record M are illustrated. Please see the flow chart in FIG. 5 .
- step 610 the contents in the sectors from the virtual sector number N′+n to the virtual sector number M′ ⁇ 1 of the block A is copied to the corresponding virtual sectors of the block B.
- step 620 the data of the record M in the buffer are then written into the destination sectors of the block B and the remnant of the block A from the virtual sector number M′+m are then copied to the corresponding virtual sectors block B.
- the resultant block B thus has all of the data in the block A and with additional records M and N.
- step 630 the data in the original block A are erased and the block B is marked as block A.
- the destination block A contains data already but the destination sections therein are available for storing the data of the first record N and the second record M but the logic sector number of the record M is prior to the record N.
- the programming procedures for the first record N are the same as aforementioned and thus the detailed descriptions are skipped. Only the procedures for the second record M are illustrated. Please see the flow chart in FIG. 6 .
- a free block C is found.
- the data of the block B from the sector number 0 to the sector number M′ ⁇ 1 are copied to the corresponding sectors of the block C.
- the data of the record M in the buffer are copied to the block C from the virtual sector number M′ for m sectors in total.
- step 740 the data in the block B from the virtual sector number M′+m to N′+n ⁇ 1 are copied to the corresponding sections of the block C.
- the block C is thus served as a duplicated of block A.
- the block C furthermore has two records N and M.
- step 760 the contents of the blocks A and B are erased.
- the block C is then marked as block A.
- the destination block A contains data already and the destination sections in the block A are not available for the first record N. Consequently, finding a free block is demanded.
- the SVST is necessary for host accesses the data of the flash memory device.
- the SVST provides the corresponding relations of the virtual sector numbers of the destination block versus the logic sector numbers. If the FSP.noteq. 0 , the host can read the data in the flash memory device the same as those in the optical or magnetic disk.
- the value of FSP provides the usage information of the block.
- the data filled into the destination block flash memory can be from the lowest page number no matter the lowest page number is the destination or not if the destination's block is free.
- the data in the buffer can still be written into the destination's block having data already if and only if the destination's sectors are free. Even the block is not complete free.
- the data accessed from the flash memory according to the present invention are efficient.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A flash storage device for transferring data to and from a host. The flash storage uses a controller to data transfer in the flash storage device, a buffer to temporarily store data for transfer between the host and the flash storage device, a first table for maintaining storage information relating to the flash storage; and a second table for maintaining information relating to the association of virtual sectors to the logical sectors, wherein the controller transfers data between the host and the flash storage and updates the first table and the second table to reflect the transfer of the data. The first table and the second table contain include addressing and status information for a more efficient and improved data transfer.
Description
- This application is a continuation of U.S. patent application Ser. No. 10/863,210 filed Jun. 9, 2004, entitled, “Method of Efficient Data Management with Flash Storage System”, which is incorporated herein by reference.
- This invention relates to a method of about data storage for a flash memory apparatus, more particularly to a method of about data access for a flash memory apparatus having a screen virtual sector table for each block to record the position relationship between the logic sector number and the virtual sector number.
- A flash memory is known to have characters of lower power consumption, fast data access rate, and can endure vibration and/or movement and hence is a kind of data storing media with highly stability and security. For the flash memory, the way of data programmed or erased is generally based on block by block. Once, the data are stored in the flash memory, no electrical power is demanded to preserve the data for over 10 years. This advantage makes other conventional portable stored device inferior. For instance, the hard disk driver or soft disk driver all require a reading head to read or write the data on the specific position of the optical or magnetic media disk rotating and bring by a stepping motor. In general, these types of data storage devices are not secure and inferior to the portable due to the vibration.
- Hence, a data storage apparatus without stepping motor such as flash memory has a sufficient competitiveness to become a massive hit in the present and future. For example, the electrical merchandise such as DSC (digital still camera), mp3 player, hand-held computer or PDA (personal digital assistant), cellular phone, flash memory is a one of most critical members.
- Generally, the basic architecture of a flash memory apparatus is blocks therein. Each block may contain 32, 64, 128 or more pages or sectors and each page consists of 1 or 4 virtual sector(s) in accordance the memory specification. Each sector, typically, is constituted 512.times.8 cells and thus can store 512 bytes. The virtual sector herein is distinct from the physical sector. Physical sectors may contain defect(s) in some bocks and result in data therein unstable. Hence, while formatting the flash memory, those blocks are unusable and will be marked. The virtual sectors are those sectors exclude sectors in the bad blocks. The virtual sectors are then renumbered by control chip.
- On the other hand, the basic unit of data access for a host is not a block but a logic sector. Therefore, the host communicating with the flash memory apparatus demands a conversion table of logic sectors to virtual sectors.
- For example: assume each block contains 64 pages and each page has 4 virtual sectors. The formula are as follows:
Block number=quotient of (logic sector number/64 pages*4 virtual sectors)virtual sector number remainder of (logic sector number/64 pages*4 virtual sectors) - The flash memory can only be used after formatting. It is carried out in a manner of block by block electrically erasing electrical charges in the floating gate. The data writing or programming is by storing the charges into predetermined memory cells of the target block. Therefore, to satisfy the protocol of the conversion table of logic sectors to virtual sectors, the data stored in the target block has to move or copy frequently to stratify the protocol the conversion table. It is not only detrimental to the lifetime of the flash memory but also disadvantage to the writing efficiency.
- An object of the present is to introduce concepts of screen table and virtual block to physical block table (V2P table). The screen virtual sector table keeps tracing the virtual sector number versus logic sector number and the V2P table having FSP (free sector point) to record the number of free pages make the host or control chipset know the status of available pages in the target block. With these tables, the data programming is no longer based on block but based on page or virtual sector. The data in the buffer is written into the target block not from a target page in accordance with the conversion table but from a lowest page if the target block is free. In another situation, the data in the buffer can still be written into a target block if the target pages are available.
- The present invention discloses a data accessed management system for a flash memory device. Especially for those group of data in a unit of called logic sector are sent by a host that desires to be programmed into physical memories of the flash memory device. The data accessed management system comprises: (1) a number of virtual block cells; (2) a buffer; (3) a plurality of SVST (screen virtual sector table); and (4) a plurality of V2P (virtual block to physical block). The buffer is those memories belonged to the host or RAM in the controller of the flash device. The conversion relations between the logic sectors are sent by a host and the destinations of data stored are recorded in a SVST of corresponding virtual block. The V2P is memories of 16 bit cells with 9 bits recorded the virtual block number of the V2P belonged corresponding to what the physical block number is, 6 bits provides as free sector point (FSP) recording, and 1 bit for physical condition of the physical block recording.
- Therefore, the data in the buffer are written by data management system from the
sector number 0 of the destination block if the destination block is free. The FSP and SVST are updating too. In situation of the destination-block containing data already but the destination sectors are available, the data before the destination sectors are copied to a temperate block and then data in the buffer are programmed by the data management system into the destination sectors of the temperate block, and then the data post the destination sectors are copied to the corresponding sectors. - The foregoing aspects and many of the attendant advantages of this invention will become more readily appreciated as the same becomes better understood by reference to the following detailed description, when taken in conjunction with the accompanying drawings, wherein:
-
FIG. 1 illustrates a format of 16 bits of V2P according to the present invention. -
FIG. 2A shows data written into the virtual sectors in accordance with the order of the data received not the order of the logic sector number. -
FIG. 2B shows a SVST that provides a conversion table between the logic sector number and the virtual sector number. -
FIG. 3 toFIG. 6 shows flow charts for varied situations of data being programmed. - According to the aforementioned description in the background of the invention, the operation no matter erasing or writing to the flash memory apparatus is basic on a unit of block. Conventionally, to make a group of data in a form of logic sectors sent from the host store to the virtual sectors of the flash memory apparatus satisfy the protocol provides by operation system, the target memory block (or called destination block) must be free. The flash memory apparatus in accordance with the present invention can overcome forgoing constraints. The data can be written into the destination block in order of the lowest page number to the higher page number no matter the lowest page number is the corresponding page of the logic sectors or not. Moreover, the data can still be written into target pages of data free of the destination block even the target block had data therein.
- For purpose of illustrating convenience, in the present specification, one page equal to one sector is assumed and used as an exemplification. It is not intended to limit the claim scope. Any one who skills in the art comprehended that a page memory can have four sectors. In the situation, the difference is only the conversion between the logic sector number and the virtual sector number.
- According to the present invention, each block has a V2P table. The V2P table is a description table of 16 bits. Form bit of the 0th to the 8.sup.th depicted the position relationship between the virtual block and physical block. From bit of the 9.sup.th bit to the Eth (Hex) bit, 6 bits in total depicted the usage status of the current block. These 6 bits are called FSP (free sector point) to indicate the usage status of the block. In a preferred embodiment, if FSP=111111 (b) represents the block is full and thus none of any page is available where “b” represents a binary code. The binary code in between 000001 to 111110 indicates the status of available page. For example: the FSP=000111 expresses 7 pages not available, the pages from 8.sup.th is free. As a result, the control chipset in the flash memory apparatus or the host can know the usage status of the block.
- As the FSP=0, it expresses that the data stored in the virtual sectors are not according to the conventional conversion table. Consequently, while data are read or written, the screen virtual sector table (SVST) are referenced by the host or the control chipset.
- The SVST is a table recorded in the static random access memory (SRAM), which dynamically records the position relationship between the logic sector number and the virtual sector number while the data in the buffer are written into the virtual sectors.
FIG. 2A andFIG. 2B show an example.FIG. 2A illustrating the consecutive virtual sector numbers from 0 to 8 having individual contents to index the logic sector number in each.FIG. 2B is a SVST. In terms of the SVST, host or control chipset can find easily the corresponding destination of the logic sector number. For instance, referring toFIG. 2B , the content of theaddress 0 is 2 means that the 0th logic sector is positioned at the 2.sup.nd virtual sector, please seeFIG. 2A . The content of theaddress 1 is 5 means that the 1.sup.st logic sector is positioned at the 5.sup.th virtual sector. The content of theaddress 2 is FF means that the 2.sup.nd logic sector is not written into the flash memory. The content of theaddress 3 is 8 means that the 3.sup.rd logic sector is positioned at the 8.sup.th virtual sector. Worthwhile, the contents of 1st, the 3.sup.rd, and the 8.sup.th of the virtual sectors shows the same data, “3” means only the 3.sup.rd logic sector is recorded into the 8.sup.th virtual sector. In the other words, the SVST traces the last logic sector position only, which is stored in thevirtual sector 8. - In addition, the FSP depicted by 6 bits is for the situation of a block having 64 pages or under. It does not intend to limit the claim scope. Therefore, if a block content 128 pages, 7 bits are demanded to depict the FSP. The most significant bit (the F(Hex) bit is to depict the physical status of the block. As the Fth bit=1, it expresses physical status of the block is good, the Fth bit=0 expresses the block is bad.
- FSP in V2P table and the SVST in accordance with the present invention can provide minimum data movement, extend the lifetime of the flash memory, and provide good writing efficiency without changing the conventional data storing protocol between the host and the flash memory. To illustrate, following flow charts will provided.
- Six typical situations will be discussed to illustrate the data access management system for a flash memory device in accordance with the present invention. Assuming the data queue, such as a first record N having n logic sectors and/or a second record M having m logic sectors are received and temperate stored in buffers and waits to write into flash memory: The buffer is those memories belonged to the host or RAM in the controller of the flash device. The typical situations include: (1) the destination block is free; (2) the destination block of both first record N and second record M is the same and the destination block is free; (3) the destination block contains some data already, but the capacity of the destination sectors of the destination block are enough to store the first record; (4) the destination block contains some data already and the capacity of the destination sectors of the destination block are enough to store both records N and M; the starting destination sectors N′ and M′ are assumed, respectively, for record N and M herein. (5) the destination block contains some data already, but the capacity of the destination sectors of the destination block are enough to store the first record N and second record M. However, the position of the record M is before the record N; (6) the destination block contains some data already and the capacity of the destination sectors of the destination block are not enough to store the first record.
- In cases of (1) and (2), please see a flow chart shown in
FIG. 3 . Firstly, instep 410, the step is to determine if the destination sector number begins from thesector number 0 of the destination block B or not. If it is true, proceeding to thestep 420. Thestep 420 writes down n sectors of the first record N from thesector number 0 to sector number n−1 of the block B and then update the FSP value to FSP=n in binary code. The position relationship of the logical sector numbers to virtual sector numbers are recorded in the SVST. - After
step 420, thestep 430 is to determine if the buffer contains a second record M. If it is false then ending the procedure, see thestep 431. If it is true, then proceeding to thestep 440 to determine if the destination block of the second record M is the same block as record N. If the result of thestep 440 is true, proceeding to thestep 450 to determine if the destination sector of record M is just follow the ending of the record N, i.e. beginning from sector n. If the result of thestep 450 is true, proceeding to thestep 460. In thestep 460, the record M is written into the virtual sectors and updates the FSP according to the occupations of the virtual sectors in this block. The position relationship of the logical sector numbers to virtual sector numbers are recorded into the SVST too. If the result of thestep 450 is false, see thestep 451, the record M is still written into the virtual sectors followed the ends of the record N. the SVST is updated and FSP=0 of this block is recorded. - Turning back to the
step 440, if the result is false, then thestep 441 is followed. Instep 441, the block B data written is ended and finds another free block C to write the second record M. The procedures for the second record M written is the same as shown before for the first record N. - Turning back to the
step 410, as the result of thestep 410 is false. It means that the destination sector for the first record N is not from thevirtual sector number 0. In accordance with the present invention, the first record N is still being written from the lowestvirtual sector number 0 of the destination block B and FSP=0 is set, as is shown in thestep 421. Thereafter, thestep 423 is to determine if a second record M is in buffer. If it is false, then ending the programming. If the result of thestep 423 is true. Anotherdecision step 424 is proceeding. Instep 424, it determines if the destination block of the second record M the same as the first record N. As the result is false, search another free block C, as is shown instep 427, and then programs the second record M to thevirtual sector number 0 of the block C, as is shown instep 428. In case of thestep 424 is true, the second record M is written and begins from the virtual sector number consecutive the ending virtual sector number of the first record N, please see thestep 426. It is noted that the SVST and FSP are updated once while data are programmed into the flash memory apparatus in accordance with the present invention. - In case of (3), the destination block A contains data already but the destination sections of the block A are free for storing the data of the first record N. The starting destination sector of the record N is N′. Please see the flow chart in
FIG. 4 . - First, in step 520: finding a free block B and then go to the step 530: copy the contains from the
virtual sector number 0 to the virtual sector number N′−1 of the block A to the block B as is seen instep 530. Instep 540, the data of the first record N in the buffer is then written into block B from the virtual sector number N′ to sector N′+n−1. Instep 550, the block A is marked as a replaced block. Afterward, instep 560, the remnant initiating from the virtue sector number N′+n of the block A are copied to the same virtual sectors numbers of the block B. Instep 570, the block B is then marked as block A. The contains of the original block A are erased thereafter. - In case of (4), the destination block A contains data already and the destination sections of the block A are available for storing the data of the first record N and the second record M and the logic sector number of the record M is post the record N. In this situation, the programming procedures for the first record N are the same as aforementioned and thus the detailed descriptions before
step 550 are skipped. Only the procedures for the second record M are illustrated. Please see the flow chart inFIG. 5 . Instep 610 the contents in the sectors from the virtual sector number N′+n to the virtual sector number M′−1 of the block A is copied to the corresponding virtual sectors of the block B. Instep 620, the data of the record M in the buffer are then written into the destination sectors of the block B and the remnant of the block A from the virtual sector number M′+m are then copied to the corresponding virtual sectors block B. The resultant block B thus has all of the data in the block A and with additional records M and N. Instep 630, the data in the original block A are erased and the block B is marked as block A. - In case of (5), the destination block A contains data already but the destination sections therein are available for storing the data of the first record N and the second record M but the logic sector number of the record M is prior to the record N. In this situation, the programming procedures for the first record N are the same as aforementioned and thus the detailed descriptions are skipped. Only the procedures for the second record M are illustrated. Please see the flow chart in
FIG. 6 . In step 710, a free block C is found. In step 720, the data of the block B from thesector number 0 to the sector number M′−1 are copied to the corresponding sectors of the block C. In step 730, the data of the record M in the buffer are copied to the block C from the virtual sector number M′ for m sectors in total. Thereafter, as is seen in step 740, the data in the block B from the virtual sector number M′+m to N′+n−1 are copied to the corresponding sections of the block C. The block C is thus served as a duplicated of block A. However, the block C furthermore has two records N and M. In step 760, the contents of the blocks A and B are erased. The block C is then marked as block A. - In case of (6), the destination block A contains data already and the destination sections in the block A are not available for the first record N. Surely, finding a free block is demanded.
- Consequently, according to the present invention, if the value of FSP of the destination block is zero, the SVST is necessary for host accesses the data of the flash memory device. The SVST provides the corresponding relations of the virtual sector numbers of the destination block versus the logic sector numbers. If the FSP.noteq.0, the host can read the data in the flash memory device the same as those in the optical or magnetic disk. The value of FSP provides the usage information of the block.
- The benefits of the present invention:
- With SVST for each block, the data filled into the destination block flash memory can be from the lowest page number no matter the lowest page number is the destination or not if the destination's block is free. The data in the buffer can still be written into the destination's block having data already if and only if the destination's sectors are free. Even the block is not complete free. The data accessed from the flash memory according to the present invention are efficient.
- As is understood by a person skilled in the art, the foregoing preferred embodiment of the present invention is an illustration of the present invention rather than limiting thereon. It is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims, the scope of which should be accorded the broadest interpretation so as to encompass all such modifications and similar structure.
Claims (20)
1. A flash storage device, comprising:
a flash storage comprising physical storage blocks, wherein physical storage blocks are associated with virtual blocks, wherein physical storage blocks comprise one or more physical storage sectors, and wherein virtual blocks comprise one or more virtual sectors;
a controller for managing data transfer in the flash storage device;
a buffer for storing data for transfer between a host and the flash storage device, wherein the host sends and receives logical blocks comprising one or more logical sectors, and wherein logical sectors are associated with virtual sectors;
a first table for maintaining storage information relating to the flash storage; and
a second table for maintaining information relating to the association of virtual sectors to the logical sectors,
wherein the controller transfers data between the host and the flash storage and updates the first table and the second table to reflect the transfer of the data.
2. The flash storage device of claim 1 , wherein each physical storage block is provided with one first table and one second table.
3. The flash storage device of claim 2 , wherein the first table contains an indicator of a free location in the physical storage block for writing data.
4. The flash storage device of claim 2 , wherein the first table contains an indicator of whether the physical storage block is full.
5. The flash storage device of claim 2 , wherein the first table contains a physical status of the physical storage block, wherein the physical status indicates whether the physical storage block is in a good or bad condition.
6. The flash storage device of claim 2 , wherein the first table contains an identification of the virtual block associated with the physical storage block.
7. A method of managing data in a flash storage device, comprising:
providing a flash storage comprising physical storage blocks, wherein physical storage blocks are associated with virtual blocks, wherein physical storage blocks comprise one or more physical storage sectors, and wherein virtual blocks comprise one or more virtual sectors;
providing a controller for managing data transfer in the flash storage device;
providing a buffer for storing data for transfer between a host and the flash storage device, wherein the host sends and receives logical blocks comprising one or more logical sectors, and wherein logical sectors are associated with virtual sectors;
providing a first table for maintaining storage information relating to the flash storage; and
providing a second table for maintaining information relating to the association of virtual sectors to the logical sectors,
wherein the controller transfers data between the host and the flash storage and updates the first table and the second table to reflect the transfer of the data.
8. The method of claim 7 , wherein each physical storage block is provided with one first table and one second table.
9. The method of claim 8 , wherein the first table contains an indicator of a free location in the physical storage block for writing data.
10. The method of claim 8 , wherein the first table contains an indicator of whether the physical storage block is full.
11. The method of claim 8 , wherein the first table contains a physical status of the physical storage block, wherein the physical status indicates whether the physical storage block is in a good or bad condition.
12. The method of claim 8 , wherein the first table contains an identification of the virtual block associated with the physical storage block.
13. A flash storage device for receiving data from and sending data to a host device, wherein the host sends and receives logical blocks comprising one or more logical sectors, and wherein logical sectors are associated with virtual sectors, comprising:
a flash storage comprising physical storage blocks, wherein physical storage blocks are associated with virtual blocks, wherein physical storage blocks comprise one or more physical storage sectors, and wherein virtual blocks comprise one or more virtual sectors;
a first table for maintaining storage information relating to the flash storage; and
a second table for maintaining information relating to the association of virtual sectors to the logical sectors,
wherein the flash storage device transfers data between the host and the flash storage and updates the first table and the second table to reflect the transfer of the data.
14. The flash storage device of claim 13 , wherein each physical storage block is provided with one first table and one second table.
15. The flash storage device of claim 14 , wherein the first table contains an indicator of a free location in the physical storage block for writing data.
16. The flash storage device of claim 14 , wherein the first table contains an indicator of whether the physical storage block is full.
17. The flash storage device of claim 14 , wherein the first table contains a physical status of the physical storage block, wherein the physical status indicates whether the physical storage block is in a good or bad condition.
18. The flash storage device of claim 14 , wherein the first table contains an identification of the virtual block associated with the physical storage block.
19. The flash storage device of claim 14 , wherein the first table contains an identification of the virtual block associated with the physical storage block and an indicator of a free location in the physical storage block for writing data.
20. The flash storage device of claim 14 , wherein the second table is maintained in a random access memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US11/527,040 US20070226452A1 (en) | 2004-06-09 | 2006-09-26 | Data management for a flash storage device |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US10/863,210 US7194596B2 (en) | 2004-06-09 | 2004-06-09 | Method of efficient data management with flash storage system |
| US11/527,040 US20070226452A1 (en) | 2004-06-09 | 2006-09-26 | Data management for a flash storage device |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US10/863,210 Continuation US7194596B2 (en) | 2004-06-09 | 2004-06-09 | Method of efficient data management with flash storage system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| US20070226452A1 true US20070226452A1 (en) | 2007-09-27 |
Family
ID=35461840
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US10/863,210 Expired - Lifetime US7194596B2 (en) | 2004-06-09 | 2004-06-09 | Method of efficient data management with flash storage system |
| US11/527,040 Abandoned US20070226452A1 (en) | 2004-06-09 | 2006-09-26 | Data management for a flash storage device |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US10/863,210 Expired - Lifetime US7194596B2 (en) | 2004-06-09 | 2004-06-09 | Method of efficient data management with flash storage system |
Country Status (1)
| Country | Link |
|---|---|
| US (2) | US7194596B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20090032987A1 (en) * | 2007-08-03 | 2009-02-05 | Boettiger Ulrich C | Methods of forming a lens master plate for wafer level lens replication |
| US20090325107A1 (en) * | 2008-06-25 | 2009-12-31 | Micron Technology, Inc. | Thermal embossing of resist reflowed lenses to make aspheric lens master wafer |
| US20110173381A1 (en) * | 2006-11-20 | 2011-07-14 | Siliconmotion Inc. | System and apparatus for flash memory data management |
| CN103714010A (en) * | 2013-12-24 | 2014-04-09 | 华为技术有限公司 | Storage device write-in method and storage device |
Families Citing this family (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8341332B2 (en) * | 2003-12-02 | 2012-12-25 | Super Talent Electronics, Inc. | Multi-level controller with smart storage transfer manager for interleaving multiple single-chip flash memory devices |
| US8452912B2 (en) * | 2007-10-11 | 2013-05-28 | Super Talent Electronics, Inc. | Flash-memory system with enhanced smart-storage switch and packed meta-data cache for mitigating write amplification by delaying and merging writes until a host read |
| US8266367B2 (en) * | 2003-12-02 | 2012-09-11 | Super Talent Electronics, Inc. | Multi-level striping and truncation channel-equalization for flash-memory system |
| US8037234B2 (en) * | 2003-12-02 | 2011-10-11 | Super Talent Electronics, Inc. | Command queuing smart storage transfer manager for striping data to raw-NAND flash modules |
| US20090193184A1 (en) * | 2003-12-02 | 2009-07-30 | Super Talent Electronics Inc. | Hybrid 2-Level Mapping Tables for Hybrid Block- and Page-Mode Flash-Memory System |
| US20110179219A1 (en) * | 2004-04-05 | 2011-07-21 | Super Talent Electronics, Inc. | Hybrid storage device |
| US20110145489A1 (en) * | 2004-04-05 | 2011-06-16 | Super Talent Electronics, Inc. | Hybrid storage device |
| US7194596B2 (en) * | 2004-06-09 | 2007-03-20 | Simpletech Global Limited | Method of efficient data management with flash storage system |
| US8429352B2 (en) * | 2007-06-08 | 2013-04-23 | Sandisk Technologies Inc. | Method and system for memory block flushing |
| US9148172B2 (en) * | 2012-06-22 | 2015-09-29 | Micron Technology, Inc. | Data compression and management |
| US9465731B2 (en) | 2012-12-31 | 2016-10-11 | Sandisk Technologies Llc | Multi-layer non-volatile memory system having multiple partitions in a layer |
| US9336133B2 (en) | 2012-12-31 | 2016-05-10 | Sandisk Technologies Inc. | Method and system for managing program cycles including maintenance programming operations in a multi-layer memory |
| US8873284B2 (en) | 2012-12-31 | 2014-10-28 | Sandisk Technologies Inc. | Method and system for program scheduling in a multi-layer memory |
| US9348746B2 (en) | 2012-12-31 | 2016-05-24 | Sandisk Technologies | Method and system for managing block reclaim operations in a multi-layer memory |
| US9734050B2 (en) | 2012-12-31 | 2017-08-15 | Sandisk Technologies Llc | Method and system for managing background operations in a multi-layer memory |
| US9734911B2 (en) | 2012-12-31 | 2017-08-15 | Sandisk Technologies Llc | Method and system for asynchronous die operations in a non-volatile memory |
| US9223693B2 (en) | 2012-12-31 | 2015-12-29 | Sandisk Technologies Inc. | Memory system having an unequal number of memory die on different control channels |
| US10042553B2 (en) | 2015-10-30 | 2018-08-07 | Sandisk Technologies Llc | Method and system for programming a multi-layer non-volatile memory having a single fold data path |
| US10133490B2 (en) | 2015-10-30 | 2018-11-20 | Sandisk Technologies Llc | System and method for managing extended maintenance scheduling in a non-volatile memory |
| US9778855B2 (en) | 2015-10-30 | 2017-10-03 | Sandisk Technologies Llc | System and method for precision interleaving of data writes in a non-volatile memory |
| US10120613B2 (en) | 2015-10-30 | 2018-11-06 | Sandisk Technologies Llc | System and method for rescheduling host and maintenance operations in a non-volatile memory |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6725321B1 (en) * | 1999-02-17 | 2004-04-20 | Lexar Media, Inc. | Memory system |
| US6751155B2 (en) * | 2001-09-28 | 2004-06-15 | Lexar Media, Inc. | Non-volatile memory control |
| US7024514B2 (en) * | 2001-06-19 | 2006-04-04 | Tdk Corporation | Memory controller, flash memory system employing memory controller and method for controlling flash memory device |
| US7035993B2 (en) * | 2002-01-11 | 2006-04-25 | Simpletech, Inc. | Flash memory data access method and configuration employing logical-to-virtual and virtual-to-physical sector mapping |
| US7194596B2 (en) * | 2004-06-09 | 2007-03-20 | Simpletech Global Limited | Method of efficient data management with flash storage system |
-
2004
- 2004-06-09 US US10/863,210 patent/US7194596B2/en not_active Expired - Lifetime
-
2006
- 2006-09-26 US US11/527,040 patent/US20070226452A1/en not_active Abandoned
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6725321B1 (en) * | 1999-02-17 | 2004-04-20 | Lexar Media, Inc. | Memory system |
| US7024514B2 (en) * | 2001-06-19 | 2006-04-04 | Tdk Corporation | Memory controller, flash memory system employing memory controller and method for controlling flash memory device |
| US6751155B2 (en) * | 2001-09-28 | 2004-06-15 | Lexar Media, Inc. | Non-volatile memory control |
| US7035993B2 (en) * | 2002-01-11 | 2006-04-25 | Simpletech, Inc. | Flash memory data access method and configuration employing logical-to-virtual and virtual-to-physical sector mapping |
| US7194596B2 (en) * | 2004-06-09 | 2007-03-20 | Simpletech Global Limited | Method of efficient data management with flash storage system |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20110173381A1 (en) * | 2006-11-20 | 2011-07-14 | Siliconmotion Inc. | System and apparatus for flash memory data management |
| US8219764B2 (en) * | 2006-11-20 | 2012-07-10 | Siliconmotion Inc. | System and apparatus for enhancing data storage efficiency of a flash memory by reducing time for reorganizing data |
| US8521971B2 (en) | 2006-11-20 | 2013-08-27 | Siliconmotion Inc. | System and apparatus for flash memory data management |
| US8769218B2 (en) | 2006-11-20 | 2014-07-01 | Siliconmotion Inc. | System and apparatus for flash memory data management |
| US9405485B2 (en) | 2006-11-20 | 2016-08-02 | Siliconmotion Inc. | Method and apparatus for writing data to a flash memory |
| US20090032987A1 (en) * | 2007-08-03 | 2009-02-05 | Boettiger Ulrich C | Methods of forming a lens master plate for wafer level lens replication |
| US7879249B2 (en) | 2007-08-03 | 2011-02-01 | Aptina Imaging Corporation | Methods of forming a lens master plate for wafer level lens replication |
| US20090325107A1 (en) * | 2008-06-25 | 2009-12-31 | Micron Technology, Inc. | Thermal embossing of resist reflowed lenses to make aspheric lens master wafer |
| US7919230B2 (en) | 2008-06-25 | 2011-04-05 | Aptina Imaging Corporation | Thermal embossing of resist reflowed lenses to make aspheric lens master wafer |
| CN103714010A (en) * | 2013-12-24 | 2014-04-09 | 华为技术有限公司 | Storage device write-in method and storage device |
Also Published As
| Publication number | Publication date |
|---|---|
| US7194596B2 (en) | 2007-03-20 |
| US20050278479A1 (en) | 2005-12-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7194596B2 (en) | Method of efficient data management with flash storage system | |
| US8037232B2 (en) | Data protection method for power failure and controller using the same | |
| US7039781B2 (en) | Flash memory apparatus and method for merging stored data items | |
| KR100193779B1 (en) | Semiconductor disk device | |
| US8843691B2 (en) | Prioritized erasure of data blocks in a flash storage device | |
| EP0770959B1 (en) | Flash translation layer clean-up method | |
| US8055873B2 (en) | Data writing method for flash memory, and controller and system using the same | |
| US7594087B2 (en) | System and method for writing data to and erasing data from non-volatile memory | |
| US20110191523A1 (en) | Priority Ordered Multi-Medium Solid-State Storage System and Methods for Use | |
| JP2006216036A (en) | Data storage device including flash memory and merge method thereof | |
| US20110289255A1 (en) | Apparatuses for managing and accessing flash memory module | |
| US20100011154A1 (en) | Data accessing method for flash memory and storage system and controller using the same | |
| US8127072B2 (en) | Data storage device and method for accessing flash memory | |
| US5983319A (en) | Information recording and reproduction apparatus and a method of data caching including read-ahead capability | |
| US9082491B2 (en) | Data writing method and data storage device | |
| JP2002149499A5 (en) | ||
| JP2004139503A (en) | Storage device and control method thereof | |
| CN102520885B (en) | Data management system for hybrid hard disk | |
| US20090210612A1 (en) | Memory controller, nonvolatile memory device, and nonvolatile memory system | |
| US20110022774A1 (en) | Cache memory control method, and information storage device comprising cache memory | |
| CN101499316A (en) | Flash memory block management method and controller using same | |
| US20060047889A1 (en) | Memory device and controlling method for nonvolatile memory | |
| US6904492B2 (en) | Write-once memory device including non-volatile memory for temporary storage | |
| JP2012521032A (en) | SSD controller and operation method of SSD controller | |
| JP2005092677A (en) | Memory device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| STCB | Information on status: application discontinuation |
Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION |