# US 2023/0275601 A1 · Memory controller, memory system, and memory control method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0275601 A1
- Document ID: US20230275601A1
- Status: Published application
- Kind: A1
- Application number: 18/312,834
- Filed: 2023-05-05
- Published: 2023-08-31
- Earliest claimed: 2014-03-06
- Assignees: Kioxia Corporation
- Applicants: Kioxia Corporation
- Inventors: Riki SUZUKI; Toshikatsu HIDA; Osamu TORII; Hiroshi YAO; Kiyotaka IWASAKI
- Web page: https://patentgrep.com/patent/US20230275601A1

## CPC

- H03M 13/35: Unequal or adaptive error protection, e.g. by providing a different level of protection according to significance of source information or by adapting the coding according to the change of transmission channel characteristics
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/1008: {in individual solid state devices (G06F11/1004 takes precedence)}
- G06F 11/1044: {with specific ECC/EDC distribution}
- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- H03M 13/29: combining two or more codes or code structures, e.g. product codes, generalised product codes, concatenated codes, inner and outer codes
- H03M 13/2906: {using block codes (H03M13/2957 takes precedence)}
- H03M 13/2957: {Turbo codes and decoding}
- G11B 20/1833: {by adding special lists or symbols to the coded information (G11B20/1806, G11B20/1866 take precedence)}
- G11C 7/1006: {Data managing, e.g. manipulating data before writing or reading out, data bus switches or control circuits therefor}
- G11C 2029/0411: {Online error correction}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)

## Abstract

According to one embodiment, a nonvolatile memory includes a plurality of memory areas and controller circuit including an error correction code encoder. The error correction code encoder encodes a first data to generate a first parity in a first operation and encodes a second data to generate a second parity in a second operation. The controller circuit writes the first data and the first parity into a first memory area among the plurality of memory areas and writes the second data and the second parity into a second memory area among the plurality of memory areas. The size of the second data is smaller than the size of the first data and the size of the second parity is equal to the size of the first parity.

## Claims

### Claim 1

A memory system comprising:
a nonvolatile memory that includes a plurality of memory areas, the plurality of memory areas including at least a first memory area and a second memory area; and
a controller configured to:
manage a level of wear of each of the plurality of memory areas;
in response to the level of wear of the first memory area being lower than a first threshold,
determine to use a first encoding method for encoding a first size of first data to generate a second size of a first parity for correcting an error in the first data such that a sum of the first size and the second size is equal to a size of each of the plurality of memory areas,
encode the first data to generate the first parity, and
write the first data and the first parity into the first memory area; and
in response to the level of wear of the second memory area being higher than or equal to the first threshold,
determine to use a second encoding method for encoding a third size of second data to generate a fourth size of a second parity for correcting an error in the second data such that the third size is smaller than the first size, and a sum of the third size and the fourth size is equal to the size of each of the plurality of memory areas,
encode the second data to generate the second parity, and
write the second data and the second parity into the second memory area.

### Claim 2 (depends on 1)

The memory system according to claim 1, wherein
the first data includes a plurality of first data clusters and the first parity includes a plurality of third parities, the plurality of third parities being for correcting an error in the plurality of first data clusters respectively,
the second data includes a plurality of second data clusters and the second parity includes a plurality of fourth parities, the plurality of fourth parities being for correcting an error in the plurality of second data clusters respectively,
a size of each of the plurality of second data clusters is equal to a size of each of the plurality of first data clusters, and
a size of each of the plurality of fourth parities is larger than a size of each of the plurality of third parities.

### Claim 3 (depends on 2)

The memory system according to claim 2, wherein
the plurality of first data clusters and the plurality of third parities form a plurality of first error-correction-code (ECC) frames respectively,
the plurality of second data clusters and the plurality of fourth parities form a plurality of second ECC frames respectively, and
the number of the plurality of second ECC frames written in the second memory area is smaller than the number of the plurality of first ECC frames written in the first memory area.

### Claim 4 (depends on 1)

The memory system according to claim 1, wherein
the first data includes a plurality of first data clusters and the first parity includes a plurality of third parities, the plurality of third parities being for correcting an error in the plurality of first data clusters respectively,
the second data includes a plurality of second data clusters and the second parity includes a plurality of fourth parities, the plurality of fourth parities being for correcting an error in the plurality of second data clusters respectively,
a size of each of the plurality of second data clusters is smaller than a size of each of the plurality of first data clusters, and
a size of each of the plurality of fourth parities is equal to a size of each of the plurality of third parities.

### Claim 5 (depends on 4)

The memory system according to claim 4, wherein
the plurality of first data clusters and the plurality of third parities form a plurality of first error-correction-code (ECC) frames respectively,
the plurality of second data clusters and the plurality of fourth parities form a plurality of second ECC frames respectively, and
the number of the plurality of second ECC frames written in the second memory area is larger than the number of the plurality of first ECC frames written in the first memory area.

### Claim 6 (depends on 1)

The memory system according to claim 1, wherein
the controller is further configured to:
manage the number of write-and-erase cycles performed on each of the plurality of memory areas as the level of wear of each of the plurality of memory areas; and
determine, based on the managed number of write-and-erase cycles, an encoding method from among the first encoding method and the second encoding method to be used for each of the plurality of memory areas.

### Claim 7 (depends on 1)

The memory system according to claim 1, wherein
the controller is further configured to:
manage a bit error rate of data read from each of the plurality of memory areas as the level of wear of each of the plurality of memory areas; and
determine, based on the managed bit error rate, an encoding method from among the first encoding method and the second encoding method to be used for each of the plurality of memory areas.

### Claim 8 (depends on 1)

The memory system according to claim 1, wherein
the controller is further configured to:
manage the number of errors detected in data read from each of the plurality of memory areas as the level of wear of each of the plurality of memory areas; and
determine, based on the managed number of errors, an encoding method from among the first encoding method and the second encoding method to be used for each of the plurality of memory areas.

### Claim 9 (depends on 1)

The memory system according to claim 1, wherein
the controller is further configured to:
determine, before receiving a write request from a host, an encoding method from among the first encoding method and the second encoding method to be used for each of the plurality of memory areas; and
in response to receiving the write request from the host,
use the determined encoding method for encoding write data associated with the write request.

### Claim 10 (depends on 1)

The memory system according to claim 1, wherein
the controller is further configured to:
manage an encoding method for each of the plurality of memory areas; and
in response to receiving a read request from a host,
determine, based on the managed encoding method, a decoding method to be used for one of the plurality of memory areas from which read data requested by the read request is to be read,
read the read data from the one of the plurality of memory areas, and
decode the read data by using the determined decoding method.

### Claim 11 (depends on 1)

The memory system according to claim 1, wherein
the number of errors correctable from the second data by using the second parity is larger than the number of errors correctable from the first data by using the first parity.

### Claim 12 (depends on 1)

The memory system according to claim 1, wherein
the controller is further configured to:
in addition to the level of wear of the second memory area being higher than or equal to the first threshold, in response to a total size of parities to be stored in the nonvolatile memory being less than a second threshold, determine to use the second encoding method.

### Claim 13 (depends on 1)

The memory system according to claim 1, wherein
the nonvolatile memory includes a plurality of unit areas, each of the plurality of unit areas being a unit of a data write operation to the nonvolatile memory, and
the controller is further configured to:
manage a level of wear of each of the plurality of unit areas as the level of wear of each of the plurality of memory areas; and
determine, based on the managed level of wear of each of the plurality of unit areas, an encoding method from among the first encoding method and the second encoding method to be used for each of the plurality of unit areas.

### Claim 14 (depends on 13)

The memory system according to claim 13, wherein
the nonvolatile memory includes a plurality of blocks, each of the plurality of blocks being a unit of a data erase operation to the nonvolatile memory, and
each of the plurality of unit areas is provided across at least two of the plurality of blocks.

### Claim 15 (depends on 13)

The memory system according to claim 13, wherein
the nonvolatile memory includes a plurality of planes, at least two of the plurality of planes being accessible in parallel, and
each of the plurality of unit areas is provided across at least two of the plurality of planes.

### Claim 16 (depends on 1)

The memory system according to claim 1, wherein
the nonvolatile memory includes a plurality of memory chips, and
the controller is further configured to:
manage a level of wear of each of the plurality of memory chips as the level of wear of each of the plurality of memory areas; and
determine, based on the level of wear of each of the plurality of memory chips, an encoding method from among the first encoding method and the second encoding method to be used for each of the plurality of memory chips.

### Claim 17 (depends on 1)

The memory system according to claim 1, wherein
the nonvolatile memory includes a plurality of blocks, each of the plurality of blocks being a unit of a data erase operation to the nonvolatile memory, and
the controller is further configured to:
manage a level of wear of each of the plurality of blocks as the level of wear of each of the plurality of memory areas; and
determine, based on the level of wear of each of the plurality of blocks, an encoding method from among the first encoding method and the second encoding method to be used for each of the plurality of blocks.

### Claim 18 (depends on 1)

The memory system according to claim 1, wherein
the nonvolatile memory includes a plurality of memory cell groups, each of the plurality of memory cell groups including a plurality of memory cells connected to a word line, and
the controller is configured to:
manage a level of wear of each of the plurality of memory cell groups as the level of wear of each of the plurality of memory areas; and
determine, based on the level of wear of the plurality of memory cell groups, an encoding method from among the first encoding method and the second encoding method to be used for each of the memory cell groups.

### Claim 19 (depends on 18)

The memory system according to claim 18, wherein
each of the plurality of memory cell groups is configured to store data of a plurality of pages, and
the controller is further configured to determine the encoding method to be used for data of each of the plurality of pages.

### Claim 20 (depends on 1)

The memory system according to claim 1, wherein
the controller is further configured to:
manage a logical-to-physical address conversion table that includes a plurality of entries, each of the plurality of entries storing mapping information for mapping a logical address with a physical address of each of the plurality of memory areas, the plurality of entries including at least a first entry and a second entry;
store, in the first entry that stores the mapping information of the physical address of the first memory area, first information indicating the first size; and
store, in the second entry that stores the mapping information of the physical address of the second memory area, second information indicating the second size.
