# US 12,748,660 B1 · Error-correcting and error-detecting parity-check matrix to store a known bad data bit in a memory system

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

- Number: US 12,748,660 B1
- Document ID: US12748660B1
- Status: Granted
- Kind: B1
- Application number: 18/760,908
- Filed: 2024-07-01
- Granted: 2026-09-29
- Earliest claimed: 2024-07-01
- Assignees: Synopsys, Inc.
- Applicants: Synopsys, Inc.
- Inventors: Abhishek Kumar Shivakumar; Biswanath Tayenjam
- Web page: https://patentgrep.com/patent/US12748660B1

## CPC

- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system includes: an error correction code (ECC) memory controller configured to read data stored in a memory, the data including a read codeword including system data and parity data, the ECC memory controller including an ECC decoder configured to: compute a syndrome based on the read codeword using a parity-check matrix including a plurality of columns, wherein a first group of syndromes calculated by the parity-check matrix in a case where the read codeword has a double-bit error and a virtually stored known bad data bit is set and a second group of syndromes calculated by the parity-check matrix in a case where the read codeword has a single-bit error or zero errors are disjoint; and in a case where the read codeword received has a double bit error and a virtually stored known bad data bit, detect an error and output an indication of detection of the error.

## Claims

### Claim 1

A system comprising:
a memory; and
an error correction code (ECC) memory controller configured to read data stored in the memory, the data comprising a read codeword comprising read system data and read parity data, the ECC memory controller comprising an ECC decoder configured to:
compute a syndrome based on the read codeword using a parity-check matrix comprising a plurality of columns, wherein a first group of syndromes calculated by the parity-check matrix in a case where the read codeword has a double-bit error and a virtually stored known bad data bit is set and a second group of syndromes calculated by the parity-check matrix in a case where the read codeword has a single-bit error or zero errors are disjoint; and
in a case where the read codeword received has a double bit error and a virtually stored known bad data bit, detect an error in the data and output an indication of detection of the error.

### Claim 2 (depends on 1)

The system of claim 1, wherein each of the plurality of columns of the parity-check matrix comprises at least one non-zero value,
wherein the plurality of columns of the parity-check matrix are unique, and
wherein each of the plurality of columns is different from an XOR-sum of any two columns of the parity-check matrix.

### Claim 3 (depends on 1)

The system of claim 1, wherein the ECC memory controller further comprises an ECC encoder configured to:
compute a write codeword based on input system data and an input known bad data bit using a generator matrix, the ECC encoder virtually storing the input known bad data bit by including the input system data and write parity data computed by the generator matrix in the write codeword and without including the input known bad data bit in the write codeword, and
wherein the ECC memory controller is configured to write the write codeword to the memory.

### Claim 4 (depends on 1)

The system of claim 1, wherein the ECC memory controller further comprises an ECC encoder configured to:
compute a write parity data based on input system data and an input known bad data bit using a generator matrix; and
generate a write codeword having the input system data and the write parity data to virtually store the input known bad data bit, and
wherein the ECC memory controller is configured to write the write codeword to the memory.

### Claim 5 (depends on 1)

The system of claim 1, wherein the memory comprises dynamic random-access memory.

### Claim 6 (depends on 1)

The system of claim 1, wherein the memory controller is integrated in a system-on-chip.

### Claim 7 (depends on 1)

The system of claim 1, wherein the ECC decoder comprises a read-only memory storing the parity-check matrix.

### Claim 8

A non-transitory computer-readable medium comprising stored instructions, which when executed by a processor, cause an error correction code (ECC) memory controller to read data stored in a memory, the data comprising a read codeword comprising read system data and read parity data, wherein the stored instructions further cause the ECC memory controller to:
compute a syndrome based on the read codeword using a parity-check matrix comprising a plurality of columns, wherein a first group of syndromes calculated by the parity-check matrix in a case where the read codeword has a double-bit error and a virtually stored known bad data bit is set and a second group of syndromes calculated by the parity-check matrix in a case where the read codeword has a single-bit error or zero errors are disjoint; and
in a case where the read codeword received has a double bit error and a virtually stored known bad data bit, detect an error in the data and output an indication of detection of the error.

### Claim 9 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein each of the plurality of columns of the parity-check matrix comprises at least one non-zero value,
wherein the plurality of columns of the parity-check matrix are unique, and
wherein each of the plurality of columns is different from an XOR-sum of any two columns of the parity-check matrix.

### Claim 10 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the ECC memory controller further comprises an ECC encoder configured to:
compute a write codeword based on input system data and an input known bad data bit using a generator matrix, the ECC encoder virtually storing the input known bad data bit by including the input system data and write parity data computed by the generator matrix in the write codeword and without including the input known bad data bit in the write codeword, and
wherein the ECC memory controller is configured to write the write codeword to the memory.

### Claim 11 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the ECC memory controller further comprises an ECC encoder configured to:
compute a write parity data based on input system data and an input known bad data bit using a generator matrix; and
generate a write codeword having the input system data and the write parity data to virtually store the input known bad data bit, and
wherein the ECC memory controller is configured to write the write codeword to the memory.

### Claim 12 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the memory comprises a dynamic random-access memory.

### Claim 13 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the ECC memory controller is integrated into a system-on-chip.

### Claim 14 (depends on 8)

The non-transitory computer-readable medium of claim 8, wherein the ECC memory controller comprises a read-only memory storing the parity-check matrix.
