# US 2024/0202086 A1 · Circuits, systems, and methods for ecc fault detection

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

- Number: US 2024/0202086 A1
- Document ID: US20240202086A1
- Status: Published application
- Kind: A1
- Application number: 18/065,813
- Filed: 2022-12-14
- Published: 2024-06-20
- Earliest claimed: 2022-12-14
- Assignees: Renesas Electronics Corporation
- Applicants: Renesas Electronics Corporation
- Inventors: Mohamed SOUBHI
- Web page: https://patentgrep.com/patent/US20240202086A1

## CPC

- G06F 11/2215: {to test error correction or detection circuits}
- H03M 13/015: {Simulation or testing of codes, e.g. bit error rate [BER] measurements}
- G11C 29/42: using error correcting codes [ECC] or parity check
- 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)
- 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)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A detection circuit for detecting faulty operation of an error correction code (ECC) decoder that is configured for diagnosing whether an error has occurred in input data to the ECC decoder, wherein the ECC decoder is further configured for outputting an error detection signal indicative of whether the error has been detected and potentially corrected by the ECC decoder and output data based on the input data, and wherein the detection circuit includes a first stage configured to generate a first check signal indicative of whether there is a mismatch between the input data and the output data of the ECC decoder, and a second stage configured to generate a second check signal indicative of whether faulty operation of the ECC decoder has been detected based on the first check signal and the error detection signal of the ECC decoder.

## Claims

### Claim 1

A detection circuit for detecting faulty operation of an error correction code (ECC) decoder that is configured for diagnosing whether an error has occurred in input data to the ECC decoder, wherein the ECC decoder is further configured for outputting an error detection signal indicative of whether the error has been detected and potentially corrected by the ECC decoder and output data based on the input data, and wherein the detection circuit comprises:
a first stage configured to generate a first check signal indicative of whether there is a mismatch between the input data and the output data of the ECC decoder; and
a second stage configured to generate a second check signal indicative of whether faulty operation of the ECC decoder has been detected based on the first check signal and the error detection signal of the ECC decoder.

### Claim 2 (depends on 1)

The detection circuit according claim 1,
wherein the first stage is configured to generate the first check signal indicating that there is the mismatch between the input data and the output data of the ECC decoder if the input data is different from the output data.

### Claim 3 (depends on 1)

The detection circuit according to claim 1,
wherein the mismatch between the input data and the output data of the ECC decoder indicates that the input data has been modified by the ECC decoder.

### Claim 4 (depends on 1)

The detection circuit according to claim 1,
wherein the second stage is configured to generate the second check signal indicating that faulty operation of the ECC decoder has been detected if:
the first check signal indicates that there is the mismatch between the input data and the output data of the ECC decoder while the error detection signal of the ECC decoder indicates that no error has been detected by the ECC decoder, or
the first check signal indicates that there is no mismatch between the input data and the output data of the ECC decoder while the error detection signal of the ECC decoder indicates that the error has been detected by the ECC decoder.

### Claim 5 (depends on 1)

The detection circuit according to claim 1,
wherein the ECC decoder comprises a data correction component configured for correcting the error detected by the ECC decoder, and
wherein the second check signal generated by the second stage indicates that the data correction component of the ECC decoder is faulty, if the first check signal indicates that there is the mismatch between the input data and the output data of the ECC decoder while the error detection signal of the ECC decoder indicates that no error has been detected by the ECC decoder.

### Claim 6 (depends on 1)

The detection circuit according to claim 1,
wherein the first stage comprises:
a plurality of XOR gates that are configured to take respective parts of the input data and the output data of the ECC decoder as input; and
an OR gate coupled to the plurality of XOR gates that is configured to generate the first check signal based on outputs of the plurality of XOR gates.

### Claim 7 (depends on 6)

The detection circuit according to claim 6,
wherein the input data and the output data each is represented by a sequence of bits, and
wherein a count of bits of the output data equals a count of the plurality of XOR gates.

### Claim 8 (depends on 7)

The detection circuit according to claim 7,
wherein the generation of the first check signal comprises bit-wise comparing the input data with the output data using the plurality of XOR gates.

### Claim 9 (depends on 1)

The detection circuit according to claim 1,
wherein the second stage comprises an XOR gate that is configured to generate the second check signal indicative of whether faulty operation of the ECC decoder has been detected based on the first check signal and the error detection signal of the ECC decoder.

### Claim 10 (depends on 1)

The detection circuit according to claim 1,
wherein the detection circuit further comprises a self-diagnosis module configured for testing whether the detection circuit itself is faulty.

### Claim 11

The detection circuit according to 10,
wherein the self-diagnosis module comprises at least one inverter configured for flipping one bit of the input data or the output data before input to the plurality of XOR gates.

### Claim 12 (depends on 1)

The detection circuit according to claim 1,
wherein the error in the input data includes an error involving at least one data bit.

### Claim 13 (depends on 1)

The detection circuit according claim 1,
wherein at least one of the first check signal or the second check signal is a binary signal.

### Claim 14 (depends on 1)

The detection circuit according to claim 1,
wherein the second check signal indicative of whether faulty operation of the ECC decoder has been detected is output for further error processing.

### Claim 15 (depends on 1)

A system comprising:
a transmitting module for transmitting input data;
an error correction code (ECC) decoder that is configured for diagnosing whether an error has occurred in the input data,
wherein the ECC decoder is further configured for outputting an error detection signal indicative of whether the error has been detected and potentially corrected by the ECC decoder and output data based on the input data; and
the detection circuit for detecting faulty operation of the ECC decoder according to claim 1.

### Claim 16 (depends on 15)

The system according to claim 15, wherein the transmitting module relates to a memory.

### Claim 17

A method for detecting faulty operation of an error correction code (ECC) decoder that is configured for diagnosing whether an error has occurred in input data to the ECC decoder, wherein the ECC decoder is further configured for outputting an error detection signal indicative of whether the error has been detected and potentially corrected by the ECC decoder and output data based on the input data, and wherein the method comprises:
generating a first check signal indicative of whether there is a mismatch between the input data and the output data of the ECC decoder; and
generating a second check signal indicative of whether faulty operation of the ECC decoder has been detected based on the first check signal and the error detection signal of the ECC decoder.

### Claim 18 (depends on 17)

The method according to claim 17,
wherein the second check signal is generated to indicate that faulty operation of the ECC decoder has been detected, if there is the mismatch between the input data and the output data of the ECC decoder while the error detection signal of the ECC decoder indicates that no error has been detected by the ECC decoder, or if there is no mismatch between the input data and the output data of the ECC decoder while the error detection signal of the ECC decoder indicates that the error has been detected by the ECC decoder.

### Claim 19 (depends on 18)

The method according to claim 18,
wherein the ECC decoder comprises a data correction component configured for correcting the error detected by the ECC decoder, and
wherein the method further comprises, if there is the mismatch between the input data and the output data of the ECC decoder while the error detection signal of the ECC decoder indicate that no error has been detected by the ECC decoder, determining that the data correction component of the ECC decoder is faulty.

### Claim 20 (depends on 17)

A non-transitory computer-readable storage medium storing a program that causes a processor to carry out the method according to claim 17.
