# US 11,409,596 B1 · Encoding control method, memory storage device and memory control circuit unit

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

- Number: US 11,409,596 B1
- Document ID: US11409596B1
- Status: Granted
- Kind: B1
- Application number: 17/184,611
- Filed: 2021-02-25
- Published: 2022-08-04
- Granted: 2022-08-09
- Earliest claimed: 2021-02-04
- Assignees: Phison Electronics Corp.
- Applicants: Phison Electronics Corp.
- Inventors: Chih-Kang Yeh
- Web page: https://patentgrep.com/patent/US11409596B1

## CPC

- G06F 11/1004: {to protect a block of data words, e.g. CRC or checksum (G06F11/1076 takes precedence; security arrangements for protecting computers or computer systems against unauthorized activity G06F21/00)}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0656: {Data buffering arrangements}
- G06F 3/0658: {Controller construction arrangements}
- G06F 3/0661: {Format or protocol conversion arrangements}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 11/1012: {using codes or arrangements adapted for a specific type of error (G06F11/1048 takes precedence)}
- G06F 13/1668: {Details of memory controller}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

An encoding control method, a memory storage device and a memory control circuit unit are provided. The method includes: reading a plurality of first data units by a plurality of first host to device (H2D) access operations; generating at least one first parity unit according to the first data units; transmitting the first parity unit to the host system by at least one first device to host (D2H) access operation; reading a plurality of second data units by a plurality of second H2D access operations; generating at least one second parity unit according to the first parity unit and the second data units without reading the first parity unit from the host system; transmitting the second parity unit to the host system by at least one second D2H access operation; and storing the first data units and the second data units to a first physical unit.

## Claims

### Claim 1

An encoding control method for a memory storage device, wherein the memory storage device comprises an encoding circuit and a rewritable non-volatile memory module, the rewritable non-volatile memory module comprises a plurality of physical units, and the encoding control method comprises:
reading a plurality of first data units from a host system by a plurality of first host to device access operations;
executing a first encoding operation by the encoding circuit to generate at least one first parity unit according to the first data units;
transmitting the at least one first parity unit to the host system by at least one first device to host access operation;
reading a plurality of second data units from the host system by a plurality of second host to device access operations;
executing a second encoding operation by the encoding circuit to generate at least one second parity unit according to at least one of the at least one first parity unit and the second data units without reading any of the at least one first parity unit from the host system;
transmitting the at least one second parity unit to the host system by at least one second device to host access operation; and
storing the first data units and the second data units to a first physical unit of the physical units.

### Claim 2 (depends on 1)

The encoding control method as claimed in claim 1, wherein the first host to device access operations, the at least one first device to host access operation, the second host to device access operations, and the at least one second device to host access operation serve to access a host memory buffer of the host system.

### Claim 3 (depends on 1)

The encoding control method as claimed in claim 1, further comprising:
determining the first physical unit as an open unit; and
in a state in which the first physical unit serves as the open unit, storing the first data units and the second data units from the host system to the first physical unit.

### Claim 4 (depends on 1)

The encoding control method as claimed in claim 1, wherein the first encoding operation comprises:
performing cross-page encoding on at least two data units of the first data units, so that a single parity unit of the at least one first parity unit is suitable for protecting data belonging to a plurality of physical pages in the first data units.

### Claim 5 (depends on 4)

The encoding control method as claimed in claim 4, wherein each of the at least one first parity unit belongs to a first type parity unit, and the first encoding operation further comprises:
performing single-page encoding on a single data unit of the first data units to generate a second type parity unit, wherein the second type parity unit is suitable for protecting data belonging to a single physical page in the first data units.

### Claim 6 (depends on 1)

The encoding control method as claimed in claim 1, further comprising:
in a state in which the first physical unit serves as an open unit, reading at least one third parity unit from the host system by at least one third host to device access operation, wherein the at least one third parity unit comprises a parity unit belonging to the at least one first parity unit or the at least one second parity unit; and
decoding data read from the first physical unit by the encoding circuit according to the at least one third parity unit.

### Claim 7 (depends on 1)

The encoding control method as claimed in claim 1, further comprising:
in a state in which the first physical unit does not serve as an open unit, reading at least one fourth parity unit from the host system by at least one fourth host to device access operation, wherein the at least one fourth parity unit comprises a parity unit belonging to the at least one first parity unit or the at least one second parity unit;
generating at least one fifth parity unit by the encoding circuit according to the at least one fourth parity unit; and
storing the at least one fifth parity unit to a second physical unit of the physical units.

### Claim 8 (depends on 7)

The encoding control method as claimed in claim 7, further comprising:
in the state in which the first physical unit does not serve as the open unit, decoding data read from the first physical unit by the encoding circuit according to the at least one fifth parity unit.

### Claim 9 (depends on 1)

The encoding control method as claimed in claim 1, further comprising:
receiving a request from the host system, wherein the request is adapted to inquire whether the memory storage device is compatible with host memory buffering;
providing a response to the host system according to the request; and
enabling a host memory buffer by the host system to be accessed by the memory storage device according to the response.

### Claim 10

A memory storage device, comprising:
a connection interface unit, configured to be coupled to a host system;
a rewritable non-volatile memory module, comprising a plurality of physical units; and
a memory control circuit unit, coupled to the connection interface unit and the rewritable non-volatile memory module,
wherein the memory control circuit unit is configured to read a plurality of first data units from the host system by a plurality of first host to device access operations,
the memory control circuit unit is further configured to execute a first encoding operation to generate at least one first parity unit according to the first data units,
the memory control circuit unit is further configured to transmit the at least one first parity unit to the host system by at least one first device to host access operation,
the memory control circuit unit is further configured to read a plurality of second data units from the host system by a plurality of second host to device access operations,
the memory control circuit unit is further configured to execute a second encoding operation to generate at least one second parity unit according to at least one of the at least one first parity unit and the second data units without reading any of the at least one first parity unit from the host system,
the memory control circuit unit is further configured to transmit the at least one second parity unit to the host system by at least one second device to host access operation, and
the memory control circuit unit is further configured to store the first data units and the second data units to a first physical unit of the physical units.

### Claim 11 (depends on 10)

The memory storage device as claimed in claim 10, wherein the first host to device access operations, the at least one first device to host access operation, the second host to device access operations, and the at least one second device to host access operation serve to access a host memory buffer of the host system.

### Claim 12 (depends on 10)

The memory storage device as claimed in claim 10, wherein the memory control circuit unit is further configured to:
determine the first physical unit as an open unit; and
in a state in which the first physical unit serves as the open unit, store the first data units and the second data units from the host system to the first physical unit.

### Claim 13 (depends on 10)

The memory storage device as claimed in claim 10, wherein the first encoding operation comprises:
performing cross-page encoding on at least two data units of the first data units, so that a single parity unit of the at least one first parity unit is suitable for protecting data belonging to a plurality of physical pages in the first data units.

### Claim 14 (depends on 13)

The memory storage device as claimed in claim 13, wherein each of the at least one first parity unit belongs to a first type parity unit, and the first encoding operation further comprises:
performing single-page encoding on a single data unit of the first data units to generate a second type parity unit, wherein the second type parity unit is suitable for protecting data belonging to a single physical page in the first data units.

### Claim 15 (depends on 10)

The memory storage device as claimed in claim 10, wherein the memory control circuit unit is further configured to:
in a state in which the first physical unit serves as an open unit, read at least one third parity unit from the host system by at least one third host to device access operation, wherein the at least one third parity unit comprises a parity unit belonging to the at least one first parity unit or the at least one second parity unit; and
decode data read from the first physical unit according to the at least one third parity unit.

### Claim 16 (depends on 10)

The memory storage device as claimed in claim 10, wherein the memory control circuit unit is further configured to:
in a state in which the first physical unit does not serve as an open unit, read at least one fourth parity unit from the host system by at least one fourth host to device access operation, wherein the at least one fourth parity unit comprises a parity unit belonging to the at least one first parity unit or the at least one second parity unit;
generate at least one fifth parity unit according to the at least one fourth parity unit; and
store the at least one fifth parity unit to a second physical unit of the physical units.

### Claim 17 (depends on 16)

The memory storage device as claimed in claim 16, wherein the memory control circuit unit is further configured to:
in the state in which the first physical unit does not serve as the open unit, decode data read from the first physical unit according to the at least one fifth parity unit.

### Claim 18 (depends on 10)

The memory storage device as claimed in claim 10, wherein the memory control circuit unit is further configured to:
receive a request from the host system, wherein the request is adapted to inquire whether the memory storage device is compatible with host memory buffering; and
provide a response to the host system according to the request,
wherein the host system is configured to enable a host memory buffer to be accessed by the memory storage device according to the response.

### Claim 19

A memory control circuit unit, configured to control a memory storage device, wherein the memory storage device comprises a rewritable non-volatile memory module, the rewritable non-volatile memory module comprises a plurality of physical units, and the memory control circuit unit comprises:
a host interface, configured to be coupled to a host system;
a memory interface, configured to be coupled to the rewritable non-volatile memory module;
an encoding circuit; and
a memory management circuit, coupled to the host interface, the memory interface, and the encoding circuit,
wherein the memory management circuit is configured to read a plurality of first data units from the host system by a plurality of first host to device access operations,
the encoding circuit is configured to execute a first encoding operation to generate at least one first parity unit according to the first data units;
the memory management circuit is further configured to transmit the at least one first parity unit to the host system by at least one first device to host access operation,
the memory management circuit is further configured to read a plurality of second data units from the host system by a plurality of second host to device access operations,
the encoding circuit is further configured to execute a second encoding operation to generate at least one second parity unit according to at least one of the at least one first parity unit and the second data units without reading any of the at least one first parity unit from the host system,
the memory management circuit is further configured to transmit the at least one second parity unit to the host system by at least one second device to host access operation, and
the memory management circuit is further configured to store the first data units and the second data units to a first physical unit of the physical units.

### Claim 20 (depends on 19)

The memory control circuit unit as claimed in claim 19, wherein the first host to device access operations, the at least one first device to host access operation, the second host to device access operations, and the at least one second device to host access operation serve to access a host memory buffer of the host system.

### Claim 21 (depends on 19)

The memory control circuit unit as claimed in claim 19, wherein the memory management circuit is further configured to:
determine the first physical unit as an open unit; and
in a state in which the first physical unit serves as the open unit, store the first data units and the second data units from the host system to the first physical unit.

### Claim 22 (depends on 19)

The memory control circuit unit as claimed in claim 19, wherein the first encoding operation comprises:
performing cross-page encoding on at least two data units of the first data units, so that a single parity unit of the at least one first parity unit is suitable for protecting data belonging to a plurality of physical pages in the first data units.

### Claim 23 (depends on 22)

The memory control circuit unit as claimed in claim 22, wherein each of the at least one first parity unit belongs to a first type parity unit, and the first encoding operation further comprises:
performing single-page encoding on a single data unit of the first data units to generate a second type parity unit, wherein the second type parity unit is suitable for protecting data belonging to a single physical page in the first data units.

### Claim 24 (depends on 19)

The memory control circuit unit as claimed in claim 19, wherein the memory management circuit is further configured to, in a state in which the first physical unit serves as an open unit, read at least one third parity unit from the host system by at least one third host to device access operation, wherein the at least one third parity unit comprises a parity unit belonging to the at least one first parity unit or the at least one second parity unit, and
the encoding circuit is further configured to decode data read from the first physical unit according to the at least one third parity unit.

### Claim 25 (depends on 19)

The memory control circuit unit as claimed in claim 19, wherein the memory management circuit is further configured to, in a state in which the first physical unit does not serve as an open unit, read at least one fourth parity unit from the host system by at least one fourth host to device access operation, wherein the at least one fourth parity unit comprises a parity unit belonging to the at least one first parity unit or the at least one second parity unit,
the encoding circuit is further configured to generate at least one fifth parity unit according to the at least one fourth parity unit, and
the memory management circuit is further configured to store the at least one fifth parity unit to a second physical unit of the physical units.

### Claim 26 (depends on 25)

The memory control circuit unit as claimed in claim 25, wherein the encoding circuit is further configured to, in the state in which the first physical unit does not serve as the open unit, decode data read from the first physical unit according to the at least one fifth parity unit.

### Claim 27 (depends on 19)

The memory control circuit unit as claimed in claim 19, wherein the memory management circuit is further configured to:
receive a request from the host system, wherein the request is adapted to inquire whether the memory control circuit unit is compatible with host memory buffering; and
provide a response to the host system according to the request,
wherein the host system is configured to enable a host memory buffer to be accessed by the memory control circuit unit according to the response.
