Memory system and information processing system

The memory system optimizes data storage in SSDs by using a tag recognition circuit to manage storage status tags, addressing the challenge of reduced cell lifespan in high-density modes by minimizing garbage collection and extending the SSD's operational life.

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

Patent Information

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

AI Technical Summary

Technical Problem

Existing memory systems face challenges in extending the lifespan of memory cells, particularly in solid state drives (SSDs) equipped with nonvolatile memory, as they often prioritize either write speed or capacity, leading to reduced endurance due to high storage density modes with narrow threshold voltage distributions.

Method used

A memory system with a memory controller that includes a tag recognition circuit to manage data storage status tags, allowing data to be written to appropriate memory cells based on access frequency and density, reducing the need for frequent garbage collection and compaction processes.

Benefits of technology

This approach extends the lifespan of memory cells by optimizing data storage based on access frequency and density, thereby reducing the number of program/erase cycles and maintaining performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024141070000001_ABST
    Figure 2024141070000001_ABST
Patent Text Reader

Abstract

To provide a memory system and an information processing system that can extend the lives of memory cells.SOLUTION: A memory system of an embodiment can be connected to a host, and comprises: a non-volatile memory including a plurality of memory cells; a memory controller controlling the non-volatile memory; a data buffer connected with the non-volatile memory; and a tag recognition circuit provided in the memory controller. The tag recognition circuit recognizes if a storage state tag is applied to first data in the data buffer.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] FIELD Embodiments of the present invention relate to a memory system and an information processing system. [Background technology]

[0002] A solid-state drive (SSD) equipped with a non-volatile memory is known as one type of storage device. The SSD writes data received from a host device (hereinafter referred to as a host) to memory cells of the non-volatile memory.

[0003] An SSD has been developed that has a first write mode that prioritizes write speed and a second write mode that prioritizes write capacity, and that changes the write mode depending on the remaining memory capacity of the SSD. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] U.S. Patent Application Publication No. 2020 / 0034067 [Patent Document 2] Patent Application Publication No. 2012-16407 [Patent Document 3] U.S. Patent Application Publication No. 2019 / 0034105 Summary of the Invention [Problem to be solved by the invention]

[0005] An object of the present invention is to provide a memory system and an information processing system that can extend the life of memory cells. [Means for solving the problem]

[0006] In order to achieve the above object, a memory system according to an embodiment includes a nonvolatile memory connectable to a host and including a plurality of memory cells, a memory controller for controlling the nonvolatile memory, a data buffer connected to the nonvolatile memory, and a tag recognition circuit provided in the memory controller. The tag recognition circuit receives a command from the memory controller to access the data buffer, and transmits a first command to the memory controller when it recognizes a first tag in first write data in the data buffer. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of a memory system according to an embodiment. [Diagram 2] 1 is a diagram showing an example of the configuration of a NAND flash memory included in a memory system according to an embodiment; [Diagram 3] FIG. 13 is a diagram showing another example of the configuration of a NAND flash memory included in the memory system according to the embodiment. [Figure 4] 2 is a diagram showing an example of the configuration of an SLC block group included in a NAND flash memory included in a memory system according to an embodiment. [Diagram 5] 11 is a flowchart showing an example of an operation of a memory controller when writing data in a memory system according to an embodiment. [Figure 6] 11 is a flowchart showing an example of an operation of a memory controller when reading data in a memory system according to an embodiment. [Figure 7] 1 is a block diagram showing an example of an operation of a memory controller in a memory system according to an embodiment. [Figure 8] FIG. 11 is a block diagram showing another example of the operation of the memory controller of the memory system according to the embodiment. [Figure 9] 1 is a diagram showing an example of the configuration of an LBA range-access frequency table used in the memory system according to the embodiment; [Figure 10]11 is a diagram showing an example of the configuration of a block-low-frequency access ratio table used in the memory system according to the embodiment. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] The following description is an example of an apparatus and a method for embodying the technical idea of ​​the embodiment, and the technical idea of ​​the embodiment is not limited to the structure, shape, arrangement, material, etc. of the components described below. Modifications that a person skilled in the art can easily conceive are naturally included in the scope of the disclosure. In order to make the description clearer, the size, thickness, planar dimensions, or shape of each element may be changed from the actual embodiment and shown diagrammatically. Elements having different dimensional relationships or ratios may be included in multiple drawings. In multiple drawings, corresponding elements may be given the same reference numerals and duplicated descriptions may be omitted. Some elements may be given multiple names, but these examples of names are merely examples and do not deny the use of other names for these elements. Furthermore, elements that do not have multiple names may be given other names. In the following description, "connection" means not only direct connection but also indirect connection via other elements.

[0009] Hereinafter, embodiments for carrying out the invention will be described with reference to the drawings.

[0010] The configuration of an information processing system 1 including a storage device according to an embodiment will be described. FIG. 1 is a block diagram showing an example of the configuration of an information processing system 1 including a storage device according to an embodiment. The storage device is a semiconductor storage device configured to write data to a nonvolatile memory and read data from the nonvolatile memory. An example of the storage device includes, but is not limited to, an SSD. An example of the nonvolatile memory includes, but is not limited to, a NAND flash memory. Hereinafter, the nonvolatile memory will be referred to as a NAND memory. Hereinafter, the semiconductor storage device is a memory system 3 including a NAND memory 5.

[0011] The information processing system 1 includes a host 2 and a memory system 3. The host 2 is an information processing device configured to control the memory system 3. Examples of the host 2 are a personal computer, a server computer, a mobile terminal, and an in-vehicle device.

[0012] Here, an example will be described in which the memory system 3 is connected to the host 2 via a cable or a network, but the memory system 3 may also be built into the host 2.

[0013] The interface for connecting the host 2 and the memory system 3 may be, but is not limited to, SATA (Serial ATA), SAS (Serial Attached SCSI), UFS (Universal Flash Storage), PCI Express (PCIe) (registered trademark), or Ethernet (registered trademark).

[0014] The memory system 3 includes a memory controller 4, a NAND memory 5, and a DRAM 6.

[0015] The NAND memory 5 has a plurality of memory cells arranged in a matrix. The NAND memory 5 may be a two-dimensional flash memory or a three-dimensional flash memory. The NAND memory 5 may include a plurality of NAND memory chips (i.e., a plurality of NAND memory dies). Each chip may be realized as a flash memory configured to be capable of storing one bit or multiple bits of data per memory cell.

[0016] A flash memory configured to be able to store one bit of data per memory cell is called a single level cell (SLC) flash memory. Examples of flash memories configured to be able to store multiple bits of data per memory cell include a multi-level cell (MLC or 4LC) flash memory capable of storing two bits of data per memory cell, a triple level cell (TLC or 8LC) flash memory capable of storing three bits of data per memory cell, a quad level cell (QLC or 16LC) flash memory capable of storing four bits of data per memory cell, and a flash memory capable of storing five or more bits of data per memory cell. Note that a flash memory that stores two or more bits of data per memory cell is sometimes called an MLC flash memory, but in the following, a flash memory that stores two bits of data per memory cell is called an MLC flash memory.

[0017] The memory cell array of the NAND memory 5 includes a plurality of blocks BLK0 to BLKx-1. Each of the blocks BLK0 to BLKx-1 includes a plurality of pages P0 to Py-1. Each of the pages P0 to Py-1 includes a plurality of memory cells connected to the same word line. Each of the blocks BLK0 to BLKx-1 is a unit of a data erase operation for erasing data from the NAND memory 5. A block may also be called an "erase block," a "physical block," or a "physical erase block." A page is a unit of a data write operation and a data read operation. Note that a word line may be used as a unit of a data write operation and a data read operation.

[0018] There is a limit to the maximum number of program / erase cycles that can be tolerated for each of the blocks BLK0 to BLKx-1. One program / erase cycle for a block includes an erase operation for putting all memory cells in the block into an erased state, and a write operation (more specifically, a program operation) for writing data to each page of the block.

[0019] In each block, each page may include a user data area for storing user data and a system area for storing management data. The user data area is an area used for writing and reading data received from the host 2. The management data is, for example, data indicating whether each piece of data in a block is valid data or invalid data in units of a predetermined management size (for example, 4 KB).

[0020] The page size is 16KB+alpha. The memory controller 4 writes both 4KB user data and a logical address (e.g., LBA) corresponding to the 4KB user data to the destination block BLK. In this case, four data sets each including an LBA and 4KB user data may be written to the same page. Alternatively, four 4KB user data may be written to a user data area in a page, and four LBAs corresponding to the four 4KB user data may be written to a system area in the page.

[0021] The memory controller 4 may be realized by a circuit such as a system-on-a-chip (SoC). The memory controller 4 is electrically connected to the NAND memory 5 via a NAND interface (I / F) 13. The NAND I / F 13 is compliant with, but not limited to, a Toggle NAND flash interface and an Open NAND flash interface (ONFI). The NAND I / F 13 is connected to a plurality of NAND memory chips in the NAND memory 5 via a plurality of channels (Ch). By driving a plurality of NAND memory chips in parallel, it is possible to widen the bandwidth of access to the NAND memory 5. The NAND I / F 13 includes an ECC processing unit 17. Here, an example in which the ECC processing unit 17 is provided in the NAND I / F 13 will be described, but the ECC processing unit 17 may be provided in the memory controller 4.

[0022] The ECC processing unit 17 can be realized as a circuit having a function for protecting data written to the NAND memory 5 and data read from the NAND memory 5 with an error correcting code (ECC). The ECC processing unit 17 adds an ECC to data written to the NAND memory 5. Furthermore, the ECC processing unit 17 uses the ECC added to the data read from the NAND memory 5 to determine whether an error has occurred in the read data, and corrects the error if an error has occurred.

[0023] The memory controller 4 controls the NAND memory 5 .

[0024] The memory controller 4 includes, in addition to the above-mentioned NAND I / F 13, a host interface (I / F) 11, a CPU 12, a DRAM interface (I / F) 14, a direct memory access controller (DMAC) 15, and a static RAM (SRAM) 16. The host I / F 11, CPU 12, NAND I / F 13, DRAM I / F 14, DMAC 15, and SRAM 16 are interconnected via a bus 10.

[0025] The host I / F 11 is a host interface circuit configured to execute communication with the host 2. The host I / F 11 is, for example, a SATA interface controller, a SAS interface controller, a PCIe controller, an Ethernet controller, or the like.

[0026] The host I / F 11 receives various commands from the host 2. The SATA interface uses ATA commands defined in the ATA standard, the SAS interface uses SCSI commands defined in the SCSI standard, and the PCIe interface and the Ethernet interface use NVMe commands defined in the NVM Express (NVMe) (registered trademark) standard.

[0027] The CPU 12 is a processor configured to control the host interface 11, the NAND controller 13, and the DRAM interface 14. The CPU 12 performs various processes by executing a control program (firmware) stored in a ROM or the like (not shown). The CPU 12 can function as a write control unit 22 and a garbage collection (hereinafter referred to as GC) / compaction control unit 26.

[0028] The memory system 3 includes a dynamic random access memory (DRAM6) as a random access memory (RAM) that is a volatile memory. Here, a case where the memory system 3 includes a DRAM6 will be described, but a random access memory such as a static random access memory (SRAM) may be built into the memory controller 4. The DRAM6 may be built into the memory controller 4.

[0029] A random access memory such as the DRAM 6 is provided with, for example, cache areas for a write buffer 32 and a read buffer 33 as data buffers. Furthermore, a random access memory such as the DRAM 6 may be provided with storage areas for various values ​​used during processing and various tables (such as a lookup table 34, an LBA range-access frequency table 35, and a block-low frequency access ratio table 36).

[0030] The various tables stored in the DRAM 6 are the various tables stored in the NAND memory 5 that are expanded when the power of the memory system 3 is turned on, or the like. They may be expanded after the initialization process of the memory system 3 is completed. The memory controller 4 performs processing using the various tables expanded on the DRAM 6. The memory controller 4 writes the various tables to the NAND memory 5 at a predetermined timing (at regular intervals, when a standby command is received, when a flash command is received, when the power is turned off, etc.) and updates the various tables stored in the NAND memory 5.

[0031] The write buffer 32 is a place where write data is temporarily stored. To explain a specific operation of the write buffer 32, when the memory controller 4 receives a data write command from the host 2, the memory controller 4 temporarily stores the data to be written in the write buffer 32. The memory controller 4 writes the data in the write buffer 32 to a position in the NAND memory 5 associated with the specified address.

[0032] The read buffer 33 is a place where read data is temporarily stored. To explain the specific operation of the read buffer 33, when the memory controller 4 receives a data read command from the host 2, it reads data from a position in the NAND memory 5 corresponding to the specified address. The memory controller 4 temporarily stores the read data in the read buffer 33, and sends the data stored in the read buffer 33 to the host 2.

[0033] The lookup (L2P) table 34 functions as a logical-physical address conversion table. A logical address is an address used by the host 2 to address a logical address in the logical address space of the memory system 3. A logical block address (LBA: Logical Block Address (Addressing)) may be used as the logical address. The L2P table 34 manages the mapping between each logical address (hereinafter referred to as LBA) and each physical address (PBA: Physical Block Address) of the NAND memory 5.

[0034] The LBA range-access frequency table 35 manages the access frequency for each LBA range, as shown in Fig. 9. Each LBA range may be defined by a start LBA and an end LBA, or may be defined by a start LBA and a size.

[0035] As shown in Fig. 10, the block-low-frequency access ratio table 36 manages the ratio of valid data with a low access frequency (low-frequency access ratio) for each block (block number). The block-low-frequency access ratio table 36 includes, for example, a block number, a high-frequency access valid data amount, a low-frequency access valid data amount, and a low-frequency access ratio. The high-frequency access valid data amount and the low-frequency access valid data amount increase or decrease according to a change in the access frequency for each LBA included in the LBA range in response to updates of the L2P table 34 and the LBA range-access frequency table 35. The low-frequency access ratio is calculated using the high-frequency access valid data amount and the low-frequency access valid data amount, and may be expressed, for example, as a percentage.

[0036] The memory controller 4 may function as a flash translation layer (FTL) configured to perform data management and block management of the NAND memory 5.

[0037] The data management performed by the FTL includes (1) management of mapping information indicating the correspondence between each LBA and each physical address of the NAND memory 5, and (2) processing for concealing the constraints of the NAND memory 5 (e.g., page-based read / write operations and block-based erase operations).

[0038] The memory controller 4 manages the mapping between each LBA and each physical address using the L2P table 34. The physical address corresponding to a certain LBA indicates the most recent physical storage location in the NAND memory 5 where the data corresponding to this LBA was written.

[0039] When the memory controller 4 receives a read request from the host 2, it converts the logical address specified by the read request into a physical address using the address conversion table described above, and instructs the NAND I / F 13 to read from the physical address.

[0040] In the NAND memory 5, data can be written to a page only once per erase cycle (program / erase cycle) of the block to which the page belongs. In other words, new data cannot be directly overwritten in an area in a block to which data has already been written. Therefore, when updating data that has already been written, the memory controller 4 writes new data to an unwritten area in that block (or another block) and treats the previous data as invalid data. In other words, the memory controller 4 writes update data corresponding to a certain LBA to a different physical storage location, not to the physical storage location where the previous data corresponding to this LBA is stored. Then, the memory controller 4 updates the L2P table 34 to associate a physical address indicating this different physical storage location with this LBA, and invalidates the previous data.

[0041] Invalid data refers to data stored in a physical storage location that is not referenced by the L2P table 34. For example, data stored in a physical storage location that is not referenced by the L2P table 34 (i.e., data that is not associated with an LBA as the latest data) is invalid data. Invalid data is data that is no longer likely to be read by the host 2. When updated data is stored in a storage location of a new physical address associated with an LBA, valid data that was previously stored in the storage location of the physical address that was associated with that LBA becomes invalid data, and the updated data becomes valid data.

[0042] Valid data means the latest data corresponding to a certain LBA. For example, data stored in a physical storage location referenced by the L2P table 34 (i.e., data associated with an LBA as the latest data) is valid data. Valid data is data that may be read by the host 2 later.

[0043] The block management performed by the FTL includes bad block management, wear leveling, and GC processing.

[0044] Wear leveling is an operation for equalizing the number of rewrites (number of program / erase cycles) for each block.

[0045] GC processing is an operation for reducing the number of blocks containing a mixture of valid and invalid data and increasing the number of free blocks. A free block is a block that does not contain valid data. A free block is a block that can be used as a destination block for writing new data after a data erase operation has been performed. On the other hand, a block that stores valid data is an active block.

[0046] The NAND memory 5 can execute a write process in a plurality of different write modes depending on how many bits of data are written per memory cell. The write modes include, for example, a write mode in which 1 bit of data is written per memory cell (hereinafter referred to as SLC mode), a write mode in which 2 bits of data are written per memory cell (hereinafter referred to as MLC mode), a write mode in which 3 bits of data are written per memory cell (hereinafter referred to as TLC mode), a write mode in which 4 bits of data are written per memory cell (hereinafter referred to as QLC mode), a write mode in which 5 or more bits of data are written per memory cell, and the like.

[0047] For example, the NAND memory 5 may be realized as an MLC flash memory capable of storing 2 bits of data per memory cell (ie, a 4LC flash memory).

[0048] In this case, two pages of data, a lower page data and an upper page data, are usually written to multiple memory cells connected to the same word line. This allows two bits of data to be written to each memory cell. Any area in this MLC flash memory (e.g., one or more arbitrary blocks) can be used as an SLC area that can store only one bit of data per memory cell.

[0049] In a write operation to write data to this SLC area, only one page of data is written to multiple memory cells connected to the same word line. This allows each block used as an SLC area to write only one bit of data per memory cell, similar to each block (i.e., SLC block) in an SLC flash memory. As a result, each block used as an SLC area functions as an SLC block.

[0050] Alternatively, the NAND memory 5 may be a TLC flash memory (8LC flash memory) capable of storing 3 bits of data per memory cell.

[0051] In this case, typically, three pages of data, that is, lower page data, middle page data, and upper page data, are written to a plurality of memory cells connected to the same word line. This allows three bits of data to be written to each memory cell. Any area (e.g., one or more arbitrary blocks) in this TLC flash memory may be used as the above-mentioned SLC area, or may be used as an MLC area capable of storing two bits of data per memory cell. The SLC area and the MLC area may be set in units smaller than a block (e.g., in units of word lines, or in units of a set of word lines in a block). In the MLC area, only two pages of data are written to a plurality of memory cells connected to the same word line. This allows only two bits of data to be written to each memory cell in the MLC area.

[0052] Alternatively, the NAND memory 5 may be a QLC flash memory (16LC flash memory) capable of storing 4 bits of data per memory cell.

[0053] In this case, typically, four pages of data are written to a plurality of memory cells connected to the same word line. This allows four bits of data to be written to each memory cell. Any area (for example, one or more arbitrary blocks) in this QLC flash memory may be used as the above-mentioned SLC area, the above-mentioned MLC area, or a TLC area capable of storing three bits of data per memory cell. The SLC area, the MLC area, and the TLC area may be set in units smaller than a block (for example, in units of word lines, or in units of a set of word lines in a block). In the TLC area, only three pages of data are written to a plurality of memory cells connected to the same word line. This allows three bits of data to be written to each memory cell in the TLC area.

[0054] The memory density per memory cell in each write mode is 2-level (i.e., 1 page per word line) in SLC mode, 4-level (i.e., 2 pages per word line) in MLC mode, 8-level (i.e., 3 pages per word line) in TLC mode, and 16-level (i.e., 4 pages per word line) in QLC mode. The data read and write speeds for the NAND memory 5 are slower as the memory density is higher, and faster as the memory density is lower. Therefore, among these four modes, the data read and write speeds are slowest in QLC mode, and fastest in SLC mode.

[0055] In addition, the endurance of the NAND memory 5 is shorter as the memory density is higher and longer as the memory density is lower. The lower the memory density, the wider the margin between threshold voltage distributions corresponding to adjacent states, and the higher the memory density, the narrower the margin between threshold voltage distributions. The wider margin suppresses an increase in the probability that data in a memory cell will be read as erroneous data even if the threshold voltage of the memory cell shifts due to stress applied to the memory cell.

[0056] Therefore, for example, the allowable individual wear of memory cells in the SLC mode is lower than the allowable individual wear of memory cells in the QLC mode. Therefore, when a low-density write mode with a wide margin between threshold voltage distributions is used, the life of the NAND memory 5 can be extended (i.e., the maximum number of allowable program / erase cycles can be increased) compared to when a high-density write mode with a narrow margin between threshold voltage distributions is used.

[0057] Among the four modes, the QLC mode has the shortest lifespan, and the SLC mode has the longest lifespan: for example, when data is written in the QLC mode, the maximum number of program / erase cycles that can be tolerated is several k cycles, and when data is written in the SLC mode, the maximum number of program / erase cycles that can be tolerated is several tens of k cycles.

[0058] The NAND memory 5 may be configured to store 5 or more bits per memory cell. Even in this case, any area in the NAND memory 5 may be used as an area in which only 4 or less bits of data per memory cell are written.

[0059] An example of the storage capacity of the NAND memory 5 according to each write mode will be described. Here, it is assumed that a plurality of NAND memory chips included in the NAND memory 5 are realized as a QLC flash memory configured to be capable of storing 4 bits per memory cell. In addition, it is assumed that when data is written to the NAND memory 5 in the QLC mode, the storage capacity of the NAND memory 5 is 512 GB.

[0060] Under optimal conditions where there are no bad blocks, etc., the storage capacity of the NAND memory 5 is 384 GB when data is written in TLC mode, the storage capacity of the NAND memory 5 is 256 GB when data is written in MLC mode, and the storage capacity of the NAND memory 5 is 128 GB when data is written in SLC mode.

[0061] In this way, the storage capacity of the NAND memory 5 differs depending on the write mode in which the data is written.

[0062] In the embodiment, the write mode of the NAND memory 5 can be selected from first and second write modes, which differ in the number of bits that can be stored per memory cell. The first write mode is a performance-prioritized write mode in which a small number of bits can be stored per memory cell, and which is intended to improve the write performance (and read performance) of the memory system 3. On the other hand, the second write mode is a capacity-prioritized write mode in which a large number of bits can be stored per memory cell, and which is intended to increase the storage capacity. Examples of combinations of the first and second write modes when the NAND memory 5 has the SLC mode, MLC mode, TLC mode, and QLC mode as write modes are shown below.

[0063] (1) In the first combination, the first write mode is the SLC mode and the second write mode is the MLC mode. (2) In the second combination, the first write mode is the SLC mode and the second write mode is the TLC mode. (3) In the third combination, the first write mode is the SLC mode and the second write mode is the QLC mode. (4) In the fourth combination, the first write mode is the MLC mode and the second write mode is the TLC mode. (5) In the fifth combination, the first write mode is the MLC mode and the second write mode is the QLC mode. (6) In the sixth combination, the first write mode is the TLC mode and the second write mode is the QLC mode.

[0064] In the following description, the first write mode giving priority to performance is the SLC mode, and the second write mode giving priority to capacity is the TLC mode.

[0065] In the embodiment, the memory controller 4 is configured to specify the write mode of the NAND memory 5, as described below.

[0066] An overview of the write process of the NAND memory 5 will be described. Here, as an example, a case will be described in which the SLC mode is used as the first write mode and the TLC mode is used as the second write mode. Each block of the NAND memory 5 can be used as either a TLC block or an SLC block.

[0067] Write data sent from the host 2 to the memory system 3 is temporarily stored in the write buffer 32. Write data read from the write buffer 32 is written to a write destination block of the NAND memory 5.

[0068] 2 shows an example of a write process when the write mode of the NAND memory 5 is set to the SLC mode. When the write mode is set to the SLC mode, write data is written to the SLC write destination block 102. The SLC write destination block 102 is an SLC block.

[0069] 3 shows an example of a write process when the write mode of the NAND memory 5 is set to the TLC mode. When the write mode is set to the TLC mode, the write data is written to the TLC write destination block 126. The TLC write destination block 126 is a TLC block.

[0070] 2 and 3, the NAND memory 5 includes an active block pool 104 and a free block pool 116. The memory controller 4 assigns each block BLK of the NAND memory 5 to the active block pool 104 or the free block pool 116. The active block pool 104 includes one or more SLC blocks 106 and one or more TLC blocks 108. The free block pool 116 includes one or more free blocks 118.

[0071] The memory controller 4 executes a data erasure process on any one of the free blocks 118 allocated to the free block pool 116 , and then allocates the block to the SLC write destination block 102 or the TLC write destination block 126 .

[0072] When there is no more room to write new data in the SLC write destination block 102 or the TLC write destination block 126, i.e., when the SLC write destination block 102 or the TLC write destination block 126 is filled with write data, the memory controller 4 allocates the SLC write destination block 102 or the TLC write destination block 126 to the active block pool 104.

[0073] A GC / compaction process is executed to increase the number of free blocks allocated to the free block pool 116. In the GC / compaction process, the memory controller 4 sets one of the SLC blocks 106 and the TLC blocks 108 allocated to the active block pool 104 as the copy source block 112. For example, the memory controller 4 may set a block with less valid data among active blocks in which valid data and invalid data are mixed as the copy source block. The memory controller 4 sets one of the free blocks 118 allocated to the free block pool 116 as the copy destination block 114.

[0074] The memory controller 4 copies the valid data of the source block 112 to the destination block 114. The memory controller 4 updates the L2P table 34 to map the physical addresses of the destination block 114 to the LBAs of the valid data copied from the source block 112. The source block 112 that now contains only invalid data as a result of the valid data being copied to the destination block 114 is assigned to a free block.

[0075] Since each block can be used as both a TLC block and an SLC block, the block assigned to the SLC destination block 102 does not need to be fixed to a specific block. The copy source block of the GC / compaction process for generating the free block assigned to the SLC destination block 102 is not limited to an SLC block, but may be a TLC block. Since an SLC block stores only 33% of data compared to a TLC block and the amount of data to be copied is small, it is highly likely to be selected as a copy source block. However, if a TLC block also has a high rate of invalid data and a low rate of valid data, it may be selected as a copy source block. For example, the block BLK0 may be assigned to the SLC destination block 102, and after being set as the SLC active block 106, it may be set as the free block 118 by the GC / compaction process and then assigned to the TLC destination block 126. This method is called an SLC / TLC switching method. In the SLC / TLC switching method, the free block pool 116 is common whether the write mode is the SLC mode or the TLC mode.

[0076] In contrast, there is a method in which the block assigned to the SLC write destination block 102 is a specific block, for example, blocks BLK0 to BLK99. This method is called the SLC fixed method. In the SLC fixed method, it is necessary to provide a free block pool for the SLC write destination block and a free block pool for the TLC write destination block separately. The GC / compaction process for creating a free block for the SLC write destination block 102 and the GC / compaction process for creating a free block for the TLC write destination block 126 are separate processes.

[0077] The embodiment is applicable to both the SLC / TLC switching method and the SLC fixed method.

[0078] The process in which an SLC block is selected as the source block 112 and the data in the SLC block group 122 is rewritten to a TLC block by GC processing is sometimes referred to as compaction processing, but in this specification, the process in which valid data in the source block, which is an active block, is copied to a destination block and the source block is made into a free block, thereby generating a free block, is collectively referred to as GC / compaction processing.

[0079] In the NAND memory 5, a set of blocks used as SLC blocks is referred to as an SLC block group 122. The SLC block group 122 includes SLC blocks that are originally TLC blocks but to which data is temporarily written in SLC mode. Data written to an SLC block in the SLC block group 122 is rewritten to a TLC block in TLC mode by GC / compaction processing.

[0080] Fig. 4 is a diagram for explaining the SLC block group 122. Fig. 4(A) shows an example of the SLC block group 122 when the write mode of the NAND memory 5 is set to the SLC mode. In this case, the SLC block group 122 includes an SLC write destination block 102 which is set as a write destination block for write data, and an SLC block 106 to which the write data has already been written. Blocks other than the SLC block group 122 of the NAND memory 5 include a TLC block 108.

[0081] 4B shows an example of the SLC block group 122 when the write mode of the NAND memory 5 is set to the TLC mode. In this case, the SLC block group 122 includes the SLC block 106 to which write data has already been written. The blocks other than the SLC block group 122 of the NAND memory 5 include the TLC block 108 and the TLC write destination block 126.

[0082] As described above, the storage capacity of the SLC blocks 102, 106 is one third of the storage capacity of the TLC blocks 126, 108, so that when the number of blocks in the SLC block group 122 is reduced, the storage capacity of the memory system 3 increases.

[0083] The transition of the write mode when the memory controller 4 writes data to the NAND memory 5 will be described below. As described above, the second write mode is slow in reading and writing data, and the number of times that data can be written is small. Therefore, when there is room in the capacity of the NAND memory 5, the memory controller 4 writes data to the SLC block in the first write mode, in this case, the SLC mode as an example.

[0084] The memory controller 4 performs GC / compaction processing when the remaining capacity of the NAND memory 5 becomes low. Specifically, the memory controller 4 writes data written in the first write mode in the second mode, thereby increasing the storage capacity of the memory system 3. At that time, the memory controller 4 refers to the LBA range-access frequency table 35 and the block-low frequency access ratio table 36, and writes data with an access frequency lower than a certain value preferentially in the second mode.

[0085] It has been described that the memory controller 4 performs GC and compaction processing by referring to the access frequencies contained in the LBA range-access frequency table 35 and the block-low frequency access ratio table 36, but the references are not limited to the access frequencies.

[0086] (Embodiment)

[0087] When the remaining capacity of the NAND memory 5 becomes even smaller, the memory controller 4 performs GC and compaction processing multiple times. As a result of this processing, the data that is accessed less frequently is written at least once in the second mode. Specifically, the data that is accessed less frequently is written to a block with a high memory cell storage density, such as a TLC block. Conversely, the data that is accessed more frequently remains written to a block with a low memory cell storage density, such as an SLC block, because the GC and compaction processing is not performed on the data.

[0088] In other words, if data has been written to the NAND memory for a sufficient amount of time, the data written to the SLC blocks is data that is accessed frequently, and the data written to the TLC blocks is data that is accessed infrequently.

[0089] Therefore, the memory controller 4 according to this embodiment is configured to include a tag management unit 18. The tag management unit 18 includes a tag recognition circuit 19 and a tag assignment circuit 20, and is connected to the bus 10. When the memory controller 4 reads data, the tag management unit 18 assigns a storage status tag to management data of the data. When the memory controller 4 writes data, if a storage status tag has been assigned to the management data of the data, the tag management unit 18 writes the data to a block corresponding to the storage status tag.

[0090] The memory status tag will now be described. The memory status tag is managed by the tag management unit 18. The tag recognition circuit 19 of the tag management unit 18 can recognize the memory status tag. When the memory controller 4 writes data to a block, the tag recognition circuit 19 accesses the data buffer and searches for the memory status tag included in the management data. The data buffer includes a write buffer 32 and a read buffer 33. When the tag recognition circuit 19 recognizes the memory status tag, it transmits a command with the memory status attached to the memory controller 4. The memory controller 4 receives the command and writes the data to the block corresponding to the memory status.

[0091] Furthermore, when the memory controller 4 reads data from the NAND memory to the data buffer, if the tag management unit 18 recognizes that the read data does not have a storage state tag, the tag management unit 18 assigns a storage state tag to the management data corresponding to the data. For example, when the memory controller 4 reads data from an SLC block, if the tag recognition circuit 19 recognizes that the data read to the data buffer does not have a storage state tag, the tag assignment circuit 20 assigns an SLC tag to the management data of the read data. Similarly, when the memory controller 4 reads data from an MLC, TLC, or QLC block, if the tag recognition circuit 19 recognizes that the data read to the data buffer does not have a storage state tag, the tag assignment circuit 20 assigns a corresponding storage state tag to the management data of the read data.

[0092] The tag management unit 18 may be realized by hardware or firmware. The tag management unit 18 is composed of a functional part for recognizing tags and a functional part for attaching tags, and these two functions may be realized as one circuit or as two different circuits.

[0093] An overview of the operation of the memory controller 4 when writing data to the NAND memory 5 in the memory system according to this embodiment will be described below. FIG.

[0094] The memory controller 4 receives a write request specifying a logical address from the host (step S501). The memory controller 4 temporarily stores the write data in the write buffer 32 (step S502). The tag management unit 18 receives a command from the memory controller 4 to refer to the write data in the write buffer 32, and checks whether the write data includes a storage status tag (step S503). If the tag management unit 18 cannot recognize the storage status tag in the write data, it assigns an SLC tag to the write data (step S504). The tag management unit 18 transmits the command with the storage status assigned to the CPU 12 of the memory controller 4 (step S505).

[0095] The memory controller 4 assigns the received logical address to a physical address of an unused page in the user area of ​​the NAND memory 5. The memory controller 4 issues a write command that can be recognized by the NAND memory 5. This write command includes an instruction to write to a block in a storage state corresponding to the storage state tag of the data. The ECC processing unit 17 adds parity to the received write data. Then, the write command, the physical address, and the write data to which the parity has been added are transmitted as a write command to the NAND memory 5 (step S506). Upon receiving the write command, the NAND memory 5 executes a write operation (step S507).

[0096] Through the above series of steps, the memory controller 4 writes data to the NAND memory 5 in the storage state specified by the storage state tag added to the write data.

[0097] When data without a storage state tag is written directly to the memory system 3, the memory controller 4 first writes the data to a block with a low storage density. After that, the memory controller 4 writes the data with a low access frequency to a block with a high storage density according to the remaining capacity of the NAND memory 5. In this case, the memory controller 4 needs to perform GC / compaction processing multiple times.

[0098] On the other hand, if a storage state tag is assigned to data, the memory controller 4 can directly write the data to a block with a storage state corresponding to the storage state tag when writing data to which the storage state tag is assigned. In other words, if data is accessed infrequently and the storage state tag of a block with a high storage density is assigned before writing to a memory cell, the data can be directly written to a block with a high storage density of memory cells. Therefore, compared to a method in which a storage state tag is not assigned, the number of GC / compaction processes can be reduced, and the life of the memory cells can be extended.

[0099] Next, an overview of the operation of the memory controller 4 when reading data stored in the NAND memory 5 in the memory system according to this embodiment will be described.

[0100] The memory controller 4 receives a read request specifying a logical address from the host (step S601). When the memory controller 4 receives the read request specifying a logical address via the host I / F 11, the memory controller 4 converts the logical address specified in the read request into a physical address using the L2P table 34. The memory controller 4 instructs the NAND memory 5 to read from the converted physical address (step S602).

[0101] The memory controller 4 reads data from the NAND memory 5 via the NAND I / F 13 (step S603). The memory controller 4 temporarily stores the read data in the read buffer 33 (step S604).

[0102] The memory controller 4 transmits a command to the tag management unit 18 to refer to the read data in the read buffer 33 (step S605). If the storage state tag cannot be confirmed in the read data, the tag management unit 18 assigns a storage state tag corresponding to the stored state to the management data in the read data (step S606).

[0103] The memory controller 4 transmits the read data to the host 2 via the host I / F 31 (step S607).

[0104] The above series of steps allows the memory controller 4 to assign a memory state tag when reading data. Therefore, according to this embodiment, when rewriting the read data, the memory controller 4 can write the data to an appropriate memory cell based on the memory state tag assigned to the read data.

[0105] The block diagram in Figure 7 shows the process when the storage state of data tagged with a storage state tag is changed by GC / compaction processing. For example, the GC / compaction process is described below when data that exists in an SLC block and has an SLC tag is rewritten to a TLC block.

[0106] The memory controller 4 sends the data present in the SLC block to the write buffer as write data (steps S701 and S702). The memory controller 4 sends a command to the tag management unit 18 indicating that the storage state of the write destination block is TLC (step S703). The tag management unit 18 refers to the write data in the write buffer and changes the storage state tag from the SLC tag to the TLC tag (step S704). After that, the memory controller 4 writes the write data to the TLC block (step S705).

[0107] By performing the above-mentioned operation, when writing data with an SLC tag to a TLC block, the memory controller 4 can change the storage status tag from an SLC tag to a TLC tag and write the data to the TLC block. By performing the same process, the memory controller 4 can always match the storage status of the data in the NAND memory 5 with the storage status tag.

[0108] The block diagram in Figure 8 describes the operation when data without a storage status tag is rewritten to another block by GC / compaction processing. For example, this describes the GC / compaction processing when data that exists in an SLC block but does not have a storage status tag is rewritten to another SLC block.

[0109] The memory controller 4 sends the data present in the SLC block to the write buffer as write data (steps S801 and S802). The memory controller 4 sends a command to the tag management unit 18 indicating that the storage state of the write destination block is SLC (step S803). The tag management unit 18 refers to the write data in the write buffer and assigns an SLC tag to the management data (step S804). After that, the memory controller 4 writes the write data to the SLC block (step S805).

[0110] By performing the above-mentioned operations, the memory controller 4 can assign a storage status tag to data in the NAND memory 5 to which a storage status tag has not been assigned.

[0111] It should be noted that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the spirit and scope of the present invention.

[0112] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents described in the claims, as well as in the scope and spirit of the invention. [Explanation of symbols]

[0113] 1. Information Processing System 2. Host 3. Memory System 4. Memory controller 5. NAND memory 6. DRAM 10. Bus 11. Host I / F 12 CPU 13. NAND I / F 14. DRAM interface 15. DMAC 16···SRAM 17 ECC Processing Section 18 Tag Management Section 19 Tag recognition circuit 20. Tagging circuit 22 Light control section 26 GC / Compaction Control Section 32 Write buffer 33 Read buffer 34. L2P table 35 LBA range-access frequency table 36... Block - Low Frequency Access Table 102 SLC write destination block 104 Active Block Pool 106···SLC block 108···TLC block 112 Source block 114 Destination block 116···Free Block Pool 118···Free Block 122...SLC Block Group 126 TLC write destination block

Claims

1. A host is connectable to the a non-volatile memory including a plurality of memory cells; A memory controller for controlling the nonvolatile memory; a data buffer coupled to the non-volatile memory; A tag recognition circuit provided in the memory controller; Equipped with The tag recognition circuit includes: Recognizing whether a first data in the data buffer is tagged with a storage status tag Memory system.

2. the first data is write data to be written to the nonvolatile memory, when the tag recognition circuit recognizes that the memory state tag is added to the first data, the tag recognition circuit transmits a first command corresponding to the memory state tag to the memory controller; When the memory controller receives the first command, the memory controller performs control to write the first data to the memory cell in a write mode corresponding to the memory state tag.

2. The memory system of claim 1.

3. the first data is write data to be written to the nonvolatile memory, the memory controller, when a write request is made, sends a command to the tag recognition circuit to access the data buffer; 2. The memory system of claim 1.

4. The memory system further includes a tagging circuit provided in the memory controller; The tagging circuit includes: if the tag recognition circuit does not recognize that the first data has been assigned the storage state tag, assigning a first storage state tag to the first data; 4. The memory system of claim 3.

5. the tagging circuit affixes the first storage state tag to management data of the first data; 5. The memory system of claim 4.

6. the first data is read data read from the non-volatile memory, the memory controller, when a read request is made, sends a command to the tag recognition circuit to access the data buffer; 2. The memory system of claim 1.

7. The memory system further includes a tagging circuit provided in the memory controller; The tagging circuit includes: if the tag recognition circuit does not recognize that the memory state tag is added to the first data, a second memory state tag corresponding to a write mode of the memory cell from which the first data is read is added to the first data; 7. The memory system of claim 6.

8. a memory system including a non-volatile memory including a plurality of memory cells, a memory controller that controls the non-volatile memory, a data buffer connected to the non-volatile memory, a tag recognition circuit provided in the memory controller, and a tag assignment circuit provided in the memory controller; a host connected to the memory system; Equipped with The tag recognition circuit includes: determining whether a storage state tag is attached to the first data in the data buffer; When the tag recognition circuit recognizes that the first data is assigned the storage state tag, the memory controller performs control to write the first data to the memory cell in a write mode corresponding to the memory state tag, or controls to transmit the first data to the host; If the tag recognition circuit does not recognize that the first data is assigned the storage state tag, the tagging circuitry assigns a first storage state tag or a second storage state tag to the first data; the memory controller performs control to write the first data to which the first memory status tag is assigned to the memory cell in a write mode corresponding to the first memory status tag, or performs control to transmit the first data to which the second memory status tag is assigned to the host; Information processing system.

9. the second memory state tag is a memory state tag according to a write mode of the memory cell from which the first data is read, when the first data is data read from the nonvolatile memory; The information processing system according to claim 8.

Citation Information

Patent Citations

  • Gaming machine

    JP2012016407A

  • Storage device having programmed cell storage density modes that are a function of storage device capacity utilization

    US20190034105A1

  • Storage system and data control method

    US20200034067A1