Memory system

The memory system addresses inefficiencies in reading data from non-volatile memory by selecting appropriate read retry processes based on cell reliability, enhancing data recovery efficiency and system performance through infield and outfield processing techniques.

JP2024134357AInactive Publication Date: 2024-10-03KIOXIA CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023044616
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-20
Publication Date
2024-10-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing memory systems face challenges in efficiently reading data from non-volatile memory due to varying reliability across different areas of the memory cells, leading to inefficient retry read processes and reduced overall performance.

Method used

The memory system employs a controller that selects among multiple read retry processes with different average times based on the reliability of the target area, utilizing infield and outfield processing techniques, including shift read and VTH tracking, to improve the efficiency of data recovery.

Benefits of technology

This approach enhances the efficiency of retry read processing by optimizing read operations based on the state of the memory cells, reducing the number of retries and improving overall system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024134357000001_ABST
    Figure 2024134357000001_ABST
Patent Text Reader

Abstract

To provide a memory system that can appropriately perform reading of data from a non-volatile memory.SOLUTION: According to an embodiment, a memory system having a non-volatile memory and a controller is provided. The controller is configured to select one of a plurality of types of read-retry processing different from each other in average required time on the basis of the reliability of an object domain of the non-volatile memory on which read processing is to be executed, and execute the selected read-retry processing.SELECTED DRAWING: Figure 7
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] When a memory system having a nonvolatile memory receives a read request from a host, the memory system reads data from the nonvolatile memory in response to the read request. It is desirable for the memory system to be able to appropriately read data from the nonvolatile memory. [Prior art documents] [Patent documents]

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

[0004] An object of one embodiment is to provide a memory system that can properly read data from a non-volatile memory. [Means for solving the problem]

[0005] According to one embodiment, a memory system is provided having a non-volatile memory and a controller, the controller is configured to select one of a plurality of read retry processes having different average required times based on the reliability of a target area of ​​the non-volatile memory where a read process is to be executed, and execute the selected read retry process. [Brief description of the drawings]

[0006] [Figure 1] 1 is a block diagram showing a configuration of a memory system according to a first embodiment. [Diagram 2] FIG. 2 is a circuit diagram showing the configuration of a memory cell array according to the first embodiment. [Diagram 3] FIG. 4 is a diagram showing threshold voltage distributions of memory cells according to the first embodiment. [Figure 4] FIG. 4 is a cross-sectional view showing a history value sharing area in the first embodiment. [Diagram 5] FIG. 4 is a diagram showing history value sharing management information according to the first embodiment. [Figure 6] FIG. 4 is a diagram showing history value management information according to the first embodiment. [Figure 7] 4 is a flowchart showing the operation of the memory system according to the first embodiment. [Figure 8] 5 is a flowchart showing an in-field process in the first embodiment. [Figure 9] FIG. 4 is a diagram showing a shift table for in-field processing in the first embodiment. [Figure 10] 5 is a flowchart showing an out-field process in the first embodiment. [Figure 11] 10 is a flowchart showing the operation of a memory system according to a second embodiment. [Figure 12] 13 is a flowchart showing an out-field process in the third embodiment. [Figure 13] FIG. 13 is a diagram showing history value management information according to the third embodiment. [Figure 14] FIG. 13 is a diagram showing a shift table for out-field processing in the third embodiment. [Figure 15] 13 is a flowchart showing an out-field process in the fourth embodiment. [Figure 16] FIG. 13 is a diagram showing history value management information according to the fourth embodiment. [Figure 17] 13 is a flowchart showing the operation of the memory system according to the fifth embodiment. [Figure 18] 13 is a flowchart showing the operation of a memory system according to a sixth embodiment. [Figure 19] 13 is a flowchart showing the operation of the memory system according to the seventh embodiment. [Figure 20] 13 is a flowchart showing the operation of the memory system according to the eighth embodiment. [Figure 21] 13 is a flowchart showing the operation of the memory system according to the ninth embodiment. [Figure 22] FIG. 23 is a diagram showing block management information according to the ninth embodiment. [Diagram 23] FIG. 13 is a diagram showing the operation of the memory system according to the ninth embodiment. [Figure 24] 23 is a flowchart showing the operation of the memory system according to the tenth embodiment. [Diagram 25] FIG. 23 is a diagram showing the operation of the memory system according to the tenth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0007] Hereinafter, a memory system according to an embodiment will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments.

[0008] (First embodiment) The memory system according to the first embodiment includes a non-volatile memory. When the memory system receives a read command from a host, the memory system reads data from the non-volatile memory in response to the read command. In the memory system according to the present embodiment, a measure is taken to appropriately read data from the non-volatile memory.

[0009] The memory system 1 is configured as shown in Fig. 1. Fig. 1 is a diagram showing the configuration of the memory system 1.

[0010] The memory system 1 includes a non-volatile memory 20, a memory controller 10, and a buffer memory 19. The memory system 1 can be connected to a host 30. Fig. 1 shows a state in which the memory system 1 is connected to the host 30. The host 30 may be, for example, an electronic device such as a personal computer, a server device, a mobile terminal, or a digital still camera.

[0011] The memory system 1 may be any of various memory systems equipped with a nonvolatile memory 20, such as an SSD (Solid State Drive) or a memory card in which a memory controller 10 and a nonvolatile memory 20 are configured as one package.

[0012] The nonvolatile memory 20 is a memory that stores data in a nonvolatile manner. The nonvolatile memory 20 is, for example, a NAND type flash memory. The nonvolatile memory 20 can be composed of a plurality of memory chips. In the following description, a case where a NAND type flash memory is used as the nonvolatile memory 20 is exemplified. As the nonvolatile memory 20, a two-dimensional structure flash memory, a three-dimensional structure flash memory, a ReRAM (Resistive Random Access Memory), a FeRAM (Ferroelectric Random Access Memory), a MRAM (Magnetoresistive Random Access Memory), etc. can also be used. In addition, it is not essential that the nonvolatile memory 20 is a semiconductor memory. This embodiment can also be applied to various storage media other than semiconductor memories.

[0013] The memory controller 10 is a semiconductor integrated circuit configured as, for example, a System-on-a-Chip (SoC). Some or all of the functions of the components of the memory controller 10 described below may be realized by a Central Processing Unit (CPU) executing firmware, or may be realized by dedicated hardware.

[0014] The memory controller 10 can be connected to the host 30 via a host bus 31. The memory controller 10 controls a write process to the non-volatile memory 20 in accordance with a write request from the host 30. The memory controller 10 also controls a read process from the non-volatile memory 20 in accordance with a read request from the host 30. The host bus 31 may comply with any standard, including, for example, SATA (Serial Advanced Technology Attachment), SAS (Serial Attached SCSI), and PCIe (Registered Trademark) (Peripheral Component Interconnect express).

[0015] The memory controller 10 is connected to the non-volatile memory 20 by a memory bus 18. When the non-volatile memory 20 includes multiple memory chips, the memory controller 10 may be connected to the multiple memory chips by multiple memory buses 18, respectively. The memory bus 18 is also called a channel. The memory bus 18 is used for transmitting and receiving signals between the memory controller 10 and the non-volatile memory 20. Specific examples of the signals may include 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 ready / busy signal RBn, and an input / output signal I / O.

[0016] The signal CEn is a signal for enabling the memory chip included in the nonvolatile memory 20. The signal CLE is a signal for notifying the nonvolatile memory 20 that the input signal I / O to the nonvolatile memory 20 is a command. The signal ALE is a signal for notifying the nonvolatile memory 20 that the input signal I / O to the nonvolatile memory 20 is an address. The signal WEn is a signal for causing the nonvolatile memory 20 to take in the input signal I / O. The signal REn is a signal for reading the output signal I / O from the nonvolatile memory 20. The ready / busy signal RBn is a signal indicating 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 a command from the memory controller 10. The busy state is a state in which the nonvolatile memory 20 cannot receive a command from the memory controller 10. The input / output signal I / O is, for example, an 8-bit signal. The input / output signal I / O is the entity of data transmitted and received between the nonvolatile memory 20 and the memory controller 10. The input / output signal I / O includes a command, an address, write data (data to be written), read data (data that has been read out), and a status.

[0017] A signal TEMP indicating the temperature of the nonvolatile memory 20 detected by the temperature sensor 25 is also input from the nonvolatile memory 20 to the memory controller 10. The temperature sensor 25 may be provided inside the nonvolatile memory 20 as shown in FIG. 1. The temperature sensor 25 may be provided outside the nonvolatile memory 20. The signal line that transmits the signal TEMP output from the temperature sensor 25 may be included in the memory bus 18, or may be an independent signal line separate from the memory bus 18.

[0018] The memory controller 10 includes a host interface (host I / F) circuit 15, a control unit 11, a buffer interface (buffer I / F) circuit 12, a RAM (Random Access Memory) 14, a memory interface (memory I / F) circuit 16, and an ECC (Error Correction Code) unit 13. The host I / F circuit 15, the control unit 11, the buffer I / F circuit 12, the RAM 14, the memory I / F circuit 16, and the ECC unit 13 are connected to each other by an internal bus 17.

[0019] The host I / F circuit 15 can be connected to the host 30 via a host bus 31. The host I / F circuit 15 transfers commands and data received from the host 30 to the control unit 11 and the RAM 14 or buffer memory 19, respectively. In addition, the host I / F circuit 15 transfers data in the RAM 14 or buffer memory 19 to the host 30 in response to a request from the control unit 11.

[0020] The control unit 11 is composed of, for example, a CPU (Central Processing Unit). The control unit 11 comprehensively controls the operation of each unit of the memory controller 10. For example, when the control unit 11 receives a write request from the host 30, the control unit 11 issues a write command to the memory I / F circuit 16 to instruct the memory I / F circuit 16 to perform a write process of data to the nonvolatile memory 20. When the control unit 11 receives a read request from the host 30, the control unit 11 issues a read command to the memory I / F circuit 16 to instruct the memory I / F circuit 16 to perform a read process of data from the nonvolatile memory 20. In addition, the control unit 11 issues an erase command to the memory I / F circuit 16 as part of a garbage collection (also called compaction) process. In addition to the garbage collection, the control unit 11 controls the execution of various internal processes for managing the nonvolatile memory 20. The internal processes include, for example, wear leveling, refresh, and patrol read.

[0021] When the control unit 11 receives a write request from the host 30, it determines a storage area on the nonvolatile memory 20 where the user data is to be stored. The correspondence between the logical address of the user data and the physical address indicating the storage area on the nonvolatile memory 20 where the user data is stored is managed by address conversion information. The address conversion information may also be called a look-up table (LUT). This address conversion information is stored, for example, in the nonvolatile memory 20, and is read out as necessary and cached in the RAM 14 and / or the buffer memory 19, etc. The address conversion information may be updated in response to a request from the host 30 (for example, a write request, a trim request, a format request) or an internally issued processing request (for example, a garbage collection request, a refresh request).

[0022] When the control unit 11 receives a read request from the host 30, it converts the logical address specified by the read request into a physical address using the address conversion information described above, issues a read command instructing a read process from the physical address, and supplies it to the memory I / F circuit 16.

[0023] The memory I / F circuit 16 is connected to the nonvolatile memory 20 via a memory bus 18. The memory I / F circuit 16 controls communication with the nonvolatile memory 20. The memory I / F circuit 16 outputs signals CE, ALE, CLE, WEn, and REn to the nonvolatile memory 20 based on a read command received from the control unit 11. During a read process, the memory I / F circuit 16 transfers the read command issued by the control unit 11 to the nonvolatile memory 20 as an input / output signal I / O. The memory I / F circuit 16 also receives data read from the nonvolatile memory 20 as an input / output signal I / O. The memory I / F circuit 16 transfers the received data to the RAM 14 or the buffer memory 19. During a write process, the memory I / F circuit 16 transfers the write command issued by the control unit 11 and the data in the RAM 14 or the buffer memory 19 to the nonvolatile memory 20 as an input / output signal I / O.

[0024] The buffer memory 19 temporarily stores data to be written to the nonvolatile memory 20 or data read from the nonvolatile memory 20. The buffer memory 19 has a larger memory capacity than the RAM 14. The buffer memory 19 can be configured with a DRAM (Dynamic Random Access Memory), an SRAM (Static Random Access Memory), or the like.

[0025] The buffer I / F circuit 12 is a controller that controls access from the memory controller 10 to the buffer memory 19. The buffer I / F circuit 12 enables access to the buffer memory 19 at, for example, DDR (Double Data Rate).

[0026] The RAM 14 stores address conversion information and various management tables. These pieces of information are read from a specific area of ​​the nonvolatile memory 20, for example, when the memory system 1 is started. The RAM 14 can also be used as a working memory that temporarily stores snapshots of the various management tables and / or log information that is the change difference of the various management tables. The RAM 14 can also be used as a cache memory when transferring data between the host 30 and the nonvolatile memory 20. The RAM 14 can be composed of a dynamic random access memory (DRAM), a static random access memory (SRAM), etc.

[0027] The ECC unit 13 performs data encoding and decoding for error detection processing and error correction processing. Specifically, the ECC unit 13 encodes user data to be written to the nonvolatile memory 20 to generate write data (i.e., codewords). The ECC unit 13 can also decode data (i.e., codewords) read from the nonvolatile memory 20 to restore the user data. The ECC unit 13 performs error detection processing and error correction processing on the read data by decoding. If the error correction processing fails, the ECC unit 13 notifies the control unit 11 of the failure of the error correction processing. If the error correction processing is successful, the ECC unit 13 can restore the user data. For the encoding and decoding algorithm by the ECC unit 13, any algorithm including, for example, an RS (Reed-Solomon) code, a BCH (Bose-Chaudhuri-Hocquenghem) code, and a low-density parity check (LDPC) code can be applied.

[0028] During a write process, the ECC unit 13 receives user data to be written to the nonvolatile memory 20 based on a write command under the control of the control unit 11. The ECC unit 13 generates ECC parity based on the user data at a coding rate controlled by the control unit 11. The ECC unit 13 attaches the ECC parity to the user data to generate write data (i.e., a codeword). The codeword is written to the nonvolatile memory 20.

[0029] During a read process, under the control of the control unit 11, the ECC unit 13 receives read data (i.e., codewords) read from the non-volatile memory 20 based on a read command. The ECC unit 13 extracts ECC parity from the read data. The ECC unit 13 generates a syndrome based on the ECC parity. The ECC unit 13 determines the presence or absence of an error bit in the read data based on the syndrome. If the read data contains an error bit, the ECC unit 13 identifies the position of the error bit. The number of error bits that can be corrected by the ECC unit 13 is determined by the error correction capability of the codeword (e.g., the number of ECC parity bits).

[0030] If the read data contains a number of error bits equal to or less than the correctable number, the ECC unit 13 corrects the error bits and notifies the control unit 11 of the success of the correction. If the ECC unit 13 succeeds in correcting the errors, it can restore the user data.

[0031] If the read data contains more error bits than the correctable number, the ECC unit 13 notifies the control unit 11 of the correction failure (uncorrectable). In this case, user data may be lost.

[0032] The nonvolatile memory 20 has a command processing unit 21, a driving unit 22, a memory cell array 23, a column module 24, and a temperature sensor 25. The command processing unit 21 includes a sequencer 211, a command register (CMD register) 212, and an address register (ADD register) 213. The driving unit 22 includes a driver circuit 221 and a row decoder (R / D) 222. The nonvolatile memory 20 may include multiple memory chips.

[0033] The memory cell array 23 includes a plurality of physical blocks. Each of the plurality of physical blocks has a plurality of memory cells (a plurality of memory cell transistors MT). Each memory cell is associated with a row and a column. The memory cell array 23 includes a storage area and a management information storage area. User data provided from the memory controller 10 is stored in the storage area. Management information provided from the memory controller 10 is stored in the management information storage area.

[0034] The row decoder 222 selects a block to be accessed, and further selects a row in the selected block.

[0035] The driver circuit 221 supplies a voltage to the selected block via the row decoder 222 .

[0036] The column module 24 includes, for example, a sense amplifier and a data latch having a plurality of latch circuits. In a write operation, the column module 24 transfers data DAT received from the memory controller 10 to the memory cell array 23. In a read operation, the column module 24 senses data read from the memory cell array 23 and performs necessary calculations. Then, the column module 24 outputs the obtained data DAT to the memory controller 10.

[0037] The address register 213 holds the address ADD received from the memory controller 10. The command register 212 holds the command CMD received from the memory controller 10.

[0038] The sequencer 211 controls the operation of the entire non-volatile memory 20 based on the command CMD held in the command register 212 .

[0039] The temperature sensor 25 constantly, periodically, or as needed measures the temperature around the memory cell array 23. The measured temperature can be used for temperature compensation of operations in the nonvolatile memory 20. The measured temperature may be output to the memory controller 10 as a signal TEMP.

[0040] FIG. 2 is a circuit diagram showing the configuration of the memory cell array.

[0041] Each physical block BLK has a plurality of string units SU0 to SU3. The plurality of string units SU0 to SU3 correspond to a plurality of select gate lines SGD0 to SGD3, respectively. The plurality of string units SU0 to SU3 share a select gate line SGS. Each of the string units SU0 to SU3 functions as a drive unit in the physical block BLK. Each of the string units SU0 to SU3 can be driven by the corresponding select gate lines SGD0 to SGD3 and the select gate line SGS. Each of the string units SU0 to SU3 includes a plurality of memory strings MST.

[0042] Each memory string MST includes, for example, 96 memory cell transistors MT (MT0 to MT95) and select transistors SDT and SST. The memory cell transistors MT have a control gate and a charge storage film, and store data in a non-volatile manner. The 96 memory cell transistors MT (MT0 to MT95) are connected in series between the source of the select transistor SDT and the drain of the select transistor SST by bit lines BL. The number of memory cell transistors MT in the memory string MST is not limited to 96.

[0043] Each of the word lines WL0 to WL95 (when the word lines are not distinguished from one another, they are indicated as WL) commonly connects the control gates of the memory cell transistors MT between the memory strings MST in the physical block BLK. That is, in each string unit SU in the physical block BLK, the control gates of the memory cell transistors MT in the same row are connected to the same word line WL. The string unit SU of the physical block BLK includes a plurality of memory cell groups MCG corresponding to the plurality of word lines WL, respectively. Each memory cell group MCG includes (p+1) memory cell transistors MT connected to the same word line WL. When each memory cell transistor MT is configured to be able to store a 1-bit value (that is, when each memory cell transistor MT operates in a single level cell (SLC) mode), the memory group MCG stores one page of data. In this case, a write operation and a read operation are performed for each page of data.

[0044] Each memory cell transistor MT may be configured to be capable of holding a value of multiple bits. For example, when each memory cell transistor MT can store a value of n (n≧2), the storage capacity per memory cell group MCG is equal to the size of n pages. That is, each memory cell group MCG stores data for n pages. In a multi-level cell (MLC) mode in which each memory cell transistor MT stores a value of 2 bits, data for two pages is stored in each memory cell group MCG. In a triple-level cell (TLC) mode in which each memory cell transistor MT stores a value of 3 bits, data for three pages is stored in each memory cell group MCG. In a quad-level cell (QLC) mode in which each memory cell transistor MT stores a value of 4 bits, data for four pages is stored in each memory cell group MCG. In a penta-level cell (PLC) mode in which each memory cell transistor MT stores a value of 5 bits, data for five pages is stored in each memory cell group MCG.

[0045] The memory cell array 23 includes a plurality of units that can be accessed in parallel by the memory controller 10. The memory controller 10 manages a plurality of memory cell groups MCG that can be written / read in parallel and almost collectively as one superpage, and manages a plurality of physical blocks that can be erased in parallel as one superblock.

[0046] Furthermore, the control unit 11 manages data in the non-volatile memory 20 using clusters, which are data management units smaller than one page. For example, the cluster size is equal to or larger than the size of a sector, which is the minimum access unit from the host 30, and the page size is determined to be a natural number multiple of the cluster size. For example, one page is 4 clusters. For example, one superpage can store 64 clusters of data.

[0047] Fig. 3 is a diagram showing the threshold voltage distribution of memory cells. As shown in Fig. 3, as the number of bits of data stored in a memory cell increases, the margin for data reliability during a read process decreases.

[0048] For example, when a memory cell is used in SLC mode, as shown in FIG. 3(a), there are two states (small regions) ST0 to ST1 within the range (Vmin to Vmax) in which the threshold voltage is controlled. Each state ST indicates the distribution of the threshold voltage of the memory cell. A different 1-bit value is associated with each state ST. States ST0 and ST1 can be associated with "1" and "0", respectively. The voltage margin ΔVr0 between states ST0 and ST1 is relatively large, and a large voltage margin can be secured between the read voltage Vr1 and the states ST on both sides. For this reason, it is considered that the bit error rate (BER) is relatively low when data of the memory cell is read at the read voltage Vr1.

[0049] When the memory cell is used in the MLC mode, as shown in FIG. 3(b), there are four states ST0 to ST3 within the range (Vmin to Vmax) in which the threshold voltage is controlled. A different 2-bit value is associated with each state ST. States ST0,...,ST3 can be associated with "11",...,"00", respectively. A voltage margin ΔVr10 between two adjacent states among states ST0 to ST3 is smaller than a voltage margin ΔVr0 in the case of SLC, and the voltage margin between each read voltage Vr11 to Vr13 and the states ST on both sides is smaller than in the case of SLC. For this reason, it is considered that the bit error rate (BER) when data of the memory cell is read at each read voltage Vr11 to Vr13 is higher than that in the case of SLC.

[0050] When the memory cell is used in the TLC mode, as shown in FIG. 3(c), there are eight states ST0 to ST7 within the range (Vmin to Vmax) in which the threshold voltage is controlled. A different 3-bit value is associated with each state ST. States ST0, . . . , ST7 can be associated with “111”, . . . , and “000”, respectively. The voltage margin ΔVr20 between two adjacent states among states ST0 to ST7 is smaller than the voltage margin ΔVr10 in the case of MLC, and the voltage margin between each read voltage Vr21 to Vr27 and the states ST on both sides is smaller than in the case of MLC. For this reason, it is considered that the bit error rate (BER) when data of the memory cell is read at each read voltage Vr21 to Vr27 is higher than that in the case of MLC.

[0051] When the memory cell is used in the QLC mode, as shown in FIG. 3(d), there are 16 states ST0 to ST15 within the range (Vmin to Vmax) in which the threshold voltage is controlled. A different 4-bit value is associated with each state ST. States ST0, . . . , ST15 can be associated with “1111”, . . . , and “0000”, respectively. The voltage margin between two adjacent states among the states ST0 to ST15 is smaller than the voltage margin ΔVr20 in the case of TLC, and the voltage margin between each of the read voltages Vr31 to Vr45 and the states ST on both sides is smaller than in the case of TLC. For this reason, it is considered that the bit error rate (BER) when data of the memory cell is read at each of the read voltages Vr31 to Vr45 is higher than that in the case of TLC.

[0052] When the memory cell is used in the PLC mode, as shown in FIG. 3(e), there are 32 states ST0 to ST31 within the range (Vmin to Vmax) in which the threshold voltage is controlled. A different 5-bit value is associated with each state ST. States ST0, . . . , ST31 can be associated with “11111”, . . . , and “00000”, respectively. The voltage margin between two adjacent states among states ST0 to ST31 is smaller than the voltage margin in the case of QLC, and the voltage margin between each read voltage Vr51 to Vr81 and the states ST on both sides is smaller than in the case of QLC. For this reason, it is considered that the bit error rate (BER) when data of the memory cell is read at each read voltage Vr51 to Vr81 is higher than that in the case of QLC.

[0053] In the non-volatile memory 20, if the data cannot be restored in the first-stage read process, a retry read process is performed. In the first-stage read process, a read operation is performed by the first read method, and in the retry read process, a read operation is performed by the second read method.

[0054] The first read method may correspond to, for example, a normal read method or a fast read method. In the normal read method, a read voltage (also called a read level) of a predetermined reference value is applied to the word line WL, and a normal read operation is performed. In the fast read method, a read operation is performed with a shorter read time by shortening the application time of the read level, etc., compared to the normal read method.

[0055] The second read method corresponds to a read method in which the average required time is longer than that of the first read method and the bit error rate (BER) is lower. The second read method may correspond to, for example, a shift read method or a Vth tracking method. In the shift read method, the read level is set to a value shifted from a predetermined reference value, and a read operation is performed at the read level value. In the Vth tracking method, a single level read is performed multiple times while the read level is shifted by a predetermined voltage width, thereby generating a histogram of threshold voltage distribution of multiple memory cells included in the corresponding memory cell group MCG. Then, a read operation is performed at a read level value corrected based on the generated histogram.

[0056] On the other hand, multiple areas with different memory cell reliability are mixed in the memory cell array 23. In this case, if a retry read process of a single read method is performed uniformly on all of the multiple areas, the efficiency of the retry read process may decrease.

[0057] For example, when a retry read process is performed on an area where the reliability of memory cells is relatively low, using a read method that requires a relatively short average time and has a low ability to restore data, the read data recovery is likely to fail and the number of retries is likely to increase.

[0058] When a retry read process using a read method that requires a relatively long average time and has a high data recovery capability is performed on an area where the reliability of memory cells is relatively high, the retry read process is likely to take an excessively long time.

[0059] If the efficiency of the retry read process decreases, the latency of the retry read process increases, and there is a possibility that the overall performance of the read process for the non-volatile memory 20 decreases.

[0060] Therefore, in the memory system 1 of this embodiment, multiple read retry processes with different average required times are prepared. The memory system 1 selects and executes one of the multiple read retry processes based on the state of the area to be read. This improves the efficiency of the retry read process.

[0061] As the multiple read retry processes, an in-field process and an out-field process can be prepared. The average time required for the in-field process is shorter than the average time required for the out-field process.

[0062] The in-field process is a read retry process based on the shift read method. The out-field process is a read retry process based on the Vth tracking method. In the in-field process and the out-field process, a history value read technique is used to make the read retry process itself more efficient.

[0063] The parameters that were successfully used in the past read retry processes to restore data are stored as history values. In the history value read, the history value is used to perform the read operation, and it is expected that the probability of successful data restoration by the read retry process can be improved.

[0064] In the in-field process, the read conditions when data was successfully restored in a previous shift read operation (e.g., the shift index and / or the read level value indicating the shift amount from a predetermined reference value) are stored as history values.

[0065] In the outfield process, past Vth tracking is acquired, and the read conditions under which data was successfully restored (for example, the value of the read level specified by Vth tracking) are stored as history values.

[0066] Here, we consider a virtual space for memory cell reliability, and call the region corresponding to the assumed reliability and stress state the field. The reliability of memory cells in the field is higher than that of memory cells outside the field. When a memory cell is in the field, the state of that memory cell is called in-field. When a memory cell is outside the field, the state of that memory cell is called out-field.

[0067] When the state of the memory cell is in-field, if a shift read operation is performed using a history value in the in-field process, the probability of successful data recovery is high. In this case, it is considered that the probability of successful data recovery is high even if Vth tracking using the history value in the out-field process (e.g., multiple single-level reads performed while shifting the read level from the history value by a predetermined voltage width) is not performed. The out-field process tends to take longer than the in-field process. Therefore, when the state of the memory cell is in-field, the in-field process is efficient as a retry read process, and the out-field process is inefficient.

[0068] When the memory cell is in the out-field state, even if a shift read operation using a history value in the in-field process is performed, there is a high probability that data restoration will fail. In this case, the read level used is changed from the history value and the shift read operation is retried, which tends to increase the number of retries. In this case, if Vth tracking is performed using the history value in the out-field process and data restoration is successful, the number of retries can be reduced even if the time required for one retry read process is longer than in the in-field process. This makes it possible to reduce the total time required compared to the in-field process. In other words, when the memory cell is in the out-field state, the out-field process is an efficient retry read process, and the in-field process is inefficient.

[0069] For multiple regions in the memory cell array 23 in which the memory cells have similar reliabilities (e.g., similar bit error rates), there is a tendency for the in-field processing and the out-field processing to be similar in terms of which is more efficient. As described above, the history values ​​used in the in-field processing and the out-field processing are different. Taking this into consideration, in the memory system 1 of this embodiment, a set of memory cells having similar reliabilities is managed as a history value sharing region that should share history values. The history value sharing region is a unit defined separately from physical management units such as memory cell groups and blocks, and is a management unit abstracted as a set of memory cells having similar reliability. The history value sharing region can be experimentally determined in advance by inspection or the like.

[0070] For example, the memory cell array 23 shown in FIG. 4 has a structure in which a stack 231 is stacked above a source line SL. In the stack 231, a selection gate line SGS, a plurality of word lines WL0 to WL95, and a selection gate line SGD are stacked while being spaced apart from each other. The plurality of word lines WL0 to WL95 in the stack 231 are penetrated by a plurality of pillars 4 each extending in the stacking direction. The pillar 4 has a structure in which a plurality of tiers 4a and 4b are stacked. Correspondingly, the stack 231 has a structure in which a plurality of stacks 231A and 231B are stacked. In FIG. 4, a structure in which the pillar 4 is divided into two tiers 4a and 4b and the stack 231 is divided into two stacks 231A and 231B is illustrated, but the pillar 4 may be divided into three or more, or the stack 231 may be divided into three or more.

[0071] In the stack 231A, the select gate line SGS and the word lines WL0 to WL47 are stacked while being spaced apart from each other. If it is determined by inspection or the like that the memory cells MT0 and MT47 corresponding to the word lines WL0 and WL47 at both ends in the stacking direction among the word lines WL0 to WL47 are close to each other in reliability, the region corresponding to the word lines WL0 and WL47 can be determined as the history value sharing region HVSU1. If it is determined by inspection or the like that the memory cells MT1 to MT46 corresponding to the word lines WL1 to WL46 at the inner side in the stacking direction among the word lines WL0 to WL47 are close to each other in reliability, the region corresponding to the word lines WL1 to WL46 can be determined as the history value sharing region HVSU2.

[0072] In the stack 231B, a plurality of word lines WL48-WL95 and a selection gate line SGD are stacked while being spaced apart from each other. If it is determined by inspection or the like that the reliabilities of memory cells MT48, MT95 corresponding to the word lines WL48, WL95 at both ends in the stacking direction among the plurality of word lines WL48-WL95 are close to each other, the region corresponding to the word lines WL48, WL95 may be determined as the history value sharing region HVSU3. If it is determined by inspection or the like that the reliabilities of memory cells MT49-MT94 corresponding to the word lines WL49-WL94 at the inner side in the stacking direction among the plurality of word lines WL48-WL95 are close to each other, the region corresponding to the word lines WL49-WL94 may be determined as the history value sharing region HVSU4.

[0073] In addition, in FIG. 4, the history value sharing region is illustrated as a unit smaller than a physical block, but if the reliability of memory cells is close to each other, the history value sharing region can be determined regardless of the physical management unit. For example, if the reliability of memory cells is close to each other, the history value sharing region can be determined across multiple physical blocks.

[0074] The state of a history value sharing area, which is experimentally determined in advance by inspection or the like, can be managed by history value sharing management information as shown in FIG. 5, for example. FIG. 5 is a diagram showing history value sharing management information. FIG. 5 illustrates a case where the history value sharing management information is implemented in a table format. In the history value sharing management table, history value sharing area identifiers and states are associated with each other for a plurality of history value sharing areas. The history value sharing area identifier is information for identifying a history value sharing area from other history value sharing areas. The state is information regarding the reliability of memory cells included in the history value sharing area, and includes infield or outfield. The state may be infield initially.

[0075] The memory controller 10 can store the history value sharing management table in the management information storage area of ​​the memory cell array 23. In response to the start-up of the memory system 1, the memory controller 10 reads the history value sharing management table from the management information storage area and stores it in the RAM 14. The memory controller 10 can then update the history value sharing management table in the RAM 14. The memory controller 10 obtains the history value sharing management table from the RAM 14 at a predetermined timing and stores it in the management information storage area of ​​the memory cell array 23. This makes the history value sharing management table non-volatile.

[0076] 5 indicates that the history value sharing areas HVSU1, HVSU3, and HVSU5 are in the outfield state, and similarly, the history value sharing areas HVSU2, HVSU4, and HVSU6 are in the infield state.

[0077] Furthermore, the history values ​​to be used in the history value shared area may be managed by history value management information such as that shown in Fig. 6. Fig. 6 is a diagram showing history value management information. Fig. 6 illustrates a case where the history value management information is implemented in a table format. In the history value management table, history value shared area identifiers and history values ​​are associated with each other for a plurality of history value shared areas. The history values ​​correspond to read conditions under which data was successfully restored in the past, and include the value of the shift index Index in the infield process or the read level in the outfield process.

[0078] The memory controller 10 can store the history value management table in the management information storage area of ​​the memory cell array 23. In response to the start-up of the memory system 1, the memory controller 10 reads the history value management table from the management information storage area and stores it in the RAM 14. The memory controller 10 can then update the history value management table in the RAM 14. The memory controller 10 obtains the history value management table from the RAM 14 at a predetermined timing and stores it in the management information storage area. This makes the history value management table non-volatile.

[0079] 6 indicates that the history value sharing areas HVSU1, HVSU3, and HVSU5 should use the outfield processing history values ​​(i.e., the read level values ​​Vth1, Vth3, and Vth5). Similarly, the history value sharing areas HVSU2, HVSU4, and HVSU6 should use the infield processing history values ​​(i.e., the shift indexes Index#3, Index#4, and Index#2).

[0080] Next, the operation of the memory system 1 will be described with reference to Fig. 7. Fig. 7 is a flowchart showing the operation of the memory system 1.

[0081] In the memory system 1, the memory controller 10 performs the initial read process in response to a predetermined request (S1). The predetermined request includes a host request and an internal processing request. The predetermined request may be a read request or a patrol read request. The memory controller 10 may perform the initial read process in response to receiving a read request from the host 30. The memory controller 10 may perform the initial read process in response to internally generating a patrol read request when it is time to execute a patrol read.

[0082] When the memory controller 10 receives the read data from the non-volatile memory 20 as a result of step S1, the memory controller 10 judges whether the read was successful or not (S2). If the memory controller 10 has succeeded in correcting errors in the read data and restoring the user data, the memory controller 10 judges that the read was successful (Yes in S2) and ends the process.

[0083] If the error correction for the read data fails and the user data cannot be restored, the memory controller 10 determines that the read has failed (No in S2), and determines whether the reliability of the target area of ​​the specified request satisfies a criterion (S3). If the specified request is a read request from the host 30, the target area of ​​the specified request is the area specified in the read request. If the specified request is a patrol read request, the target area of ​​the specified request is the area specified in the patrol read request. The reliability of the target area includes the degree of wear of the memory cells in the target area, or the reliability of the data stored in the memory cells in the target area.

[0084] Various criteria may be used for the determination in step S3, which are determined based on various indicators of an area in the memory cell array 23 that is larger than and includes a target area of ​​a given request, or an area that is smaller than and includes the target area.

[0085] For example, the memory controller 10 can manage the number of write / erase cycles for the memory cell array 23 for each unit area of ​​the erase operation. The unit area of ​​the erase operation may be a physical block or a superblock. The memory controller 10 may manage the number of write / erase cycles using management information in which an area identifier and the number of write / erase cycles are associated with each other for a plurality of areas. The memory controller 10 may have a counter for each unit area of ​​the erase operation and manage the number of write / erase cycles using the counter.

[0086] In this case, if the number of write / erase cycles of a unit area of ​​an erase operation included in the target area of ​​the specified request (or a unit area of ​​an erase operation including the target area of ​​the specified request) is equal to or less than a first threshold, the memory controller 10 determines that the reliability of the target area meets the standard (Yes in S3). The first threshold corresponds to the number of write / erase cycles that causes the degree of fatigue of the memory cells of the target area to fall within a predetermined range. If the number of write / erase cycles of the target area is greater than the first threshold, the memory controller 10 determines that the reliability of the target area does not meet the standard (No in S3).

[0087] Alternatively, the memory controller 10 can manage the number of reads to the memory cell array 23 for each unit area of ​​the read operation. The unit area of ​​the read operation may be a memory cell group MCG or a superpage. The memory controller 10 may manage the number of reads using management information in which an area identifier and a number of reads are associated with each other for a plurality of unit areas. The memory controller 10 may have a counter for each unit area and manage the number of reads using the counter.

[0088] In this case, if the number of reads of a unit area of ​​a read operation included in the target area of ​​the specified request (or a unit area of ​​a read operation including the target area of ​​the specified request) is equal to or less than the second threshold, the memory controller 10 determines that the reliability of the target area meets the criterion (Yes in S3). The second threshold corresponds to the number of reads that causes the reliability of the data stored in the memory cells of the target area to fall within a predetermined range. If the number of reads of the target area is greater than the second threshold, the memory controller 10 determines that the reliability of the target area does not meet the criterion (No in S3).

[0089] Alternatively, the memory controller 10 can manage the timing at which a regular refresh is performed and the timing at which a forced refresh is performed for each unit area (e.g., superblock) of the refresh operation. The memory controller 10 periodically performs regular refresh at predetermined intervals. The memory controller 10 performs forced refresh in response to a bit error rate of the read data exceeding a threshold. Alternatively, the memory controller 10 shortens the time interval of regular refresh in response to a bit error rate of the read data exceeding a threshold. In both regular refresh and forced refresh, the memory controller 10 reads data from the unit area of ​​the refresh operation and rewrites the read data to another unit area.

[0090] In this case, the memory controller 10 determines that the reliability of the target area meets the criteria (Yes in S3) if the previously executed refresh for the unit area of ​​the refresh operation included in the target area of ​​the specified request (or the unit area of ​​the refresh operation including the target area of ​​the specified request) was a periodic refresh. If the previously executed refresh for the target area was a forced refresh (i.e., if the bit error rate of the read data read from the target area exceeded a threshold before a specified period has elapsed), the memory controller 10 determines that the degree of fatigue of the memory cells in the target area has increased and that the reliability of the target area does not meet the criteria (No in S3).

[0091] Alternatively, if the time interval between periodic refreshes for a unit area of ​​a refresh operation included in a target area of ​​a specified request (or a unit area of ​​a refresh operation including a target area of ​​a specified request) is greater than a third threshold, the memory controller 10 determines that the reliability of the target area meets the criteria (Yes in S3). The third threshold corresponds to a time interval between periodic refreshes for which the reliability of data stored in memory cells of the target area falls within a predetermined range. If the time interval between periodic refreshes for the target area is less than the third threshold, the memory controller 10 determines that the degree of fatigue of memory cells in the target area has increased and that the reliability of the target area does not meet the criteria (No in S3).

[0092] Alternatively, the memory controller 10 can manage the error correction capability of the ECC unit 13 for each unit area of ​​the error correction process. The unit area of ​​the error correction process may be a memory cell group MCG or a superpage. When multiple memory chips are connected to the memory controller 10 by multiple channels, the unit area of ​​the error correction process may include memory cells of the multiple memory chips. When the memory cell group MCG stores multiple pages of data, the error correction capability may be managed for each page data to be read. When the bit error rate in the unit area of ​​the error correction process exceeds a threshold, the memory controller 10 may increase the error correction capability from a first correction capability (e.g., N-bit correction capability per unit area of ​​the error correction process) to a second correction capability (e.g., M-bit correction capability, which is greater than N bits per unit area of ​​the error correction process). For example, in the unit area where the error correction capability is increased, a codeword including an ECC parity with increased redundancy is written.

[0093] If the error correction capability is increased in the unit area of ​​the error correction process included in the target area of ​​the specified request (or the unit area of ​​the error correction process including the target area of ​​the specified request), the reliability of the data stored in the memory cells of the target area can be ensured, and the memory controller 10 determines that the reliability of the target area meets the standard (Yes in S3).If the error correction capability is not increased in the target area, the memory controller 10 determines that the reliability of the target area does not meet the standard (No in S3).

[0094] Alternatively, the memory controller 10 can manage the temperature during writing to the memory cell array 23 for each unit area of ​​the write operation. The unit area of ​​the write operation may be a memory cell group MCG or a superpage. The memory controller 10 may manage the temperature during writing using management information in which an area identifier and a temperature during writing are associated with each other for a plurality of unit areas.

[0095] In this case, if the temperature at the time of writing to the unit area of ​​the write operation included in the target area of ​​the specified request (or the unit area of ​​the write operation including the target area of ​​the specified request) is equal to or higher than the fourth threshold, the memory controller 10 determines that the reliability of the target area meets the standard (Yes in S3) since the reliability of the data stored in the memory cells of the target area can be ensured. The fourth threshold corresponds to the lower limit of the temperature range in which the memory cells can operate properly (e.g., 15°C). If the temperature at the time of writing to the target area is lower than the fourth threshold, the memory controller 10 determines that the reliability of the target area does not meet the standard (No in S3).

[0096] Alternatively, the memory controller 10 determines that the reliability of the target area meets the criteria (Yes in S3) if the word line corresponding to the target area of ​​a given request is present at a first position in the block. The first position corresponds to a position of the word line where the reliability of the data stored in the memory cell falls within a predetermined range (e.g., a position inside the edge of the block). The memory controller 10 determines that the reliability of the target area does not meet the criteria (No in S3) if the word line corresponding to the target area is present at a second position different from the first position in the block (e.g., closer to the edge than the first position).

[0097] Alternatively, the memory controller 10 can manage the elapsed time from the start-up of the memory system 1. The memory controller 10 has a timer, and when power is supplied, the timer is started to measure the elapsed time. The memory controller 10 can grasp the elapsed time from the start-up of the memory system 1 by referring to the timer.

[0098] In this case, if the time elapsed since the startup of the memory system 1 is equal to or greater than a fifth threshold, the memory controller 10 determines that the reliability of the target area of ​​the specified request meets the criteria (Yes in S3). The fifth threshold corresponds to the time from the startup of the memory system 1 until the operation of the memory cells becomes stable. If the time elapsed since the startup of the memory system 1 is shorter than the fifth threshold, the memory controller 10 determines that the reliability of the target area does not meet the criteria (No in S3).

[0099] If the reliability of the target area of ​​the specified request satisfies the criteria (Yes in S3), the memory controller 10 executes the in-field process (S4).

[0100] When the memory controller 10 receives the read data from the non-volatile memory 20 as a result of step S4, the memory controller 10 judges whether the read was successful or not (S5). If the memory controller 10 has succeeded in correcting errors in the read data and restoring the user data, the memory controller 10 judges that the read was successful (Yes in S5) and ends the process.

[0101] If the reliability of the target area of ​​the given request does not meet the criteria (No in S3), the memory controller 10 executes out-of-field processing (S6).

[0102] Alternatively, if the result of step S4 is that the error correction on the read data has failed and the user data cannot be restored, the memory controller 10 determines that the read has failed (No in S5) and executes out-of-field processing (S6).

[0103] When the memory controller 10 receives the read data from the non-volatile memory 20 as a result of step S6, the memory controller 10 judges whether the read was successful or not (S7). If the memory controller 10 has succeeded in correcting errors in the read data and restoring the user data, the memory controller 10 judges that the read was successful (Yes in S7) and ends the process.

[0104] If the result of step S6 is that the error correction for the read data has failed and the user data cannot be restored, the memory controller 10 determines that the read has failed (No in S7) and executes other processing for restoring the user data (S8). The other processing includes, for example, a process of determining the likelihood of the read data and restoring the user data (soft decision decoding process), or a process of restoring the user data using a RAID (Redundant Arrays of Inexpensive Disks) technology.

[0105] When the memory controller 10 receives the read data from the non-volatile memory 20 as a result of step S8, the memory controller 10 judges whether the read was successful or not (S9). If the memory controller 10 has succeeded in correcting errors in the read data and restoring the user data, the memory controller 10 judges that the read was successful (Yes in S9) and ends the process.

[0106] If the result of step S8 is that the error correction on the read data has failed and the user data cannot be restored, the memory controller 10 determines that the read has failed (No in S9) and performs error processing (S10).

[0107] Next, the in-field process (S4) will be described with reference to Fig. 8. Fig. 8 is a flowchart showing the in-field process.

[0108] The memory controller 10 updates the history value sharing area management information (S11) in response to the start of the infield process (S4). The memory controller 10 identifies a history value sharing area included in a target area of ​​a specific request (for example, a superpage) (or a history value sharing area including a target area of ​​a specific request). The memory controller 10 accesses the history value sharing management information (for example, the history value sharing management table shown in FIG. 5) on the RAM 14. If the state corresponding to the identified history value sharing area is infield, the memory controller 10 maintains it as it is, and if it is outfield, the memory controller 10 rewrites it to infield. For example, if the identified history value sharing area is HVSU2 shown in FIG. 5, the memory controller 10 maintains the corresponding state since it is infield.

[0109] The memory controller 10 performs a shift read under the condition indicated by the shift index X of the history value management information (S12). X represents the value of the shift index. In the initial state, for example, X=0. The memory controller 10 accesses the history value management information on the RAM 14 (for example, the history value management table shown in FIG. 6). The memory controller 10 identifies a shift index corresponding to the identified history value sharing area. For example, if the identified history value sharing area is HVSU2 shown in FIG. 6, the memory controller 10 identifies Index#3 (i.e., X=3) as the shift index.

[0110] The specific contents of the specified shift index Index may be specified by a shift table for infield processing as shown in Fig. 9. Fig. 9 is a diagram showing the shift table for infield processing. In the shift table, shift indexes and shift lead conditions are associated with each other for a plurality of shift indexes. The shift lead conditions include a shift amount and / or a lead level value from a predetermined reference value.

[0111] The memory controller 10 can store the shift table for in-field processing in the management information storage area of ​​the memory cell array 23. In response to the start-up of the memory system 1, the memory controller 10 reads the shift table for in-field processing from the management information storage area and stores it in the RAM 14. Then, the memory controller 10 can refer to the shift table on the RAM 14.

[0112] By referring to the shift table shown in FIG. 9, the shift read condition corresponding to the shift index can be specified. If X=0 (initial value), the read level V0 and / or the shift amount ΔV0 are specified. If X=1, the read level V1 and / or the shift amount ΔV1 (>ΔV0) are specified. If X=2, the read level V2 and / or the shift amount ΔV2 (>ΔV1) are specified. If X=3, the read level V3 and / or the shift amount ΔV3 (>ΔV2) are specified. If X=4, the read level V4 and / or the shift amount ΔV4 (>ΔV3) are specified. In the example of FIG. 9, the larger the shift index value X, the larger the shift amount from a predetermined reference value becomes in the shift read condition.

[0113] The memory controller 10 controls the non-volatile memory 20 to perform shift read under the specified shift read condition for the target area of ​​a specific request. For example, when the target area is included in the history value sharing area HVSU2, the memory controller 10 controls the non-volatile memory 20 to perform shift read under the shift read condition of Index#3 (see FIG. 9). In response, the memory controller 10 acquires read data from the non-volatile memory 20.

[0114] Returning to Fig. 8, the memory controller 10 performs error correction processing on the read data (S13).

[0115] If the result of step S13 is that the error correction has been successful (Yes in S14), the memory controller 10 determines that the user data has been restored and that the read has been successful (S22), and ends the process.

[0116] If the error correction has failed as a result of step S13 (No in S14), the memory controller 10 determines whether the value X of the shift index is equal to or greater than a predetermined threshold Y (S15).

[0117] The threshold Y may be the maximum value of the shift index in the shift table. For example, when the shift table shown in FIG. 9 is used, the threshold Y may be set to 4. For example, when the target area of ​​a certain request is included in the history value sharing area HVSU2 and the value X of the shift index corresponding to the history value sharing area HVSU2 is 3, the value X of the shift index (=3) is less than the predetermined threshold Y (=4) (No in S15). Therefore, the memory controller 10 increments the value X of the shift index (S16) to X=4.

[0118] The memory controller 10 performs a shift read under the condition indicated by the shift index X of the history value management information (S17). For example, if X=4, the memory controller 10 controls the nonvolatile memory 20 to perform a shift read under the shift read condition of Index#4 (see FIG. 9). In response, the memory controller 10 acquires the read data from the nonvolatile memory 20.

[0119] The memory controller 10 performs error correction processing on the read data (S18).

[0120] If the error correction is successful as a result of step S18 (Yes in S19), the memory controller 10 updates the history value management information (S20). The memory controller 10 accesses the history value management information in the RAM 14. For example, if the target area of ​​a certain request is included in the history value sharing area HVSU2 shown in Fig. 6, the memory controller 10 rewrites the history value corresponding to the history value sharing area HVSU2, for example, from Index #3 to Index #4.

[0121] The memory controller 10 is able to restore the user data, and ends the process assuming that the read was successful (S22).

[0122] If the error correction has failed as a result of step S18 (No in S19), the memory controller 10 returns the process to step S15 and again determines whether the shift index value X is equal to or greater than the predetermined threshold value Y (S15).

[0123] For example, when the threshold value Y is 4, if the shift index value X is 4 (Yes in S15), the memory controller 10 cannot restore the user data and ends the process as a read failure (S21).

[0124] Next, the outfield process (S6) will be described with reference to Fig. 10. Fig. 10 is a flowchart showing the outfield process.

[0125] The memory controller 10 updates the history value sharing area management information (S31) in response to the start of outfield processing (S6). The memory controller 10 identifies a history value sharing area included in a target area of ​​a specific request (for example, a superpage) (or a history value sharing area including a target area of ​​a specific request). The memory controller 10 accesses the history value sharing management information (for example, the history value sharing management table shown in FIG. 5) on the RAM 14. If the state corresponding to the identified history value sharing area is outfield, the memory controller 10 maintains it as it is, and if it is infield, it rewrites it to outfield. For example, if the identified history value sharing area is HVSU1 shown in FIG. 5, the memory controller 10 maintains the corresponding state since it is outfield.

[0126] The memory controller 10 performs a read using the read level value of the history value management information (S32). The memory controller 10 accesses the history value management information in the RAM 14 (for example, the history value management table shown in FIG. 6). The memory controller 10 identifies the read level value corresponding to the identified history value sharing area. For example, if the identified history value sharing area is HVSU1 shown in FIG. 6, the memory controller 10 identifies Vth1 as the read level value.

[0127] The memory controller 10 controls the non-volatile memory 20 to read the target area of ​​a specific request at the specified read level value. For example, if the target area is included in the history value shared area HVSU1, the memory controller 10 controls the non-volatile memory 20 to read using the read level value Vth1. In response, the memory controller 10 obtains the read data from the non-volatile memory 20.

[0128] The memory controller 10 performs error correction processing on the read data (S33).

[0129] If the result of step S33 is that the error correction has been successful (Yes in S34), the memory controller 10 determines that the user data has been restored and that reading has been successful (S42), and ends the process.

[0130] If the error correction fails as a result of step S33 (No in S34), the memory controller 10 performs Vth tracking (S35). The memory controller 10 controls the nonvolatile memory 20 so that a single level read is executed multiple times while shifting the read level by a predetermined interval. The memory controller 10 acquires read data for each time from the nonvolatile memory 20 and counts the number of memory cells in an ON state (or the number of memory cells in an OFF state). In response to the counting result, the memory controller 10 generates a histogram of the threshold voltage distribution of multiple memory cells included in the corresponding memory cell group MCG. The memory controller 10 calculates the value of the read level based on the generated histogram.

[0131] The memory controller 10 performs a read at the value of the read level obtained in step S35 (S36). The memory controller 10 controls the non-volatile memory 20 to perform a read using the value of the read level obtained in step S35 (for example, Vth1a). In response, the memory controller 10 obtains the read data from the non-volatile memory 20.

[0132] The memory controller 10 performs error correction processing on the read data (S37).

[0133] If the error correction is successful as a result of step S37 (Yes in S38), the memory controller 10 updates the history value management information (S39). The memory controller 10 accesses the history value management information in the RAM 14. For example, the memory controller 10 rewrites the history value corresponding to the history value shared area HVSU1 from Vth1 to Vth1a.

[0134] The memory controller 10 is able to restore the user data, and ends the process, assuming that the read was successful (S42).

[0135] If the result of step S37 is that the error correction has failed (No in S38), the memory controller 10 is unable to restore the user data and concludes that the read has failed (S41), and ends the process.

[0136] As described above, in the memory system 1 of this embodiment, multiple read retry processes with different average required times are prepared. The memory system 1 selects and executes one of the multiple read retry processes based on the state of the area to be read. This makes it possible to make the retry read process more efficient.

[0137] The memory system 1 may be configured to select and execute one of a plurality of read retry processes based on individual specifications required for the memory system 1. The individual specifications include the performance and / or reliability required for the memory system 1. This allows, for example, the design of the memory controller 10 and / or the firmware implemented therein to be standardized for a plurality of memory systems 1 having different specifications, thereby making the design and development of the memory system 1 more efficient.

[0138] Second embodiment Next, a memory system according to a second embodiment will be described, focusing on the differences from the first embodiment.

[0139] In the memory system according to the first embodiment, as described with reference to FIG. 7, the first-stage read process is performed every time in response to a predetermined request. However, there are cases where it is more efficient to omit the first-stage read process. For example, if there is a high possibility that the first-stage read process will fail, it is more efficient to omit the first-stage read process.

[0140] Based on this idea, the memory system 1 according to the second embodiment operates differently from the first embodiment in the following respects, as shown in Fig. 11. Fig. 11 is a flowchart showing the operation of the memory system 1. In the operation shown in Fig. 11, the process of step S3 described with reference to Fig. 7 is omitted, and a process of step S51 is added before the process of step S1.

[0141] That is, in response to a predetermined request, the memory controller 10 determines whether or not the reliability of the target area of ​​the predetermined request satisfies a criterion (S51).

[0142] If the reliability of the target area does not meet the criteria (No in S51), the memory controller 10 determines that there is a high possibility that the read will fail in the first-stage read process, skips the first-stage read process, and executes out-of-field processing (S6).

[0143] When the reliability of the target area satisfies the standard (Yes in S51), the memory controller 10 performs the first stage read process in response to a predetermined request (S1).

[0144] As described above, in the memory system 1 according to the second embodiment, when the reliability of the target area of ​​a certain request does not satisfy the standard, the first stage read process is omitted and a read retry process (for example, an out-field process) is performed. This makes it possible to further improve the efficiency of the operation of the memory system 1.

[0145] (Third embodiment) Next, a memory system according to a third embodiment will be described, focusing on the differences from the first and second embodiments.

[0146] In the memory system according to the first embodiment, Vth tracking is performed as the out-field processing. In the third embodiment, a shift read based on Vth tracking is performed as the out-field processing.

[0147] That is, as shown in Fig. 12, outfield processing is performed which differs from that of the first embodiment in the following respects. Fig. 12 is a flowchart showing outfield processing (S6). In the outfield processing shown in Fig. 12, the processing of step S61 is performed instead of the processing of step S32 described with reference to Fig. 10, and the processing of steps S62 and S63 are performed instead of the processing of step S36.

[0148] After step S31, the memory controller 10 performs a shift read under the condition indicated by the shift index X of the history value management information (S61). X represents the value of the shift index. In the initial state, for example, X=10. The memory controller 10 accesses the history value management information on the RAM 14. For example, history values ​​as shown in FIG. 13 may be recorded in the history value management information. FIG. 13 is a diagram showing the history value management information according to this embodiment. The history value management information according to this embodiment has a different history value recorded from the history value management information according to the first embodiment described with reference to FIG. 6. That is, the history value corresponding to the outfield process is a shift index for the outfield process instead of the value of the read level.

[0149] The memory controller 10 identifies a shift index of a history value sharing area corresponding to a target area (e.g., a superpage) of a certain request. For example, if the identified history value sharing area is HVSU1 shown in FIG. 13, the memory controller 10 identifies Index#10 (i.e., X=10) as the shift index.

[0150] The specific contents of the specified shift index Index may be specified by a shift table for outfield processing as shown in Fig. 14. Fig. 14 is a diagram showing the shift table for outfield processing. In the shift table, shift indexes and shift lead conditions are associated with each other for a plurality of shift indexes. The shift lead conditions include a shift amount and / or a lead level value from a predetermined reference value.

[0151] The memory controller 10 can store the shift table for outfield processing in the management information storage area of ​​the memory cell array 23. In response to the start-up of the memory system 1, the memory controller 10 can read the shift table for outfield processing from the management information storage area and store it in the RAM 14, and can refer to the shift table on the RAM 14.

[0152] By referring to the shift table shown in FIG. 14, the shift read condition corresponding to the shift index can be specified. If X=10 (initial value), the read level V 10 and / or shift amount ΔV 10 If X=11, the read level V 11 and / or shift amount ΔV 11 (>ΔV 10 If X=12, the lead level V 12 and / or shift amount ΔV 12 (>ΔV 11 If X=13, the lead level V 13 and / or shift amount ΔV 13 (>ΔV 12 In the example of FIG. 14, the larger the shift index value X, the larger the shift amount from a predetermined reference value becomes as the shift lead condition.

[0153] The memory controller 10 controls the non-volatile memory 20 to perform shift read under the specified shift read condition for the area specified by the predetermined request. For example, when the target area is included in the history value sharing area HVSU1, the memory controller 10 controls the non-volatile memory 20 to perform shift read under the shift read condition of Index#10 (see FIG. 14). In response, the memory controller 10 acquires read data from the non-volatile memory 20.

[0154] If the result of step S33 is that the error correction has failed (No in S34), the memory controller 10 performs Vth tracking (S35). The memory controller 10 obtains the value of the read level (for example, Vth1b) by Vth tracking.

[0155] The memory controller 10 changes the shift index value X based on the read level value found in step S35 (S62). The memory controller 10 refers to the shift table for out-field processing and searches for a shift read condition that corresponds to a read level that is closest to the read level value found in step S35. In the example shown in FIG. 14, the read level value found in step S35 is Vth1b, and the read level V 10 ,V 11 ,V 12 ,V 13 The one closest to Vth1b is V 12 If so, change the shift index value X to 12 (for example, from 10).

[0156] The memory controller 10 performs a shift read under the condition indicated by the shift index X (S63). For example, if X=12, the memory controller 10 controls the nonvolatile memory 20 to perform a shift read under the shift read condition of Index#12 (see FIG. 14). In response, the memory controller 10 acquires read data from the nonvolatile memory 20.

[0157] Thereafter, the memory controller 10 performs the processes from step S37 onward in the same manner as in the first embodiment. For example, in updating the history value management information (S39), the memory controller 10 rewrites the history value corresponding to the history value sharing area HVSU1 from Index #10 to Index #12.

[0158] As described above, in the third embodiment, the memory system 1 performs a shift read based on Vth tracking as an out-field process. This also makes it possible to realize the out-field process as a retry read process with higher reliability than the in-field process.

[0159] (Fourth embodiment) Next, a memory system according to the fourth embodiment will be described, focusing on the differences from the first to third embodiments.

[0160] In the memory system according to the third embodiment, a shift read based on Vth tracking is performed as the out-field process. In the fourth embodiment, Vth tracking or a shift read based thereon is performed as the out-field process.

[0161] That is, as shown in Fig. 15, the outfield process is different from that of the third embodiment in the following respects. Fig. 15 is a flowchart showing the outfield process (S6). In the outfield process shown in Fig. 15, the process of step S71 is performed instead of the process of step S61 described with reference to Fig. 12, and steps S72 to S74 are added between steps S38 and S39.

[0162] After step S31, the memory controller 10 performs a read according to the history value of the history value management information. If the history value of the history value management information is the value of the read level obtained by Vth tracking, the memory controller 10 performs a read at that read level value, and if the history value of the history value management information is the shift index X, the memory controller 10 performs a shift read under the condition indicated by the shift index X (S71).

[0163] The memory controller 10 accesses the history value management information on the RAM 14. For example, history values ​​as shown in FIG. 16 may be recorded in the history value management information. FIG. 16 is a diagram showing the history value management information according to this embodiment. The history value management information according to this embodiment has different history values ​​recorded therein from the history value management information according to the third embodiment described with reference to FIG. 13. That is, the history value corresponding to the outfield process is a read level value or a shift index for the outfield process.

[0164] The memory controller 10 identifies a history value in a history value sharing area corresponding to a target area (e.g., a superpage) of a given request. For example, if the identified history value sharing area is HVSU1 shown in FIG. 16, the memory controller 10 identifies a read level value Vth1 as a history value. If the history value sharing area is HVSU3 shown in FIG. 16, the memory controller 10 identifies a shift index Index#12 (i.e., X=12) as a history value.

[0165] If the identified history value for the target area is the value of the read level obtained by Vth tracking, the memory controller 10 controls the nonvolatile memory 20 to perform a read at that read level value. If the identified history value for the target area is the shift index X, the memory controller 10 controls the nonvolatile memory 20 to perform a shift read under the shift read condition indicated by the shift index X. In response, the memory controller 10 obtains the read data from the nonvolatile memory 20.

[0166] Furthermore, if the result of step S37 shows that the error correction has been successful (Yes in S38), the memory controller 10 updates the history value management information (S39). The memory controller 10 is able to restore the user data and ends the process as a result of successful reading (S42).

[0167] If the error correction fails as a result of step S37 (No in S38), the memory controller 10 controls the nonvolatile memory 20 to read using the read level value (e.g., Vth1c) calculated in step S35 (S72). In response, the memory controller 10 obtains the read data from the nonvolatile memory 20.

[0168] The memory controller 10 performs error correction decoding processing on the read data (S73).

[0169] If the result of step S73 shows that the error correction has been successful (Yes in S74), the memory controller 10 updates the history value management information (S39). The memory controller 10 is able to restore the user data and ends the process assuming that the read was successful (S42).

[0170] If the result of step S73 is that the error correction has failed (No in S74), the memory controller 10 is unable to restore the user data and concludes that the read has failed (S41), and ends the process.

[0171] As described above, in the fourth embodiment, the memory system 1 performs Vth tracking or a shift read based thereon as an out-field process. This also makes it possible to realize the out-field process as a retry read process with higher reliability than the in-field process.

[0172] Fifth embodiment Next, a memory system according to the fifth embodiment will be described, focusing on the differences from the first to fourth embodiments.

[0173] In the memory system according to the first embodiment, the read retry process is selected based on whether the reliability of the target area of ​​the specified request satisfies a criterion. In the fifth embodiment, the read retry process is selected based on the state of the history value sharing area. The history value sharing area used for this selection is a history value sharing area that is larger than the target area of ​​the specified request and includes the target area, or a history value sharing area that is smaller than the target area and includes the target area.

[0174] That is, as shown in Fig. 17, the memory system 1 performs operations different from those of the first embodiment in the following respects. Fig. 17 is a flowchart showing the operations of the memory system 1. In the operations shown in Fig. 17, the process of step S81 is performed instead of the process of step S3 described with reference to Fig. 7.

[0175] If the result of step S1 is that the error correction on the read data has failed and the user data cannot be restored, the memory controller 10 determines that the read has failed (No in S2) and identifies a history value sharing area included in the target area of ​​the specified request (or a history value sharing area including the target area of ​​the specified request). The memory controller 10 checks the state of the identified history value sharing area (S81). The memory controller 10 accesses history value sharing management information on the RAM 14 (for example, the history value sharing management table shown in FIG. 5).

[0176] If the state corresponding to the identified history value sharing area is in-field ("in-field" in S81), the memory controller 10 determines that the target area of ​​the specified request is suitable for in-field processing, and performs in-field processing (S4).

[0177] If the state corresponding to the identified history value sharing region is outfield ("outfield" in S81), the memory controller 10 determines that the target region of the specified request is suitable for outfield processing, and performs outfield processing (S6).

[0178] The rest of the points are the same as those in the first embodiment.

[0179] As described above, in the memory system 1 according to the fifth embodiment, one of a plurality of read retry processes is executed based on the state of the history value sharing area corresponding to the target area of ​​a specific request. This also makes it possible to improve the efficiency of the retry read process.

[0180] Sixth embodiment Next, a memory system according to the sixth embodiment will be described, focusing on the differences from the first to fifth embodiments.

[0181] In the memory system according to the fifth embodiment, the first-stage read process is performed every time in response to a predetermined request, as described with reference to Fig. 17. However, as in the second embodiment described with reference to Fig. 11, there are cases where it is more efficient to omit the first-stage read process.

[0182] Based on this idea, the memory system 1 according to the sixth embodiment operates differently from the fifth embodiment in the following respects, as shown in Fig. 18. Fig. 18 is a flowchart showing the operation of the memory system 1. In the operation shown in Fig. 18, the process of step S81 described with reference to Fig. 17 is omitted, and a process of step S91 is added before the process of step S1.

[0183] That is, in response to a predetermined request, the memory controller 10 checks the state of the history value sharing area corresponding to the target area of ​​the predetermined request (S91).

[0184] If the state corresponding to the identified history value sharing area is outfield ("outfield" in S91), the memory controller 10 determines that the target area of ​​the specified request is suitable for outfield processing and that there is a high possibility that the read will fail in the first stage read processing, and omits the first stage read processing and executes the outfield processing (S6).

[0185] If the state corresponding to the identified history value sharing region is in-field ("in-field" in S91), the memory controller 10 performs the first stage read process in response to a predetermined request (S1).

[0186] As described above, in the memory system 1 according to the sixth embodiment, when the state of the history value sharing area corresponding to the target area of ​​a specific request is suitable for outfield processing, the first stage of read processing is omitted and a read retry process (for example, outfield processing) is performed. This makes it possible to further improve the efficiency of the operation of the memory system 1.

[0187] Seventh embodiment Next, a memory system according to the seventh embodiment will be described, focusing on the differences from the first to sixth embodiments.

[0188] In the memory system according to the seventh embodiment, an operation that combines the first and fifth embodiments is performed. That is, in the memory system 1, the memory controller 10 executes an infield process when the reliability of a target area of ​​a given request meets a criterion and the state of a history value sharing area corresponding to the target area is infield. The memory controller 10 executes an outfield process when the reliability of a target area of ​​a given request does not meet a criterion or the state of a history value sharing area corresponding to the target area is outfield.

[0189] That is, as shown in Fig. 19, the memory system 1 performs operations different from those of the first embodiment in the following respects. Fig. 19 is a flowchart showing the operations of the memory system 1. In the operations shown in Fig. 19, the process of step S81 is added between steps S3 and S4 described with reference to Fig. 7.

[0190] When the reliability of the target area of ​​the specified request satisfies the criterion (Yes in S3), the memory controller 10 checks the state of the history value sharing area corresponding to the target area of ​​the specified request (S81).

[0191] If the state corresponding to the history value sharing area is in-field ("in-field" in S81), the memory controller 10 determines that the target area of ​​the specified request is suitable for in-field processing, and executes the in-field processing (S4).

[0192] If the state corresponding to the history value sharing region is outfield ("outfield" in S81), the memory controller 10 determines that the target region of the specified request is suitable for outfield processing, and executes the outfield processing (S6).

[0193] The rest of the points are the same as those in the first embodiment.

[0194] As described above, in the memory system 1 according to the seventh embodiment, one of a plurality of read retry processes is executed based on the reliability of the target area of ​​the specific request and the state of the history value sharing area corresponding to the target area of ​​the specific request. This also makes it possible to improve the efficiency of the retry read process.

[0195] In the operation shown in FIG. 19, the order of steps S3 and S81 may be interchanged.

[0196] Eighth embodiment Next, a memory system according to the eighth embodiment will be described, focusing on the differences from the first to seventh embodiments.

[0197] In the memory system according to the seventh embodiment, the first-stage read process is performed every time in response to a predetermined request, as described with reference to Fig. 19. However, as in the second embodiment described with reference to Fig. 11, there are cases where it is more efficient to omit the first-stage read process.

[0198] Based on this idea, the memory system 1 according to the eighth embodiment operates differently from the seventh embodiment in the following respects, as shown in Fig. 20. Fig. 20 is a flowchart showing the operation of the memory system 1. In the operation shown in Fig. 20, the processes of steps S3 and S81 described with reference to Fig. 19 are omitted, and processes of steps S51 and S91 are added before the process of step S1.

[0199] That is, the memory controller 10 judges whether or not the reliability of the target area of ​​a given request satisfies a criterion (S51).

[0200] If the reliability of the target area for a specified request does not meet the criteria (No in S51), the memory controller 10 determines that there is a high possibility that the read will fail in the first stage read process, skips the first stage read process, and executes outfield processing (S6).

[0201] When the reliability of the target area of ​​the specified request satisfies the criterion (Yes in S51), the memory controller 10 checks the state of the history value sharing area corresponding to the target area of ​​the specified request (S91).

[0202] If the state corresponding to the identified history value sharing area is outfield ("outfield" in S91), the memory controller 10 determines that the target area of ​​the specified request is suitable for outfield processing and that there is a high possibility that the read will fail in the first stage read processing, and omits the first stage read processing and executes the outfield processing (S6).

[0203] If the state corresponding to the identified history value sharing region is in-field ("in-field" in S91), the memory controller 10 performs the first stage read process in response to a predetermined request (S1).

[0204] As described above, in the memory system 1 according to the eighth embodiment, when the reliability of the target area of ​​a specific request does not meet the criteria or the state of the history value sharing area corresponding to the target area of ​​the specific request is suitable for outfield processing, the first stage read processing is omitted and a read retry processing (for example, outfield processing) is performed. This makes it possible to further improve the efficiency of the operation of the memory system 1.

[0205] In the operation shown in FIG. 20, the order of steps S51 and S91 may be interchanged.

[0206] Ninth embodiment Next, a memory system according to the ninth embodiment will be described, focusing on the differences from the first to eighth embodiments.

[0207] In the memory systems according to the first to eighth embodiments, the history values ​​are updated during in-field processing and out-field processing. In the ninth embodiment, the history values ​​are updated outside the in-field processing and out-field processing.

[0208] For example, the memory controller 10 may perform a patrol read to check the state of the history value sharing area and update the history value according to the result of the patrol read. This patrol read is a patrol read for updating the history value and is different from a normal patrol read for checking the state of the memory cell.

[0209] In a patrol read for updating a history value, Vth tracking is performed, the history value is updated according to the result, and the read level value is calculated, and a read is performed using the read level value. In a normal patrol read, a read is performed as a normal read using a reference value, or a read is performed using the read level value indicated by the history value. A patrol read for updating a history value takes longer than a normal patrol read.

[0210] It is difficult for the memory system 1 to process a read request from the host 30 while performing a patrol read for updating the history values. If a patrol read for updating the history values ​​is performed for all history value sharing areas in the memory cell array 23, this history value update process takes a lot of time. This may increase the latency for a read request from the host 30.

[0211] Therefore, in the ninth embodiment, when an area (e.g., a history value sharing area) specified in a patrol read request for updating a history value is suitable for outfield processing, the memory controller 10 executes a patrol read process for updating a history value suitable for outfield processing and updates the history value in the history value management information according to the execution result. When an area (e.g., a history value sharing area) specified in a patrol read request for updating a history value is suitable for infield processing, the memory controller 10 skips execution of the patrol read process for updating a history value.

[0212] The memory system 1 operates as shown in Fig. 21. Fig. 21 is a flowchart showing the operation of the memory system 1.

[0213] In the memory system 1, the memory controller 10 judges whether or not to perform a patrol read for updating a history value (S101). The memory controller 10 waits until a predetermined condition is met (No in S101). The predetermined condition may be that a predetermined period has passed since the previous execution of a patrol read for updating a history value, or that the number of error bits (or the fail bit count) in one or more history value sharing regions exceeds a threshold. Alternatively, in the case where the error correction is a method involving iterative correction (for example, an LDPC method), the predetermined condition may be that the number of iterations of error correction exceeds a threshold number. Alternatively, the predetermined condition may be that error correction fails in a state where the error correction capability is lowered from that during host read.

[0214] When a predetermined condition is met (Yes in S101), the memory controller 10 selects one history value sharing area for which a patrol read for updating a history value has not been executed from the multiple history value sharing areas included in the memory cell array 23 (S102). The memory controller 10 generates a patrol read request for updating a history value that specifies the history value sharing area as an internal processing request. The memory controller 10 checks whether the history value sharing area specified in the patrol read request for updating a history value is active (S103). For example, the memory controller 10 checks whether an area of ​​an erase unit (e.g., a superblock) that includes the history value sharing area is active.

[0215] Whether the area of ​​the erase unit is in an active state can be managed by block management information as shown in FIG. 22, for example. FIG. 22 is a diagram showing block management information. FIG. 22 illustrates a case where the block management information is implemented in a table format. In the block management table, block identifiers and states are associated with each other for a plurality of superblocks. The block identifier is information for identifying a superblock from other superblocks. The state is information on the state of the superblock, and includes active or nonactive. Active indicates that the superblock is writable. Nonactive indicates that the superblock is not writable. The state may be active initially. For example, when the memory controller 10 is unable to restore user data, the memory controller 10 may register the superblock in which the user data is stored as nonactive in the block management information.

[0216] The memory controller 10 can store the block management table in the management information storage area of ​​the memory cell array 23. In response to the start-up of the memory system 1, the memory controller 10 can read the block management table from the management information storage area and store it in the RAM 14, and update the block management table on the RAM 14. The memory controller 10 obtains the block management table from the RAM 14 at a predetermined timing and stores it in the management information storage area of ​​the memory cell array 23. This makes the block management table non-volatile.

[0217] The block management table shown in FIG. 22 indicates that superblocks SBLK1, SBLK4, SBLK5, and SBLK6 are active, and that superblocks SBLK2 and SBLK3 are inactive.

[0218] Returning to Fig. 21, if the area of ​​the erase unit including the history value sharing area is inactive (No in S103), the memory controller 10 determines that the history value update is not necessary, and proceeds to step S108.

[0219] If the area of ​​the erase unit including the history value sharing area is active (Yes in S103), the memory controller 10 judges that there is a possibility that the history value should be updated, and checks the state of the history value sharing area regarding reliability (S104). The memory controller 10 accesses history value sharing management information on the RAM 14 (for example, the history value sharing management table shown in FIG. 5).

[0220] If the state corresponding to the history value sharing area is outfield ("outfield" in S104), the memory controller 10 determines that there is a possibility that the history value should be updated, and executes a patrol read process for updating the history value (S105). The memory controller 10 performs Vth tracking, obtains a read level value according to the result, and controls the nonvolatile memory 20 to perform a read using the read level value.

[0221] As a result of the patrol read process for updating the history value, the memory controller 10 receives the read data from the non-volatile memory 20. The memory controller 10 determines whether or not the history value should be updated according to the result of the patrol read process for updating the history value (S106).

[0222] If the history value of the history value shared area to be processed is a shift index for infield processing or outfield processing, the memory controller 10 accesses the history value management information (for example, the history value management table shown in FIG. 6, FIG. 13, or FIG. 16) and the shift table (for example, the shift table shown in FIG. 9 or FIG. 14) on the RAM 14. According to the history value management information and the shift table, the memory controller 10 specifies the read level indicated by the current shift index. For example, if the history value shared area to be processed is HVSU2 shown in FIG. 6, the memory controller 10 specifies the read level V3 from the current shift index Index#3. For example, if the history value shared area to be processed is HVSU3 shown in FIG. 16, the memory controller 10 specifies the read level V4 indicated by the current shift index Index#12. 12 Identify.

[0223] If the history value of the history value shared area to be processed is the read level value for out-field processing, the memory controller 10 accesses history value management information (for example, the history value management table shown in FIG. 6) on the RAM 14. According to the history value management information, the memory controller 10 specifies the current read level value. For example, if the history value shared area to be processed is HVSU1 shown in FIG. 6, the memory controller 10 specifies Vth1 as the current read level value.

[0224] The memory controller 10 may compare the read level indicated by the current shift index for infield processing or outfield processing, or the value of the current read level for outfield processing, with the read level value generated in step S105, and determine whether or not the history value should be updated depending on the comparison result. For example, the memory controller 10 may obtain the difference ΔVread between them, and if the difference ΔVread is equal to or greater than a threshold, determine that the history value should be updated (Yes in S106), and if the difference ΔVread is less than the threshold, determine that the history value should not be updated (No in S106).

[0225] If the history value should be updated (Yes in S106), the memory controller 10 updates the history value to a value according to the result of step S105 (S107).

[0226] If the history value in the history value sharing area to be processed is a shift index for infield processing or outfield processing, the memory controller 10 accesses the shift table in the RAM 14 and identifies a shift index that is closest to the read level value Vth generated in step S105. The memory controller 10 accesses the history value management information in the RAM 14. The memory controller 10 overwrites and updates the shift index corresponding to the history value sharing area in the history value management table with the identified shift index.

[0227] If the history value in the history value shared area to be processed is the read level value for outfield processing, the memory controller 10 accesses the history value management information in the RAM 14. The memory controller 10 overwrites and updates the read level value corresponding to the history value shared area in the history value management table with the read level value calculated in step S105.

[0228] On the other hand, if the state corresponding to the history value sharing area is infield ("infield" in S104), the memory controller 10 determines that history value updating is unnecessary, skips execution of the patrol read process for history value updating (S105), and proceeds to step S108.

[0229] If there is an unprocessed history value sharing area among the multiple history value sharing areas included in the memory cell array 23 (Yes in S108), the memory controller 10 returns the process to step S102, and if there is no unprocessed history value sharing area (No in S108), the memory controller 10 ends the process.

[0230] As shown in Fig. 23(b), the memory controller 10 can skip the patrol read process for updating history values ​​for history value sharing areas indicated by diagonal hatching among the multiple history value sharing areas included in the memory cell array 23. The history value sharing areas indicated by diagonal hatching are history value sharing areas in the in-field state or in the non-active state. This allows the memory system 1 to reduce the total processing time of the patrol read process for updating history values ​​as shown in Fig. 23(b) compared to the case where the patrol read process for updating history values ​​is performed for all history value sharing areas as shown in Fig. 23(a).

[0231] As described above, in the memory system 1 according to the ninth embodiment, when an area (e.g., a history value sharing area) specified in a patrol read request for updating a history value is suitable for outfield processing, the memory controller 10 executes a patrol read process for updating a history value suitable for outfield processing, and updates the history value in the history value management information according to the execution result. When an area (e.g., a history value sharing area) specified in a patrol read request for updating a history value is suitable for infield processing, the memory controller 10 skips the execution of the patrol read process for updating a history value. This can reduce the total processing time of the patrol read process for updating a history value in the memory system 1, and can reduce the latency for a read request from the host 30. This can improve the performance of the memory system 1.

[0232] In the operation shown in FIG. 21, the order of steps S103 and S104 may be interchanged.

[0233] (Tenth embodiment) Next, a memory system according to a tenth embodiment will be described, focusing on differences from the first to ninth embodiments.

[0234] In the memory system according to the ninth embodiment, when an area specified in a patrol read request for updating a history value is suitable for in-field processing, the execution of the patrol read process for updating a history value is skipped. In the tenth embodiment, when an area specified in a patrol read request for updating a history value is suitable for out-field processing, the execution of the patrol read process for updating a history value is skipped.

[0235] For example, as shown in Fig. 24, the memory system 1 performs an operation different from that of the ninth embodiment in the following respects. Fig. 24 is a flowchart showing the operation of the memory system 1. In the operation shown in Fig. 24, the process of step S114 is performed instead of the process of step S104 described with reference to Fig. 21.

[0236] If the area of ​​the erase unit that includes the history value sharing area is active (Yes in S103), the memory controller 10 determines that the history value may need to be updated and checks the status of the history value sharing area regarding reliability (S114).

[0237] If the state corresponding to the history value sharing area is in-field ("in-field" in S114), the memory controller 10 determines that there is a possibility that the history value should be updated, and executes a patrol read process for updating the history value (S105).

[0238] On the other hand, if the state corresponding to the history value sharing area is outfield ("outfield" in S114), the memory controller 10 determines that history value updating is unnecessary, skips execution of the patrol read process for history value updating (S105), and proceeds to step S108.

[0239] The rest of the points are the same as those in the ninth embodiment.

[0240] As shown in Fig. 25(b), the memory controller 10 can skip the patrol read process for updating history values ​​for history value sharing areas indicated by diagonal hatching among the multiple history value sharing areas included in the memory cell array 23. The history value sharing areas indicated by diagonal hatching are history value sharing areas in the outfield state or in the non-active state. This allows the memory system 1 to reduce the total processing time of the patrol read process for updating history values ​​as shown in Fig. 25(b) compared to the case where the patrol read process for updating history values ​​is performed for all history value sharing areas as shown in Fig. 25(a).

[0241] As described above, the tenth embodiment provides the same effects as the ninth embodiment.

[0242] In the operation shown in FIG. 24, the order of steps S103 and S114 may be interchanged.

[0243] 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 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]

[0244] 1 memory system, 4 columnar body, 4a, 4b tier, 10 memory controller, 11 control unit, 12 buffer interface circuit, 13 ECC unit, 14 RAM, 15 host interface circuit, 16 memory interface circuit, 17 internal bus, 18 memory bus, 19 buffer memory, 20 non-volatile memory, 21 command processing unit, 22 drive unit, 23 memory cell array, 24 column module, 25 temperature sensor, 30 host, 31 host bus, 211 sequencer, 212 command register, 213 address register, 231, 231A, 231B stacked body, HVSU1, HVSU2 history value sharing area, MT0 to MT95 memory cell, SGS select gate line, SL source line, WL, WL0 to WL95 word line.

Claims

1. A non-volatile memory; a controller configured to select one of a plurality of read retry processes having different average required times based on the reliability of a target area of ​​the nonvolatile memory for which a read process is to be executed, and to execute the selected read retry process; A memory system comprising:

2. the controller is configured to select a first read retry process having an average required time of a first time when the reliability of the target area of ​​the read process satisfies a criterion, and to select a second read retry process having an average required time of a second time longer than the first time when the reliability of the target area does not satisfy the criterion.

2. The memory system of claim 1.

3. The controller is configured to determine whether the reliability of the region of interest meets the criterion based on an indication of a region of the non-volatile memory that is larger than and includes the region of interest.

3. The memory system of claim 2.

4. The controller is configured to determine whether the reliability of the target area satisfies the criterion based on an indication of an area of ​​the non-volatile memory that is smaller than and included in the target area.

3. The memory system of claim 2.

5. the controller is configured to select the first read retry process when a number of write / erase cycles of a first area that is the target area is smaller than a first threshold, and to select the second read retry process when the number of write / erase cycles of the first area is larger than the first threshold.

3. The memory system of claim 2.

6. the controller is configured to select the first read retry process when the number of reads of the second area, which is the target area, is smaller than a second threshold, and to select the second read retry process when the number of reads of the second area is greater than the second threshold.

3. The memory system of claim 2.

7. the controller is configured to select the first read retry process when a refresh operation for rewriting data of a first block including the target area to a second block is performed in response to a lapse of a predetermined period, and to select the second read retry process when the refresh operation is performed before the lapse of the predetermined period.

3. The memory system of claim 2.

8. the controller is configured to select the first read retry process when a time interval between refresh operations for rewriting data of a first block including the target area to a second block is greater than a third threshold, and to select the second read retry process when the time interval between the refresh operations is smaller than the third threshold.

3. The memory system of claim 2.

9. the controller is configured to select the first read retry process when an error correction capability for a third area that is the target area is a first correction capability, and to select the second read retry process when the error correction capability for the third area is a second correction capability that is lower than the first correction capability.

3. The memory system of claim 2.

10. the controller is configured to select the first read retry process when a temperature during writing to a fourth area that is the target area is higher than a fourth threshold, and to select the second read retry process when a temperature during writing to the fourth area is lower than the fourth threshold.

3. The memory system of claim 2.

11. the controller is configured to select the first read retry operation when a word line corresponding to a memory cell including the target area is located at a first position in a block, and to select the second read retry operation when the word line is located at a second position in the block closer to an end than the first position.

3. The memory system of claim 2.

12. the controller is configured to select the first read retry process when an elapsed time from boot-up of the memory system is longer than a fifth threshold, and to select the second read retry process when an elapsed time from boot-up of the memory system is shorter than the fifth threshold.

3. The memory system of claim 2.

Citation Information

Patent Citations

  • Memory system

    US20210357289A1

  • Adapting an error recovery process in a memory sub-system

    US20220115084A1

  • Memory system and operating method thereof

    US20220121520A1