Memory system

The memory system optimizes read voltages in NAND flash memory by employing a memory controller that adjusts read voltages based on correction amounts and offset tables, addressing the challenge of minimizing fail bits in data retrieval.

JP2024115311AActive Publication Date: 2024-08-26KIOXIA CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023020942
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-14
Publication Date
2024-08-26
Estimated Expiration
2043-02-14

AI Technical Summary

Technical Problem

Existing memory systems face challenges in accurately calculating appropriate read voltages to minimize the number of fail bits during data retrieval from nonvolatile memory, particularly in NAND flash memory systems.

Method used

The memory system employs a memory controller that performs a first and second read process using different read voltages, adjusting these voltages based on specific conditions and calculating correction amounts to optimize read voltages for each memory cell, utilizing a correction amount calculation circuit and offset tables to fine-tune read voltages dynamically.

Benefits of technology

This approach allows for more precise application of read voltages, reducing the number of fail bits and ensuring accurate data retrieval, with the ability to adapt to changes in memory cell characteristics over time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024115311000001
    Figure 2024115311000001
Patent Text Reader

Abstract

To highly accurately estimate a read-out voltage.SOLUTION: A memory system comprises: a non-volatile memory including a plurality of blocks each of which includes a plurality of memory cells; and a memory controller which performs first read-out processing for reading data from a first memory cell in a first block using a first read-out voltage and second read-out processing for reading data from a second memory cell in the first block using a second read-out voltage. When a first condition is met, the memory controller is configured so as to maintain a difference between the first read-out voltage and the second read-out voltage at a first value, and changes both the first read-out voltage and the second read-out voltage. When the second condition is met after the first condition is met, the memory controller changes the difference between the first read-out voltage and the second read-out voltage to a second value different from the first value, and changes at least one of the first read-out voltage and the second read-out voltage.SELECTED DRAWING: Figure 14
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The embodiments relate to a memory system. [Background technology]

[0002] A memory system including a NAND flash memory as a nonvolatile memory and a memory controller that controls the nonvolatile memory is known. The memory controller has a function of calculating an appropriate read voltage for reading data with a small number of fail bits from the nonvolatile memory. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] US Patent Application Publication No. 2022 / 0293204 [Patent Document 2] US Patent Application Publication No. 2021 / 0357289 [Patent Document 3] US Patent Application Publication No. 2022 / 0027083 Summary of the Invention [Problem to be solved by the invention]

[0004] Calculate the appropriate read voltage. [Means for solving the problem]

[0005] A memory system according to an embodiment includes a non-volatile memory including a plurality of blocks each including a plurality of memory cells, and a memory controller configured to execute a first read operation to read data from a first memory cell in the first block using a first read voltage and a second read operation to read data from a second memory cell in the first block using a second read voltage. The memory controller is configured to maintain a difference between the first read voltage and the second read voltage at a first value and change both the first read voltage and the second read voltage when a first condition is satisfied, and to change the difference between the first read voltage and the second read voltage from the first value to a second value different from the first value and change at least one of the first read voltage and the second read voltage when a second condition is satisfied after the first condition is satisfied. [Brief description of the drawings]

[0006] [Figure 1] FIG. 1 is a block diagram showing an example of 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] FIG. 4 is a diagram showing an example of threshold voltage distributions of a plurality of memory cell transistors according to the first embodiment. [Diagram 5] 4 is a diagram showing an example of the configuration of correction amount information stored in the memory system according to the first embodiment. FIG. [Figure 6] 4 is a diagram showing an example of the configuration of offset information stored in the memory system according to the first embodiment. [Figure 7] 4 is a diagram showing an example of a read voltage applied in a read process in the memory system according to the first embodiment. [Figure 8] 11 is a flowchart showing an example of a correction amount application process in the memory system according to the first embodiment. [Figure 9] 6 is a diagram showing an example of a first method applied to a correction amount calculation process in the memory system according to the first embodiment. [Figure 10] 11 is a diagram showing an example of a second method applied to the correction amount calculation process in the memory system according to the first embodiment. [Figure 11] 5 is a diagram showing an example of a combination of conditions for invoking a correction amount application process in the memory system according to the first embodiment. [Figure 12] 11 is a flowchart showing an example of an offset table extraction process in the memory system according to the first embodiment. [Figure 13] 6A and 6B are diagrams showing a first example of a transition of a correction amount applied in the correction amount application process in the memory system according to the first embodiment. [Figure 14] 11 is a diagram showing a second example of a transition of the correction amount applied in the correction amount application process in the memory system according to the first embodiment. [Figure 15] 11 is a diagram showing a third example of a transition of the correction amount applied in the correction amount application process in the memory system according to the first embodiment. [Figure 16] 11 is a diagram showing a fourth example of a transition of the correction amount applied in the correction amount application process in the memory system according to the first embodiment. [Figure 17] 11 is a flowchart showing an example of an offset table extraction process in the memory system according to the modified example of the first embodiment. [Figure 18] 10 is a flowchart showing an example of an offset table extraction process in the memory system according to the second embodiment. [Figure 19] 13 is a flowchart showing an example of an offset table merge process in a memory system according to a modified example of the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] Hereinafter, the embodiments will be described with reference to the drawings. In the following description, components having the same function and configuration are given common reference symbols. When multiple components having a common reference symbol are to be distinguished from one another, a subscript is added to the common reference symbol. When no particular distinction is required between multiple components, only the common reference symbol is added to the multiple components, and no subscript is added.

[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 an example of the configuration of an information processing system according to Embodiment 1. As shown in FIG.

[0010] The host 2 is a data processing device that processes data using the memory system 3. The host 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 2. The memory system 3 is, for example, TM The memory system 3 may be a memory card such as a card, a Universal Flash Storage (UFS), or a Solid State Drive (SSD). The memory system 3 executes data write, read, and erase processes in response to a request from the host 2. The memory system 3 may execute write, read, and erase processes as internal processes. The internal processes are processes executed within the memory system 3 without depending on a request from the host 2.

[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 memory controller 10 , a non-volatile memory 20 , and a volatile memory 30 .

[0014] The memory controller 10 is configured as an integrated circuit such as a System-on-a-Chip (SoC). The memory controller 10 controls the non-volatile memory 20 based on a request from the host 2.

[0015] Specifically, for example, the memory controller 10 writes write data to the non-volatile memory 20 based on a write request from the host 2. Also, the memory controller 10 reads read data from the non-volatile memory 20 based on a read request from the host 2. Then, the memory controller 10 transmits data based on the read data to the host 2.

[0016] The nonvolatile memory 20 is, for example, a NAND flash memory. The nonvolatile memory 20 includes a plurality of blocks BLK (BLK0 to BLK3). Each block BLK includes a plurality of memory cells. Each memory cell stores data in a nonvolatile manner. The block BLK is, for example, a data erase unit.

[0017] The volatile memory 30 is, for example, a dynamic random access memory (DRAM). The volatile memory 30 stores information about a read voltage used when reading data from the nonvolatile memory 20, etc. Specifically, for example, the volatile memory 30 stores correction amount information 31 and offset information 32. The correction amount information 31 and offset information 32 may be stored in the nonvolatile memory 20. The correction amount information 31 and offset information 32 will be described in detail later.

[0018] 1.1.3 Memory Controller Next, the internal configuration of the memory controller 10 will be described with continued reference to Fig. 1. The memory controller 10 includes a control circuit 11, a non-volatile memory interface circuit (NVMI / F) 12, a host interface circuit (host I / F) 13, a volatile memory interface circuit (VMI / F) 14, a buffer memory 15, an ECC (Error Correction and Check) circuit 16, and a correction amount calculation circuit 17. The functions of the control circuit 11, the non-volatile memory interface circuit 12, the host interface circuit 13, the volatile memory interface circuit 14, the buffer memory 15, the ECC circuit 16, and the correction amount calculation circuit 17 described below can be realized by dedicated hardware, a processor that executes a program, or a combination of these.

[0019] The control circuit 11 is a circuit that controls the entire memory controller 10. The control circuit 11 includes, for example, a processor such as a CPU (Central Processing Unit), a ROM (Read Only Memory), and a RAM (Random Access Memory).

[0020] The nonvolatile memory interface circuit 12 manages communication between the memory controller 10 and the nonvolatile memory 20. The nonvolatile memory interface circuit 12 is connected to the nonvolatile memory 20 via a memory bus MB. 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).

[0021] The host interface circuit 13 is responsible for communication between the memory controller 10 and the host 2. The host interface circuit 13 is connected to the host 2 via a host bus. The host bus may be, for example, TMInterface: SAS (Serial Attached SCSI (Small Computer System Interface)), SATA (Serial ATA (Advanced Technology Attachment)), or PCIe TM (Peripheral Component Interconnect express).

[0022] The volatile memory interface circuit 14 manages communication between the memory controller 10 and the volatile memory 30. The bus connecting the volatile memory 30 and the memory controller 10 complies with, for example, the DRAM interface standard.

[0023] The buffer memory 15 is, for example, a static random access memory (SRAM). The buffer memory 15 buffers data between the host 2 and the nonvolatile memory 20. Specifically, the buffer memory 15 temporarily stores write data and read data.

[0024] The ECC circuit 16 performs error detection and error correction on data stored in the non-volatile memory 20. That is, when writing data, the ECC circuit 16 adds an error correction code to the write data. When reading data, the ECC circuit 16 decodes the read data and detects the presence or absence of a fail bit. A fail bit is a bit of data (including one or more bits) read from a certain memory cell that is different from the data written to the memory cell. When a fail bit is detected, the ECC circuit 16 identifies the position of the fail bit and performs an error correction process. Methods of the error correction process 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 the hard decision decoding, and an LDPC (Low Density Parity Check) code can be used as a soft decision decoding code used in the soft decision decoding. In the following, unless otherwise specified, it is assumed that hard decision decoding is applied to the error correction process.

[0025] The correction amount calculation circuit 17 is a circuit configured to execute a correction amount calculation process. The correction amount calculation process is a process of calculating a difference (correction amount) between an initial value of a read voltage and an appropriate read voltage. The correction amount calculation circuit 17 executes the correction amount calculation process using one or more read data from the non-volatile memory 20. The correction amount calculation circuit 17 may further use a result of an error detection process by the ECC circuit 16 to execute the correction amount calculation process.

[0026] 1.1.4 Memory Bus Next, a description will be given of an example of signals exchanged between the nonvolatile memory 20 and the memory controller 10. 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 MB 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 20.

[0029] The command latch enable signal CLE and the address latch enable signal ALE are signals that notify the nonvolatile memory 20 that the input signal I / O to the nonvolatile memory 20 is a command and an address, respectively.

[0030] The write enable signal WEn is a signal for causing the nonvolatile memory 20 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 20.

[0032] The write protect signal WPn is a signal for instructing the nonvolatile memory 20 to prohibit writing and erasing of data.

[0033] The ready / busy signal RBn is a signal that indicates whether the nonvolatile memory 20 is in a ready state or a busy state. The ready state is a state in which the nonvolatile memory 20 can receive commands from the memory controller 10. The busy state is a state in which the nonvolatile memory 20 cannot receive commands from the memory controller 10. The ready / busy signal RBn indicates a busy state when it is 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 20 and the memory controller 10. The input / output signal I / O includes data such as a command, an address, and write data and read data.

[0035] 1.1.5 Non-volatile memory Next, the configuration of the nonvolatile memory 20 will be described. Fig. 3 is a circuit diagram showing an example of the configuration 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, BL1, ..., and BLm (m is an integer equal to or greater than 2). 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 multiple selection transistors ST1 included in the string units SU0 to SU3 are commonly connected to the selection gate lines SGD0 to SGD3, respectively. The control gates of the multiple memory cell transistors MT0 to MT7 are commonly connected to the word lines WL0 to WL7, respectively. The gates of the multiple selection transistors ST2 are commonly connected to the selection 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 "one page of data". That is, one page of data is a data area of ​​one-bit data strings having a number of columns corresponding to the number of memory cell transistors MT in the cell unit CU. One page of data is used, for example, as a data read unit. The cell unit CU may have a storage capacity of two or more pages of data depending on the number of bits of data 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 to this. For example, the number of bit lines BL is not limited to three or more, and may be one or two. The number of blocks BLK included in the nonvolatile memory 20 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 the following, a case where one memory cell transistor MT can store 2-bit data will be described. In this case, the write mode in which 2-bit data is stored in the memory cell transistor MT is also called MLC (Multi Level Cell) mode. The 2-bit data stored in the memory cell transistor written in the MLC mode is called the lower bit and the upper bit, from the least significant 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," and a set of upper bits is called the "upper page."

[0044] 4 is a schematic diagram showing an example of threshold voltage distribution of a plurality of memory cell transistors MT according to the first embodiment. When the memory cell transistor MT stores two bits of data, the distribution of the threshold voltage is divided into four. These four threshold voltage distributions are called the "Er" state, "A" state, "B" state, and "C" state, in order from the lowest threshold voltage.

[0045] Voltages VA, VB, and VC shown in FIG. 4 are used to distinguish between two adjacent states during a read process. Voltage VREAD is a voltage applied to an unselected word line during a read process. When voltage VREAD is applied to the gate of a memory cell transistor MT, the memory cell transistor MT is turned on regardless of the data stored therein. The relationship between these voltage values ​​is as follows: VA <VB<VC<VREADである。

[0046] In the above-mentioned threshold voltage distribution, the "Er" state corresponds to the erased state of the memory cell transistor MT. The threshold voltage in the "Er" state is less than the voltage VA. The threshold voltage in the "A" state is equal to or greater than the voltage VA and less than the voltage VB. The threshold voltage in the "B" state is equal to or greater than the voltage VB and less than the voltage VC. The threshold voltage in the "C" state is equal to or greater than the voltage VC and less than the voltage VREAD.

[0047] The four threshold voltage distributions described above are formed by writing two bits (two pages) of data including the lower bit and the upper bit. Each of the four threshold voltage distributions corresponds to a different two bits of data. In the following, data is assigned to the "upper bit / lower bit" for the memory cell transistor MT included in each state as shown below.

[0048] The memory cell transistor MT in the "Er" state stores "11" data. The memory cell transistor MT in the "A" state stores "01" data. The memory cell transistor MT in the "B" state stores "00" data. The memory cell transistor MT in the "C" state stores "10" data.

[0049] The read operation of the lower page includes a read operation BR using a voltage VB that distinguishes between the "A" and "B" states as a read voltage. The read operation of the upper page includes a read operation AR using a voltage VA that distinguishes between the "Er" and "A" states as a read voltage, and a read operation CR using a voltage VC that distinguishes between the "B" and "C" states as a read voltage.

[0050] The memory controller 10 manages the read voltages VA, VB, and VC applied to the read process by DAC (Digital to Analogue Converter) values ​​indicating the correction amounts from the initial values ​​VAini, VBini, and VCini of the read voltages, respectively. The initial values ​​VAini, VBini, and VCini of the read voltages are values ​​commonly applied to all memory areas.

[0051] The correction amount is represented by a set of a reference correction amount and an offset table. The set of the reference correction amount and the offset table is applied independently to each predetermined memory area. The reference correction amount is a DAC value commonly applied to the corresponding predetermined memory area. The offset table is a set of DAC values ​​(offset correction amounts) that are individually applied to partial memory areas in the corresponding predetermined memory area. In the following, a case will be described in which the range of the predetermined memory area to which the set of the reference correction amount and the offset table is commonly applied is a block BLK, and the range of the partial memory area to which the offset correction amount is applied is a cell unit CU, but this is not limited to this. For example, multiple reference correction amounts may be applied to different memory areas in one block BLK. One reference correction amount may be applied across multiple blocks BLK. Also, the offset correction amount may be applied across multiple cell units CU.

[0052] 1.1.6 Buffer memory Fig. 5 is a diagram showing an example of the configuration of correction amount information stored in the memory system according to the first embodiment. Fig. 6 is a diagram showing an example of the configuration of offset information stored in the memory system according to the first embodiment.

[0053] The correction amount information 31 stores a set of a DAC value indicating a reference correction amount to be applied to each block BLK and a pointer indicating an offset table to be applied to each block BLK. A plurality of offset tables are stored in the offset information 32. That is, the pointer of the offset table stored in the correction amount information 31 indicates one of the plurality of offset tables stored in the offset information 32.

[0054] 5, by referring to the correction amount information 31, it can be seen that DAC values ​​ΔVA0, ΔVB0, and ΔVC0 are applied to the block BLK0 as the reference correction amounts, and that the offset table TBa is applied to the block BLK0. It can also be seen that DAC values ​​ΔVA1, ΔVB1, and ΔVC1 are applied to the block BLK1 as the reference correction amounts, and that the offset table TBa is applied to the block BLK1.

[0055] The offset table is information that associates cell units CU (corresponding word lines WL) with DAC values ​​for each state that indicate the amount of offset correction applied to the cell units CU, and is compiled in units of blocks BLK.

[0056] In the example of FIG. 6, when the offset table TBa is applied, the DAC values ​​δVA0a, δVB0a, and δVC0a are applied as the offset correction amount to the cell unit CU corresponding to the word line WL0. The DAC values ​​δVA1a, δVB1a, and δVC1a are applied as the offset correction amount to the cell unit CU corresponding to the word line WL1. The DAC values ​​δVA2a, δVB2a, and δVC2a are applied as the offset correction amount to the cell unit CU corresponding to the word line WL2. The DAC values ​​δVA4a, δVB4a, and δVC4a are applied as the offset correction amount to the cell unit CU corresponding to the word line WL4. The DAC values ​​δVA5a, δVB5a, and δVC5a are applied as the offset correction amount to the cell unit CU corresponding to the word line WL5. The DAC values ​​δVA6a, δVB6a, and δVC6a are applied as the offset correction amount to the cell unit CU corresponding to the word line WL6. DAC values ​​ΔVA7a, ΔVB7a, and ΔVC7a are applied as offset correction amounts to the cell unit CU corresponding to the word line WL7, whereas a DAC value of "0" is applied as the offset correction amount to the cell unit CU corresponding to the word line WL3.

[0057] In this manner, among the word lines WL to which the offset correction amount is associated in the offset table, the word line WL to which the DAC value "0" is applied (word line WL3 in the example of FIG. 6) is hereinafter referred to as the "standard WL." Also, among the word lines WL to which the offset correction amount is associated in the offset table, a predetermined word line WL other than the standard WL (word line WL7 in the example of FIG. 6) is hereinafter referred to as the "reference WL." In the correction amount application process described below, the standard WL is fixed. In contrast, in the correction amount application process described below, the reference WL may be fixed or may be dynamically changed.

[0058] By combining the above-mentioned reference correction amounts and offset tables, it is possible to determine the correction amounts for the initial values ​​of the read voltages for all cell units CU in all blocks BLK.

[0059] Fig. 7 is a diagram showing an example of a read voltage applied in a read process in the memory system according to the first embodiment. In the example of Fig. 7, a read voltage VB applied to the block BLK0, which is determined based on the correction amount information 31 shown in Fig. 5 and the offset information 32 shown in Fig. 6, is shown.

[0060] The offset correction amount applied to the word line WL3, which is the reference WL, is "0." Therefore, the read voltage VB applied to the word line WL3 is VBini+ΔVB0. On the other hand, the read voltage VB applied to the word lines WLj (j=0 to 2, 4 to 7) other than the reference WL is VBini+ΔVB0+ΔVBja.

[0061] Hereinafter, the difference between the initial value of the read voltage applied to the reference WL is called the "reference correction amount." Also, the difference between the initial value of the read voltage applied to the reference WL is called the "reference correction amount." That is, in the example of FIG. 7, the reference correction amount is ΔVB0, and the reference correction amount is ΔVB0+ΔVB7a.

[0062] 1.2 Operation Next, the operation of the memory system according to the first embodiment will be described.

[0063] 1.2.1 Correction amount application process FIG. 8 is a flowchart showing an example of a correction amount application process in the memory system according to the first embodiment.

[0064] When data is written to the target block BLK (start), the control circuit 11 applies the initially set offset table to the initial value of the read voltage in the subsequent read process (S11).

[0065] The control circuit 11 determines whether or not a first condition is satisfied (S12). The first condition will be described in detail later.

[0066] If the first condition is not satisfied (S12; no), the control circuit 11 continues to apply the initialized offset table to the initial value of the read voltage (S11). Then, the subsequent process of S12 is executed. In this manner, the process of S11 and the process of S12 are repeated until the first condition is satisfied.

[0067] When the first condition is satisfied (S12; yes), the correction amount calculation circuit 17 executes a correction amount calculation process for the reference WL to calculate a reference correction amount (S13).

[0068] After the process of S13, the control circuit 11 changes the setting of the read voltage applied in the process of S11. That is, the control circuit 11 applies the initial value of the read voltage based on the initially set offset table and the reference correction amount calculated in the process of S13 to the subsequent read process (S14).

[0069] The control circuit 11 determines whether or not the second condition is satisfied (S15). The second condition will be described in detail later.

[0070] If the second condition is not satisfied (S15; no), the control circuit 11 determines whether new data has been written to the target block BLK (S16).

[0071] If no new data has been written to the target block BLK (S16; no), the control circuit 11 continues to determine whether the second condition is satisfied (S15). Then, the subsequent process of S16 is executed. In this way, if no new data has been written to the target block BLK, the process of S15 and the process of S16 are repeated until the second condition is satisfied.

[0072] When new data is written to the target block BLK (S16; yes), the control circuit 11 applies the initialized offset table to the initial value of the read voltage (S11). Then, the subsequent processes of S12 to S16 are executed. In this way, when new data is written to the target block BLK, the processes of S11 to S16 are repeated until the second condition is satisfied.

[0073] When the second condition is satisfied (S15; yes), the correction amount calculation circuit 17 executes a correction amount calculation process for the reference WL to calculate a reference correction amount (S17).

[0074] The control circuit 11 extracts an offset table to be applied to the subsequent read process based on the standard correction amount calculated in the process of S13 and the reference correction amount calculated in the process of S17 (S18).

[0075] The control circuit 11 applies the reference correction amount calculated in the process of S13 and the offset table extracted in the process of S19 to the initial value of the read voltage in the subsequent read process (S19).

[0076] After the process of S19, the correction amount application process ends (END).

[0077] 1.2.2 Correction amount calculation process Next, a correction amount calculation process used for calculating the standard correction amount in the process of S13 and the reference correction amount in the process of S17 will be described in detail. The correction amount calculation process based on the data read using the initial value of the read voltage will be described below. (1st method) First, the first method will be described.

[0078] In the first method, the control circuit 11 executes a read process, for example, for all pages, for a predetermined string unit SU (for example, string unit SU0) connected to a target word line WL. That is, the control circuit 11 executes a read process for a predetermined string unit SU connected to a reference WL when calculating a standard correction amount, and executes a read process for a predetermined string unit SU connected to a reference WL when calculating a reference correction amount.

[0079] After the read process, the ECC circuit 16 executes an error detection process on the read data. This allows the correction amount calculation circuit 17 to grasp the data string before correction and the data string after correction for each column address of the read data. Therefore, the correction amount calculation circuit 17 can grasp the (true) state when written and the (possibly erroneous) state when read for each column address of the read data. Specifically, for example, the correction amount calculation circuit 17 can grasp the number E12 of memory cells where data written as the "A" state is erroneously read as the "Er" state. In addition, the correction amount calculation circuit 17 can grasp the number E21 of memory cells where data written as the "Er" state is erroneously read as the "A" state.

[0080] FIG. 9 is a diagram showing an example of a first method applied to a correction amount calculation process in the memory system according to the first embodiment. In the example of FIG. 9, a case where a correction amount of a read voltage VA is calculated is shown. In FIG. 9, the number E12 of memory cells in which data written as the "A" state is erroneously read as the "Er" state corresponds to the area of ​​region (a) in FIG. 9(A) to FIG. 9(C). Also, the number E21 of memory cells in which data written as the "Er" state is erroneously read as the "A" state corresponds to the area of ​​region (b) in FIG. 9(A) to FIG. 9(C).

[0081] FIG. 9(A) shows a case where the read voltage VA is equal to the threshold voltage VAopt at the intersection of two threshold voltage distributions corresponding to the “Er” state and the “A” state. In the case of FIG. 9(A), the area of ​​the region (a) is equal to the area of ​​the region (b). In this case, the number of fail bits E (=E12+E21) occurring between the “Er” state and the “A” state is expected to be minimum. Therefore, the correction amount calculation circuit 17 determines that the read voltage VA does not need to be updated. In other words, the correction amount calculation circuit 17 calculates a correction amount ΔVA of “0” (ΔVA=0).

[0082] FIG. 9B shows a case where the read voltage VA is located on the higher voltage side than the threshold voltage VAopt at the intersection of two threshold voltage distributions corresponding to the “Er” state and the “A” state. In the case of FIG. 9B, the area of ​​region (a) is larger than the area of ​​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. 9A, which is not preferable. For this reason, the correction amount calculation circuit 17 shifts the read voltage VA toward the lower voltage side so as to approach the voltage VAopt. In other words, the correction amount calculation circuit 17 calculates a negative correction amount ΔVA (ΔVA<0).

[0083] FIG. 9C shows a case where the read voltage VA is located on the lower voltage side than the threshold voltage VAopt at the intersection of two threshold voltage distributions corresponding to the “Er” state and the “A” state. In the case of FIG. 9C, the area of ​​region (a) is smaller than the area of ​​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. 9A, which is not preferable. Therefore, the correction amount calculation circuit 17 shifts the read voltage VA toward the higher voltage side so as to approach the voltage VAopt. In other words, the correction amount calculation circuit 17 calculates a positive correction amount ΔVA (ΔVA>0).

[0084] It is expected that the absolute value of the difference between the area of ​​region (a) and the area of ​​region (b) will increase as the read voltage VA moves away from the threshold voltage VAopt. Therefore, the correction amount calculation circuit 17 determines the correction amount ΔVA of the read voltage VA according to the ratio of the area of ​​region (a) to the area of ​​region (b). This makes it possible to determine an appropriate correction amount according to the degree of overlap of the threshold voltage distributions, and to calculate the correction amount ΔVA so as to approach the threshold voltage VAopt.

[0085] Although not shown, the correction amounts ΔVB and ΔVC are calculated for the other read voltages VB and VC in the same manner as for the read voltage VA.

[0086] In addition, in the correction amount calculation process based on the data read using the value (VAini+ΔVApre) obtained by adding the correction amount ΔVApre to the initial value VAini of the read voltage VA, the correction amount ΔVApre is updated to the correction amount ΔVApost as follows. That is, as in FIG. 9(A), when the area of ​​the region (a) is equal to the area of ​​the region (b), it is not necessary to update the correction amount ΔVA. Therefore, the correction amount ΔVApost=the correction amount ΔVApre. As in FIG. 9(B), when the area of ​​the region (a) is larger than the area of ​​the region (b), the correction amount ΔVApost is updated to a value lower than the correction amount ΔVApre. As in FIG. 9(C), when the area of ​​the region (a) is smaller than the area of ​​the region (b), the correction amount ΔVApost is updated to a value higher than the correction amount ΔVApre. (Second method) Next, the second method will be described.

[0087] In the second method, the control circuit 11 executes a plurality of read processes while shifting the read voltage.

[0088] After the multiple read processes, the correction amount calculation circuit 17 calculates the number of memory cell transistors MT (number of section cells) for each threshold voltage range divided by the multiple read voltages based on the multiple read data from the multiple read processes. The correction amount calculation circuit 17 calculates an appropriate read voltage based on the distribution (histogram) of the calculated number of section cells. Then, the correction amount calculation circuit 17 calculates the difference from the initial value of the appropriate read voltage as the correction amount.

[0089] FIG. 10 is a diagram showing an example of the second method applied to the correction amount estimation process in the memory system according to the first embodiment.

[0090] FIG. 10(A) shows, as an example, two threshold voltage distributions corresponding to the "Er" state and the "A" state. FIG. 10(B) shows the transition of the number M of memory cell transistors MT that are in the on state (the number of on cells). FIG. 10(C) shows the transition of the amount of change in the number of on cells between two read voltages, i.e., the number of cells per section C. FIG. 10(C) corresponds to the histogram described above.

[0091] As shown in FIG. 10B, 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 V Ermid, which is the mode of the “Er” 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. 10A. When the read voltage V is further lowered, the rate of decrease of the number of ON cells M becomes smaller, and the rate of decrease of the number of ON cells M becomes minimum at a certain value of the read voltage V. The minimum value of the rate of decrease of the number of ON cells M is zero when the threshold voltage distribution belonging to the “A” state does not overlap with the threshold voltage distribution belonging to the “Er” state. On the other hand, when the threshold voltage distribution belonging to the “A” state overlaps with the threshold voltage distribution belonging to the “Er” state, the minimum value of the rate of decrease 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 the voltage VAmid, which is the most frequent value for the “A” state.

[0092] 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, first, a read process is performed using a read voltage V0. The number of ON cells at this time is M0. Next, a read process is performed using a voltage V1 that is ΔV lower than the voltage V0. The number of ON cells at this time is M1. Then, when the read voltage drops from V0 to V1, the number of memory cell transistors MT that are newly turned off is C1=M0-M1. In other words, the number of cells in the section where the threshold voltage is between [V0, V1] is C1.

[0093] Next, the read process is performed using voltage V2, which is ΔV lower than 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 section between threshold voltages [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.

[0094] Next, the read process is performed using voltage V3, which is ΔV lower than 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 section between threshold voltages [V2, V3] is C3. If C3>C2, then a histogram like that shown in Figure 10(C) is obtained.

[0095] As a result, it is possible to estimate the threshold voltage distribution as shown by the dashed line in Fig. 10C using 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 "Er" state and the threshold voltage distribution belonging to the "A" state is smallest exists between voltage V1 and voltage V2 (the section where the section cell number is the minimum).

[0096] By operating as described above, in the second method, it is possible to calculate an appropriate read voltage based on a plurality of read processes.

[0097] 1.2.3 First and second conditions Next, the first condition used in the determination process of S12 and the second condition used in the determination process of S15 will be described in detail.

[0098] Fig. 11 is a diagram showing an example of a combination of conditions for invoking the correction amount application process in the memory system according to the first embodiment. Fig. 11 shows possible combinations of a specific example of the first condition used in the determination process of S12 and a specific example of the second condition used in the determination process of S15.

[0099] The first condition includes, for example, the following three types of conditions (1) to (3). (1) After data is written to the target block BLK, a period T1 has elapsed. (2) Periodic internal read processing is performed on the reference WL. (3) Data containing fail bits equal to or greater than the threshold TH1 is read from the target block BLK. Here, the periodic internal read process includes, for example, a patrol process. The patrol process is a process for determining whether or not the data stored in the nonvolatile memory 20 is in a state in which errors can be corrected. In the patrol process, the read process is executed to circulate through memory areas in the nonvolatile memory 20. The memory controller 10 executes an error correction process on the read data, and determines whether or not the number of fail bits included in the read data is equal to or less than the allowable value for which errors can be corrected. If the number of fail bits exceeds the allowable value, the memory controller 10 executes a refresh process on the storage area from which the data is read. The refresh process includes a process for rewriting data. In this way, by executing the patrol process, the memory controller 10 can maintain the number of fail bits included in the data in the nonvolatile memory 20 equal to or less than the allowable value.

[0100] The second condition includes, for example, the following three types of conditions (4) to (6). (4) After data is written to the target block BLK, a period T2 longer than the period T1 has elapsed. (5) After the reference correction amount is calculated, data is read from the target block BLK. (6) After the reference correction amount is calculated, data including fail bits equal to or greater than the threshold value TH2 is read from the target block BLK. Here, the read process in condition (5) may or may not be based on a request from the host 2. In other words, the read process in condition (5) may be an internal read process, or may be a read process based on a request from the host 2.

[0101] The first and second conditions are applied in the following combinations: That is, when condition (1) is applied as the first condition, at least one of conditions (4), (5), and (6) is applied as the second condition; when condition (2) is applied as the first condition, at least one of conditions (5) and (6) is applied as the second condition; when condition (3) is applied as the first condition, at least one of conditions (5) and (6) is applied as the second condition.

[0102] 1.2.4 Offset table extraction process Next, the process of extracting an offset table to be applied (offset table extraction process) in the process of S18 will be described in detail.

[0103] FIG. 12 is a flowchart showing an example of an offset table extraction process in the memory system according to the first embodiment.

[0104] When the reference correction amount is calculated (start), the control circuit 11 calculates the difference between the standard correction amount calculated in the process of S13 and the reference correction amount calculated in the process of S17 as an ideal offset amount (S21).

[0105] Control circuit 11 selects one offset table from the multiple offset tables stored in offset information 32 (S22).

[0106] The control circuit 11 calculates the sum of squares of the difference for each state between the ideal offset amount calculated in the process of S21 and the offset correction amount corresponding to the ideal offset amount in the offset table selected in the process of S22 (S23).

[0107] The control circuit 11 determines whether or not all offset tables have been selected (S24).

[0108] If there is an unselected offset table (S24; no), the control circuit 11 selects one unselected offset table (S22) from the multiple offset tables stored in the offset information 32. Then, the subsequent processes of S23 and S24 are executed. In this manner, the processes of S22 to S24 are repeated until all offset tables have been selected.

[0109] If all offset tables have been selected (S24; yes), the control circuit 11 extracts the offset table that minimizes the sum of squares calculated in the process of S23 (S25).

[0110] When the process of S25 ends, the offset table extraction process ends (END).

[0111] 1.2.5 Specific examples of correction amounts applied Next, a specific example of the correction amount applied by the correction amount application process will be described.

[0112] Fig. 13 is a diagram showing a first example of a transition of the correction amount applied in the correction amount application process in the memory system according to the first embodiment. Fig. 14 is a diagram showing a second example of a transition of the correction amount applied in the correction amount application process in the memory system according to the first embodiment. Fig. 15 is a diagram showing a third example of a transition of the correction amount applied in the correction amount application process in the memory system according to the first embodiment. Fig. 16 is a diagram showing a fourth example of a transition of the correction amount applied in the correction amount application process in the memory system according to the first embodiment.

[0113] The first example shows the change in the correction amount when a reference correction amount is applied to block BLK0 to which offset table TBa is applied. The second example shows the change in the correction amount when the offset table applied to block BLK0 is changed from offset table TBa to offset table TBc in response to calculation of the reference correction amount. The third example shows the change in the correction amount when a reference correction amount is applied to block BLK1 to which offset table TBa is applied. The fourth example shows the change in the correction amount when the offset table applied to block BLK1 is changed from offset table TBa to offset table TBd in response to calculation of the reference correction amount.

[0114] First, the transition of the correction amount in block BLK0 will be described with reference to Fig. 13 and Fig. 14. In Fig. 13, the read voltage VB applied before and after the calculation of the reference correction amount is represented by lines L1 and L2, respectively. In Fig. 14, after the calculation of the reference correction amount, the read voltage VB applied before and after the calculation of the reference correction amount is represented by lines L2 and L3, respectively.

[0115] 13, before the calculation of the reference correction amount, the offset table TBa initialized for the initial value VBini is applied. Therefore, in the reference WL, the voltage VBini is applied to the read voltage VB. In the reference WL, the voltage VBini+ΔVB7a is applied to the read voltage VB.

[0116] When the correction amount calculation process for the reference WL is executed, the reference correction amount ΔVB0 calculated by the correction amount calculation process is applied. As a result, the voltage VBini+ΔVB0 is applied to the read voltage VB in the reference WL. The voltage VBini+ΔVB0+ΔVB7a is applied to the read voltage VB in the reference WL.

[0117] As shown in FIG. 14, when the correction amount calculation process for the reference WL is executed, the ideal offset amount is calculated based on the reference correction amount calculated by the correction amount calculation process and the standard correction amount ΔVB0. Then, an offset table TBc is calculated in which the difference in the offset correction amount between the standard WL and the reference WL is close to the ideal offset amount. As a result, in the reference WL, a voltage VBini+ΔVB0+ΔVB7c is applied to the read voltage VB. Note that the read voltage VB applied to the standard WL is maintained at the voltage VBini+ΔVB0. In this way, in the block BLK0, the difference in the correction amount between the standard WL and the reference WL changes according to the change in the applied offset table.

[0118] Next, the transition of the correction amount in the block BLK1 will be described with reference to Fig. 15 and Fig. 16. In Fig. 15, the read voltage VB applied before and after the calculation of the reference correction amount is represented by lines L1 and L4, respectively. In Fig. 16, after the calculation of the reference correction amount, the read voltage VB applied before and after the calculation of the reference correction amount is represented by lines L4 and L5, respectively.

[0119] As shown in FIG. 15, before the calculation of the reference correction amount, the offset table TBa initially set for the initial value VBini is applied. Therefore, in the reference WL, the voltage VBini is applied to the read voltage VB. In the reference WL, the voltage VBini+ΔVB7a is applied to the read voltage VB. That is, in the case of FIG. 15, the read voltage VB equivalent to the block BLK0 shown in FIG. 13 is applied.

[0120] When the correction amount calculation process for the reference WL is executed, the reference correction amount ΔVB1 calculated by the correction amount calculation process is applied. As a result, the voltage VBini+ΔVB1 is applied to the read voltage VB in the reference WL. The voltage VBini+ΔVB1+ΔVB7a is applied to the read voltage VB in the reference WL.

[0121] As shown in FIG. 16, when the correction amount calculation process for the reference WL is executed, the ideal offset amount is calculated based on the reference correction amount calculated by the correction amount calculation process and the standard correction amount ΔVB1. Then, an offset table TBd is calculated in which the difference in the offset correction amount between the standard WL and the reference WL is close to the ideal offset amount. As a result, in the reference WL, a voltage VBini+ΔVB1+ΔVB7d is applied to the read voltage VB. Note that the read voltage VB applied to the standard WL is maintained at the voltage VBini+ΔVB1. In this way, in the block BLK1 as well as in the block BLK0, the difference in the correction amount between the standard WL and the reference WL changes according to the change in the applied offset table.

[0122] In addition, since the ideal offset amount differs between the block BLK0 and the block BLK1 according to the difference in the characteristics of each block BLK, different offset tables are applied to the blocks BLK0 and BLK1. Therefore, after the calculation of the reference correction amount, the difference in the correction amount between the base WL and the reference WL differs between the block BLK0 and the block BLK1.

[0123] 1.3 Effects of the First Embodiment According to the first embodiment, when the first condition is satisfied, the memory controller 10 executes a correction amount calculation process for the reference WL, and applies the obtained reference correction amount to all read voltages applied to the target block BLK. As a result, the memory controller 10 maintains the difference between the read voltage applied to the reference WL and the read voltage applied to the reference WL, and changes both the read voltage applied to the reference WL and the read voltage applied to the reference WL. Therefore, the change in the read voltage in the reference WL can be reflected in the entire target block BLK.

[0124] Furthermore, when the second condition is satisfied after the first condition is satisfied, the memory controller 10 executes a correction amount calculation process for the reference WL, and applies an offset table to the target block BLK that matches both the obtained reference correction amount and the standard correction amount. As a result, the memory controller 10 changes the difference between the read voltage applied to the standard WL and the read voltage applied to the reference WL, and changes at least one of the read voltage applied to the standard WL and the read voltage applied to the reference WL. This allows for more detailed adjustment of the read voltage that takes into account the change in the read voltage for each word line WL. Therefore, it is possible to apply an appropriate read voltage for reading data with a small number of fail bits.

[0125] In addition, the offset table applied to a certain target block BLK is changed independently of the offset tables applied to other blocks BLK. This allows the appropriate offset table to be changed for each block BLK at an appropriate timing. This allows the application of an appropriate read voltage for reading data with a small number of fail bits.

[0126] 1.4 Modification of the first embodiment Various modifications can be applied to the first embodiment described above. For example, in the first embodiment described above, the sum of squares of the difference between the ideal offset amount and the corresponding offset correction amount for each state is calculated for all offset tables, but this is not limited to this. The sum of squares may be selectively calculated for offset tables that satisfy a predetermined condition.

[0127] In the following description, the configuration and operation different from the first embodiment will be mainly described, and the description of the configuration and operation equivalent to the first embodiment will be omitted as appropriate.

[0128] Fig. 17 is a flowchart showing an example of an offset table extraction process in a memory system according to a modification of the first embodiment. Fig. 17 corresponds to Fig. 12 in the first embodiment.

[0129] When the reference correction amount is calculated (start), the control circuit 11 calculates the difference between the standard correction amount calculated in the process of S13 and the reference correction amount calculated in the process of S17 as the ideal offset amount (S31).

[0130] Control circuit 11 selects one offset table from the multiple offset tables stored in offset information 32 (S32).

[0131] The control circuit 11 calculates, for each state, the difference between the ideal offset amount calculated in the process of S31 and the offset correction amount corresponding to the ideal offset amount in the offset table selected in the process of S32 (S33).

[0132] The control circuit 11 determines whether or not there is a state that is equal to or greater than a threshold value TH3 among the differences for each state calculated in the process of S33 (S34).

[0133] If there is no state in which the difference is equal to or greater than the threshold value TH3 (S34; no), the control circuit 11 calculates the sum of squares of the differences for each state calculated in the process of S33 (S35).

[0134] After the process of S35, or if there is a state in which the difference is equal to or greater than the threshold value TH3 (S34; yes), the control circuit 11 determines whether or not all offset tables have been selected (S36).

[0135] If there is an unselected offset table (S36; no), the control circuit 11 selects one unselected offset table (S32) from the multiple offset tables stored in the offset information 32. Then, the subsequent processes of S33 to S36 are executed. In this manner, the processes of S32 to S36 are repeated until all offset tables have been selected.

[0136] If all offset tables have been selected (S36; yes), the control circuit 11 extracts the offset table that minimizes the sum of squares calculated in the process of S35 (S37).

[0137] When the process of S37 ends, the offset table extraction process ends (END).

[0138] According to the modification of the first embodiment, it is possible to avoid extracting an offset table having a state in which the sum of squares of the difference between the states is the smallest but the offset correction amount is significantly different from the ideal offset amount. This makes it possible to apply an offset table according to the characteristics of the block BLK. Therefore, it is possible to suppress an increase in the number of fail bits included in the read data based on the applied read voltage.

[0139] 2. Second embodiment Next, a memory system according to a second embodiment will be described. The second embodiment differs from the first embodiment in that an offset table is newly generated. In the following description, the configuration and operation different from the first embodiment will be mainly described. The description of the configuration and operation equivalent to the first embodiment will be omitted as appropriate.

[0140] 2.1 Offset table extraction process Fig. 18 is a flowchart showing an example of an offset table extraction process in the memory system according to the second embodiment. Fig. 18 corresponds to Fig. 12 in the first embodiment.

[0141] When the reference correction amount is calculated (start), the control circuit 11 calculates the difference between the standard correction amount calculated in the process of S13 and the reference correction amount calculated in the process of S17 as the ideal offset amount (S41).

[0142] Control circuit 11 selects one offset table from the multiple offset tables stored in offset information 32 (S42).

[0143] The control circuit 11 calculates the sum of squares of the difference for each state between the ideal offset amount calculated in the process of S41 and the offset correction amount corresponding to the ideal offset amount in the offset table selected in the process of S42 (S43).

[0144] The control circuit 11 determines whether or not all offset tables have been selected (S44).

[0145] If there is an unselected offset table (S44; no), the control circuit 11 selects one unselected offset table (S42) from the multiple offset tables stored in the offset information 32. Then, the subsequent processes of S43 and S44 are executed. In this manner, the processes of S42 to S44 are repeated until all offset tables have been selected.

[0146] When all offset tables have been selected (S44; yes), the control circuit 11 determines whether or not the smallest square sum among the square sums calculated in the process of S43 is equal to or smaller than a threshold value TH4 (S45).

[0147] If the minimum sum of squares exceeds the threshold value TH4 (S45; no), the control circuit 11 generates a new offset table such that the sum of squares is equal to or less than the threshold value TH4 (S46). For example, by generating an offset table such that the correction offset amount at the base WL is equal to the reference correction amount and the correction offset amount at the reference WL is equal to the reference correction amount, the sum of squares can be made equal to or less than the threshold value TH4.

[0148] If the minimum sum of squares is equal to or smaller than the threshold value TH4 (S45; yes), or after the process of S46, the control circuit 11 extracts the offset table in which the sum of squares is the minimum (S47).

[0149] When the process of S47 ends, the offset table extraction process ends (END).

[0150] 2.2 Effects of the Second Embodiment According to the second embodiment, when the minimum value of the sum of squares of the difference between the ideal offset amount and the corresponding offset correction amount in the offset table exceeds a threshold value TH4 during the offset table extraction process, the memory controller 10 generates a new offset table. This allows the offset table having an offset correction amount close to the ideal offset amount to be applied to the target block BLK. This makes it possible to suppress an increase in the number of fail bits included in the read data based on the applied read voltage.

[0151] 2.3 Modification of the second embodiment Various modifications can be applied to the second embodiment described above. For example, in the second embodiment described above, the number of offset tables stored in the offset information 32 increases every time a new offset table is generated, but this is not limited to the above. Offset tables may be merged together so that the number of offset tables stored in the offset information 32 does not exceed a predetermined number.

[0152] In the following description, the configuration and operation different from the second embodiment will be mainly described, and the description of the configuration and operation equivalent to the second embodiment will be omitted as appropriate.

[0153] Fig. 19 is a flowchart showing an example of an offset table merge process in a memory system according to a modification of the second embodiment. The processes of S51 to S57 shown in Fig. 19 are assumed to be executed after the process of S46 in Fig. 18, for example.

[0154] When a new offset table TBx is generated (start), the control circuit 11 extracts a pair of offset tables (TBp, TBq) that minimizes the sum of squares of the differences between corresponding offset correction amounts from all offset tables other than the generated offset table TBx (S51).

[0155] The control circuit 11 further extracts the offset table TBy for which the sum of squares of the differences between the corresponding offset correction amounts is the smallest between the offset tables TBx (S52).

[0156] The control circuit 11 determines whether or not the sum of squares between the pair (TBp, TBq) extracted in the process of S51 is smaller than the sum of squares between the pair (TBx, TBy) extracted in the process of S52 (S53).

[0157] If the sum of squares between the pair (TBp, TBq) is smaller than the sum of squares between the pair (TBx, TBy) (S53; yes), the control circuit 11 merges the offset tables TBp and TBq to generate a new offset table TBr (S54). The offset table TBr includes, for example, an internal division point (for example, a midpoint) between the offset correction amount of the offset table TBp and the corresponding offset correction amount of the offset table TBq as the offset correction amount.

[0158] The control circuit 11 deletes the offset tables TBp and TBq from the offset information 32, and registers the offset table TBr generated in the process of S54 in the offset information 32 (S55).

[0159] If the sum of squares between the pair (TBx, TBy) is smaller than the sum of squares between the pair (TBp, TBq) (S53; no), the control circuit 11 merges the offset tables TBx and TBy to generate a new offset table TBz (S56). The offset table TBz includes, for example, an internal division point (for example, a midpoint) between the offset correction amount of the offset table TBx and the corresponding offset correction amount of the offset table TBy as the offset correction amount.

[0160] The control circuit 11 deletes the offset tables TBx and TBy from the offset information 32, and registers the offset table TBz generated in the process of S56 in the offset information 32 (S57).

[0161] After the process of S55 or after the process of S57, the offset table merge process ends (END).

[0162] According to the modified example of the second embodiment, similar offset tables are merged into one. This makes it possible to prevent the data size of the offset information 32 from increasing unilaterally due to the generation of a new offset table. Note that the offset tables to be merged are configured with similar offset correction amounts, so the effect of reducing the number of fail bits by selectively using them is relatively small. Therefore, the deterioration of the estimation accuracy of the read voltage due to the merging of the offset tables can be minimized.

[0163] 3. Other In addition, in the above-mentioned first embodiment, second embodiment, and each of the modified examples of the first and second embodiments, a case has been described in which two bits of data can be stored in one memory cell transistor MT, but this is not limited to this and the same can be applied to a case in which three or more bits of data can be stored.

[0164] In the above-mentioned modified example of the second embodiment, the case where offset tables similar to each other are merged has been described, but the method of suppressing the increase in the number of offset tables is not limited to this. For example, the control circuit 11 may preferentially delete offset tables that are not currently applied to the block BLK. This makes it possible to suppress the increase in the number of offset tables in the offset information 32 while generating offset tables that are in line with the characteristics of the current block BLK.

[0165] Although some 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 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 of the invention and its equivalents described in the claims, as well as in the scope and spirit of the invention. [Explanation of symbols]

[0166] 1. Information processing system 2. Host 3. Memory system 10…Memory controller 11...Control circuit 12...Non-volatile memory interface circuit 13...Host interface circuit 14...Volatile memory interface circuit 15...Buffer memory 16...ECC circuit 17…Correction amount calculation circuit 20...Non-volatile memory 30…Volatile memory 31...Correction amount information 32…Offset information

Claims

1. a non-volatile memory including a plurality of blocks each including a plurality of memory cells; a memory controller that executes a first read operation to read data from a first memory cell in a first block using a first read voltage and a second read operation to read data from a second memory cell in the first block using a second read voltage; Equipped with The memory controller includes: If a first condition is satisfied, maintaining a difference between the first read voltage and the second read voltage at a first value and varying both the first read voltage and the second read voltage; When a second condition is satisfied after the first condition is satisfied, a difference between the first read voltage and the second read voltage is changed from the first value to a second value different from the first value, and at least one of the first read voltage and the second read voltage is changed. It is configured as follows: Memory system.

2. a non-volatile memory including a first block including a first memory cell and a second memory cell, and a second block including a third memory cell and a fourth memory cell; a memory controller that executes a first read process of reading data from the first memory cell using a first read voltage, a second read process of reading data from the second memory cell using a second read voltage, a third read process of reading data from the third memory cell using a third read voltage, and a fourth read process of reading data from the fourth memory cell using a fourth read voltage; Equipped with The memory controller includes: changing a difference between the first read voltage and the second read voltage from a first value to a second value different from the first value, and changing at least one of the first read voltage and the second read voltage; A difference between the third read voltage and the fourth read voltage is changed from a third value to a fourth value different from the third value, and at least one of the third read voltage and the fourth read voltage is changed. It is configured as follows: a difference between the first value and the second value is different from a difference between the third value and the fourth value; Memory system.

3. the memory controller is configured to independently change at least one of the first read voltage and the second read voltage and change at least one of the third read voltage and the fourth read voltage; 3. The memory system of claim 2.

4. The memory controller includes: If a first condition is satisfied, maintaining a difference between the first read voltage and the second read voltage at the first value and changing both the first read voltage and the second read voltage; When a second condition is satisfied after the first condition is satisfied, a difference between the first read voltage and the second read voltage is changed from the first value to the second value, and at least one of the first read voltage and the second read voltage is changed. It is configured as follows:

3. The memory system of claim 2.

5. the memory controller is configured to independently change both the first read voltage and the second read voltage and to independently change both the third read voltage and the fourth read voltage; 5. The memory system of claim 4.

6. the first condition includes a first period having elapsed since data was written to the first memory cell and the second memory cell; 5. The memory system according to claim 1.

7. The second condition is: A second period longer than the first period has elapsed since data was written to the first memory cell and the second memory cell; or maintaining the difference at the first value and reading data from the first block after both the first read voltage and the second read voltage are changed; or maintaining the difference at the first value, and reading data including fail bits equal to or greater than a first threshold value from the first block after both the first read voltage and the second read voltage are changed; Including, 7. The memory system of claim 6.

8. the first condition includes the memory controller executing the first read process without depending on an instruction from an external host; 5. The memory system according to claim 1.

9. The second condition is: maintaining the difference at the first value and reading data from the first block after both the first read voltage and the second read voltage are changed; or maintaining the difference at the first value, and reading data including fail bits equal to or greater than a first threshold value from the first block after both the first read voltage and the second read voltage are changed; Including, 9. The memory system of claim 8.

10. the first condition includes that data including fail bits equal to or greater than a second threshold value is read from the first block; 5. The memory system according to claim 1.

11. The second condition is: maintaining the difference at the first value and reading data from the first block after both the first read voltage and the second read voltage are changed; or maintaining the difference at the first value, and reading data including fail bits equal to or greater than a first threshold value from the first block after both the first read voltage and the second read voltage are changed; Including, 11. The memory system of claim 10.

Citation Information

Patent Citations

  • Memory system

    JP2021039810A

  • Memory system and control method of memory system

    JP2021047936A

  • Calculation of Corrective Read Voltage Offset in Nonvolatile Random Access Memories

    JP2023500068A

  • Method, system and circuit for operating a non-volatile memory array

    US20080180999A1

  • Multi-tier threshold voltage offset bin calibration

    US20220375530A1