The invention is described below in the appended claims which are read in view of the accompanying description including the following drawings, wherein:
a and 6b illustrate the effects of defective physical blocks on prior art super blocks;
The invention summarized above and defined by the claims below will be better understood by referring to the present detailed description of embodiments of the invention. This description is not intended to limit the scope of claims but instead to provide examples of the invention. Described first is a flash memory system that manages data transfer between a host and flash memory ICs. Included are descriptions of exemplary algorithms that instruct the controller in managing the data transfer. Also presented is a comparison of super block mapping of the prior art with super block mapping of the present invention.
Reference is now made to
Flash memory module 24 has one or more flash memory ICs, and each flash memory IC has multiple physical blocks, which are identified by their physical block addresses 11, 12, 13, . . . , 45. Specifically, in this embodiment, physical blocks 11, 12, 13, . . . , 45 are grouped into planes 241, 242, 243, and 244. Two physical blocks from a common plane cannot be erased simultaneously, but two physical blocks from different planes can be erased simultaneously. Physical blocks 11, 12, 13, . . . , 45 have associated position numbers within their respective planes such that a position number indicates a block's physical location within its plane.
Controller 26 is operative to manage data transfer between flash memory module 24 and a host by defining logical super blocks as groups of multiple physical blocks, each logical super blocks having no more than one physical block from a common plane to allow all physical blocks within a super block to be erased simultaneously. Unlike the super blocks of the prior art, however, a logical super block of the present invention may have physical blocks with different associated position numbers within their respective planes, and designation of logical super blocks accordingly can enable greater usage of the non-defective physical blocks of a NAND flash memory.
Controller 26 accesses a machine readable storage medium containing instructions that, when executed, cause the controller to perform as described herein. One exemplary algorithm executable by controller 26 is represented by the flow chart 30 in
Controller 26 begins by obtaining the position numbers associated with all physical blocks 11, 12, 13, . . . , 45 and then defines initial groups of the physical blocks, each initial group having no more than one physical block from a common plane. [Step S1.] Applying this logic to flash memory module 24 yields the initial groups such as {11, 21, 31, 41}, {12, 22, 32, 42}, {13, 23, 33, 43}, {14, 24, 34, 44}, and {15, 25, 35, 45}.
Next, controller 26 determines whether any initial groups have no defective blocks. [Step S2.] For each initial group having no defective physical blocks, controller 26 designates the physical blocks as a logical super block. [Step S3.] Applying this logic to the initial groups flash memory module 24 yields logical super groups such as {13, 23, 33, 43} and {15, 25, 35, 45}.
Then, controller 26 determines if there are initial groups that have defective physical blocks. [Step S4.] When no such initial groups remain, the algorithm ends.
For the example application of this algorithm to flash memory module 24, controller 26 determines that the following three such initial groups remain: {11, 21, 31, 41}, {12, 22, 32, 42}, and {14, 24, 34, 44}. The defective physical blocks are noted in underscore.
For such applications in which initial groups are found that have defective physical blocks, controller 26 selects one of such initial groups and then selects a defective physical block from that group. [Step S5.] For the present example, controller 26 might select initial group {11, 21, 31, 41} and then physical block 31.
Next, controller 26 determines whether the plane of the selected physical block includes a non-defective physical block that is not yet designated as part of a logical super block. [Step S6.] For the present example, controller 26 can identify either physical block 32 or physical block 34 as available. If no such physical blocks are available from the plane of the selected defective physical block, the algorithm ends.
For applications such as the present example, in which non-defective physical blocks are available, controller 26 redefines the selected initial group by replacing the selected defective physical block with an available non-defective physical block. [Step S7.] For the present example, controller 26 may redefine the selected initial group by replacing defective physical block 31 with non-defective physical block 32.
Then, controller 26 determines whether the selected initial group has another defective physical block. [Step S8.] When the selected initial group does not have another defective physical block, controller 26 designates the physical blocks of the redefined initial group as a logical super block. [Step S9.] For the present example of flash memory module 24, controller 26 may designate physical blocks 11, 21, 32, and 41 as a logical super block. For applications in which the selected initial group does have another defective physical block, the process flow continues to Step S6 to determine whether another non-defective physical block is available for use in a logical super block.
After Step S9, when a logical super block is designated, controller 26 determines whether another initial group having at least one defective physical block exists. [Step S110.] If no such initial group exists, as in the case of the example flash memory module 24, the process flow ends. If at least one such initial group exists, the process flow continues to Step S6 and controller 26 repeats the above-described logic to determine whether another logical super block can be designated. When the algorithm ends, the logical super blocks are determined, and multiple physical blocks corresponding to a common logical super block may be erased substantially simultaneously.
The present invention enables greater usage of the non-defective physical blocks of a NAND flash memory. In the prior art described above, only forty percent of flash memory module 14c is available for use in super blocks. (See, in particular,
As is evident from
To the best knowledge of the inventors, the only situations in which the present embodiment would not increase the capacity of a NAND flash memory would be: (1) when every initial group of physical blocks having defective blocks has a deflective block in the same plane; and (2) when the initial groups of physical blocks have no deflective physical blocks at all. Both scenarios are regarded as rare. Only in those situations would all logical super blocks of a memory each have all physical blocks with the same associated position numbers. Nonetheless, if the disclosed embodiment were applied to such a situation, the same amount of memory would be available for use, instead of less memory being available for use. That is, implementation of the present embodiment is not anticipated to have the risk of providing less memory for use than what would be provided using the prior art discussed above.
If the determination of Step S1 is positive, that is, if each plane of the flash memory includes at least one available block, the controller selects one of such available blocks from each plane. [Step S2.] Then, the selected blocks are designated as a new logical super block. [Step S3.]
Next, the process flow continues to Step S1, and the controller determines again whether each plane of the flash memory module includes at least one non-defective physical block that is not yet designated as part of a logical super block. This process repeats until at least one plane does not include a non-defective physical block that is not yet designated to a logical super block. When the algorithm ends, the logical super blocks are determined, and multiple physical blocks corresponding to a common logical super block may be erased substantially simultaneously.
As with the embodiment represented in
Having thus described exemplary embodiments of the invention, it will be apparent that various alterations, modifications, and improvements will readily occur to those skilled in the art. Alternations, modifications, and improvements of the disclosed invention, though not expressly described above, are nonetheless intended and implied to be within spirit and scope of the invention. Accordingly, the foregoing discussion is intended to be illustrative only; the invention is limited and defined only by the following claims and equivalents thereto.
This application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Application No. 60/823,661, filed Aug. 28, 2006, which is hereby incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
60823661 | Aug 2006 | US |