# US 12,730,698 B2 · Error detection and correction method and circuit

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

- Number: US 12,730,698 B2
- Document ID: US12730698B2
- Status: Granted
- Kind: B2
- Application number: 18/948,491
- Filed: 2024-11-15
- Published: 2025-02-27
- Granted: 2026-09-08
- Earliest claimed: 2021-07-06
- Assignees: Upbeat Technology Co., Ltd
- Applicants: UPBEAT TECHNOLOGY Co., Ltd
- Inventors: Chung-Chieh Chen; Da-Ming Chiang; Shuo-Hong Hung; Bing-Chen Wu
- Web page: https://patentgrep.com/patent/US12730698B2

## CPC

- G06F 11/0757: {by exceeding a time limit, i.e. time-out, e.g. watchdogs}
- G06F 11/0721: {within a central processing unit [CPU]}
- G06F 11/0772: {Means for error signaling, e.g. using interrupts, exception flags, dedicated error registers}
- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- H03K 3/0372: {of the primary-secondary type}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H03K: PULSE TECHNIQUE (measuring pulse characteristics G01R; modulating sinusoidal oscillations with pulses H03C; transmission of digital information H04L; discriminator circuits detecting phase difference between two signals by counting or integrating cycles of oscillation H03D3/04; automatic control, starting, synchronisation or stabilisation of generators of electronic oscillations or pulses where the type of generator is irrelevant or unspecified H03L; coding, decoding or code conversion, in general H03M)

## Abstract

An error detection and correction method is provided. The method includes: when a pipeline stage error is detected, correcting the pipeline stage error; when it is determined that a plurality of cascaded pipeline stage circuits have continuous pipeline stage errors, stopping all operations of all pipeline stage circuits; flushing the data of the pipeline stage circuits; and re-processing the data of the pipeline stage circuits at a downclocked frequency.

## Claims

### Claim 1

An error detection and correction circuit, comprising:
a master latch circuit configured to receive an input data and generate a sampling data;
an error detection circuit coupled to the master latch circuit to compare the input data with the sampling data to generate a comparison result;
a multiplexer coupled to the master latch circuit and the error detection circuit; and
a slave latch circuit coupled to the multiplexer to receive a multiplexer output from the multiplexer and generate an output data,
wherein, the multiplexer determines whether to output the input data or the sampling data to the slave latch circuit according to the comparison result.

### Claim 2 (depends on 1)

The error detection and correction circuit according to claim 1, wherein, when the input data is identical to the sampling data, the multiplexer outputs the sampling data to the slave latch circuit; and, when the input data is different from the sampling data, the multiplexer outputs the input data to the slave latch circuit.

### Claim 3 (depends on 1)

The error detection and correction circuit according to claim 1, wherein the error detection and correction circuit uses a high threshold voltage device.

### Claim 4 (depends on 1)

The error detection and correction circuit according to claim 1, further comprising:
a detection enabling circuit coupled to the error detection circuit to enable or disable the error detection circuit; and
a frequency division circuit coupled to the error detection circuit to generate a plurality of clock frequency division signals according to a clock signal and output the clock frequency division signals to the error detection circuit, the master latch circuit and the slave latch circuit.

### Claim 5 (depends on 1)

The error detection and correction circuit according to claim 1, wherein,
the master latch circuit and the slave latch circuit further receive a setting signal, the master latch circuit generates the sampling data according to the setting signal, and the slave latch circuit generates the output data; or,
the master latch circuit and the slave latch circuit further receive a reset signal, the master latch circuit generates the sampling data according to the setting signal, and the slave latch circuit generates the output data; or
the master latch circuit and the slave latch circuit further receive the setting signal and the reset signal, the master latch circuit generates the sampling data according to the setting signal and the reset signal, and the slave latch circuit generates the output data.

### Claim 6 (depends on 1)

The error detection and correction circuit according to claim 1, further comprising an error state counter coupled to the error detection circuit, wherein, when the input data is different from the sampling data, in response to the comparison result of the error detection circuit, the value of the error state counter is increased.

### Claim 7

An error detection and correction system, comprising:
a pipeline circuit, operated at a first operating frequency, the pipeline circuit comprising: a first pipeline stage circuit, a first error detection and correction circuit coupled to the first pipeline stage circuit, a second pipeline stage circuit coupled to the first error detection and correction circuit, and a second error detection and correction circuit coupled to the second pipeline stage circuit, wherein each of the first and second error detection and correction circuits comprises: a master latch circuit configured to receive an input data and generate a sampling data; an error detection circuit coupled to the master latch circuit to compare the input data with the sampling data to generate a comparison result; a multiplexer coupled to the master latch circuit and the error detection circuit; and a slave latch circuit coupled to the multiplexer to receive a multiplexer output from the multiplexer and generate an output data, wherein, the multiplexer outputs the input data or the sampling data to the slave latch circuit according to the comparison result,
a system error detection and correction circuit coupled to the pipeline circuit, wherein the system error detection and correction circuit comprises: a plurality of error state reception units, each receiving an error state signal from the error detection circuit; a plurality of continuous error state detection units coupled to adjacent error state reception units with continuous stages; a global system error detection unit coupled to the continuous error state detection units; and an interruption controller coupled to the global system error detection unit to interrupt and re-activate the pipeline circuit;
when the continuous error state detection units detect continuous error states, the continuous error state detection units notify the global system error detection unit, the global system error detection unit stops all the operations of all pipeline stage circuits through the interruption controller and flushes the data of the pipeline stage circuits, and the pipeline circuit is re-activated at a second operating frequency, wherein the second operating frequency is lower than first operating frequency; and
when the input data is identical to the sampling data, the multiplexer outputs the sampling data to the slave latch circuit; and, when the input data is different from the sampling data, the multiplexer outputs the input data to the slave latch circuit.

### Claim 8 (depends on 7)

The error detection and correction system according to claim 7, wherein,
each of the first and second error detection and correction circuits further comprises: a frequency division circuit coupled to the error detection circuit to output a plurality of clock frequency division signals according to a clock signal and output the clock frequency division signals to the error detection circuit, the master latch circuit and the slave latch circuit;
the master latch circuit and the slave latch circuit further receive a setting signal, the master latch circuit generates the sampling data according to the setting signal, and the slave latch circuit generates the output data; or,
the master latch circuit and the slave latch circuit further receive a reset signal, the master latch circuit generates the sampling data according to the setting signal, and the slave latch circuit generates the output data; or
the master latch circuit and the slave latch circuit further receive the setting signal and the reset signal, the master latch circuit generates the sampling data according to the setting signal and the reset signal, and the slave latch circuit generates the output data.
