# US 2021/0083687 A1 · Memory controllers and memory systems including 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/0083687 A1
- Document ID: US20210083687A1
- Status: Published application
- Kind: A1
- Application number: 16/809,949
- Filed: 2020-03-05
- Published: 2021-03-18
- Earliest claimed: 2019-09-17
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Kijun LEE; Chanki KIM; Sunghye CHO; Myungkyu LEE
- Web page: https://patentgrep.com/patent/US20210083687A1

## CPC

- H03M 13/1575: {Direct decoding, e.g. by a direct determination of the error locator polynomial from syndromes and subsequent analysis or by matrix operations involving syndromes, e.g. for codes with a small minimum Hamming distance}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- H03M 13/1105: {Decoding}
- H03M 13/116: {Quasi-cyclic LDPC [QC-LDPC] codes, i.e. the parity-check matrix being composed of permutation or circulant sub-matrices}
- H03M 13/1168: {wherein the sub-matrices have column and row weights greater than one, e.g. multi-diagonal sub-matrices}
- H03M 13/118: {Parity check matrix structured for simplifying encoding, e.g. by having a triangular or an approximate triangular structure (H03M13/1165 takes precedence)}
- 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)

## Abstract

A memory controller configured to control a memory module, the memory controller including processing circuitry configured to perform ECC decoding on a read codeword from the memory module using a first portion of a parity check matrix to generate a first syndrome and a second syndrome, determine a type of error in the read codeword based on the second syndrome and a decision syndrome, the decision syndrome corresponding to a sum of the first syndrome and the second syndrome, and output a decoding status flag indicating the type of error.

## Claims

### Claim 1

A memory controller configured to control a memory module, the memory controller comprising:
processing circuitry configured to,
perform ECC decoding on a read codeword from the memory module using a first portion of a parity check matrix to generate a first syndrome and a second syndrome,
determine a type of error in the read codeword based on the second syndrome and a decision syndrome, the decision syndrome corresponding to a sum of the first syndrome and the second syndrome, and
output a decoding status flag indicating the type of error.

### Claim 2 (depends on 1)

The memory controller of claim 1, wherein the processing circuitry is configured to:
output the decoding status flag indicating that a user data set of the read codeword includes a correctable error in response to the decision syndrome having a non-zero logic level;
generate a third syndrome indicating a position of the correctable error based on a second portion of the parity check matrix and the read codeword; and
correct the correctable error using the third syndrome to obtain a corrected user data set.

### Claim 3 (depends on 1)

The memory controller of claim 1, wherein the processing circuitry is configured to output the decoding status flag indicating that a user data set of the read codeword does not include errors in response to the decision syndrome having a zero logic level and the second syndrome having a zero logic level.

### Claim 4 (depends on 1)

The memory controller of claim 1, wherein the processing circuitry is configured to output the decoding status flag indicating that a user data set of the read codeword includes uncorrectable errors in response to the decision syndrome having a zero logic level and the second syndrome having a non-zero logic level.

### Claim 5 (depends on 1)

The memory controller of claim 1, wherein the read codeword includes a user data set, meta data associated with the user data set, error locator parity data, first error magnitude parity data and second error magnitude parity data.

### Claim 6 (depends on 5)

The memory controller of claim 5, wherein
the memory module includes a plurality of data chips, a first parity chip and a second parity chip;
the user data set is read from the plurality of data chips;
the meta data and the error locator parity data are read from the first parity chip; and
the first error magnitude parity data and the second error magnitude parity data are read from the second parity chip.

### Claim 7 (depends on 1)

The memory controller of claim 1, wherein the parity check matrix includes a first parity sub matrix, a second parity sub matrix and a third parity sub matrix.

### Claim 8 (depends on 7)

The memory controller of claim 7, wherein
the second parity sub matrix includes a plurality of unit sub matrixes and a plurality of first zero sub matrixes, each of the plurality of unit sub matrixes and the plurality of first zero sub matrixes having p×p elements, the plurality of unit sub matrixes and the plurality of first zero sub matrixes being alternatingly arranged, and p being a natural number greater than one;
the third parity sub matrix includes a plurality of second zero sub matrixes and a plurality of first offset sub matrixes, each of the plurality of second zero sub matrixes and the plurality of first offset sub matrixes having p×p elements, the plurality of second zero sub matrixes and the plurality of first offset sub matrixes being alternatingly arranged;
the first parity sub matrix includes a plurality of second offset sub matrixes and two third zero sub matrixes, the plurality of second offset sub matrixes being different from one another and corresponding to a plurality of data chips included in the memory module; and
the first portion of the parity check matrix includes the second parity sub matrix and the third parity sub matrix.

### Claim 9 (depends on 8)

The memory controller of claim 8, wherein the processing circuitry is configured to:
generate the first syndrome by performing a matrix-multiplication operation on the read codeword and the second parity sub matrix;
generate the second syndrome by performing a matrix-multiplication operation on the read codeword and the third parity sub matrix; and
generate the decision syndrome by summing the first syndrome and the second syndrome.

### Claim 10 (depends on 9)

The memory controller of claim 9, wherein the processing circuitry is configured to generate a third syndrome indicating a position of a correctable error by performing a matrix-multiplication operation on the read codeword and the first parity sub matrix in response to the decision syndrome having a non-zero logic level.

### Claim 11 (depends on 1)

The memory controller of claim 1, wherein the processing circuitry is configured to:
perform ECC encoding on a user data set and meta data to generate error locator parity data, first error magnitude parity data and second error magnitude parity data using a parity generation matrix; and
output an output codeword to the memory module, the output codeword including the user data set, the meta data, the error locator parity data, the first error magnitude parity data and the second error magnitude parity data.

### Claim 12 (depends on 11)

The memory controller of claim 11, wherein the parity generation matrix includes a first parity sub matrix, a second parity sub matrix and a third parity sub matrix.

### Claim 13 (depends on 12)

The memory controller of claim 12, wherein the processing circuitry is configured to:
generate the error locator parity data by performing ECC encoding on the user data set and the meta data using the first parity sub matrix;
generate the first error magnitude parity data by performing a matrix-multiplication operation on the second parity sub matrix, the user data set, the meta data and the error locator parity data; and
generate the second error magnitude parity data by performing a matrix-multiplication operation on the third parity sub matrix, the user data set, the meta data and the error locator parity data.

### Claim 14 (depends on 12)

The memory controller of claim 12, wherein
the second parity sub matrix includes a plurality of unit sub matrixes and a plurality of first zero sub matrixes, each of the plurality of unit sub matrixes and the plurality of first zero sub matrixes having p×p elements, the plurality of unit sub matrixes and the plurality of first zero sub matrixes being alternatingly arranged, and p being a natural number greater than one;
the third parity sub matrix includes a plurality of second zero sub matrixes and a plurality of first offset sub matrixes, each of the plurality of second zero sub matrixes and the plurality of first offset sub matrixes having p×p elements, the plurality of second zero sub matrixes and the plurality of first offset sub matrixes being alternatingly repeated; and
the first parity sub matrix includes a plurality of second offset sub matrixes and two third zero sub matrixes, the plurality of second offset sub matrixes being different from one another and corresponding to a plurality of data chips included in the memory module.

### Claim 15

A memory system comprising:
a memory module; and
a memory controller including processing circuitry, the processing circuitry configured to,
perform ECC decoding on a read codeword from the memory module using a first portion of a parity check matrix to generate a first syndrome and a second syndrome,
determine a type of error in the read codeword based on the second syndrome and a decision syndrome, the decision syndrome corresponding to a sum of the first syndrome and the second syndrome, and
output a decoding status flag indicating the type of error.

### Claim 16 (depends on 15)

The memory system of claim 15, wherein the processing circuitry is configured to:
output the decoding status flag indicating that a user data set of the read codeword includes a correctable error in response to the decision syndrome having a non-zero logic level;
generate a third syndrome indicating a position of the correctable error based on a second portion of the parity check matrix and the read codeword; and
correct the correctable error using the third syndrome to obtain a corrected user data set.

### Claim 17 (depends on 15)

The memory system of claim 15, wherein the processing circuitry is configured to output the decoding status flag indicating that a user data set of the read codeword does not include errors in response to the decision syndrome having a zero logic level and the second syndrome having a zero logic level.

### Claim 18 (depends on 15)

The memory system of claim 15, wherein the processing circuitry is configured to output the decoding status flag indicating that a user data set of the read codeword includes uncorrectable errors in response to the decision syndrome having a zero logic level and the second syndrome having a non-zero logic level.

### Claim 19 (depends on 15)

The memory system of claim 15, wherein
the parity check matrix includes a first parity sub matrix, a second parity sub matrix and a third parity sub matrix;
the second parity sub matrix includes a plurality of unit sub matrixes and a plurality of first zero sub matrixes, each of the plurality of unit sub matrixes and the plurality of first zero sub matrixes having p×p elements, the plurality of unit sub matrixes and the plurality of first zero sub matrixes being alternatingly arranged, and p being a natural number greater than one;
the third parity sub matrix includes a plurality of second zero sub matrixes and a plurality of first offset sub matrixes, each of the plurality of second zero sub matrixes and the plurality of first offset sub matrixes having p×p elements, the plurality of second zero sub matrixes and the plurality of first offset sub matrixes being alternatingly arranged;
the first parity sub matrix includes a plurality of second offset sub matrixes and two third zero sub matrixes, the plurality of second offset sub matrixes being different from one another and corresponding to a plurality of data chips included in the memory module; and
the first portion of the parity check matrix includes the second parity sub matrix and the third parity sub matrix.

### Claim 20

A memory controller configured to control a memory module, the memory controller comprising:
processing circuitry configured to,
perform ECC encoding on a user data set and meta data to generate error locator parity data, first error magnitude parity data and second error magnitude parity data using a parity generation matrix,
output an output codeword to the memory module, the output codeword including the user data set, the meta data, the error locator parity data, the first error magnitude parity data and the second error magnitude parity data,
perform ECC decoding on a read codeword from the memory module using a first portion of a parity check matrix to generate a first syndrome and a second syndrome,
determine a type of error in the read codeword based on the second syndrome and a decision syndrome, the decision syndrome corresponding to a sum of the first syndrome and the second syndrome, and
output a decoding status flag indicating the type of error.
