# US 2022/0283899 A1 · Error Correction Hardware With Fault Detection

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

- Number: US 2022/0283899 A1
- Document ID: US20220283899A1
- Status: Published application
- Kind: A1
- Application number: 17/824,605
- Filed: 2022-05-25
- Published: 2022-09-08
- Earliest claimed: 2016-08-23
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Saket Jalan; Indu Prathapan; Abhishek Ganapati Karkisaval
- Web page: https://patentgrep.com/patent/US20220283899A1

## CPC

- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0673: {Single storage device}
- G06F 11/1012: {using codes or arrangements adapted for a specific type of error (G06F11/1048 takes precedence)}
- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

Error correction code (ECC) hardware includes write generation (Gen) ECC logic and a check ECC block coupled to an ECC output of a memory circuit with read Gen ECC logic coupled to an XOR circuit that outputs a syndrome signal to a syndrome decode block coupled to a single bit error correction block. A first MUX receives the write data is in series with an input to the write Gen ECC logic or a second MUX receives the read data from the memory circuit in series with an input of the read Gen ECC logic. A cross-coupling connector couples the read data from the memory circuit to a second input of the first MUX or for coupling the write data to a second input of the second MUX. An ECC bit comparator compares an output of the write Gen ECC logic to the read Gen ECC logic output.

## Claims

### Claim 1

A method comprising:
comparing an output of a read generation error correction code (ECC) logic in read path circuitry for a memory circuit to an output of a write generation ECC logic in write path circuitry for the memory circuit; and
detecting, based on the comparing, a fault in the write generation ECC logic or in the read generation ECC logic when the output of the write generation ECC logic does not equal the output of the read generation ECC logic.

### Claim 2 (depends on 8)

The method of claim 8, wherein the comparing and the detecting is performed continuously for every clock cycle.

### Claim 3 (depends on 8)

The method of claim 8, wherein the memory circuit comprises a static random access memory (SRAM), read only memory (ROM), or a flash memory.

### Claim 4 (depends on 1)

The method of claim 1, wherein the memory circuit is a memory for a processor of an Advanced Driver Assistance System (ADAS).

### Claim 5

A method of fault detection for error correction code (ECC) hardware, comprising:
comparing an output of read generation ECC logic to an output of write generation ECC logic for a memory circuit having write generation ECC logic in a write path circuitry and check ECC logic including read generation ECC logic in read path circuitry; and
detecting a fault in the write generation ECC logic or in the read generation ECC logic when a comparison output from the comparing determines a value of the output of the write generation ECC logic does not equal a value of the output of the read generation ECC logic.

### Claim 6 (depends on 5)

The method of claim 5, wherein the read path circuitry further comprises an XOR circuit coupled to an output of the read generation ECC logic that has another input coupled to an ECC output of the memory circuit, and wherein an output of the XOR circuit provides a syndrome output to a syndrome decode block coupled to a single bit error correction (SEC) block and multi-bit error generation circuitry,
further comprising coupling the comparison output as an enable input of multiple bit error detection (MED) circuitry and as an enable input of SEC block.

### Claim 7 (depends on 5)

The method of claim 5, wherein the comparing and the detecting is performed continuously for every clock cycle.

### Claim 8 (depends on 5)

The method of claim 5, wherein the memory circuit comprises a static random access memory (SRAM), read only memory (ROM), or a flash memory.

### Claim 9 (depends on 5)

The method of claim 5, wherein the memory circuit is a memory for a processor of an Advanced Driver Assistance System (ADAS).

### Claim 10

An apparatus, comprising:
circuitry for comparing an output of read generation ECC logic in read path circuitry to an output of write generation ECC logic in write path circuitry of a memory circuit; and
circuitry for detecting a fault in the write generation ECC logic or in the read generation ECC logic when a comparison output from the comparing determines a value of the output of the write generation ECC logic does not equal a value of the output of the read generation ECC logic.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the read path circuitry further comprises an XOR circuit coupled to an output of the read generation ECC logic that has another input coupled to an ECC output of the memory circuit, and wherein an output of the XOR circuit provides a syndrome output to a syndrome decode block coupled to a single bit error correction (SEC) block and multi-bit error generation circuitry,
further comprising coupling the comparison output as an enable input of multiple bit error detection (MED) circuitry and as an enable input of SEC block.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the comparing and the detecting is performed continuously for every clock cycle.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein the memory circuit comprises a static random access memory (SRAM), read only memory (ROM), or a flash memory.

### Claim 14 (depends on 10)

The apparatus of claim 10, wherein the memory circuit is a memory for a processor of an Advanced Driver Assistance System (ADAS).

### Claim 15

An apparatus, comprising:
means for comparing an output of read generation ECC logic in read path circuitry to an output of write generation ECC logic in write path circuitry of a memory circuit; and
means for detecting a fault in the write generation ECC logic or in the read generation ECC logic when a comparison output from the comparing determines a value of the output of the write generation ECC logic does not equal a value of the output of the read generation ECC logic.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the read path circuitry further comprises an XOR circuit coupled to an output of the read generation ECC logic that has another input coupled to an ECC output of the memory circuit, and wherein an output of the XOR circuit provides a syndrome output to a syndrome decode block coupled to a single bit error correction (SEC) block and multi-bit error generation circuitry,
further comprising coupling the comparison output as an enable input of multiple bit error detection (MED) circuitry and as an enable input of SEC block.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein the comparing and the detecting is performed continuously for every clock cycle.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein the memory circuit comprises a static random access memory (SRAM), read only memory (ROM), or a flash memory.

### Claim 19 (depends on 15)

The apparatus of claim 15, wherein the memory circuit is a memory for a processor of an Advanced Driver Assistance System (ADAS).

### Claim 20

An apparatus, comprising:
error correction code (ECC) hardware for a memory circuit having write generation (Gen) ECC logic in a write path circuitry and check ECC logic including read generation ECC logic in read path circuitry;
circuitry for comparing an output of the read generation ECC logic to an output of the write generation ECC logic; and
circuitry for detecting a fault in the write generation ECC logic or in the read generation ECC logic when a comparison output from the comparing determines a value of the output of the write generation ECC logic does not equal a value of the output of the read generation ECC logic.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the read path circuitry further comprises an XOR circuit coupled to an output of the read generation ECC logic that has another input coupled to an ECC output of the memory circuit, and wherein an output of the XOR circuit provides a syndrome output to a syndrome decode block coupled to a single bit error correction (SEC) block and multi-bit error generation circuitry,
further comprising coupling the comparison output as an enable input of multiple bit error detection (MED) circuitry and as an enable input of SEC block.

### Claim 22 (depends on 20)

The apparatus of claim 20, wherein the comparing and the detecting is performed continuously for every clock cycle.

### Claim 23 (depends on 20)

The apparatus of claim 20, wherein the memory circuit comprises a static random access memory (SRAM), read only memory (ROM), or a flash memory.

### Claim 24 (depends on 20)

The apparatus of claim 20, wherein the memory circuit is a memory for a processor of an Advanced Driver Assistance System (ADAS).

### Claim 25 (depends on 10)

The apparatus of claim 10, wherein the circuitry for comparing is a digital comparator.

### Claim 26 (depends on 20)

The apparatus of claim 20, wherein the circuitry for comparing is a digital comparator.

### Claim 27 (depends on 1)

The method of claim 1, wherein when the fault is a single-bit error correcting the single-bit error.

### Claim 28 (depends on 1)

The method of claim 1, wherein when the fault is a multi-bit error sending a multi-bit error interrupt signal.

### Claim 29 (depends on 5)

The method of claim 5, wherein when the fault is a single-bit error correcting the single-bit error.

### Claim 30 (depends on 5)

The method of claim 5 wherein when the fault is a multi-bit error sending a multi-bit error interrupt signal.

### Claim 31 (depends on 10)

The apparatus of claim 10 wherein when the fault is a single-bit error correcting the single-bit error.

### Claim 32 (depends on 10)

The apparatus of claim 10, wherein when the fault is a multi-bit error sending a multi-bit error interrupt signal.

### Claim 33 (depends on 20)

The apparatus of claim 20, wherein when the fault is a single-bit error correcting the single-bit error.

### Claim 34 (depends on 20)

The apparatus of claim 20, wherein when the fault is a multi-bit error sending a multi-bit error interrupt signal.
