# US 2025/0224875 A1 · Operation methods of memory controllers, devices, and storage mediums

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

- Number: US 2025/0224875 A1
- Document ID: US20250224875A1
- Status: Published application
- Kind: A1
- Application number: 18/635,853
- Filed: 2024-04-15
- Published: 2025-07-10
- Earliest claimed: 2024-01-05
- Assignees: Yangtze Memory Technologies Co., Ltd.
- Applicants: Yangtze Memory Technologies Co., Ltd.
- Inventors: Tao Xiong
- Web page: https://patentgrep.com/patent/US20250224875A1

## CPC

- G06F 3/0613: {in relation to throughput}
- G06F 3/064: {Management of blocks}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present application discloses an operation method of a memory controller, a device, and a storage medium. The controller is coupled to at least one memory, and the memory includes a plurality of planes each including a plurality of blocks. The method includes: acquiring physical numbers of N blocks in the at least one memory; mapping a physical number of each of the N blocks according to a global number of a plane in which each of the N blocks is located, so as to obtain a logical number of each of the N blocks; and grouping the N blocks according to the logical number of each of the N blocks to obtain at least two superblocks. The above method may map at least two blocks having the same physical number to different logical numbers.

## Claims

### Claim 1

An operation method of a memory controller, wherein the memory controller is coupled to at least one memory, the memory comprises a plurality of planes, each plane comprises a plurality of blocks, and the method comprises:
acquiring physical numbers of N blocks in the at least one memory, the physical numbers being used for distinguishing between different blocks in a same plane, and N being an integer greater than 1;
mapping a physical number of each of the N blocks according to a global number of a plane in which each of the N blocks is located, so as to obtain a logical number of each of the N blocks, wherein the global number is used for distinguishing between different planes in the at least one memory, and at least two blocks having a same physical number in the N blocks are mapped to have different logical numbers; and
grouping the N blocks according to the logical number of each of the N blocks to obtain at least two superblocks, wherein each of the superblocks comprises at least two blocks, and the at least two blocks are managed in a unified manner during data reading and writing.

### Claim 2 (depends on 1)

The method of claim 1, wherein the N blocks are configured to store host data, a plurality of blocks having the same physical number in each of the planes constitute a group of system blocks, and the system blocks are configured to store non-host data.

### Claim 3 (depends on 1)

The method of claim 1, wherein the at least two superblocks include:
a host superblock configured to store host data; and
a system superblock configured to store non-host data.

### Claim 4 (depends on 1)

The method of claim 1, wherein the mapping a physical number of each of the N blocks according to a global number of a plane in which each of the N blocks is located, so as to obtain a logical number of each of the N blocks further includes:
mapping the physical number of each of the N blocks according to the global number of the plane in which each of the N blocks is located, a shift value, a count of blocks included in the plane, and a first parameter, so as obtain the logical number of each of the N blocks,
wherein the shift value is used to indicate an offset between logical numbers respectively corresponding to two blocks having the same physical number and being located in planes having adjacent global numbers, and the first parameter is a minimum natural number used to control the logical number of the block to be within a determined range.

### Claim 5 (depends on 4)

The method of claim 4, wherein the mapping the physical number of each of the N blocks according to the global number of the plane in which each of the N blocks is located, a shift value, a count of blocks included in the plane, and a first parameter, so as obtain the logical number of each of the N blocks further includes:
for each of the N blocks, adding a product of the count of blocks included in the plane and the first parameter to the physical number of the block to obtain a first intermediate value;
using a product of the global number of the plane in which the block is located and the shift value as a second intermediate value; and
obtaining the logical number of the block according to a difference between the first intermediate value and the second intermediate value.

### Claim 6 (depends on 4)

The method of claim 4, further including:
adjusting the shift value in a case that, among the at least two superblocks, there is a superblock in which a count of unavailable blocks exceeds a first threshold, wherein the unavailable blocks refer to blocks unavailable for writing host data; and
after adjusting the shift value, reperforming the mapping the physical number of each of the N blocks according to the global number of the plane in which each of the N blocks is located, a shift value, the count of blocks included in the plane, and a first parameter, so as obtain the logical number of each of the N blocks.

### Claim 7 (depends on 1)

The method of claim 1, before the mapping a physical number of each of the N blocks according to a global number of a plane in which each of the N blocks is located, so as to obtain a logical number of each of the N blocks, further including:
obtaining the global number of the plane in which each of the N blocks is located according to a memory number of a memory in which each of the N blocks is located, a count of planes included in the memory, and a plane number of the plane in which each of the N blocks is located, wherein the memory number is used for distinguishing between different memories, and the plane number is used for distinguishing between different planes in a same memory.

### Claim 8 (depends on 1)

The method of claim 1, wherein the grouping the N blocks according to the logical number of each of the N blocks to obtain at least two superblocks further includes:
grouping blocks having a same logical number in the N blocks into a same superblock.

### Claim 9 (depends on 1)

The method of claim 1, wherein the N blocks include a plurality of unavailable blocks having the same physical number, and the unavailable blocks refer to blocks unavailable for writing host data.

### Claim 10 (depends on 9)

The method of claim 9, further including:
writing the host data to the superblocks in by skipping the unavailable blocks.

### Claim 11

A memory controller, comprising:
a memory; and
a processor coupled with the memory, wherein the processor is configured to run firmware to implement an operation method of a memory controller, wherein the memory controller is coupled to at least one memory, the memory comprises a plurality of planes, each plane comprises a plurality of blocks, and the method comprises:
acquiring physical numbers of N blocks in the at least one memory, the physical numbers being used for distinguishing between different blocks in a same plane, and N being an integer greater than 1;
mapping a physical number of each of the N blocks according to a global number of a plane in which each of the N blocks is located, so as to obtain a logical number of each of the N blocks, wherein the global number is used for distinguishing between different planes in the at least one memory, and at least two blocks having a same physical number in the N blocks are mapped to have different logical numbers; and
grouping the N blocks according to the logical number of each of the N blocks to obtain at least two superblocks, wherein each of the superblocks comprises at least two blocks, and the at least two blocks are managed in a unified manner during data reading and writing.

### Claim 12 (depends on 11)

The memory controller of claim 11, wherein the N blocks are configured to store host data, a plurality of blocks having the same physical number in each of the planes constitute a group of system blocks, and the system blocks are configured to store non-host data.

### Claim 13 (depends on 11)

The memory controller of claim 11, wherein the at least two superblocks include:
a host superblock configured to store host data; and
a system superblock configured to store non-host data.

### Claim 14 (depends on 11)

The memory controller of claim 11, wherein the mapping a physical number of each of the N blocks according to a global number of a plane in which each of the N blocks is located, so as to obtain a logical number of each of the N blocks further includes:
mapping the physical number of each of the N blocks according to the global number of the plane in which each of the N blocks is located, a shift value, a count of blocks included in the plane, and a first parameter, so as obtain the logical number of each of the N blocks,
wherein the shift value is used to indicate an offset between logical numbers respectively corresponding to two blocks having the same physical number and being located in planes having adjacent global numbers, and the first parameter is a minimum natural number used to control the logical number of the block to be within a determined range.

### Claim 15 (depends on 14)

The memory controller of claim 14, wherein the mapping the physical number of each of the N blocks according to the global number of the plane in which each of the N blocks is located, a shift value, a count of blocks included in the plane, and a first parameter, so as obtain the logical number of each of the N blocks further includes:
for each of the N blocks, adding a product of the count of blocks included in the plane and the first parameter to the physical number of the block to obtain a first intermediate value;
using a product of the global number of the plane in which the block is located and the shift value as a second intermediate value; and
obtaining the logical number of the block according to a difference between the first intermediate value and the second intermediate value.

### Claim 16 (depends on 14)

The memory controller of claim 14, further including:
adjusting the shift value in a case that, among the at least two superblocks, there is a superblock in which a count of unavailable blocks exceeds a first threshold, wherein the unavailable blocks refer to blocks unavailable for writing host data; and
after adjusting the shift value, reperforming the mapping the physical number of each of the N blocks according to the global number of the plane in which each of the N blocks is located, a shift value, the count of blocks included in the plane, and a first parameter, so as obtain the logical number of each of the N blocks.

### Claim 17 (depends on 11)

The memory controller of claim 11, before the mapping a physical number of each of the N blocks according to a global number of a plane in which each of the N blocks is located, so as to obtain a logical number of each of the N blocks, further including:
obtaining the global number of the plane in which each of the N blocks is located according to a memory number of a memory in which each of the N blocks is located, a count of planes included in the memory, and a plane number of the plane in which each of the N blocks is located, wherein the memory number is used for distinguishing between different memories, and the plane number is used for distinguishing between different planes in a same memory.

### Claim 18 (depends on 11)

The memory controller of claim 11, wherein the grouping the N blocks according to the logical number of each of the N blocks to obtain at least two superblocks further includes:
grouping blocks having a same logical number in the N blocks into a same superblock.

### Claim 19 (depends on 11)

The memory controller of claim 11, wherein the N blocks include a plurality of unavailable blocks having the same physical number, and the unavailable blocks refer to blocks unavailable for writing host data.

### Claim 20

A memory system, comprising:
a memory controller; and
at least one memory coupled with the memory controller, wherein the memory comprises a plurality of planes, each plane comprises a plurality of blocks, and the memory controller is configured to implement an operation method, and the method comprises:
acquiring physical numbers of N blocks in the at least one memory, the physical numbers being used for distinguishing between different blocks in a same plane, and N being an integer greater than 1;
mapping a physical number of each of the N blocks according to a global number of a plane in which each of the N blocks is located, so as to obtain a logical number of each of the N blocks, wherein the global number is used for distinguishing between different planes in the at least one memory, and at least two blocks having a same physical number in the N blocks are mapped to have different logical numbers; and
grouping the N blocks according to the logical number of each of the N blocks to obtain at least two superblocks, wherein each of the superblocks comprises at least two blocks, and the at least two blocks are managed in a unified manner during data reading and writing.
