The present invention relates to non-volatile memory, and more particularly, to a method and apparatus for programming/erasing a nonvolatile memory.
Non-volatile memory (NVM) which is capable of being programmed and erased multiple times is commonly used in a wide variety of applications. Generally, the NVM has a maximum number of program/erase cycles that can be performed while ensuring that a data retention specification is met.
The present invention is illustrated by way of example and not limited by the accompanying figures, in which like references indicate similar elements, and in which:
Skilled artisans appreciate that elements in the figures are illustrated for simplicity and clarity and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help improve the understanding of the embodiments of the present invention.
The data retention of an NVM cell is the amount of time that a predetermined data value will remain properly stored so that it is retrievable from the NVM cell. The endurance of the NVM cell is the maximum number of program/erase cycles that can be performed before the state of the NVM cell can no longer be reliably changed. Note that there are a variety of techniques that may be used to extend the viability of an NVM array when one or more NVM cells have failed either during testing or during usage (e.g. redundancy, error correction code, etc.).
NVMs may be programmed with any desired granularity. Although many NVMs are programmed on a per byte basis, alternate embodiments may be programmed on a bit, word, long word, sector, block, or any other desired basis. NVMs may be erased with any desired granularity. Although many NVMs are erased on a per sector basis, alternate embodiments may be erased on a bit, byte, word, long word, block, or any other desired basis.
A problem arises when a single NVM array 30 (see
As one example, the first group of customers may be storing software code, e.g. instruction for processor 12 (see
As a second example, the second group of customers may be storing data values, e.g. non-volatile but variable data, which needs to remain stored for a relatively shorter period of time (e.g. one month to five year). One example of such a product is an automobile which uses the NVM to store data values to represent engine tuning information. This second group of customers will require that the NVM perform many program/erase cycles (e.g. one program/erase cycle every time the automobile ignition is turned off and on). In this example, if the NVM stores data values, it is likely that the data values will be refreshed by a new program/erase cycle and thus do not need to have a long data retention time.
In addition, some customers will require both types of NVM in the same application. For example, the automotive customers described above will need some NVM having long data retention for software code, and will also need some NVM having high endurance for data values that are rewritten frequently. Also, customer requirements will vary as to how many portions and what size portions of the NVM will need to have long data retention. Similarly, customer requirements will vary as to how many portions and what size portions of the NVM will need to have high endurance.
In some embodiments, IC 10 is a stand alone NVM and circuits 12, 16, and 18 are not implemented. In this case, the external bus interface 20 includes the address and data bus drivers for the NVM 14. In other embodiments, IC 10 is a microcontroller which has an NVM 14 as just one circuit available on the microcontroller. Any one or more of circuits 12, 14, 16, 18, and 20 may be coupled to one or more integrated circuit terminals (not shown) which may be used to communicate external to IC 10. In some embodiments, external bus 24 may be used to communicate to circuitry (not shown) that is external to integrated circuit 10. Other memory 16 may be any type of memory. Other modules 18 may include circuitry that is used for any desired purpose. Some examples of circuitry in other modules 18 includes timer circuitry, communication interface circuitry, display driver circuitry, analog to digital converters, digital to analog converters, power management circuitry, etc.
In the illustrated embodiment, block control information 34 includes retention/endurance control circuitry 36, and block control information 35 includes retention/endurance control circuitry 37. Alternate embodiments may locate retention/endurance control circuitry 36 and 37 anywhere within integrated circuit 10. There may be any number of retention/endurance control circuits (e.g. 36) for NVM array 30. The illustrated embodiment uses one retention/endurance control circuit (e.g. 36, 37) for each NVM block. However, alternate embodiments may use one retention/endurance control circuit for a different granularity (larger or smaller than a block) within the NVM array 30. For example, the entire NVM array 30 may have one retention/endurance control circuit used to select the storage characteristic.
Dashed lines are used to represent portions 40-42 of block 32. Similarly, dashed lines are used to represent portions 44-45 of block 33. Each portion 40, 41, 42, 44, 45 has a plurality of NVM cells. Retention/endurance control circuit 36 may be used to determine how many portions block 32 is partitioned into, and the size of each of the portions. Retention/endurance control circuit 37 may be used to determine how many portions block 33 is partitioned into, and the size of each of the portions. In one embodiment, retention/endurance control circuit 36 may also be used to determine or select a storage characteristic for each of the portions 40-42. Similarly, retention/endurance control circuit 37 may also be used to determine or select a storage characteristic for each of the portions 4445.
As an example, retention/endurance control circuit 37 may select portion 44 to have the storage characteristic of high endurance, while selecting portion 45 to have the storage characteristic of long data retention. Alternately, retention/endurance control circuit 37 may select portion 45 to have the storage characteristic of high endurance, while selecting portion 44 to have the storage characteristic of long data retention. In a similar manner, as one example, retention/endurance control circuit 36 may select portions 40 and 42 to have the storage characteristic of high endurance, while selecting portion 41 to have the storage characteristic of long data retention. Retention/endurance control circuit 36 may alternately select any combination of storage characteristics for portions 40-42. Retention and endurance are two possible examples of storage characteristics. Alternate embodiments may use different or more storage characteristics (e.g. degree of hardness against radiation, data integrity for selected temperature range, etc.).
In the illustrated embodiment, NVM peripheral circuitry 31 includes all other circuitry necessary for the operation of NVM 14. In one embodiment, NVM peripheral circuitry 14 has a charge pump, high voltage regulator, high voltage switches, word line drivers, source line drivers, sense amplifiers, row decoders, column decoders, an interface to bus 22, registers, a read reference circuit, and any other circuitry that is desired for the functionality of NVM 14 (not shown). Note that for one embodiment, NVM peripheral circuitry 31 may operate in a conventional manner.
The starting address storage circuit 51 and the ending address storage circuit 52 are used to define the location and size of the corresponding NVM portion (portion 40 for control circuit 36, and portion 44 for control circuit 37). The starting address storage circuit 54 and the ending address storage circuit 55 are used to define the location and size of the corresponding NVM portion (portion 42 for control circuit 36, and portion 45 for control circuit 37). Alternate embodiments may define the location and size of the corresponding NVM portion in any desired manner. For example, a size storage circuit (not shown) may be used instead of an ending address storage circuit 52, 55. Alternately, the locations and sizes of the portion may be predetermined and the control storage circuits 51, 52, 54, 55 may not be needed. Alternately, other circuitry (e.g. protection circuitry in NVM peripheral circuitry 31) may be used to determine or partially affect the location and sizes of the portions 40, 41, 42, 44, 45.
Stimulus external to NVM array 30 may be used to initiate flow 77. One example of such an external stimulus may be processor 12 (see
Referring to step 80 in
Note that for one embodiment, the verify level is a reference current which is compared to the read current from the NVM cell. For one embodiment, the verify level for high endurance is a lower reference current, whereas for long data retention the verify level is a higher reference current. The absolute level of reference currents for both high endurance and long data retention will depend upon the specific circuits used to implement the NVM 14. However, for alternate embodiments, the verify level for high endurance may be a higher reference current, whereas for long data retention the verify level may be a lower reference current.
Alternate embodiments may use something other than a reference current to represent the verify level. For example, the verify level may be a reference voltage. Also, the reference may be compared to something other than read current. For example, the verify level may be a reference voltage that is compared to an NVM cell voltage (e.g. transistor threshold voltage). Alternate embodiments may use any desired circuit characteristic to represent the verify level.
In the illustrated embodiment, NVM peripheral circuitry 31 may store one or more verify levels. In one embodiment, the verify level is a reference current which is provided by a read reference circuit (not shown) in NVM peripheral circuitry 31. Which verify level is used is selected by the retention/endurance setting 50, 53 which corresponds to the NVM portion 40, 41, 42, 44, 45 which is being programmed or erased.
Note that the present invention is applicable to any type of NVM which can be programmed and erased a plurality of times.
In the foregoing specification, the invention has been described with reference to specific embodiments. However, one of ordinary skill in the art appreciates that various modifications and changes can be made without departing from the scope of the present invention as set forth in the claims below. Accordingly, the specification and figures are to be regarded in an illustrative rather than a restrictive sense, and all such modifications are intended to be included within the scope of present invention.
Benefits, other advantages, and solutions to problems have been described above with regard to specific embodiments. However, the benefits, advantages, solutions to problems, and any element(s) that may cause any benefit, advantage, or solution to occur or become more pronounced are not to be construed as a critical, required, or essential feature or element of any or all the claims. As used herein, the terms “comprises,” “comprising,” or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.