# US 2021/0279127 A1 · Memory controller and method of operating the same

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

- Number: US 2021/0279127 A1
- Document ID: US20210279127A1
- Status: Published application
- Kind: A1
- Application number: 16/944,996
- Filed: 2020-07-31
- Published: 2021-09-09
- Earliest claimed: 2020-03-03
- Assignees: SK hynix Inc.
- Applicants: SK hynix Inc.
- Inventors: Jae Youn JANG; Jeong Su PARK
- Web page: https://patentgrep.com/patent/US20210279127A1

## 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 11/108: {Parity data distribution in semiconductor storages, e.g. in SSD}
- G06F 11/1076: {Parity data used in redundant arrays of independent storages, e.g. in RAID systems}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present technology includes a memory controller and a method of operating the same. The memory controller controlling an operation of a memory device includes a parity module configured to perform one or more exclusive OR operations using data to be stored in the memory device and generate parity according to the one or more exclusive OR operations, and a recovery controller configured to control the parity module to store the parity in the memory device based on the number of times the exclusive OR operation is performed.

## Claims

### Claim 1

A memory controller that controls an operation of a memory device, the memory controller comprising:
a parity module configured to perform one or more exclusive OR operations using data to be stored in the memory device and generate parity according to the one or more exclusive OR operations; and
a recovery controller configured to control the parity module to store the parity in the memory device based on the number of times the exclusive OR operation is performed.

### Claim 2 (depends on 1)

The memory controller of claim 1, wherein the recovery controller controls the parity module to perform the exclusive OR operation until the number of times the exclusive OR operation has been performed reaches a threshold value.

### Claim 3 (depends on 1)

The memory controller of claim 1, wherein the recovery controller controls the parity module to store the parity in the memory device when the number of times the exclusive OR operation has been performed reaches a threshold value.

### Claim 4 (depends on 1)

The memory controller of claim 1, wherein the parity module comprises:
an operation component configured to perform the one or more exclusive OR operations;
a count manager configured to determine whether the number of times the exclusive OR operations have been performed is equal to a threshold value; and
a register including a value indicating whether the number of times the exclusive OR operations have been performed has reached the threshold value.

### Claim 5 (depends on 4)

The memory controller of claim 4, wherein the recovery controller obtains the value included in the register and controls the parity module to store the parity in the memory device based on the value.

### Claim 6 (depends on 1)

The memory controller of claim 1, further comprising: a parity storage configured to temporarily store the parity generated as a result of performing the one or more exclusive OR operations.

### Claim 7 (depends on 6)

The memory controller of claim 6, wherein the recovery controller receives from the parity module an interrupt signal indicating that the number of exclusive OR operations that have been performed has reached a threshold value, and controls the parity storage to provide the parity included in the parity storage to the memory device.

### Claim 8 (depends on 6)

The memory controller of claim 6,
further comprising: a queue shared by the recovery controller and the parity module,
wherein the parity module adds information to the queue indicating that the number of exclusive OR operation that have been performed has reached a threshold value, and
wherein the recovery controller obtains the information from the queue and controls the parity storage to provide the parity included in the parity storage to the memory device.

### Claim 9 (depends on 1)

The memory controller of claim 1, wherein the parity includes information used to recover the data when an error occurs as a result of reading the data.

### Claim 10

A memory controller that controls an operation of a memory device, the memory controller comprising:
a parity module configured to perform an exclusive OR operation a threshold number of times using data to be stored in the memory device, and to generate parity according to the exclusive OR operations; and
a recovery controller configured to control the parity module to store the parity in the memory device before storage of the data is completed.

### Claim 11 (depends on 10)

The memory controller of claim 10, wherein the parity module comprises:
an operation component configured to perform the exclusive OR operation;
a counter configured to count the number of times the exclusive OR operation is performed; and
a threshold value storage configured to store the threshold number of times, which determines a time at which the parity is provided to the memory device.

### Claim 12 (depends on 11)

The memory controller of claim 11,
wherein the parity module provides to the recover controller a signal indicating that the number of times the exclusive OR operation has been performed as counted by the counter is equal to the threshold number of times, and
wherein the recovery controller controls the parity module to store the parity in the memory device in response to the signal.

### Claim 13 (depends on 11)

The memory controller of claim 11,
wherein the memory controller further comprises a parity storage configured to temporarily store the parity, and
wherein the recovery controller resets the counter and the parity storage as the parity is provided to the memory device.

### Claim 14 (depends on 10)

The memory controller of claim 10, wherein the parity includes information used to recover the data when an error occurs as a result of reading the data.

### Claim 15

A storage device comprising:
a memory device including a plurality of memory cells; and
a memory controller configured to perform an exclusive OR operation at least once using data to be stored in the memory device, and provide parity generated according to the exclusive OR operation to the memory device based on the number of times the exclusive OR operation has been performed.

### Claim 16 (depends on 15)

The storage device of claim 15,
wherein the memory device includes a plurality of memory chips in which the data is stored and a memory chip in which the parity is stored, and
wherein the memory chip stores the parity as the number of times the exclusive OR operation is performed reaches a threshold value.

### Claim 17 (depends on 16)

The storage device of claim 16, wherein the parity includes information used to recover the data when an error occurs as a result of reading the data.

### Claim 18 (depends on 16)

The storage device of claim 16, wherein the data in the memory cells included in the memory chips are divided into a plurality of chunks.

### Claim 19 (depends on 18)

The storage device of claim 18, wherein the memory controller generates a final value, obtained by performing the exclusive OR operation on each of the chunks of data, as the parity, and stores the generated parity in the selected memory chip.

### Claim 20 (depends on 18)

The storage device of claim 18, wherein, when a chunk in which the number of error bits is greater than a threshold is detected among the chunks, the memory controller performs the exclusive OR operation on data read from remaining chunks and the parity, and recovers the error bits of the detected chunk using a result of the exclusive OR operation.
