Memory system
The memory system addresses speed and accuracy issues by dynamically adjusting read voltages through independent tracking processes, enhancing data retrieval speed and reducing errors in non-volatile memory systems.
Patent Information
- Application Number
- JP2023021015
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-14
- Publication Date
- 2024-08-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing memory systems face challenges in achieving increased operating speed due to variations in threshold voltage distributions of memory cell transistors, leading to increased error rates and reduced data read accuracy.
The memory system incorporates a memory controller that performs tracking processes independently of host requests, calculates and updates shift amounts for read voltages, and executes read operations using optimized shift amounts to improve data read accuracy and speed.
The system enhances operating speed by dynamically adjusting read voltages based on real-time threshold voltage distributions, reducing error rates and improving data retrieval efficiency.
Smart Images

Figure 2024115360000001
Abstract
Description
[Technical field]
[0001] FIELD OF THE DISCLOSURE Embodiments of the present invention relate to a memory system. [Background technology]
[0002] 2. Description of the Related Art A memory system including a nonvolatile memory such as a NAND flash memory and a memory controller that controls the nonvolatile memory is known. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2020-47318 A [Patent Document 2] JP 2020-107376 A [Patent Document 3] U.S. Patent No. 9,595,320 Summary of the Invention [Problem to be solved by the invention]
[0004] One embodiment provides a memory system with improved operating speed. [Means for solving the problem]
[0005] The memory system of the embodiment includes a nonvolatile memory including a plurality of memory cells, and a memory controller configured to execute a read process to read data from the plurality of memory cells. The memory controller is further configured to execute a first tracking process in a patrol process independent of a request from a host, and calculate a value of a first voltage as a result of the first tracking process. The memory controller is further configured to execute the first read process in response to receiving a read request from the host, read the first data from the nonvolatile memory, and cause the nonvolatile memory to execute a second tracking process using the first voltage in response to failure in error correction of the first data. The memory controller is further configured to receive a value of a second voltage from the nonvolatile memory as a result of the second tracking process, execute a second read process using the second voltage, and read the second data from the nonvolatile memory. [Brief description of the drawings]
[0006] [Figure 1] 1 is a block diagram showing the configuration of an information processing system according to a first embodiment. [Diagram 2] FIG. 2 is a block diagram showing an example of signals used in a memory bus according to the first embodiment. [Diagram 3] 1 is a circuit diagram showing an example of the configuration of a nonvolatile memory according to a first embodiment. [Figure 4] 5A and 5B are schematic diagrams showing an example of threshold voltage distributions of a plurality of memory cell transistors according to the first embodiment and an example of a cumulative distribution function. [Diagram 5] 4 is a diagram showing the configuration of shift amount information used in the memory system according to the first embodiment. [Figure 6] 5A and 5B are schematic diagrams showing another example of threshold distributions of a plurality of memory cell transistors according to the first embodiment and another example of a cumulative distribution function. [Figure 7] 5A and 5B are schematic diagrams showing yet another example of threshold distributions and yet another example of cumulative distribution functions of a plurality of memory cell transistors according to the first embodiment. [Figure 8]6 is a flowchart showing an example of a patrol process in the memory system according to the first embodiment. [Figure 9] 11 is a flowchart showing an example of a tracking process in the memory system according to the first embodiment. [Figure 10] 11 is a flowchart showing an example of a tracking process in the memory system according to the first embodiment. [Figure 11] 4 is a diagram for explaining an initial value of a shift amount used in a tracking process in the memory system according to the first embodiment. [Figure 12] 4A and 4B are diagrams for explaining a shift amount used in a tracking process in the memory system according to the first embodiment. [Figure 13] 5A and 5B are diagrams for explaining initial values of reset shift amounts used in the tracking process in the memory system according to the first embodiment. [Figure 14] 5A and 5B are diagrams for explaining initial values of reset shift amounts used in the tracking process in the memory system according to the first embodiment. [Figure 15] 4A to 4C are diagrams for explaining a suitable shift amount calculated in the tracking process in the memory system according to the first embodiment. [Figure 16] 11 is a flowchart showing an example of a host read process in the memory system according to the first embodiment. [Figure 17] FIG. 11 is a block diagram showing the configuration of an information processing system according to a second embodiment. [Figure 18] FIG. 11 is a diagram showing an example of the configuration of a lookup table used in the memory system according to the second embodiment. [Figure 19] 10 is a flowchart showing an example of a tracking process in the memory system according to the second embodiment. [Figure 20] 10 is a flowchart showing an example of a tracking process in the memory system according to the second embodiment. [Figure 21] 13A and 13B are diagrams for explaining a suitable shift amount calculated in a tracking process in a memory system according to a second embodiment. [Figure 22] 13A and 13B are diagrams for explaining a specific example of a tracking process in the memory system according to the second embodiment. [Diagram 23] FIG. 13 is a diagram showing an example of a first estimation method applied to a shift amount estimation process in a memory system according to a modified example. [Figure 24] FIG. 13 is a diagram showing an example of a second estimation method applied to a shift amount estimation process in a memory system according to a modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0007] Hereinafter, the embodiments will be described with reference to the drawings. In the description, components having substantially the same functions and configurations are given the same reference numerals. The embodiments described below are merely examples of technical ideas. The materials, shapes, structures, arrangements, etc. of the components are not specified in the embodiments. Various modifications can be made to the embodiments.
[0008] <1> First embodiment <1-1> Configuration <1-1-1> Information processing system The configuration of the information processing system according to the first embodiment will be described.
[0009] 1 is a block diagram showing the configuration of an information processing system according to Embodiment 1. As shown in FIG.
[0010] The host device 2 is a data processing device that processes data using the memory system 3. The host device 2 is, for example, a personal computer or a server in a data center.
[0011] The memory system 3 is a storage device configured to be connected to the host device 2. The memory system 3 is, for example, an SD TM The hard disk drive can be a memory card, a Universal Flash Storage (UFS) device, or a Solid State Drive (SSD).
[0012] <1-1-2> Memory system The internal configuration of the memory system according to the first embodiment will be described.
[0013] The memory system 3 includes a non-volatile memory 10, a volatile memory 20, and a memory controller 30.
[0014] The nonvolatile memory 10 is, for example, a NAND flash memory. The nonvolatile memory 10 includes a plurality of blocks BLK (BLK0 to BLK3). Each block BLK includes a plurality of memory cell transistors (hereinafter also simply referred to as memory cells) that store data in a nonvolatile manner. Each block BLK is, for example, a data erase unit.
[0015] The volatile memory 20 is, for example, a dynamic random access memory (DRAM). The volatile memory 20 stores shift amount information 21. The shift amount information 21 will be described in detail later.
[0016] The memory controller 30 is configured by an integrated circuit such as a System-on-a-Chip (SoC). The memory controller 30 controls the non-volatile memory 10 based on a request from the host device 2 or regardless of a request from the host device 2.
[0017] Specifically, for example, the memory controller 30 reads read data from the nonvolatile memory 10 based on a read request from the host device 2. Then, the memory controller 30 transmits data based on the read data to the host device 2. Also, for example, the memory controller 30 reads the read data from the nonvolatile memory 10 as an internal process. Then, the memory controller 30 controls the nonvolatile memory 10 based on the read data.
[0018] <1-1-3> Memory controller Next, the internal configuration of the memory controller 30 will be described with continued reference to Fig. 1. The memory controller 30 includes a control circuit 31, a buffer memory 32, a host interface circuit (host I / F) 33, an ECC (Error Correction and Check) circuit 34, a non-volatile memory interface circuit (NVM I / F) 35, a volatile memory interface circuit (VM I / F) 36, and an arithmetic circuit 37. The functions of each of the units 31-37 of the memory controller 30 described below can be realized by dedicated hardware, a processor that executes firmware, or a combination of these.
[0019] The control circuit 31 is a circuit that controls the entire memory controller 30. The control circuit 31 includes, for example, a processor such as a CPU (Central Processing Unit) and a ROM (Read Only Memory).
[0020] The buffer memory 32 is, for example, a static random access memory (SRAM). The buffer memory 32 buffers data between the host device 2 and the nonvolatile memory 10. The buffer memory 32 temporarily stores write data and read data.
[0021] The host interface circuit 33 controls communication between the memory controller 30 and the host device 2. The host interface circuit 33 is connected to the host device 2 via a host bus. The host bus is, for example, TM Interface: M-PHY, SAS (Serial Attached SCSI (Small Computer System Interface)), SATA (Serial ATA (Advanced Technology Attachment)), or PCIe TM (Peripheral Component Interconnect express).
[0022] The ECC circuit 34 performs error detection and error correction on data stored in the non-volatile memory 10. That is, during data write processing, the ECC circuit 34 adds an error correction code to the write data. During data read processing, the ECC circuit 34 decodes the read data and detects the presence or absence of a fail bit. A fail bit is a bit of data (bit string) read from a plurality of memory cells that is different from the data written to the plurality of memory cells. When a fail bit is detected, the ECC circuit 34 identifies the column address of the fail bit and performs error correction. Methods of error correction include, for example, hard bit decoding and soft bit decoding. For example, a BCH (Bose-Chaudhuri-Hocquenghem) code or an RS (Reed-Solomon) code can be used as a hard decision decoding code used in hard decision decoding. For example, a LDPC (Low Density Parity Check) code can be used as a soft decision decoding code used in soft decision decoding.
[0023] The nonvolatile memory interface circuit 35 manages communication between the nonvolatile memory 10 and the memory controller 30. The nonvolatile memory interface circuit 35 is connected to the nonvolatile memory 10 via a memory bus BUS. The memory bus BUS complies with, for example, a single data rate (SDR) interface, a toggle double data rate (DDR) interface, or an open NAND flash interface (ONFI).
[0024] The volatile memory interface circuit 36 manages communication between the volatile memory 20 and the memory controller 30. The bus connecting the volatile memory 20 and the memory controller 30 complies with, for example, the DRAM interface standard.
[0025] The arithmetic circuit 37 is, for example, a counter. The arithmetic circuit 37 counts the number of memory cells that have stored the same value from the read data stored in the buffer memory 32.
[0026] <1-1-4> Memory bus Next, a description will be given of an example of signals exchanged between the nonvolatile memory 10 and the memory controller 30. Fig. 2 is a block diagram showing an example of signals used in the memory bus according to the first embodiment.
[0027] Signals used in the memory bus BUS include, for example, a chip enable signal CEn, a command latch enable signal CLE, an address latch enable signal ALE, a write enable signal WEn, a read enable signal REn, a write protect signal WPn, a ready / busy signal RBn, and an input / output signal I / O. In this specification, the "n" at the end of the signal name means that the signal is asserted when it is at the "L (Low)" level.
[0028] The chip enable signal CEn is a signal for enabling the nonvolatile memory 10.
[0029] The command latch enable signal CLE and the address latch enable signal ALE are signals that notify the nonvolatile memory 10 that the input signal I / O to the nonvolatile memory 10 is a command and an address, respectively.
[0030] The write enable signal WEn is a signal for causing the nonvolatile memory 10 to take in the input signal I / O.
[0031] The read enable signal REn is a signal for reading the output signal I / O from the nonvolatile memory 10.
[0032] The write protect signal WPn is a signal for instructing the nonvolatile memory 10 to prohibit writing and erasing of data.
[0033] The ready / busy signal RBn is a signal indicating whether the nonvolatile memory 10 is in a ready state or a busy state. The ready state is a state in which the nonvolatile memory 10 can receive commands from the memory controller 30. The busy state is a state in which the nonvolatile memory 10 cannot receive commands from the memory controller 30. The ready / busy signal RBn indicates a busy state at the "L" level.
[0034] The input / output signal I / O is, for example, an 8-bit signal. The input / output signal I / O is the substance of data transmitted and received between the nonvolatile memory 10 and the memory controller 30. The input / output signal I / O includes a command, an address, a status, write data, and read data.
[0035] <1-1-5> Non-volatile memory Next, the internal configuration of the nonvolatile memory 10 will be described. Fig. 3 is a circuit diagram showing an example of the configuration of the nonvolatile memory according to the first embodiment. In Fig. 3, the configuration of block BLK0 is shown as an example. The configurations of the other blocks BLK1 to BLK3 are the same as the configuration of block BLK0. Block BLK0 includes, for example, four string units SU0 to SU3. Note that in Fig. 3, the configurations of string units SU2 and SU3 are shown in a simplified manner.
[0036] Each string unit SU includes a plurality of NAND strings NS respectively associated with bit lines BL0 to BLm (m is an integer equal to or greater than 1). The NAND string NS includes, for example, memory cell transistors MT0 to MT7 and select transistors ST1 and ST2.
[0037] The memory cell transistor MT includes a control gate and a charge storage layer, and stores data in a non-volatile manner. Each of the selection transistors ST1 and ST2 is used to select a string unit SU during various processes.
[0038] In each NAND string NS, the memory cell transistors MT0 to MT7 are connected in series. A select transistor ST1 is connected between one end of the series-connected memory cell transistors MT0 to MT7 and the associated bit line BL. The drain of a select transistor ST2 is connected to the other end of the series-connected memory cell transistors MT0 to MT7. A source line SL is connected to the source of the select transistor ST2.
[0039] In the same block BLK, the gates of the select transistors ST1 included in the string units SU0 to SU3 are commonly connected to select gate lines SGD0 to SGD3, respectively. The control gates of the memory cell transistors MT0 to MT7 are commonly connected to word lines WL0 to WL7, respectively. The gates of the select transistors ST2 are commonly connected to a select gate line SGS.
[0040] The bit lines BL0 to BLm are shared by the multiple blocks BLK0 to BLK3. The same bit line BL is connected to the NAND strings NS corresponding to the same column address. The word lines WL0 to WL7 are provided in each of the blocks BLK0 to BLK3. The source line SL is shared by, for example, the multiple blocks BLK0 to BLK3.
[0041] A set of multiple memory cell transistors MT connected to a common word line WL in one string unit SU is called, for example, a cell unit CU, and is used as a data write unit. For example, the storage capacity of a cell unit CU including memory cell transistors MT each storing one bit of data is defined as a page. A page is used, for example, as a data read unit. Data having a size of one page is defined as page data. In other words, one page data is data having a number of bits equal to the number of memory cell transistors MT in the cell unit CU. A cell unit CU may have a storage capacity of two or more pages depending on the number of bits stored in the memory cell transistors MT.
[0042] The circuit configuration of the block BLK described above is merely an example, and is not limited thereto. For example, the number of blocks BLK included in the nonvolatile memory 10 can be designed to be any number. The number of string units SU included in each block BLK can be designed to be any number. The number of memory cell transistors MT and select transistors ST1 and ST2 included in each NAND string NS can be designed to be any number.
[0043] In this embodiment, one memory cell transistor MT can store 3-bit data. That is, the memory cell transistor MT in this embodiment is a TLC (Triple Level Cell) that stores 3-bit data. The 3-bit data stored in the memory cell transistor MT configured as a TLC is called the lower bit, the middle bit, and the upper bit, from the lowest bit. In addition, a set of lower bits stored in the memory cell transistors MT included in the same cell unit CU is called the "lower page data", a set of middle bits is called the "middle page data", and a set of upper bits is called the "upper page data".
[0044] 4 is a schematic diagram showing an example of threshold voltage distributions and an example of a cumulative distribution function of a plurality of memory cell transistors MT according to the first embodiment. The upper part of FIG. 4 shows the threshold voltage distributions, and the lower part of FIG. 4 shows the cumulative distribution function. When the memory cell transistor MT stores 3-bit data, the distribution of the threshold voltages is divided into eight. These eight threshold voltage distributions are called the "S0" state, the "S1" state, the "S2" state, the "S3" state, the "S4" state, the "S5" state, the "S6" state, and the "S7" state, in order from the lowest threshold voltage.
[0045] Voltages R1, R2, R3, R4, R5, R6, and R7 shown in FIG. 4 are used to distinguish between two adjacent states during a read process. Voltage VREAD is a voltage applied to unselected word lines during a read process. When voltage VREAD is applied to the gate of memory cell transistor MT, it turns on regardless of the data to be stored. The relationship between these voltage values is as follows: R1 <R2<R3<R4<R5<R6<R7<VREADである。
[0046] In the above-mentioned threshold voltage distribution, the "S0" state corresponds to the erased state of the memory cell transistor MT. The threshold voltage in the "S0" state is less than voltage R1. The threshold voltage in the "S1" state is equal to or greater than voltage R1 and less than voltage R2. The threshold voltage in the "S2" state is equal to or greater than voltage R2 and less than voltage R3. The threshold voltage in the "S3" state is equal to or greater than voltage R3 and less than voltage R4. The threshold voltage in the "S4" state is equal to or greater than voltage R4 and less than voltage R5. The threshold voltage in the "S5" state is equal to or greater than voltage R5 and less than voltage R6. The threshold voltage in the "S6" state is equal to or greater than voltage R6 and less than voltage R7. The threshold voltage in the "S7" state is equal to or greater than voltage R7 and less than voltage VREAD.
[0047] The above-mentioned eight threshold voltage distributions are formed by writing 3-bit data including a lower bit, a middle bit, and an upper bit to each memory cell transistor MT. The eight threshold voltage distributions correspond to different 3-bit data. In this embodiment, for the memory cell transistor MT included in each state, data is assigned to the "upper bit / middle bit / lower bit" as shown below.
[0048] That is, the memory cell transistor MT in the "S0" state stores "111" data. The memory cell transistor MT in the "S1" state stores "110" data. The memory cell transistor MT in the "S2" state stores "100" data. The memory cell transistor MT in the "S3" state stores "000" data. The memory cell transistor MT in the "S4" state stores "010" data. The memory cell transistor MT in the "S5" state stores "011" data. The memory cell transistor MT in the "S6" state stores "001" data. The memory cell transistor MT in the "S7" state stores "101" data.
[0049] The lower page read is a read process that uses a voltage R1 that distinguishes between the "S0" state and the "S1" state, and a voltage R5 that distinguishes between the "S4" state and the "S5" state, as read voltages.
[0050] The middle page read is a read process that uses voltage R2, which distinguishes between the S1″ state and the S2 state, voltage R4, which distinguishes between the S3″ state and the S4 state, and voltage R6, which distinguishes between the S5″ state and the S6 state, as read voltages.
[0051] The upper page read is a read process that uses voltage R3, which distinguishes between the "S2" state and the "S3" state, and voltage R7, which distinguishes between the "S6" state and the "S7" state, as read voltages.
[0052] The data stored in the cell unit CU is randomized so that each state from "S0" to "S7" exists evenly.
[0053] Moreover, the cumulative distribution function shown at the bottom of Figure 4 represents how many memory cell transistors MT are in an ON state when data is read with a certain read voltage. The horizontal axis represents the magnitude of the read voltage, and the vertical axis represents the total number of memory cell transistors MT in the ON state (hereinafter also referred to as the ON cell count). The expected number of memory cell transistors MT in each state is E. In this case, it is expected that the ON cell count will increase by E each time the read voltage increases by the voltage required to distinguish between each state.
[0054] Specifically, when the read voltage is voltage R1, the expected number of ON cells is E. When the read voltage is increased to voltage R2, the expected number of ON cells is 2×E. When the read voltage is increased to voltage R3, the expected number of ON cells is 3×E. When the read voltage is increased to voltage R4, the expected number of ON cells is 4×E. When the read voltage is increased to voltage R5, the expected number of ON cells is 5×E. When the read voltage is increased to voltage R6, the expected number of ON cells is 6×E. When the read voltage is increased to voltage R7, the expected number of ON cells is 7×E. When the read voltage is increased to voltage VREAD, the expected number of ON cells is 8×E.
[0055] <1-1-6> Shift amount information Next, the configuration of the shift amount information 21 will be described. Fig. 5 is a diagram showing the configuration of the shift amount information used in the memory system according to the first embodiment. As shown in Fig. 5, in the shift amount information 21, shift amounts (ΔR1_i to ΔR7_i) from the default values of the read voltages R1 to R7 are stored in association with the block BLKi.
[0056] The shift amount information 21 is used in operations related to the read voltage. For example, in a read process, the memory controller 30 sets a read voltage based on the shift amount information 21. For example, in a patrol process, the memory controller 30 determines a start point of a shift amount search based on the shift amount information 21. Details of the patrol process will be described later.
[0057] <1-2> Operation Next, the operation of the memory system according to the first embodiment will be described.
[0058] <1-2-1> Shift lead processing and tracking processing First, a shift read process and a tracking process executed in the memory system 3 according to the first embodiment will be described. The shift read process and the tracking process are executed, for example, when it is expected that there will be many errors at a default read voltage.
[0059] 6 and 7 are schematic diagrams showing an example of threshold distributions and an example of cumulative distribution functions of a plurality of memory cell transistors according to the first embodiment. Fig. 6 shows a state immediately after writing. Fig. 7 shows a state where adjacent threshold voltage distributions overlap each other.
[0060] 6A, for example, immediately after writing, the threshold voltage distributions of the "S(n-1)" state (n is an integer between 1 and 7) and the "Sn" state are separated from each other. Therefore, the memory controller 30 can read correct data by setting the read voltage to a predetermined read voltage Rndef between the threshold voltage distributions of the "S(n-1)" state and the "Sn" state.
[0061] The relationship between the number of ON cells immediately after writing and the read voltage is shown in Figure 6(B). If the expected number of memory cell transistors MT in each state is E, the voltage Rndef is close to the optimal read voltage at which the number of ON cells is n × E.
[0062] However, the threshold voltage of the memory cell transistor MT may vary due to factors such as disturbance and retention. This may cause the distribution width of the threshold voltage in each state to widen, the most frequent value of the threshold voltage distribution in each state to change, or the threshold voltage distribution in each state to shift. As a result of such a change in the state of the threshold distribution, adjacent distributions may overlap as shown in FIG. 7(A). When adjacent distributions overlap, data different from that at the time of writing is read from the memory cell transistor MT corresponding to the thick and thin hatched portions in FIG. 7(A). More specifically, among the memory cell transistors MT having a threshold voltage distribution in the “S(n-1)” state, the read data of the memory cell transistor MT having a threshold voltage equal to or higher than the read voltage Rndef becomes a fail bit. Also, among the memory cell transistors MT having a threshold voltage distribution in the “Sn” state, the read data of the memory cell transistor MT having a threshold voltage less than the read voltage Rndef becomes a fail bit. If the number of fail bits exceeds the number of error correctable bits of the ECC circuit 34, the data cannot be correctly corrected.
[0063] If the read voltage can be appropriately shifted, the number of fail bits can be reduced. One example of a method for determining the amount of shift is to use the number of ON cells. Figure 7(B) shows the relationship between the number of ON cells and the read voltage when adjacent distributions overlap. The number of fail bits can be reduced by using a read voltage Rnopt that results in the number of ON cells being n×E. Specifically, in Figure 7(A), by using the read voltage Rnopt, the number of fail bits can be reduced by the number of memory cell transistors MT that correspond to the thin shaded areas compared to the case of using the read voltage Rndef.
[0064] A read operation in which a voltage shifted by a certain voltage from the default read voltage is set as the read voltage is called a shift read. The shift amount information 21 described above is a set of shift amounts used in the shift read.
[0065] The operation of searching for the shift amount used in the shift read is called tracking.
[0066] Tracking can be classified into system tracking, which is performed by the memory controller 30 controlling the nonvolatile memory 10, and on-chip tracking, which is performed by the nonvolatile memory 10 itself.
[0067] In the system tracking, the memory controller 30 transmits a read command to the nonvolatile memory 10 and causes the nonvolatile memory 10 to execute a read operation. Then, the memory controller 30 receives read data from the nonvolatile memory 10 and searches for a shift amount based on the read data.
[0068] In the system tracking, the memory controller 30 searches for the shift amount, which makes it possible to perform complex and advanced tracking processing.
[0069] On the other hand, in on-chip tracking, the memory controller 30 transmits an on-chip tracking command and a shift amount to the non-volatile memory 10. The non-volatile memory 10 that receives the on-chip tracking command and the shift amount executes a read operation and searches for a more suitable shift amount based on the read data, for example, starting from the received shift amount. After completing the search for the shift amount, the non-volatile memory 10 transmits the shift amount information to the memory controller 30.
[0070] Except for receiving commands and transmitting results, on-chip tracking is performed solely by the non-volatile memory 10. This makes it possible to complete tracking processing in a short time.
[0071] <1-2-2> Patrol operation The memory system 3 according to the first embodiment executes a patrol process during a period when it is not executing an instruction from the host, for example. The patrol process includes a tracking process and a shift read process. The details of the patrol process will be described.
[0072] FIG. 8 is a flowchart showing an example of a patrol process in the memory system according to the first embodiment.
[0073] When the patrol process is started (START), the memory controller 30 acquires the shift amount information 21 (S10). Specifically, the memory controller 30 reads the shift amount information 21 from the volatile memory 20.
[0074] The memory controller 30 executes a tracking process (S11). Specifically, the memory controller 30 executes the tracking process based on the acquired shift amount information 21. The tracking process is a process of reading data from the non-volatile memory 10 and searching for a new shift amount. The tracking process will be described in detail later. As a result of the tracking process, the memory controller 30 obtains newly calculated shift amount information.
[0075] The memory controller 30 causes the nonvolatile memory 10 to execute a read process (S12). Specifically, the memory controller 30 causes the nonvolatile memory 10 to execute a read process using the shift amount information obtained by the tracking process. As a result of executing the read process, the memory controller 30 obtains the read data.
[0076] The ECC circuit 34 of the memory controller 30 performs hard decision decoding on the data obtained by the read process (S13).
[0077] The memory controller 30 determines whether the decryption was successful (S14).
[0078] If the decryption is successful (S14, Yes), the memory controller 30 updates the shift amount information 21 (S15). Specifically, the memory controller 30 controls the volatile memory 20 to update the shift amount information 21 so as to overwrite the existing shift amount information 21 with the shift amount information obtained in the process of step S11. Then, the patrol process ends (END).
[0079] If the decryption is not successful (S14, No), the patrol process ends (END).
[0080] Next, the tracking process will be described in detail. The tracking process is a process for searching for a suitable shift amount for each of the read voltages R1 to R7. For ease of explanation, a case where a shift amount is searched for the read voltage Rn will be described as an example. Here, n is an integer between 1 and 7.
[0081] 9 and 10 are flowcharts showing an example of a tracking process in the memory system according to the first embodiment.
[0082] When the tracking process is started (START), the memory controller 30 calculates an initial value of the shift amount (S20). Specifically, the initial value of the shift amount shift int Calculate.
[0083] shift int =shift hold -((SP-1)×ST÷2) (1) In addition, shift hold is the shift amount read out from the shift amount information 21, SP is the sampling count, and ST is the search step. The sampling count SP is an integer equal to or greater than 2, and the search step ST is a non-zero voltage.
[0084] The formula (1) will be described. FIG. 11 is a diagram for explaining the formula (1). In the memory system 3 according to the first embodiment, the shift amount shift hold The optimum shift amount is searched for in the voltage range of (SP-1)×ST. int is the shift amount hold The voltage is set to be ((SP-1) × ST÷2) lower than the
[0085] Returning to Fig. 9, the memory controller 30 resets the variable "i" to 1 (S21).
[0086] The memory controller 30 causes the nonvolatile memory 10 to execute a read process using “shift(i)” as the shift amount (S22). Specifically, “shift(i)” is expressed by the following formula (2).
[0087] shift(i)=shift int +(i-1)×ST (2) The read process is executed, for example, on a certain cell unit CU in a certain block BLK. As a result of having the nonvolatile memory 10 execute the read process, the memory controller 30 obtains the read data.
[0088] The formula (2) will be described. FIG. 12 is a diagram for explaining the formula (2). In the memory system 3 according to the first embodiment, shift(1) is shift int Also, when i is 2 or more, shift(i) is set to a voltage that is ST larger each time i increases by 1. Also, the difference between shift(1) and shift(SP) is (SP-1)×ST, which is equal to the search range.
[0089] Returning to FIG. 9, the arithmetic circuit 37 of the memory controller 30 calculates the number of ON cells “chist(i)” (S23). Specifically, the arithmetic circuit 37 of the memory controller 30 counts the number of ON cells in a read process using “shift(i)” as the shift amount, and calculates it as “chist(i)”. Furthermore, the memory controller 30 stores the calculated number of ON cells “chist(i)” in the volatile memory 20.
[0090] The memory controller 30 increments the variable "i" (S24).
[0091] The memory controller 30 determines whether the variable "i" is greater than the sampling count SP (S25). If the variable "i" is not greater than the sampling count SP (S25, No), the process of step S22 is executed. That is, while the variable "i" is equal to or less than the sampling count SP, a read process using "shift(i)" corresponding to the incremented variable "i" is executed.
[0092] If the variable "i" is greater than the sampling count SP (S25, Yes), the memory controller 30 resets the variable "i" to 1 (S26).
[0093] The memory controller 30 checks whether the number of on-cells “chist(i)” is equal to the expected value “chist exp " (S27). exp " is E×n when the expected value of the number of memory cell transistors MT in each state is E and the read voltage for which the shift amount is searched is Rn.
[0094] The number of on-cells “chist(i)” is the expected value “chist exp If it is smaller than the variable "i" (S27, Yes), the memory controller 30 increments the variable "i" (S28).
[0095] The memory controller 30 determines whether the variable "i" is greater than the sampling count SP (S29). If the variable "i" is not greater than the sampling count SP (S29, No), the process of step S27 is executed.
[0096] That is, while the variable “i” is less than the sampling frequency SP, the number of on-cells “chist(i)” corresponding to the incremented variable “i” and the expected value “chist exp This compares the expected value “chist exp The smallest variable “i” corresponding to the on-cell number “chist(i)” greater than “i” is obtained.
[0097] If the variable "i" is greater than the sampling number SP (S29, Yes), the initial value of the shift amount is reset (S30), and the process of step S21 is executed. int (SP-1)×ST is added to the count value, and the process of step S21 is executed.
[0098] That is, in the previous search range, the expected value “chist exp Since the number of ON cells “chist(i)” larger than “chist(i)” was not obtained, the initial value of the shift amount is reset so that a search can be performed at a higher voltage (S30). FIG. 13 is a diagram for explaining the initial value of the shift amount that is reset in step S30. As shown in FIG. 13, int (SP-1)×ST is added to the previous search. This resets the initial value of the shift amount so that the end point of the previous search becomes the start point of the new search.
[0099] Returning to FIG. 10, in the process of step S27, the number of ON cells “chist(i)” is equal to the expected value “chist exp If the variable "i" is not smaller than the expected value "chist(1)" at the start point of the search (S27, No), the memory controller 30 judges whether the variable "i" is 1 (S31). This is because, if the variable "i" is 1, the number of on-cells "chist(1)" at the start point of the search is equal to or smaller than the expected value "chist(1)". exp " This indicates that the search range was too high in this case.
[0100] If the variable "i" is 1 (S31, Yes), the initial value of the shift amount is reset (S32), and the process of step S21 is executed. int Then, (SP-1)×ST is subtracted from the result, and the process of step S21 is executed.
[0101] That is, in the previous search range, the expected value “chist expSince a smaller number of ON cells “chist(i)” than “chist(i)” was not obtained, the initial value of the shift amount is reset so that a search can be performed at a lower voltage (S32). FIG. 14 is a diagram for explaining the initial value of the shift amount reset in step S32. As shown in FIG. 14, int (SP-1)×ST is subtracted from the shift amount. This resets the initial value of the shift amount so that the start point of the previous search becomes the end point of the new search.
[0102] Returning to FIG. 10, if the determination in step S27 is No and the determination in step S31 is No, the number of ON cells “chist(i)” does not reach the expected value “chist exp ". In other words, the expected value "chist exp Two values of the variable “i” (i.e., the current value of “i” and the value of “i-1”) are obtained, each corresponding to the two on-cell numbers “chist(i)” on either side of “i”. This enables the memory controller 30 to calculate a suitable shift amount.
[0103] If the variable “i” is not 1 (S31, No), the memory controller 30 calculates a suitable shift amount (S33). Specifically, the suitable shift amount is calculated by the following formula (3).
[0104] shift opt =shift(i-1)+ST×(chist exp -chist(i-1))÷(chist(i)-chist(i-1)) (3) In addition, when making the calculation, the memory controller 30 reads the number of ON cells “chist(i−1)” from the volatile memory 20 .
[0105] The following describes formula (3). FIG. 15 is a diagram for explaining formula (3). The numbers of ON cells “chist(i-1)” and “chist(i)” and the expected value “chist expSince "chist(i-1)" is known, the memory controller 30 can calculate the number of on-cells between "chist(i-1)" and "chist(i)" and the number of on-cells between "chist(i-1)" and "chist(i)". exp The memory controller 30 uses these to calculate the internal division ratio [(chist exp By multiplying the search step ST by this internal division ratio and adding the multiplication result to the shift amount “shift(i-1)”, the memory controller 30 can obtain a suitable shift amount “shift(i-1)”. opt " can be calculated.
[0106] Returning to FIG. 10. When a suitable shift amount is calculated (S33), a series of processes ends (END). As described with reference to FIG. 8, the memory controller 30 executes the read process (S12) and the hard decision process (S13) using the shift amount calculated in the tracking process. Then, if the decoding is successful (S14, Yes), the existing shift amount information 21 is overwritten with this shift amount.
[0107] <1-2-3> Host read operation The host read process is executed based on a read request from the host device.
[0108] FIG. 16 is a flowchart showing an example of a host read process in the memory system according to the first embodiment.
[0109] When a read request is received from the host device 2 (start), the memory controller 30 acquires the shift amount information 21 (S40). Specifically, the memory controller 30 reads the shift amount information 21 from the volatile memory 20.
[0110] The memory controller 30 causes the nonvolatile memory 10 to execute a read process (S41). Specifically, the memory controller 30 causes the nonvolatile memory 10 to execute a read process using the shift amount stored in the shift amount information 21. As a result of executing the read process, the memory controller 30 obtains read data.
[0111] The ECC circuit 34 of the memory controller 30 performs hard decision decoding on the data obtained by the read process (S42).
[0112] The memory controller 30 determines whether the decryption is successful (S43). If the decryption is successful (Yes in S43), the memory controller 30 transmits the decrypted read data to the host device 2 and ends the host read process (End).
[0113] If the decoding is not successful (S43, No), the memory controller 30 causes the nonvolatile memory 10 to execute on-chip tracking processing (S44). Specifically, the memory controller 30 transmits the shift amount information 21 acquired in the processing of step S40 and an on-chip tracking command to the nonvolatile memory 10, and causes the nonvolatile memory 10 to execute on-chip tracking. The shift amount information acquired by the on-chip tracking processing is transmitted from the nonvolatile memory 10 to the memory controller 30.
[0114] The memory controller 30 causes the nonvolatile memory 10 to execute a read process (S45). Specifically, the memory controller 30 causes the nonvolatile memory 10 to execute a read process using the received shift amount information. As a result of executing the read process, the memory controller 30 obtains read data.
[0115] The ECC circuit 34 of the memory controller 30 performs hard decision decoding on the data obtained by the read process (S46).
[0116] The memory controller 30 determines whether the decoding is successful (S47). If the decoding is not successful (S47, No), the memory controller 30 causes the non-volatile memory 10 to execute a read process (S48). Specifically, the memory controller 30 causes the non-volatile memory 10 to execute a read process for soft decision decoding. As a result of executing the read process, the memory controller 30 obtains read data.
[0117] The ECC circuit 34 of the memory controller 30 performs soft-decision decoding on the data obtained by the read process (S49).
[0118] The memory controller 30 determines whether the decryption is successful (S50). If the decryption is not successful (S50, No), the memory controller 30 reports an error to the host device 2 (S51). Specifically, the memory controller 30 reports an uncorrectable error to the host device 2. Then, the host read process ends (End).
[0119] If the decryption is successful in the process of step S47 or step S50 (Yes in S47 or S50), the memory controller 30 updates the shift amount information 21 (S52 or S53). Specifically, the memory controller 30 updates the shift amount information 21 by controlling the volatile memory 20 so as to overwrite the existing shift amount information 21 with the shift amount information obtained in the process of step S44. Then, the decrypted read data is transmitted to the host device 2, and the host read process is completed (END).
[0120] <1-3> Effects According to the memory system according to the first embodiment described above, the operating speed can be improved.
[0121] The memory system according to the first embodiment executes a tracking process without depending on a request from a host device, executes a read process using the obtained shift amount information, and updates the shift amount information 21 when the error correction is successful. That is, the memory system according to the first embodiment can update the shift amount information 21 so as to reflect the current state of the non-volatile memory 10. Then, the memory system according to the first embodiment executes an on-chip tracking process based on the shift amount information 21 when the error correction of the read data fails in the host read process. This allows the memory system according to the first embodiment to search for more suitable shift amount information at high speed. Therefore, the memory system according to the first embodiment can improve the operating speed.
[0122] <2> Second embodiment The configuration of the memory system according to the second embodiment is different from that of the memory system according to the first embodiment in the configuration of the volatile memory 20 and the tracking process. The following describes the differences between the memory system according to the second embodiment and the first embodiment.
[0123] <2-1> Configuration <2-1-1> Memory system 17 is a block diagram showing a configuration of an information processing system according to the second embodiment. In the memory system 3 according to the second embodiment, the volatile memory 20 further stores a look-up table (LUT) 22 in addition to the memory system 3 described in the first embodiment.
[0124] FIG. 18 is a diagram showing an example of the configuration of a lookup table used in the memory system according to the second embodiment. As shown in FIG. 18, the LUT 22 stores the differences ΔC1, ΔC2, ΔC3, ..., in the number of ON cells, and the changes ΔVR1, ΔVR2, ΔVR3, ..., in the read voltage. The LUT 22 is used in the tracking process. The LUT 22 associates the differences in the number of ON cells with the changes in the read voltage. This association is obtained experimentally, for example, before the shipment of the memory system 3. For example, when the memory controller 30 wants to increase the number of ON cells by a certain number, the memory controller 30 can know the change in the read voltage corresponding to that number by referring to the LUT 22. The LUT 22 may associate the differences in the number of ON cells with the changes in the read voltage for each of the read voltages R1 to R7. The LUT 22 may further associate the differences in the number of ON cells with the changes in the read voltage for each block.
[0125] <2-2> Operation The operation of the memory system according to the second embodiment will be described.
[0126] The tracking process will be described in detail. For ease of explanation, a case where a shift amount for a read voltage Rn is searched for will be described as an example. Note that n is an integer between 1 and 7.
[0127] 19 and 20 are flowcharts showing an example of a tracking process in the memory system according to the second embodiment.
[0128] When the tracking process is started (START), the memory controller 30 determines (S60) the shift amount “shift” from the shift amount information 21. Specifically, the memory controller 30 determines, from the shift amount information 21, shift amount information corresponding to the block BLK including the memory cell transistor MT for which the shift amount is searched and the read voltage for which the shift amount is searched, as the shift amount “shift”.
[0129] The memory controller 30 causes the non-volatile memory 10 to execute a read process using "shift" as the shift amount (S61). The read process is executed, for example, for a certain cell unit CU in a certain block BLK. As a result of causing the non-volatile memory 10 to execute the read process, the memory controller 30 obtains the read data.
[0130] The arithmetic circuit 37 of the memory controller 30 calculates the number of ON cells, “chist(shift)” (S62). Specifically, the arithmetic circuit 37 of the memory controller 30 counts the number of ON cells in a read process using “shift” as the shift amount, and calculates it as “chist(shift)”.
[0131] The memory controller 30 checks whether the on-cell count “chist(shift)” is equal to the expected value “chist exp " (S63). exp If the value is smaller than "0" (S63, Yes), the memory controller 30 assigns 1 to the variable "sign" (S64).
[0132] The number of on-cells “chist(shift)” is the expected value “chist exp If the variable "sign" is not smaller than "0" (S63, No), the memory controller 30 assigns -1 to the variable "sign" (S65).
[0133] In this way, the number of on-cells “chist(shift)” and the expected value “chist exp " is assigned a value of 1 or -1 to the variable "sign".
[0134] The memory controller 30 determines the difference shift amount “val” from the LUT 22 (S66). Specifically, the memory controller 30 refers to the LUT 22 and determines the number of ON cells “chist(shift)” and the expected value “chist exp The differential shift amount "val" is determined from the difference between this and "val".
[0135] The memory controller 30 stores the values of the shift amount "shift", the number of ON cells "chist(shift)", and the variable "sign" (S67). pre ” and the shift amount “shift” is substituted for “chist pre " is substituted with the on-cell number "chist(shift)" and the variable "sign pre " is assigned the variable "sign" (S67).
[0136] The memory controller 30 adds a value obtained by multiplying the variable "sign" and the differential shift amount "val" to the shift amount "shift" (S68).
[0137] The variable “sign” is the number of on-cells “chist(shift)” and the expected value “chist exp " is assigned a value of 1 or -1 based on the magnitude relationship with the shift amount "shift". Therefore, the process of step S68 is a process of adding or subtracting the difference shift amount "val" to the shift amount "shift". Specifically, when the number of ON cells "chist(shift)" is exp If the ON cell count "chist(shift)" is smaller than the expected value "chist exp If the ON cell count "chist(shift)" is not smaller than the ON cell count "chist(shift)", the process in step S68 is subtracted. That is, the shift amount "shift" is set to a value smaller by the differential shift amount "val" so that the ON cell count "chist(shift)" becomes smaller.
[0138] The memory controller 30 causes the nonvolatile memory 10 to execute a read process using "shift" as the shift amount (S69). As a result of causing the nonvolatile memory 10 to execute the read process, the memory controller 30 obtains the read data.
[0139] The arithmetic circuit 37 of the memory controller 30 calculates the number of ON cells "chist(shift)" (S70).
[0140] The memory controller 30 checks whether the on-cell count “chist(shift)” is equal to the expected value “chist exp It is judged again whether the number of ON cells "chist(shift)" is smaller than the expected value "chist exp If the value is smaller than "0" (S71, Yes), the memory controller 30 assigns 1 to the variable "sign" (S72).
[0141] The number of on-cells “chist(shift)” is the expected value “chist exp If the variable "sign" is not smaller than "0" (S71, No), the memory controller 30 assigns -1 to the variable "sign" (S73).
[0142] The memory controller 30 reads the variable “sign pre It is determined whether the product of "" and the variable "sign" to which a value was assigned in step S72 or step S73 is smaller than 0 (S74). pre If the value obtained by multiplying " by the variable "sign" is smaller than 0 (S74, Yes), the process of step S75 is executed. pre If the value obtained by multiplying " by the variable "sign" is not smaller than 0 (S74, No), the process proceeds to step S67.
[0143] In step S74, the memory controller 30 compares the number of ON cells “chist(shift)” with the expected value “chist exp The relationship between the number of on-cells and the number of "chist pre " and the expected value "chist exp " and whether they are different.
[0144] Specifically, if the magnitude relationship is different, the variable “sign pre The multiplication result of " and the variable "sign" is -1. In this case, the number of on-cells "chistpre The expected value between "chist" and "chist(shift)" is exp ". In other words, the expected value "chist exp Two shift amounts corresponding to the two on-cell numbers on either side of the “shift” (i.e., the current “shift” and “shift pre In this case, the determination in step S74 becomes Yes, and the process in step S75 is executed.
[0145] On the other hand, if the magnitude relationship is equal, the variable “sign pre The multiplication result of " and the variable "sign" is 1. In this case, the number of on-cells "chist pre " and "chist(shift)" have better expected value "chist exp " is large or the number of on-cells "chist pre " and "chist(shift)" have better expected value "chist exp In this case, the determination in step S74 is No, and the process in step S67 is executed again. Then, in the following step S68, the difference shift amount "val" is added or subtracted.
[0146] The memory controller 30 determines whether the difference shift amount "val" is equal to or less than the threshold value TH (S75). If the difference shift amount "val" is not equal to or less than the threshold value TH (S75, No), the memory controller 30 divides the difference shift amount "val" by 2 (S76), and the process of step S67 is executed again.
[0147] In step S75, the memory controller 30 determines the shift amount “shift preIt is determined whether the differential shift amount "val", which is the interval between "" and "shift", is equal to or less than the threshold value TH. In the calculation of the shift amount described below, if the differential shift amount "val" is large, an error may occur, so the memory controller 30 checks whether a sufficiently small differential shift amount "val" has been obtained. In other words, if the differential shift amount "val" is equal to or less than the threshold value TH, the process proceeds to step S77. If not, the process of step S76 is executed, and the process from step S67 onwards is executed again using the additional shift amount "val" divided by 2.
[0148] If the additional shift amount “val” is equal to or less than the threshold value TH (S75, Yes), the memory controller 30 calculates a suitable shift amount (S77). Specifically, the memory controller 30 calculates the suitable shift amount by the following formula (4).
[0149] shift opt =shift pre +(shift-shift pre )×(chist exp -chist pre )÷(chist(shift)-chist pre ) (4) Then, the series of processes ends (END).
[0150] The following describes formula (4). FIG. 21 is a diagram for explaining formula (4). pre " and "chist(shift)" and the expected value "chist exp Since " is known, the memory controller 30 converts "chist(shift)" to "chist pre The number of on-cells between “chist(shift)” and “chist exp The memory controller 30 uses these to calculate the internal division ratio [(chist exp -chist pre )÷(chist(shift)-chist pre )] can be calculated by dividing the internal ratio by the shift amount “shift” and “shiftpre " and the difference is multiplied by the shift amount "shift pre By adding to the preferred shift amount “shift opt " can be calculated.
[0151] The operation of the tracking process in the memory system according to the second embodiment will be further described with a specific example. FIG. 22 is a diagram for explaining a specific example of the tracking process in the memory system according to the second embodiment. In FIG. 22, the process of step S68 described with reference to FIG. 19 is indicated by an arrow. Also, the value of the variable "sign" at each read voltage is added in parentheses. Also, when the read voltage becomes higher than the voltage indicated by the dashed line, the number of ON cells "chist(shift)" becomes equal to or smaller than the expected value "chist exp ". Also, it is assumed that the threshold value TH is S / 3.
[0152] In the example shown in FIG. 22, the read voltage VA is determined by using the shift amount "shift" from the shift amount information 21 (S60 in FIG. 19). In the read voltage VA, the number of ON cells "chist(shift)" is equal to or smaller than the expected value "chist exp Since the difference is less than "val", the variable "sign" is 1. Then, the voltage S is determined as the differential shift amount "val" (S66 in FIG. 19).
[0153] Voltage S is added to voltage VA, and the read voltage based on the new shift amount becomes voltage VB (S68 in FIG. 19). Even at read voltage VB, the number of ON cells “chist(shift)” is equal to the expected value “chist exp Since the variable “sign” is less than “1”, the variable “sign” is 1. pre Since both " (that is, the variable "sign" corresponding to the read voltage VA)" and "sign" are 1 (S74, No in FIG. 20), the read voltage based on the new shift amount is determined again.
[0154] Voltage S is added to voltage VB, and the read voltage based on the new shift amount becomes voltage VC (S68 in FIG. 19). Even at read voltage VC, the number of ON cells “chist(shift)” is equal to the expected value “chist exp Since the variable “sign” is less than “1”, the variable “sign” is 1. pre Since both " (that is, the variable "sign" corresponding to the read voltage VB)" and "sign" are 1 (S74, No in FIG. 20), the read voltage based on the new shift amount is determined again.
[0155] Voltage S is added to voltage VC, and the read voltage based on the new shift amount becomes voltage VD (S68 in FIG. 19). At read voltage VD, the number of ON cells “chist(shift)” is equal to the expected value “chist exp " is greater than ", so the variable "sign" is -1. The variable "sign pre Since " (i.e., the variable "sign" corresponding to the read voltage VC) is 1 and "sign" is -1 (S74, Yes in FIG. 20), the magnitude of the differential shift amount is determined (S75 in FIG. 20). Since the voltage S, which is the differential shift amount, is greater than the threshold value TH (S75, No in FIG. 20), the differential shift amount is divided by 2 (S76 in FIG. 20). Then, the differential shift amount becomes S / 2, and the read voltage based on the new shift amount is determined again.
[0156] The voltage S / 2 is subtracted from the voltage VD, and the read voltage based on the new shift amount becomes the voltage VE (S68 in FIG. 19). At the read voltage VE, the number of ON cells “chist(shift)” is equal to the expected value “chist exp " is greater than ", so the variable "sign" is -1. The variable "sign pre Since both " (that is, the variable "sign" corresponding to the read voltage VD)" and "sign" are -1 (S74, No in FIG. 20), the read voltage based on the new shift amount is determined again.
[0157] The voltage S / 2 is subtracted from the voltage VE, and the read voltage based on the new shift amount becomes the voltage VF (S68 in FIG. 19). At the read voltage VF, the number of ON cells “chist(shift)” is equal to the expected value “chist exp Since the variable “sign” is less than “1”, the variable “sign” is 1. pre Since " (i.e., the variable "sign" corresponding to the read voltage VE)" is -1 and "sign" is 1 (S74, Yes in FIG. 20), the magnitude of the differential shift amount is determined again (S75 in FIG. 20). Since the differential shift amount, voltage S / 2, is greater than the threshold value TH (S75, No in FIG. 20), the differential shift amount is divided by 2 (S76 in FIG. 20). Then, the differential shift amount becomes S / 4, and the read voltage based on the new shift amount is determined again.
[0158] The voltage S / 4 is added to the voltage VF, and the read voltage based on the new shift amount becomes the voltage VG (S68 in FIG. 19). At the read voltage VG, the number of ON cells “chist(shift)” is equal to the expected value “chist exp Since the variable “sign” is less than “1”, the variable “sign” is 1. pre Since both " (that is, the variable "sign" corresponding to the read voltage VF) and "sign" are 1 (S74 in FIG. 20, No), the read voltage based on the new shift amount is determined again.
[0159] The voltage S / 4 is added to the voltage VG, and the read voltage based on the new shift amount becomes the voltage VH (S68 in FIG. 19). At the read voltage VH, the number of ON cells “chist(shift)” is equal to the expected value “chist exp " is greater than ", so the variable "sign" is -1. The variable "sign pre Since " (i.e., the variable "sign" corresponding to the read voltage VG) is 1 and "sign" is -1 (S74 in FIG. 20, Yes), the magnitude of the differential shift amount is determined again (S75 in FIG. 20). Since the differential shift amount, voltage S / 4, is smaller than the threshold value TH (S75 in FIG. 20, Yes), a suitable shift amount is calculated (S77 in FIG. 20). That is, the suitable shift amount "shiftopt " is calculated.
[0160] In this way, the memory system according to the second embodiment increases or decreases the shift amount while reducing the additional shift amount “val”, thereby obtaining a suitable shift amount “shift opt " is calculated.
[0161] <2-3> Effects According to the memory system according to the second embodiment described above, the operating speed can be improved.
[0162] In the tracking process, the memory system according to the second embodiment determines a read voltage at a starting point based on the shift amount information 21, reads out a plurality of data while decreasing the shift amount from the starting point, and calculates a suitable shift amount. The memory system according to the second embodiment can search for a suitable shift amount at high speed by narrowing the search step from a large shift amount to a small shift amount. This allows the memory system according to the second embodiment to improve the operating speed.
[0163] <3> Modifications etc. When the search range is inappropriate, the memory system according to the first embodiment resets the initial value of the shift amount (S30 and S32 in FIG. 10) and searches for a suitable shift amount in the new search range (S21 and subsequent steps in FIG. 9). However, the memory system may be modified to calculate the shift amount and end the process when the search range is inappropriate. Specifically, instead of the process from step S30 onwards described with reference to FIG. 10, the memory system sets the shift amount "shift(SP)" to "shift opt Alternatively, the memory system may calculate the shift amount "shift(1)" as "shift opt " and end the process.
[0164] In the above embodiment, a division is performed. The memory system may truncate or round up the result of the division.
[0165] In the above embodiment, two examples of the tracking process (S11 in FIG. 8) are shown. However, the tracking process is not limited to the examples shown in the above embodiment, and various modifications are possible. As an example, the first estimation method will be described below.
[0166] (1st estimation method) In the first estimation method, the memory controller 30 causes the nonvolatile memory 10 to execute multiple read processes while shifting the read voltage. Then, the arithmetic circuit 37 calculates the number of memory cell transistors MT (number of section cells) for each threshold voltage range separated by multiple read voltages as a histogram H1 based on multiple read data from the multiple read processes.
[0167] The control circuit 31 determines a plurality of read voltages R1 to R7 based on the calculated histogram H1. Then, the control circuit 31 calculates a plurality of shift amounts ΔR1 to ΔR7 based on the determined plurality of read voltages R1 to R7. A method for determining the plurality of read voltages R1 to R7 based on the histogram H1 will be described with reference to FIG.
[0168] FIG. 23 is a diagram showing an example of a first estimation method applied to a shift amount estimation process in a memory system according to a modified example.
[0169] FIG. 23(A) shows, as an example, two threshold voltage distributions corresponding to the "S0" state and the "S1" state. FIG. 23(B) shows the transition of the number of ON cells M. FIG. 23(C) shows the change in the number of ON cells between two read voltages, that is, the transition of the section cell number C. FIG. 23(C) corresponds to the histogram H1 described above.
[0170] As shown in FIG. 23B, when the read voltage V is shifted to the lower voltage side, the number of ON cells M decreases rapidly at a voltage slightly higher than the voltage VS1mid, which is the mode of the “S1” state, and |dM / dV| becomes maximum. Here, the mode is the voltage at which the distribution probability of the threshold voltage becomes maximum in FIG. 23A. When the read voltage V is further lowered, the decrease rate of the number of ON cells M becomes smaller, and the decrease rate of the number of ON cells M becomes minimum at a certain value of the read voltage V. The minimum value of the decrease rate of the number of ON cells M is zero when the threshold voltage distribution belonging to the “S1” state does not overlap with the threshold voltage distribution belonging to the “S0” state. On the other hand, when the threshold voltage distribution belonging to the “S1” state overlaps with the threshold voltage distribution belonging to the “S0” state, the minimum value of the decrease rate of the number of ON cells M becomes a non-zero value (>0). Then, as the read voltage V is further lowered, the rate of decrease in the number of ON cells M again increases, and |dM / dV| again reaches a maximum at a voltage slightly higher than VS0mid, which is the most frequent value for the “S0” state.
[0171] By changing the number of ON cells M described above, it is possible to detect the read voltage V at which the overlap of the threshold voltage distributions between the two states is smallest (i.e., the read voltage V corresponding to the intersection of the threshold voltage distributions of the two states). For example, the memory system according to the modified example first performs a read process using a read voltage V0. The number of ON cells at this time is M0. The memory system then performs a read process using a voltage V1 that is lower than the voltage V0 by ΔV. The number of ON cells at this time is M1. Then, the number of memory cell transistors MT that are newly turned off when the read voltage drops from V0 to V1 is C1=M0-M1. That is, the number of section cells in the threshold voltage range [V0, V1] is C1.
[0172] Next, the memory system performs a read process using a voltage V2 that is ΔV lower than the voltage V1. The number of ON cells at this time is M2. Then, the number of memory cell transistors MT that are newly turned off when the read voltage drops from V1 to V2 is C2=M1-M2. In other words, the number of cells in the threshold voltage range [V1, V2] is C2. If C1>C2, then the voltage at which |dM / dV| is minimum is considered to be at least on the lower voltage side than voltage V1.
[0173] Next, the memory system performs a read process using a voltage V3 that is ΔV lower than the voltage V2. The number of ON cells at this time is M3. Then, the number of memory cell transistors MT that are newly turned off when the read voltage drops from V2 to V3 is C3=M2-M3. In other words, the number of cells in the threshold voltage range [V2, V3] is C3. If C3>C2, then a histogram like that shown in FIG. 23(C) is obtained as histogram H1.
[0174] As a result, it is possible to estimate the threshold voltage distribution as shown by the dashed line in Fig. 23C based on the section cell number C. It is also possible to estimate that the read voltage at which the overlap between the threshold voltage distribution belonging to the "S0" state and the threshold voltage distribution belonging to the "S1" state is smallest exists between voltage V1 and voltage V2 (the section where the section cell number is at a minimum value).
[0175] By operating as described above, in the first estimation method, the read voltage is determined based on a plurality of read processes.
[0176] In addition, when data stored in each memory cell transistor MT is associated with a plurality of non-contiguous voltage ranges, a read process of a certain page data (page read process) may include a read process of data using a plurality of read voltages. Specifically, for example, as described with reference to FIG. 4, the lower bit data "1" is associated with a voltage range below the read voltage R1 (i.e., "S0" state) and a voltage range above the read voltage R5 (i.e., "S5" to "S7" states). For this reason, it may be difficult to correctly calculate the number of ON cells only with a plurality of read data (i.e., read data obtained with the voltage R1 as the read voltage and read data obtained with the voltage R5 as the read voltage) obtained by the lower page read process performed while shifting the read voltage.
[0177] Therefore, when the page read process includes read processes using multiple read voltages, the memory controller 30 causes the non-volatile memory 10 to further execute at least one single-state read process in addition to the multiple read processes. The single-state read process differs from the page read process that generates read data based on two or more read voltages in that the single-state read process generates read data based on one read voltage. In the single-state read process, a voltage located between multiple non-consecutive voltage ranges corresponding to data stored in each memory cell transistor MT is applied. Specifically, for example, a single-state read process of read voltage R3 may be executed for the lower page read process. A single-state read process of read voltage R3 and a single-state read process of read voltage R5 may be executed for the middle page read process. A single-state read process of read voltage R5 may be executed for the upper page read process.
[0178] For example, in a single-state read using the read voltage R3 for the lower page read process, the memory cell transistors MT included in the "S0" to "S2" states store "1" data as the lower bit, and the memory cell transistors MT included in the "S3" to "S7" states store "0" data as the lower bit. In this case, the number of "1" data in the data obtained by ANDing the page data obtained by reading using the read voltage R3 and the page data obtained by reading using the read voltage R1 indicates the number of memory cell transistors MT included in the "S1" state in the cell unit CU. Similarly, the number of "1" data in the data obtained by ORing the logical inversion of the page data obtained by reading using the read voltage R3 and the page data obtained by reading using the read voltage R5 indicates the number of memory cell transistors MT included in the "S0" to "S4" states in the cell unit CU. This allows the memory controller 30 to correctly calculate the number of on cells.
[0179] In the above embodiment, a case has been described in which a tracking process is executed in a patrol process to estimate a suitable shift amount. In a patrol process, a suitable shift amount may be estimated by a method other than the tracking process. As an example of a method other than the tracking process, a second estimation method will be described below. In a patrol process, the memory system may execute a process based on the second estimation method instead of or in addition to the tracking process.
[0180] (Second estimation method) In the second estimation method, the calculation circuit 37 calculates the number of memory cell transistors MT belonging to each of the "S0" to "S7" states in the read data before the error correction process as a histogram H2 based on the lower page data, middle page data, and upper page data before the error correction process. Also, the calculation circuit 37 calculates the number of memory cell transistors MT belonging to each of the "S0" to "S7" states in the read data after the error correction process as a histogram H3 based on the lower page data, middle page data, and upper page data after the error correction process. Then, the calculation circuit 37 calculates the numbers of memory cells E_x(x+1) and E_y(y-1) (0≦x≦6, 1≦y≦7) based on the calculated histograms H2 and H3. The number of memory cells E_x(x+1) is the number of memory cells in which data written as the "S(x+1)" state is erroneously read as the "Sx" state. The number of memory cells E_y(y-1) is the number of memory cells in which data written as the "S(y-1)" state is erroneously read as the "Sy" state.
[0181] The control circuit 31 calculates a plurality of shift amounts ΔR1 to ΔR7 based on the above-mentioned memory cell numbers E_x(x+1) and E_y(y-1). A method of calculating the plurality of shift amounts ΔR1 to ΔR7 based on the memory cell numbers E_x(x+1) and E_y(y-1) will be described with reference to FIG.
[0182] Fig. 24 is a diagram showing an example of a second estimation method applied to a shift amount estimation process in a memory system according to a modified example. Fig. 24 illustrates an example of calculating a shift amount ΔR1 of a read voltage R1. In Fig. 24, the number E_01 of memory cells in which data written as the "S1" state is erroneously read as the "S0" state corresponds to the area of region (a) in Fig. 24(A) to Fig. 24(C). Also, the number E_10 of memory cells in which data written as the "S0" state is erroneously read as the "S1" state corresponds to the area of region (b) in Fig. 24(A) to Fig. 24(C).
[0183] FIG. 24(A) shows a case where the threshold voltage R1opt at the intersection of two threshold voltage distributions corresponding to the “S0” state and the “S1” state is equal to the read voltage R1. In the example shown in FIG. 24(A), the area of the region (a) is equal to the area of the region (b). In this case, it is expected that the number of fail bits E (=E_01+E_10) occurring between the “S0” state and the “S1” state is minimized. Therefore, the memory controller 30 determines that the read voltage R1 does not need to be updated. That is, the memory controller 30 calculates the shift amount ΔR1 of “0” (ΔR1=0).
[0184] FIG. 24B shows a case where the read voltage R1 is located on the higher voltage side than the threshold voltage R1opt. In the example shown in FIG. 24B, the area of the region (a) is larger than the area of the region (b). In this case, the number of fail bits E is larger than the number of fail bits E in the case of FIG. 24A, which is not preferable. For this reason, the memory controller 30 shifts the read voltage R1 toward the lower voltage side so as to approach the threshold voltage R1opt. In other words, the memory controller 30 calculates a negative shift amount ΔR1 (ΔR1<0).
[0185] FIG. 24C shows a case where the read voltage R1 is located on the lower voltage side than the threshold voltage R1opt. In the example shown in FIG. 24C, the area of the region (a) is smaller than the area of the region (b). In this case, the number of fail bits E is larger than the number of fail bits E in the case of FIG. 24A, which is not preferable. For this reason, the memory controller 30 shifts the read voltage R1 toward the higher voltage side so as to approach the threshold voltage R1opt. In other words, the memory controller 30 calculates a positive shift amount ΔR1 (ΔR1>0).
[0186] It is expected that the absolute value of the difference between the area of the region (a) and the area of the region (b) will increase as the read voltage R1 moves away from the threshold voltage R1opt. Therefore, the memory controller 30 determines the shift amount ΔR1 of the read voltage R1 according to the magnitude of the ratio between the area of the region (a) and the area of the region (b) (i.e., the magnitude of the ratio between the number of memory cells E_10 and the number of memory cells E_01). This makes it possible to determine an appropriate shift amount according to the degree of overlap of the threshold voltage distributions, and to calculate the shift amount ΔR1 so as to approach the threshold voltage R1opt.
[0187] Although not shown, the shift amounts ΔR2 to ΔR7 are calculated for the other read voltages R2 to R7 in the same manner as for the read voltage R1.
[0188] By operating as described above, in the second estimation method, multiple shift amounts ΔR1 to ΔR7 are calculated based on the lower page data, middle page data, and upper page data before the error correction process, and the lower page data, middle page data, and upper page data after the error correction process.
[0189] The relationship between the shift amount ΔR1pre before estimation and the shift amount ΔR1post after estimation is as follows. That is, as in FIG. 24(A), when the area of region (a) is equal to the area of region (b), it is not necessary to update the shift amount ΔR1pre. Therefore, ΔR1post=ΔR1pre. As in FIG. 24(B), when the area of region (a) is larger than the area of region (b), the shift amount ΔR1post is updated to a value lower than the shift amount ΔR1pre. As in FIG. 24(C), when the area of region (a) is smaller than the area of region (b), the shift amount ΔR1post is updated to a value higher than the shift amount ΔR1pre.
[0190] Although several embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0191] 1...information processing system, 2...host device, 3...memory system, 10...nonvolatile memory, 20...volatile memory, 21...shift amount information, 22...lookup table, 30...memory controller, 31...control circuit, 32...buffer memory, 33...host interface circuit, 34...ECC circuit, 35...nonvolatile memory interface circuit, 36...volatile memory interface circuit, 37...arithmetic circuit, MT...memory cell transistor.
Claims
1. a non-volatile memory including a plurality of memory cells; a memory controller configured to perform a read operation to read data from the plurality of memory cells; Equipped with The memory controller further comprises: In a patrol process not depending on a request from a host, a first tracking process is executed, and a value of a first voltage is calculated as a result of the first tracking process; In response to receiving a read request from the host, Executing a first read operation to read first data from the non-volatile memory; causing the nonvolatile memory to execute a second tracking process using the first voltage in response to failure in the error correction of the first data; receiving a second voltage value from the non-volatile memory as a result of the second tracking process; performing a second read operation using the second voltage to read second data from the non-volatile memory; A memory system configured as follows.
2. In the patrol process, the memory controller Executing the first tracking process using the third voltage to calculate a value of the fourth voltage; performing a third read operation using the fourth voltage to read third data from the non-volatile memory; If the error correction of the third data is successful, a value of the fourth voltage is calculated as a value of the first voltage.
2. The memory system according to claim 1, configured as follows.
3. The memory controller, in the first tracking process, determining a search range based on a value of the third voltage; performing a plurality of read operations while shifting a read voltage by a predetermined shift amount within the search range; calculating, as the fourth voltage, a read voltage at which a number of memory cells that are turned on among the plurality of memory cells satisfies a first condition based on the plurality of read processes; 3. The memory system according to claim 2, configured as follows.
4. The memory controller, in the first tracking process, performing a plurality of read operations using a plurality of read voltages, respectively; Counting the number of memory cells that are turned on among the plurality of memory cells in each of the plurality of read processes; calculating the value of the fourth voltage from a value of a fifth voltage which is a maximum read voltage among the read voltages at which the number of memory cells in the on state is smaller than the expected value, and a value of a sixth voltage which is a minimum read voltage among the read voltages at which the number of memory cells in the on state is larger than the expected value; 3. The memory system according to claim 2, configured as follows.
5. The memory controller includes: Calculating a first difference between a first number, which is the number of memory cells that are turned on in a read process using the fifth voltage, and the expected value; calculating a second difference between the first number and a second number, the second number being the number of memory cells that were turned on in a read operation using the sixth voltage; multiplying the difference between the value of the fifth voltage and the value of the sixth voltage by a ratio of the first difference and the second difference; a result of the multiplication is added to the value of the fifth voltage to calculate the value of the fourth voltage; 5. The memory system according to claim 4, configured as follows.
6. The memory controller, in the first tracking process, performing a plurality of read operations using a plurality of read voltages, respectively; In a fourth read process of the plurality of read processes, if the number of memory cells that are turned on among the plurality of memory cells is smaller than an expected value, a read voltage is increased and a fifth read process of the plurality of read processes is performed; When the number of memory cells that are turned on is greater than the expected value in a sixth read operation of the plurality of read operations, a read voltage is reduced, and a seventh read operation of the plurality of read operations is performed.
3. The memory system according to claim 2, configured as follows.
7. The memory controller includes: calculating a value of the fourth voltage based on a value of a first voltage difference which is a difference between a value of the seventh voltage and a value of the eighth voltage, when the number of memory cells which are turned on in the fourth read process executed using a seventh voltage is greater than the expected value and the number of memory cells which are turned on in the sixth read process executed using an eighth voltage is smaller than the expected value; 7. The memory system according to claim 6, configured as follows.
8. The memory controller includes: If the value of the first voltage difference is greater than a threshold value, calculating the value of the fourth voltage by subtracting a value of a second voltage difference smaller than the value of the first voltage difference from the value of the seventh voltage or by adding the value of the second voltage difference to the value of the eighth voltage; 8. The memory system according to claim 7, configured as follows.
9. In the patrol process, the memory controller performing an eighth read operation using a ninth voltage to read fourth data from the non-volatile memory; performing an error correction process on the fourth data to obtain fifth data; calculating a value of the first voltage from a value of the ninth voltage based on a difference between a number of first values in the fourth data and a number of second values in the fifth data; 2. The memory system according to claim 1, configured as follows.
10. In the second tracking process, the nonvolatile memory determining a read voltage based on the first voltage; performing multiple read operations while shifting the read voltage; estimating a value of the second voltage based on the plurality of read operations; 2. The memory system according to claim 1, configured as follows.
Citation Information
Patent Citations
Memory system
JP2020047318A
Memory system
JP2020107376A
Optimization of read thresholds for non-volatile memory
US9595320B2
