This application claims the benefit of People's Republic of China Application Serial No. 201310229698.X, filed Jun. 8, 2013, the subject matter of which is incorporated herein by reference.
The present invention relates to a method for estimating a distribution curve of a storing state of a solid state storage device, and more particularly to a method for estimating a Gaussian distribution curve of a storing state of a solid state storage device.
As is well known, the solid state storage devices using NAND-based flash memories are widely used in a variety of electronic devices. For example, a SD card or a solid state drive (SSD) is a solid state storage device that uses a NAND-based flash memory to store data.
According to the data amount to be stored, the NAND-based flash memories may be classified into three types, i.e. a single-level cell (SLC) flash memory, a multi-level cell (MLC) flash memory and a triple-level cell (TLC) flash memory. The SLC flash memory can store only one bit of data per cell. The MLC flash memory can store two bits of data per cell. The TLC flash memory can store three bits of data per cell.
Generally, the floating gate transistor of each cell has a floating gate to store hot carriers. A threshold voltage (VTH) of the floating gate transistor is determined according to the amount of the stored hot carriers. If a floating gate transistor has a higher threshold voltage, it means that a higher gate voltage is required to turn on the floating gate transistor. Whereas, if a floating gate transistor has a lower threshold voltage, it means that the floating gate transistor can be turned on by a lower gate voltage.
During a program cycle of the flash memory, the threshold voltage of the floating gate transistor may be changed by controlling the amount of hot carriers to be injected into the floating gate. During a read cycle, a sensing circuit of the solid state storage device may judge the storing state of the floating gate transistor according to the threshold voltage of the floating gate transistor.
In practice, even if many cells are programmed to have the same storing state during the program cycle, the threshold voltages of these cells are not all identical. That is, the threshold voltages of these cells are distributed in a specified distribution curve with a median threshold voltage. For example, as shown in
As shown in
In case that the threshold voltage of a cell is lower than the first sensing voltage Vs1, it is considered that the cell has a storing state E. If the threshold voltage of the cell is higher than the first sensing voltage Vs1 and lower than the second sensing voltage Vs2, the cell has a storing state A. If the threshold voltage of a cell is higher than the second sensing voltage Vs2 and lower than the third sensing voltage Vs3, it is considered that the cell has a storing state B. If the threshold voltage of a cell is higher than the third sensing voltage Vs3, it is considered that the cell has a storing state C.
Generally, the settings of the sensing voltages may influence the data error rate. For example, in the solid state storage device of
Of course, the above method may be applied to a SLC solid state storage device and a TLC solid state storage device. When the above method is applied to the SLC solid state storage device, one sensing voltage is sufficient to detect two storing states of the SLC solid state storage device. When the above method is applied to the TLC solid state storage device, seven sensing voltages are employed to detect eight storing states of the TLC solid state storage device. The operating principles are similar to those mentioned above, and are not redundantly described herein.
For acquiring the threshold voltage distribution curves as shown in
After the solid state storage device leaves the factory, if the solid state storage device has been written and erased many times, the threshold voltage distribution curve of each storing state of the solid state storage device are possibly changed. Under this circumstance, the median threshold voltage is shifted. If the above method is utilized to acquire the threshold voltage distribution curves of different storing states by gathering the statistic data, new sensing voltages can be created to reduce the data error rate. However, since the solid state storage device is under control of the user after the solid state storage device leaves the factory, it is impossible to utilize the above method to gather the statistic data and acquire the threshold voltage distribution curves of different storing states. In other words, after the solid state storage device has been used for a long term, if the old sensing voltages obtained at the factory are still used to distinguish the storing states of the cells from each other, the data error rate of the solid state storage device will be increased.
An embodiment of the present invention provides a method for estimating a distribution curve of a storing state of a solid state storage device. The solid state storage device has M cells with a first storing state. The distribution curve estimation method includes the following steps. Firstly, plural threshold voltages are provided to define plural threshold voltage intervals. Then, numbers of cells within respective threshold voltage intervals are calculated. A location parameter interval is determined according to the numbers of cells within the threshold voltage intervals. Then, the percentages of the cells within respective threshold voltage intervals are determined, and thus a distribution curve table is established. Then, m candidate location parameters within the location parameter interval are determined, and n candidate scale parameters are set. Then, m×n candidate Gaussian distribution curves are determined according to the m candidate location parameters and the n candidate scale parameters. A first Gaussian distribution curve is selected from the m×n candidate Gaussian distribution curves, and the first Gaussian distribution curve is defined as the distribution curve of the first storing state.
Numerous objects, features and advantages of the present invention will be readily apparent upon a reading of the following detailed description of embodiments of the present invention when taken in conjunction with the accompanying drawings. However, the drawings employed herein are for the purpose of descriptions and should not be regarded as limiting.
The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
As previously described, the conventional method of acquiring a threshold voltage distribution curve of a solid state storage device is very troublesome and time-consuming. For solving the drawbacks, the present invention provides a method for estimating a distribution curve of a storing state of a solid state storage device. The method of the present invention is capable of quickly estimating the distribution curve of a storing state of a solid state storage device after the solid state storage device leaves the factory. Of course, the method of the present invention also can be utilized to estimate the distribution curve of a storing state of a solid state storage device before the solid state storage device leaves the factory.
Generally, the distribution curve of the storing state of the solid state storage device has the Gaussian-like characteristics. In accordance with the present invention, a Gaussian distribution curve with specified parameters is determined as the distribution curve of the storing state by calculation.
As is well known, the parameters of the Gaussian distribution curve include a location parameter μ (mean) and a scale parameter σ (sigma).
Please refer to
From the above discussions, after the location parameter μ and the scale parameter σ are determined, a Gaussian distribution curve with a specified shape is defined. Moreover, if a threshold voltage distribution curve of a specified storing state complies with the Gaussian distribution curve, the area under the Gaussian distribution curve and between any two locations v1 and v2 of the X axis may be defined as the percentage of the cell number between any two threshold voltages v1 and v2.
The above operating principles may be applied to the method of the present invention. That is, by detecting the numbers of cells of the solid state storage device within plural threshold voltage intervals, a location parameter and a scale parameter are determined. According to the location parameter and the scale parameter, a corresponding Gaussian distribution curve is generated. The Gaussian distribution curve is used as the distribution curve of the storing state. The operating principles of the present invention will be illustrated in more details as follows.
After the solid state storage device has been written and erased many times, the threshold voltage distribution curve of each storing state of the solid state storage device are possibly changed. Under this circumstance, the median threshold voltage is shifted.
In accordance with the present invention, plural threshold voltages are provided by the solid state storage device to define plural threshold voltage intervals, and a location parameter interval is determined by gathering statistics about the numbers of cells within respective threshold voltage intervals. Hereinafter, an example of estimating the distribution curve of a specified storing state will be illustrated. Moreover, it is assumed that the solid state storage device has M cells with the specified storing state.
Firstly, in the step S402, a first threshold voltage v1 and a second threshold voltage v2 are determined, and k is set as one (k=1). Then, in the step S404, an average threshold voltage d is obtained according to the first threshold voltage v1 and the second threshold voltage v2, i.e. d=(v1+v2)/2. Moreover, the cells having the first threshold voltage v1 and the second threshold voltage v2 are all considered to have the specified storing state.
Next, in the step S406, a cell number N1 between the first threshold voltage v1 and the average threshold voltage d is calculated. In particular, a first sensed cell number is acquired by using the first threshold voltage v1 as the sensing voltage, and a second sensed cell number is acquired by using the average threshold voltage d as the sensing voltage. After the first sensed cell number is subtracted from the second sensed cell number, the cell number N1 between the first threshold voltage v1 and the average threshold voltage d is obtained.
Next, in the step S408, a cell number N2 between the average threshold voltage d and the second threshold voltage v2 is calculated. In particular, a third sensed cell number is acquired by using the second threshold voltage v2 as the sensing voltage. After the second sensed cell number is subtracted from the third sensed cell number, the cell number N2 between the average threshold voltage d and the second threshold voltage v2 is obtained.
If an inequality N1>N2 is satisfied (Step S410), set v2=d (Step S412). Whereas, if the inequality N1>N2 is not satisfied (Step S410), set v1=d (Step S414).
Next, if an equation k=n is not satisfied (Step S416), set k=k+1 (Step S418) and go back to the step S404. Whereas, if the equation k=n is satisfied (Step S416), the range between v1 and v2 is set as the location parameter interval (Step S420). In the step S416, n is the number of loops for processing this flowchart. As n increases, the location parameter interval becomes narrower.
As shown in
As shown in
As shown in
As shown in
After the location parameter interval is determined by the procedures of
Next, plural candidate location parameters within the location parameter interval are selected, and plural candidate scale parameters are selected. As shown in
After the candidate Gaussian distribution curves are created, a first Gaussian distribution curve is selected from the candidate Gaussian distribution curves according to the known distribution curve table of
An approach of selecting the first Gaussian distribution curve from the candidate Gaussian distribution curves will be illustrated in more details as follows. For illustration, four candidate Gaussian distribution curves GD21˜GD24 defined by the candidate location parameter μ2 and four candidate scale parameters (σ1˜σ4) are taken as examples. The other candidate Gaussian distribution curves are calculated by the similar approach, and are not redundantly described herein.
As shown in
In
In
In
In
After the percentages of the cell numbers of all candidate Gaussian distribution curves GD11˜GD64 within various threshold voltage intervals are obtained, the percentages corresponding to the candidate Gaussian distribution curves and the threshold voltage intervals are listed in the table of
Then, the errors between the known percentages of
For example, it is assumed that the candidate Gaussian distribution curve GD22 has the least error E with respect to the known percentages of
In other words, since the percentages of the candidate Gaussian distribution curve GD22 are the closest to the known percentages of
Similarly, the above approach may be used to determine the distribution curves of the other storing states (i.e. the storing states E, B and C) of the MLC solid state storage device.
Firstly, plural threshold voltages are provided to define plural threshold voltage intervals (Step S902), and the numbers of cells within respective threshold voltage intervals are calculated (Step S904).
Then, a location parameter interval is determined according to the numbers of cells within the threshold voltage intervals (Step 906). Then, the percentages of cells within respective threshold voltage intervals and with respect to the M cells having the first storing state are calculated, and a distribution curve table is established according to the percentages and respective threshold voltage intervals (Step S908).
Then, m candidate location parameters within the location parameter interval are determined (Step S910), and n candidate scale parameters are set (Step S912). Then, m×n candidate Gaussian distribution curves are determined according to the m candidate location parameters and the n candidate scale parameters, (Step S914). Afterwards, a first Gaussian distribution curve is selected from the m×n candidate Gaussian distribution curves and defined as the distribution curve of the first storing state (Step S916). The first Gaussian distribution curve is the best distribution curve that fits the known distribution curve table.
From the above descriptions, the present invention provides a method for estimating a distribution curve of a storing state of a solid state storage device. A Gaussian distribution curve fitting the known distribution curve table is selected as the distribution curve of the specified storing state.
While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
201310229698.X | Jun 2013 | CN | national |