1. Field of the Invention
The present invention relates to a memory device.
2. Description of the Related Art
Semiconductor memory has become increasingly popular for use in various electronic devices. For example, non-volatile semiconductor memory is used in cellular telephones, digital cameras, personal digital assistants, mobile computing devices, non-mobile computing devices and other devices. Electrically Erasable Programmable Read Only Memory (EEPROM) and flash memory are among the most popular non-volatile semiconductor memories. With flash memory, also a type of EEPROM, the contents of the whole memory array, or of a portion of the memory, can be erased in one step, in contrast to the traditional, full-featured EEPROM.
Both the traditional EEPROM and the flash memory utilize a floating gate that is positioned above and insulated from a channel region in a semiconductor substrate. The floating gate is positioned between the source and drain regions. A control gate is provided over and insulated from the floating gate. The threshold voltage (VTH) of the transistor thus formed is controlled by the amount of charge that is retained on the floating gate. That is, the minimum amount of voltage that must be applied to the control gate before the transistor is turned on to permit conduction between its source and drain is controlled by the level of charge on the floating gate.
Some EEPROM and flash memory devices have a floating gate that is used to store two ranges of charges and, therefore, the memory element can be programmed/erased between two states, e.g., an erased state and a programmed state. Such a flash memory device is sometimes referred to as a binary flash memory device because each memory element can store one bit of data.
A multi-state (also called multi-level) flash memory device is implemented by identifying multiple distinct allowed/valid programmed threshold voltage ranges. Each distinct threshold voltage range corresponds to a predetermined value for the set of data bits encoded in the memory device. For example, each memory element can store two bits of data when the element can be placed in one of four discrete charge bands corresponding to four distinct threshold voltage ranges.
Typically, a program voltage VPGM applied to the control gate during a program operation is applied as a series of pulses that increase in magnitude over time. In one possible approach, the magnitude of the pulses is increased with each successive pulse by a predetermined step size, e.g., 0.2-0.4 V. VPGM can be applied to the control gates of flash memory elements. In the periods between the program pulses, verify operations are carried out. That is, the programming level of each element of a group of elements being programmed in parallel is read between successive programming pulses to determine whether it is equal to or greater than a verify level to which the element is being programmed. For arrays of multi-state flash memory elements, a verification step may be performed for each state of an element to determine whether the element has reached its data-associated verify level. For example, a multi-state memory element capable of storing data in four states may need to perform verify operations for three compare points.
Moreover, when programming an EEPROM or flash memory device, such as a NAND flash memory device in a NAND string, typically VPGM is applied to the control gate and the bit line is grounded, causing electrons from the channel of a cell or memory element, e.g., storage element, to be injected into the floating gate. When electrons accumulate in the floating gate, the floating gate becomes negatively charged and the threshold voltage of the memory element is raised so that the memory element is considered to be in a programmed state. More information about such programming can be found in U.S. Pat. No. 6,859,397, titled “Source Side Self Boosting Technique For Non-Volatile Memory,” and in U.S. Patent App. Pub. 2005/0024939, titled “Detecting Over Programmed Memory,” published Feb. 3, 2005; both of which are incorporated herein by reference in their entirety.
Further, during a read operation, read reference voltages are applied to a set of storage elements to be read, and a determination is made as to which read reference voltage causes a storage element to become conductive. The read reference voltages are set to allow data states of the storage elements to be distinguished. However, the read reference voltages are typically fixed and do not account for the fact that the threshold voltage distribution of a set of storage elements can change, e.g., due to factors such as charge leakage, temperature changes, number of programming cycles and the like. As a result, read errors can occur.
To address this, a threshold voltage distribution of the storage elements can be determined, and new read reference voltages can be set accordingly. However, traditional approaches for computing threshold voltage distribution, e.g., using external analog equipment or the like, lack flexibility and efficiency for being implemented “on-line” in real time flash management procedures or manufacturing testing, for instance, where the time element is critical.
The present invention provides an operating sequence and commands for measuring threshold voltage distribution in a memory device.
In one embodiment, a method for operating a memory device includes: a) receiving, at the memory device, a first command, b) in response to the first command, reading a set of storage elements in the memory device using a first read reference value but no other read reference value, c) subsequent to the reading, receiving, at the memory device, a second command, and d) in response to the second command, reading the set of storage elements using a second read reference value but no other read reference value. The memory device generates the second read reference value without receiving information for generating the second read reference value from outside the memory device subsequent to the receiving of the first command. For example, the first command can identify a voltage step size, in which case the memory device generates the second read reference value based on the voltage step size and the first read reference value. Or, the memory device can be pre-configured with the voltage step size.
In another embodiment, a method for operating a memory device includes: a) receiving, at the memory device, a first command, b) in response to the first command, reading a set of storage elements in the memory device using a first read reference value, and c) subsequent to said reading, receiving, at the memory device, a second command. The method further includes, in response to the second command, reading the set of storage elements using a second read reference value, where the memory device generates the second read reference value without receiving information for generating the second read reference value from outside the memory device subsequent to the receiving of the first command. The method further includes determining, based at least in part on the readings using the first and second read reference values, a threshold voltage distribution of the set of storage elements.
In another embodiment, a method for operating a memory device includes: a) providing, from a host controller to a memory device, at least a first command, where the memory device reads the set of storage elements using a first read reference value in response to the at least a first command, b) subsequent to the providing the at least a first command, providing from the host controller to the memory device at least a second command. The memory device reads the set of storage elements using a second read reference value in response to the at least a second command, and the memory device generates the second read reference value without receiving information for generating the second read reference value from the host controller subsequent to the receiving of the at least a first command. The method further includes determining, based at least in part on the readings using the first and second read reference values, a threshold voltage distribution of the set of storage elements.
In another embodiment, a storage system includes a set of storage elements in a memory device and at least one control circuit in the memory device. The at least one control circuit: a) receives a first command, b) in response to the first command, reads the set of storage elements using a first read reference value but no other read reference value, c) subsequent to the reading, receives a second command, and d) in response to the second command, reads the set of storage elements using a second read reference value but no other read reference value. Further, the at least one control circuit generates the second read reference value without receiving information for generating the second read reference value from outside the memory device subsequent to the receiving of the first command.
In another embodiment, a storage system includes a set of storage elements in a memory device and at least one control circuit in the memory device. The at least one control circuit: a) receives a first command, b) in response to the first command, reads the set of storage elements using a first read reference value, c) subsequent to the reading, receives a second command, and d) in response to the second command, reads the set of storage elements using a second read reference value. The at least one control circuit generates the second read reference value without receiving information for generating the second read reference value from outside the memory device subsequent to the receiving of the first command, and determines, based at least in part on the readings using the first and second read reference values, a threshold voltage distribution of the set of storage elements.
In another embodiment, a storage system includes a host controller which provides to a memory device, at least a first command, and the memory device reads an associated set of storage elements using a first read reference value in response to the at least a first command. Subsequent to the providing the at least a first command, the host controller provides to the memory device at least a second command, where the memory device reads the set of storage elements using a second read reference value in response to the at least a second command. The memory device generates the second read reference value without receiving information for generating the second read reference value from the host controller subsequent to the receiving of the at least a first command. Moreover, a threshold voltage distribution of the set of storage elements is determined based at least in part on the readings using the first and second read reference values.
a depicts an initial threshold voltage distribution of a set of storage elements.
b depicts a widened threshold voltage distribution of a set of storage elements.
a depicts a control gate voltage which increases continuously.
b depicts a control gate voltage which increases in discrete steps.
a depicts a combined current in a set of storage elements as a function of a continuously increasing control gate voltage.
b depicts a threshold voltage distribution which is based on
a depicts a combined current in a set of storage elements as a function of a step wise increasing control gate voltage.
b depicts a threshold voltage distribution which is based on
a depicts a combined current in a set of storage elements as a function of a step wise increasing control gate voltage, with lockout of conducting storage elements.
b depicts a threshold voltage distribution which is based on
a is a block diagram of a non-volatile memory system using single row/column decoders and read/write circuits.
b is a block diagram of a non-volatile memory system using dual row/column decoders and read/write circuits.
The present invention provides an operating sequence and commands for measuring threshold voltage distribution in a memory device.
One example of a memory system suitable for implementing the present invention uses the NAND flash memory structure, which includes arranging multiple transistors in series between two select gates. The transistors in series and the select gates are referred to as a NAND string.
For example, NAND string 320 includes select gates 322 and 327, and storage elements 323-326, NAND string 340 includes select gates 342 and 347, and storage elements 343-346, NAND string 360 includes select gates 362 and 367, and storage elements 363-366. Each NAND string is connected to the source line by its select gates (e.g., select gates 327, 347 or 367). A selection line SGS is used to control the source side select gates. The various NAND strings 320, 340 and 360 are connected to respective bit lines 321, 341 and 361, by select transistors in the select gates 322, 342, 362, etc. These select transistors are controlled by a drain select line SGD. In other embodiments, the select lines do not necessarily need to be in common among the NAND strings; that is, different select lines can be provided for different NAND strings. Word line WL3 is connected to the control gates for storage elements 323, 343 and 363. Word line WL2 is connected to the control gates for storage elements 324, 344 and 364. Word line WL1 is connected to the control gates for storage elements 325, 345 and 365. Word line WL0 is connected to the control gates for storage elements 326, 346 and 366. As can be seen, each bit line and the respective NAND string comprise the columns of the array or set of storage elements. The word lines (WL3, WL2, WL1 and WL0) comprise the rows of the array or set. Each word line connects the control gates of each storage element in the row. Or, the control gates may be provided by the word lines themselves. For example, word line WL2 provides the control gates for storage elements 324, 344 and 364. In practice, there can be thousands of storage elements on a word line.
Each storage element can store data. For example, when storing one bit of digital data, the range of possible threshold voltages (VTH) of the storage element is divided into two ranges which are assigned logical data “1” and “0.” In one example of a NAND type flash memory, the VTH is negative after the storage element is erased, and defined as logic “1.” The VTH after a program operation is positive and defined as logic “0.” When the VTH is negative and a read is attempted, the storage element will turn on to indicate logic “1” is being stored. When the VTH is positive and a read operation is attempted, the storage element will not turn on, which indicates that logic “0” is stored. A storage element can also store multiple levels of information, for example, multiple bits of digital data. In this case, the range of VTH value is divided into the number of levels of data. For example, if four levels of information are stored, there will be four VTH ranges assigned to the data values “11”, “10”, “01”, and “00.” In one example of a NAND type memory, the VTH after an erase operation is negative and defined as “11”. Positive VTH values are used for the states of “10”, “01”, and “00.” The specific relationship between the data programmed into the storage element and the threshold voltage ranges of the element depends upon the data encoding scheme adopted for the storage elements. For example, U.S. Pat. No. 6,222,762 and U.S. Patent Application Pub. 2004/0255090, both of which are incorporated herein by reference in their entirety, describe various data encoding schemes for multi-state flash storage elements.
Relevant examples of NAND type flash memories and their operation are provided in U.S. Pat. Nos. 5,386,422, 5,570,315, 5,774,397, 6,046,935, 6,456,528 and 6,522,580, each of which is incorporated herein by reference.
When programming a flash storage element, a program voltage is applied to the control gate of the storage element and the bit line associated with the storage element is grounded. Electrons from the channel are injected into the floating gate. When electrons accumulate in the floating gate, the floating gate becomes negatively charged and the VTH of the storage element is raised. To apply the program voltage to the control gate of the storage element being programmed, that program voltage is applied on the appropriate word line. As discussed above, one storage element in each of the NAND strings share the same word line. For example, when programming storage element 324 of
During a read operation, a control gate voltage VCG is provided on a selected word line, in this example, WL3, which is associated with storage element 414 and other storage elements which are not shown. Further, recall that the control gate of a storage element may be provided as a portion of the word line. For example, WL0, WL1, WL2, WL3, WL4, WL5, WL6 and WL7 can extend via the control gates of storage elements 408, 410, 412, 414, 416, 418, 420 and 422, respectively. A read pass voltage, VREAD is applied to the remaining word lines associated with NAND string 400, in one possible scheme. VSGS and VSGD are applied to the select gates 406 and 424, respectively.
In the example provided, eight storage elements are connected in series to form a NAND string, and there are eight data word lines WL0 through WL7. A NAND string can also include dummy storage elements and associated word lines. In other embodiments, the NAND strings can have more or less than eight data storage elements. Data memory cells can store user or system data. Dummy memory cells are typically not used to store user or system data.
One terminal of each NAND string is connected to a corresponding bit line via a drain select gate (connected to select gate drain line SGD), and another terminal is connected to a common source 505 via a source select gate (connected to select gate source line SGS). Thus, the common source 505 is coupled to each NAND string.
In one embodiment, referred to as an odd-even architecture, the bit lines are divided into even bit lines (BLe) and odd bit lines (BLo). In this case, storage elements along a common word line and connected to the odd bit lines are programmed at one time, while storage elements along a common word line and connected to even bit lines are programmed at another time. Data can be programmed into different blocks and read from different blocks concurrently. In each block, the columns are divided into even columns and odd columns.
During one configuration of read and programming operations, 4,256 storage elements are simultaneously selected. The storage elements selected have the same word line and are thus part of a common physical page. Therefore, 532 bytes of data, which also form a logical page, can be read or programmed simultaneously, and one block of the memory can store at least eight logical pages. In this example, a physical page and a logical page are the same but, in general, this is not required. For example, a physical page can include multiple logical pages. A logical page is typically the smallest set of storage elements that are written (programmed) simultaneously. For multi-state storage elements, when each storage element stores two bits of data, where each of these two bits are stored in a different page, one block stores sixteen logical pages. Other sized blocks and pages can also be used.
For either the ABL or the odd-even architecture, storage elements can be erased by raising the p-well to an erase voltage (e.g., 20 V) and grounding the word lines of a selected block. The source and bit lines are floating. Erasing can be performed on the entire memory array, separate blocks, or another unit of the storage elements which is a portion of the memory device. Electrons are transferred from the floating gates of the storage elements to the p-well region so that the VTH of the storage elements becomes negative.
In the read and verify operations, the select gates (SGD and SGS) are connected to a voltage in a range of 2.5 to 4.5 V and the unselected word lines are raised to a read pass voltage, VREAD, (typically a voltage in the range of 4.5 to 6 V) to make the transistors operate as pass gates. The selected word line is connected to a voltage, a level of which is specified for each read and verify operation, to determine whether a VTH of the concerned storage element is above or below such level. For example, in a read operation for a two-level storage element, the selected word line may be grounded, so that it is detected whether the VTH is higher than 0 V. In a verify operation for a two level storage element, the selected word line is connected to 0.8 V, for example, so that it is verified whether or not the VTH has reached at least 0.8 V. The source and p-well are at 0 V. The selected bit lines are pre-charged to a level of, for example, 0.7 V. If the VTH is higher than the read or verify level on the word line, the potential level of the bit line associated with the storage element of interest maintains the high level because of the non-conductive storage element. On the other hand, if the VTH is lower than the read or verify level, the potential level of the concerned bit line decreases to a low level, for example, less than 0.5 V, because the conductive storage element discharges the bit line. The state of the storage element can thereby be detected by a voltage comparator sense amplifier that is connected to the bit line, in one possible implementation. As with programming, read operations can be performed on a per-page basis.
Many details of erase, read and verify operations described above are performed according to techniques known in the art. Thus, many of the details explained can be varied by one skilled in the art. Other erase, read and verify techniques known in the art can also be used.
a depicts an initial threshold voltage distribution of a set of storage elements. The threshold voltage of a storage element is the lowest voltage that, when applied to the control gate of the storage element, changes the channel state from a non-conducting state to a conducting state. This voltage is affected by the amount of negative charge trapped in the floating gate: the more charge, the higher the threshold voltage of the cell. SLC (Single Level Cell)-type devices use storage elements with zero charged floating gates to represent a “1” state and storage elements with negatively charged floating gates to represent a “0” state. The state can be represented by the storage element's threshold voltage, in this case using two voltage levels, “1” state voltage and “0” state voltage. Although storage elements may have slightly different “0” state voltages, applying a voltage that is between the “1” state voltage and the “0” state voltage to the control gate causes the “1” state storage elements to conduct, but the “0” state storage elements stay in the non-conducting state.
The most common kind of Multi Level Cell (MLC)-type devices uses four charge amounts in the floating gate, including zero charge, so the state can be represented by four voltage levels, thus a MLC storage element stores two bits of data. Generally, N bits per storage element can be represented using 2N voltage levels. Newer devices are expected to use eight or more voltage levels. Using a high number of bits per storage element allows the production of flash devices with high data density and thus reduces the overall cost per flash device.
Further, the read operation of a SLC device uses one reference voltage level that is between the “0” and “1” voltage levels. The read operation in a MLC device with four states uses three reference voltage levels, an MLC device with eight states uses seven reference voltage levels, and, generally, a device that stores N bits per cell, that are represented by 2N states, uses 2N−1 reference voltage levels for read operations.
In
The amount of the charge trapped in the floating gate of the storage element should stay unchanged to keep the user data programmed in the memory device. However, the trapped charge can leak, causing the threshold voltage to decrease. Moreover, other factors such as temperature changes, number of programming cycles and so forth, can also affect the threshold voltage, so that the threshold voltage distribution widens and/or shifts over time.
b depicts a widened threshold voltage distribution of a set of storage elements. Here, the width of the threshold voltage distribution for each state is wider than that shown in
To address this, a dynamic read technique can be used that changes the read reference voltages, so that the reference voltages are set between the distribution groups. One approach is to change the initial set of reference voltages, e.g. VR1 through VR7, to another set of reference voltages, where both sets of reference voltages are determined according to the flash device characteristics. Switching from one set to another can be made according to the flash device operation information, such as number of program-erase cycles, temperature changes, time that the user data is kept in the flash, number of bit errors during read operation, and so forth.
Another way to determine the reference voltages is to measure the actual threshold voltage distribution and then to set the read reference voltage levels in such way as to minimize the number of read errors, e.g. by finding the minima points between the distribution groups, or by correlating the actual distribution to some distribution model, etc. This approach is based on an assumption that the memory device contains data represented by all voltage levels, and the data is evenly distributed between the levels, a condition that can be easily achieved by applying a scrambling algorithm to the user data. Unfortunately, the usual process of measuring the actual threshold levels distribution involves reading the memory device with many threshold levels in separate read operations, where the number of levels is dictated by the required resolution of the distribution measurement. If, for example, the memory device uses eight states, representing three bits per storage element, and a resolution of ten points per state is required, then it is necessary to perform read operations for each of 79 threshold levels to measure the threshold voltage distribution. Each read operation includes setting a read voltage, detecting the conductivity state of the storage elements and transferring the data for further processing, e.g., at an external host controller. As a result, the time and processing resources needed to determine the threshold level distribution can be burdensome. There is a need for a technique for quickly measuring the threshold voltage distribution of a memory device that overcomes the above-mentioned disadvantages.
In one possible approach, the control gate voltage of a set of storage elements is varied over a range of voltages, e.g., in a voltage sweep. This can be achieved by varying the voltage applied to a selected word line, for instance, starting from an initial level and proceeding to a final level. The voltage can start low and increase, or start high and decrease. Step 700 includes setting a control gate voltage of the storage elements at an initial level, e.g., VREF-INITIAL. Step 705 includes setting pass voltages for the unselected storage elements, e.g., via their respective word lines. Note that the steps shown in this and other flowcharts need not necessarily be performed as discrete steps in the sequence shown. Step 710 includes incrementing the control gate voltage while measuring a characteristic of the set of storage elements. Typically, the control gate voltage can be controlled according to a minimum voltage resolution, which represents the smallest change in voltage which can be provided. For example, the control gate voltage can be provided by a digital-to-analog converter which outputs a series of voltages in response to a series of code words. Such a digital-to-analog converter can be provided within the power control module 1616 of
In one approach, the characteristic is measured at a common point, such as a source line, which is in communication with the storage elements. A small amount of additional hardware and/or software may be needed to perform this function. For example, a measurement device 1454 in
Referring to
This discharging is sensed by a sense amplifier that is connected to each bit line, in one possible implementation, and reported back to a control circuit. The control circuit then removes a voltage which is applied to the bit lines of the corresponding storage elements, causing the storage element to transition from the conductive state to the non-conductive state. For example, as the control gate voltage is increased above VR1 (see
Step 720 includes storing the results of the above steps, including the characteristic versus control gate voltage data, for analysis, e.g., by an external host controller which is in communication with the memory device, by the memory device itself or by some other entity.
The process depicted in
a depicts a control gate voltage which increases continuously. Here, the control gate voltage, VCG, depicted by line 900, is incremented from an initial reference value VREF-INITIAL to a final reference value, VREF-FINAL, in a continuous sweep. For example, the control gate voltage can be incremented according to a minimum voltage resolution, which represents the smallest change in voltage which the memory device is capable of providing. As mentioned, the control gate voltage can be swept in an increasing or decreasing direction. The span between the initial value and the final value may encompass the lowest through the highest expected read reference voltages. The rate at which the control gate voltage varies can be set at an appropriate level based, e.g., on a response time of the storage elements, the rate at which the characteristic of the set of storage elements is measured, and other factors. Further, it is possible for the control gate voltage to vary at different rates. For instance, it may be desirable to determine the threshold voltage distribution for one or more specific states with greater accuracy, e.g., when storage elements in the specific states are subject to a greater threshold voltage widening and/or shift. In this case, the control gate voltage can be varied at a slower rate (e.g., V/sec.) in the vicinity of these states. On the other hand, the control gate voltage can be varied at a faster rate in the vicinity of specific states for which the threshold voltage distribution can be determined with less accuracy, e.g., for storage elements that are subject to a smaller threshold voltage widening and/or shift.
Moreover, the rate at which the characteristic of the set of storage elements is measured similarly need not be fixed, but can vary, e.g., to obtain more readings in the vicinity of specific threshold voltages of particular interest. It is also possible to perform multiple passes of control gate voltage sweeps, such as to confirm or compare previous results. Further, it is possible to perform portions of the voltage sweeps at different times. For instance, a first voltage sweep may encompass the first four states, and a second voltage sweep at a later time may encompass the next four states. In another approach, the voltage sweep continues until another higher priority task is pending, at which time the voltage sweep is halted and the higher priority task is serviced. Once the higher priority task has been serviced, the voltage sweep can be resumed at the control gate voltage at which it left off or thereabout.
b depicts a control gate voltage which increases in discrete steps. Here, the control gate voltage, VCG, depicted by line 950, is incremented from an initial value VREF-INITIAL to a final value, VREF-FINAL, in discrete steps in a discrete voltage sweep, e.g., in a staircase manner. For example, each step can be greater than the minimum control gate voltage resolution. The timing and/or frequency of the measurement of the characteristic can be set so that at least one measurement is made for each VCG step.
a depicts a combined current in a set of storage elements as a function of a continuously increasing control gate voltage. The cumulative or combined current of a set of storage element can be measured by a measurement device which is coupled to each storage element in the set, in one approach. For example, the current which passes through each conductive storage element travels to the common source line. Thus, an appropriate ammeter can be coupled to the common source line to measure the combined current, in one possible approach. Moreover, other characteristics of the set of storage elements, such as voltage and capacitance, can be measured similarly using appropriate circuitry. For instance, voltage can be measured using a voltmeter and capacitance can be measured using a capacitance meter. The characteristic thus includes contributions from a number of the storage elements in aggregate without necessarily identifying the contributions of specific individual storage elements. The x-axis depicts control gate voltage, VCG, and the y-axis depicts the combined current in a set of storage elements. A curve 1100 depicts a change in current with VCG. VCG varies between VREF-INITIAL and VREF-FINAL. The y-axis also represents the number of conductive storage elements, as there is a direct relationship between the combined current and the number of conductive storage elements.
As depicted by the curve 1100, the current starts at zero, in one implementation, while VCG is low and all storage elements are in a non-conductive state. The current then increases and levels off, as discussed in connection with
Note that the spacing between neighboring voltages of the read reference voltages VR1A through VR7A, is greater than the spacing between neighboring voltages of the control gate voltages, e.g., in
b depicts a threshold voltage distribution which is based on
As mentioned in connection with
Further, the information represented by the curve 1100 can be obtained using a continuous or discrete VCG sweep. In practice, in either case, the curve 1100 is formed from a number of measurement points at different VCG values.
a depicts a combined current in a set of storage elements as a function of a step wise increasing control gate voltage. The x-axis depicts control gate voltage, VCG, and the y-axis depicts the combined current in a set of storage elements. A curve 1200 depicts a change in current with VCG. The control gate voltage sweep can be provided as a series of discrete values as shown in
b depicts a threshold voltage distribution which is based on
a depicts a combined current in a set of storage elements as a function of a step wise increasing control gate voltage, with lockout of conducting storage elements. The x-axis depicts control gate voltage, VCG, and the y-axis depicts the combined current in a set of storage elements. A curve 1300 depicts a change in current with VCG. As mentioned in connection with step 715 of
As in
b depicts a threshold voltage distribution which is based on
The array of storage elements is divided into a large number of blocks of storage elements. As is common for flash EEPROM systems, the block is the unit of erase. That is, each block contains the minimum number of storage elements that are erased together. Each block is typically divided into a number of pages. A page is a unit of programming. In one embodiment, the individual pages may be divided into segments and the segments may contain the fewest number of storage elements that are written at one time as a basic programming operation. One or more pages of data are typically stored in one row of storage elements. A page can store one or more sectors. A sector includes user data and overhead data. Overhead data typically includes an Error Correction Code (ECC) that has been calculated from the user data of the sector. A portion of the controller (described below) calculates the ECC when data is being programmed into the array, and also checks it when data is being read from the array. Alternatively, the ECCs and/or other overhead data are stored in different pages, or even different blocks, than the user data to which they pertain.
A sector of user data is typically 512 bytes, corresponding to the size of a sector in magnetic disk drives. Overhead data is typically an additional 16-20 bytes. A large number of pages form a block, anywhere from 8 pages, for example, up to 32, 64, 128 or more pages. In some embodiments, a row of NAND strings comprises a block.
Additionally, a measurement device 1454 is coupled to the storage elements in different NAND strings, such as via a common source line 1404, in an example implementation. The measurement device 1454 can measure a combined current, voltage, capacitance or any other characteristic which indicates whether a number of storage elements satisfy a given condition. The given condition can be, e.g., whether a threshold voltage of a storage element is above or below a certain value, or within a certain range of values. The measurement device 1454 may communicate its findings to a controller of the memory device. Note that the measurement device 1454 may be used for measuring a characteristic of other sets of NAND strings in the memory array 1400, or separate measurement devices may be provided for the other sets of NAND strings.
The controller may respond to the information received from the measurement device 1454 by locking out bit lines and associated storage elements, e.g., bit lines 1406, 1407 and/or 1408, in an optional embodiment, as indicated by the notation “Lockout” in
The memory device responds to a read command by reading the data from the storage elements and making it available to the host controller. In one possible approach, the memory device stores the read data in the buffer 1515 and informs the host controller of when the data can be read. The host controller responds by reading the data from the buffer and sends another command to the memory device to read data from another address. For example the data may be read page by page. The host controller may process the read data to determine a threshold voltage distribution of the storage elements of the memory device. In another approach, control circuitry of the memory device determines the threshold voltage distribution. Further details of example embodiments of a memory device are provided below.
A typical memory system includes an integrated circuit chip that includes the controller 1510, and one or more integrated circuit chips that each contains a memory array and associated control, input/output and state machine circuits. The memory device may be embedded as part of the host system, or may be included in a memory card that is removably insertable into a mating socket of a host system. Such a card may include the entire memory device, or the controller and memory array, with associated peripheral circuits, may be provided in separate cards.
a is a block diagram of a non-volatile memory system using single row/column decoders and read/write circuits. The diagram illustrates a memory device 1696 having read/write circuits for reading and programming a page of storage elements in parallel, according to one embodiment of the present invention. Memory device 1696 may include one or more memory die 1698. Memory die 1698 includes a two-dimensional array of storage elements 1400, control circuitry 1610, and read/write circuits 1665. In some embodiments, the array of storage elements can be three dimensional. The memory array 1400 is addressable by word lines via a row decoder 1630 and by bit lines via a column decoder 1660. The read/write circuits 1665 include multiple sense blocks 1600 and allow a page of storage elements to be read or programmed in parallel. Typically a controller 1650 is included in the same memory device 1696 (e.g., a removable storage card) as the one or more memory die 1698. Commands and Data are transferred between the host and controller 1650 via lines 1620 and between the controller and the one or more memory die 1698 via lines 1621.
The control circuitry 1610 cooperates with the read/write circuits 1665 to perform memory operations on the memory array 500. The control circuitry 1610 includes a state machine 1612, an on-chip address decoder 1614 and a power control module 1616. The state machine 1612 provides chip-level control of memory operations. The on-chip address decoder 1614 provides an address interface between that used by the host or a memory controller to the hardware address used by the decoders 1630 and 1660. The power control module 1616 controls the power and voltages supplied to the word lines and bit lines during memory operations. For example, the power control module 1616 can provide a control gate read voltage to a selected word line, and read pass voltages to unselected word lines, for use during read operations and in determining a threshold voltage distribution of a set of storage elements. The power control module 1616 can also provide a voltage sweep to a selected word line. The power control module 1616 may include one or more digital-to-analog converters for this purpose, for instance. In this case, the control circuitry can generate a voltage sweep without the need for external test equipment, e.g., outside the memory die 1698. This is advantageous as it allows a voltage sweep to be generated at any time, including after manufacture of the memory device, when the end user has taken possession of the memory device. Further, the memory device 1696 can include circuitry for determining the threshold voltage distribution of the storage elements so that this process can be performed internally within the memory die 1698, without the need for external test equipment or an external host. This is advantageous as it allows the threshold voltage distribution to be determined at any time without external equipment.
In some implementations, some of the components of
The data stored in the memory array is read out by the column decoder 1660 and output to external I/O lines via the data I/O line and a data input/output buffer 1652. Program data to be stored in the memory array is input to the data input/output buffer 1652 via the external I/O lines. Command data for controlling the memory device are input to the controller 1650. The command data informs the flash memory of what operation is requested. The input command is transferred to the control circuitry 1610. The state machine 1612 can output a status of the memory device such as READY/BUSY or PASS/FAIL. When the memory device is busy, it cannot receive new read or write commands.
b is a block diagram of a non-volatile memory system using dual row/column decoders and read/write circuits. Here, an alternative arrangement of the memory device 1696 shown in
Sense module 1680 comprises sense circuitry 1670 that determines whether a conduction current in a connected bit line is above or below a predetermined threshold level. Sense module 1680 also includes a bit line latch 1682 that is used to set a voltage condition on the connected bit line. For example, a predetermined state latched in bit line latch 1682 will result in the connected bit line being pulled to a state designating program inhibit (e.g., VDD).
Common portion 1690 comprises a processor 1692, a set of data latches 1694 and an I/O Interface 1696 coupled between the set of data latches 1694 and data bus 1620. Processor 1692 performs computations. For example, one of its functions is to determine the data stored in the sensed storage element and store the determined data in the set of data latches. The set of data latches 1694 is used to store data bits determined by processor 1692 during a read operation. It is also used to store data bits imported from the data bus 1620 during a program operation. The imported data bits represent write data meant to be programmed into the memory. I/O interface 1696 provides an interface between data latches 1694 and the data bus 1620.
During read or sensing, the operation of the system is under the control of state machine 1612 that controls the supply of different control gate voltages to the addressed storage element. As it steps through the various predefined control gate voltages corresponding to the various memory states supported by the memory, the sense module 1680 may trip at one of these voltages and an output will be provided from sense module 1680 to processor 1692 via bus 1672. At that point, processor 1692 determines the resultant memory state by consideration of the tripping event(s) of the sense module and the information about the applied control gate voltage from the state machine via input lines 1693. It then computes a binary encoding for the memory state and stores the resultant data bits into data latches 1694. In another embodiment of the core portion, bit line latch 1682 serves double duty, both as a latch for latching the output of the sense module 1680 and also as a bit line latch as described above.
It is anticipated that some implementations will include multiple processors 1692. In one embodiment, each processor 1692 will include an output line (not depicted) such that each of the output lines is wired-OR'd together. In some embodiments, the output lines are inverted prior to being connected to the wired-OR line. This configuration enables a quick determination during the program verification process of when the programming process has completed because the state machine receiving the wired-OR can determine when all bits being programmed have reached the desired level. For example, when each bit has reached its desired level, a logic zero for that bit will be sent to the wired-OR line (or a data one is inverted). When all bits output a data 0 (or a data one inverted), then the state machine knows to terminate the programming process. Because each processor communicates with eight sense modules, the state machine needs to read the wired-OR line eight times, or logic is added to processor 1692 to accumulate the results of the associated bit lines such that the state machine need only read the wired-OR line one time. Similarly, by choosing the logic levels correctly, the global state machine can detect when the first bit changes its state and change the algorithms accordingly.
During program or verify, the data to be programmed is stored in the set of data latches 1694 from the data bus 1620. The program operation, under the control of the state machine, comprises a series of programming voltage pulses applied to the control gates of the addressed storage elements. Each programming pulse is followed by a read back (verify) to determine if the storage element has been programmed to the desired memory state. Processor 1692 monitors the read back memory state relative to the desired memory state. When the two are in agreement, the processor 1692 sets the bit line latch 1682 so as to cause the bit line to be pulled to a state designating program inhibit. This inhibits the storage element coupled to the bit line from further programming even if programming pulses appear on its control gate. In other embodiments the processor initially loads the bit line latch 1682 and the sense circuitry sets it to an inhibit value during the verify process.
Data latch stack 1694 contains a stack of data latches corresponding to the sense module. In one embodiment, there are three data latches per sense module 1680. In some implementations (but not required), the data latches are implemented as a shift register so that the parallel data stored therein is converted to serial data for data bus 1620, and vice versa. In the preferred embodiment, all the data latches corresponding to the read/write block of m storage elements can be linked together to form a block shift register so that a block of data can be input or output by serial transfer. In particular, the bank of r read/write modules is adapted so that each of its set of data latches will shift data in to or out of the data bus in sequence as if they are part of a shift register for the entire read/write block.
Additional information about the structure and/or operations of various embodiments of non-volatile storage devices can be found in (1) U.S. Pat. No. 7,196,931, issued Mar. 27, 2007, titled “Non-Volatile Memory And Method With Reduced Source Line Bias Errors”; (2) U.S. Pat. No. 7,023,736, issued Apr. 4, 2006, titled “Non-Volatile Memory And Method with Improved Sensing”; (3) U.S. Pat. No. 7,046,568, issued May 16, 2006, titled “Memory Sensing Circuit And Method For Low Voltage Operation”; (4) U.S. Patent Application Pub. 2006/0221692, published Oct. 5, 2006, titled “Compensating for Coupling During Read Operations of Non-Volatile Memory”; and (5) U.S. Patent Application Pub. No. 2006/0158947, published Jul. 20, 2006, titled “Reference Sense Amplifier For Non-Volatile Memory.” All five of the immediately above-listed patent documents are incorporated herein by reference in their entirety.
In standard NAND devices, the reading reference voltages are preset by the manufacturer and are not changeable by the users. In some devices, it is possible for the user to change read voltages by issuing a command, but this is typically limited in flexibility and quite cumbersome when used for generating a full histogram, that requires many readings, each requiring its separate re-setting of reference. The solution described so far in the text is proposed in order to solve this by providing an efficient method in which most of the work in controlling the generation of the readings required for the histogram is done by the memory die with relatively little intervention of the flash controller (actually it is even better—there is no real reading of the individual cells, only counting of their number in each interval of threshold voltage).
This is a very good solution, although a new circuitry module inside the flash die may be needed for summing of currents or voltages of many cells. However, there is also room for other solutions that require less from the memory die, putting more burden on the flash controller, while still providing a less cumbersome approach than prior approaches. For example, one solution is based on adding dedicated new commands to the memory—commands that allow the sequence of readings required for the histogram to be handled in an efficient manner without having to explicitly set the next reading level for each reading step.
In an example process, step 1800 includes the memory device receiving a first command. For instance, this can be a read command which specifies an address of a page of storage elements to be read. The command can include a first read reference voltage, or the memory device can be pre-configured with a first read reference voltage. Step 1805 includes the memory device performing a read operation using the first read reference voltage, VREF1, in response to the first command. The data which is read may be stored in a buffer, for instance, as discussed, and the memory device may inform the controller that the data can be retrieved from the buffer. At step 1810, the memory device receives a second command. For instance, this can be a read command which specifies an address of another page of storage elements to be read. At step 1815, the memory device generates a second read reference voltage, VREF2, using previously obtained information, e.g., information obtained prior to receiving the first command.
For instance, the memory device may be pre-configured with a voltage step size, VSTEP, which it uses to generate VREF2 from VREF2=VREF1+VSTEP or VREF2=VREF1+n·VSTEP, where n is a multiplier, or from a general relationship of VREF2=f(VREF1), where “f” represents some function. Thus, in one approach, the memory device does not receive VREF2 with the second command, or any other command, but instead uses previously obtained information for determining different read reference voltage based on the first read reference voltage. The information which is pre-configured into the memory device may be built in, so that it need not be provided by an external controller. At step 1820, the memory device performs a read operation using VREF2, in response to the second command. The process may continue similarly for additional read operations at different read reference voltages. In another possible approach, the step size can be set by the controller—either as part of the first read command or in a separate command.
In a particular implementation, the memory device reads the storage elements in response to the first command using only VREF1 and no other read reference voltage, and the memory device reads the storage elements in response to the second command using only VREF2 and no other read reference voltage.
In an example implementation, a memory device is configured with an initial read reference voltage, VREF, and a voltage step size, VSTEP, and subsequently generates new read reference voltages, e.g., from the relationship VREF=VREF+VSTEP. VSTEP thus provides the resolution with which the threshold voltage distribution is determined. Note that the step size for determining the threshold voltage distribution is not necessarily the same as that used in a programming sequence. At step 1900, a controller, such as an external host controller, begins a process for determining a threshold voltage distribution. The process can be initiated based on, e.g., a number of program-erase cycles, temperature changes, an elapsed time that user data has been stored in the memory device, a number of bit errors or other error metric from read operations, whether no other higher priority tasks are pending, and so forth. At step 1905, the controller provides the memory device with an initial read reference voltage VREF-INITIAL and a step size VSTEP in one or more commands. Or, the memory device can be pre-configured with VREF-INITIAL and/or VSTEP, e.g., before receiving the one or more commands. The information which is pre-configured into the memory device may be built in, so that it need not be provided by an external controller.
In any case, the VREF-INITIAL and/or VSTEP provide sufficient information for the memory device to generate a number of successive read reference values for reading a set of storage elements. Note that VSTEP can be positive or negative, in which case the memory device can generate an ascending or descending staircase of voltages, respectively, to be applied to a selected word line. It is also possible for the memory device to receive, or be pre-configured with, information for other voltage sequences. For instance, such information can define multiple step sizes and so forth. To illustrate, it may be desired to determine a threshold voltage distribution with a first and second step sizes for first and second groups of states, respectively. The information provided can therefore define how many read operations are performed with the first step size before switching to the second step size, for instance.
At step 1910, the controller provides a read command to the memory device. The read command may include a page address, for instance, of a page of storage elements to be read. The read command can include the VREF-INITIAL and/or VSTEP values or be provided as a separate command. In a first pass of the process of
At step 1930, the memory device informs the controller that the read data is available in the buffer, e.g., by setting a READY signal. At step 1935, the controller begins obtaining, e.g. reading out, the read data from the buffer. At decision step 1940, if the final read reference voltage has not yet been reached, and the process loops back to step 1910, where the controller provides a next read command (e.g., a “continue” command) to the memory device. In this subsequent pass, step 1920 is executed, in which the memory device increments the current value of VREF by VSTEP. Steps 1925 through 1935 are then repeated. At decision step 1940, when the final read reference voltage is reached, the controller provides a “stop reading” command to the memory device (step 1945). At step 1950, the controller determines the threshold voltage distribution and sets new read reference voltages accordingly, such as discussed above in connection with
Note that other possible approaches do not require the “stop” command, mentioned in step 1945. For example, the controller can simply abort the sequence of readings by sending another (regular) command such as read or write. It is not impossible to do it with an explicit stop command (the “read with cache” sequence works like that), but it is not really needed. Thus, the use of a “stop” command is just an example, but the command is not required for implementing the invention.
In a specific implementation, a technique for efficiently measuring threshold voltage distribution includes an operation sequence and associated set of commands, implemented in the memory device, and a counting and computation procedure in the controller. The operation sequence enables consecutive reads of a designated flash page or other set of storage elements, while automatically incrementing the read threshold from one read operation to another, thus generating a type of “scan” over the read threshold voltage range. The parameters of this “scan”, e.g., initial read threshold, VREF-INITIAL, and the threshold step, VSTEP, are loaded to the memory device by the controller prior to the command execution.
Upon completion of current read operation (a step in a “scan”) the memory device signals to the controller that new read data is available for processing. The controller may either issue a “continue” command for the next read step or “end of operation” (e.g., “stop reading”) command to signal that this step is the last one. As a further time saving measure, the controller may read the data of the previous step while the memory device is executing the current step, similar to a “read with cache” operation.
Generally, the threshold voltage distribution of a group of storage element (usually a page or a block of storage elements) is a histogram of the threshold voltages of the storage elements. See, e.g.,
If the memory device supports setting read thresholds for read operations, then it is possible to perform the above mentioned procedure by issuing N read commands preceded by a command (or a set of commands) for setting a value of the read threshold.
In summary, an efficient approach to performing the necessary read operations for determining threshold voltage distribution is to implement in a memory device, a mechanism and commands, which enable substantially autonomous generation of the read thresholds for the sense operations. In one approach, as discussed, the controller provides the memory device with the initial read reference voltage, VREF-INITIAL, and with the sense voltage step, VSTEP or ΔV, issues a “read threshold voltage distribution” command and monitors a ready/busy signal for an indication that the sense data is available at the memory device's buffer. When the signal is in the ready state, this indicates the sense data is available to be read out from the buffer by the controller. When the signal is in the busy state, this indicates the sense data is not available to be read out from the buffer. Once the read data is obtained, the next measurement point can be read.
An example command sequence for determining threshold voltage distribution is as follows. The specific commands used will depend on the implementation. A command for setting threshold voltage distribution scan parameters in which VREF-INITIAL and VSTEP are provided in the same command is:
“CMND1” is a command for modifying internal parameters of the memory device. “Addr” is an address for storing the Dat-1 and Dat-2 in the memory device. “Dat-1” provides VREF-INITIAL and “Dat-2” provides VSTEP. Dat-1 can be a byte which can have a value ranging from 0-255, for instance, and an appropriate resolution. Dat-2 can be a byte which can have values ranging from 0-255 also, for instance, and has a resolution which is the smallest resolution available in the memory device, in one possible approach. Another option involves providing separate commands for VREF-INITIAL and VSTEP, e.g.,
command 1: CMND1-Addr-1-Dat-1, and
command 2: CMND1-Addr-2-Dat-2.
Here, Addr-1 is an address for storing Dat-1 in the memory device and Addr-2 is an address for storing Dat-2 in the memory device.
A command reading sequence which may be used is as follows:
CMND2 is a code word which signals that the command is a reading command. Data_Addr is an address of the set of storage elements, such as a page address. CMND3 indicates that the read is for a threshold voltage distribution. CMND2, Data_Addr and CMND3 are commands which are provided by the controller to the memory device. “B/R” (busy/ready) indicates a busy or ready condition which is set by the memory device and monitored by the controller. When a busy/ready condition goes to busy and then returns to the ready state, this indicates to the controller that the sense data is available to be read out from the memory device's buffer. Read Data” indicates reading of data from the memory device. CMND4 indicates a “continue threshold voltage distribution” command issued by the controller. The memory device performs the next reading in response to this command. CMND5 is a command provided from the controller to the memory device to stop the reading process after the current read operation. Again, the command syntax provided here is an example only and will vary based on the specific implementation.
With the above-mentioned approach, the controller first sets VREF-INITIAL and VSTEP. The controller then issues a threshold voltage distribution read command sequence, similar to a normal read, waits for the ready signal and shifts the data out of the buffer. Upon completion of the current read operation and transfer of the read data to the cache buffer, the memory device increments the read reference voltage by VSTEP and starts the next read threshold voltage distribution operation. Following shifting out the result of a previous read, the controller issues either a “continue” command (CMND4) or a termination command (CMND5). When the memory device receives the CNMD5 command, it stops the reading process after the current read operation, similar to a normal read with cache. In this case, the controller will have the last page of data available for shifting out after the B/R condition which follows CMND5 command.
Note that this example approach does not use caching because the “continue” command (CMND4) is sent only after the controller reads the data out. In order to use the “cached” method, CMND4 must come before the “Read Data” operation (in each of the iterations). Another approach, described in connection with
The foregoing detailed description of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. The described embodiments were chosen to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto.
This application is related to co-pending, commonly assigned U.S. patent application Ser. No. ______, titled “Measuring Threshold Voltage Distribution In Memory Using An Aggregate Characteristic” (docket no. SAND-1283US0/MSD-0027), incorporated herein by reference.