# US 2021/0174888 A1 · Built-in self-testing and failure correction circuitry

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

- Number: US 2021/0174888 A1
- Document ID: US20210174888A1
- Status: Published application
- Kind: A1
- Application number: 16/705,038
- Filed: 2019-12-05
- Published: 2021-06-10
- Earliest claimed: 2019-12-05
- Assignees: NXP USA, Inc.
- Applicants: NXP USA, Inc.
- Inventors: Nidhi Sinha; Garima Sharda; Dinesh Joshi; Akshay Pathak
- Web page: https://patentgrep.com/patent/US20210174888A1

## CPC

- G11C 29/16: using microprogrammed units, e.g. state machines
- G11C 29/38: Response verification devices
- G11C 29/12015: {comprising clock generation or timing circuitry}
- G11C 29/20: using counters or linear-feedback shift registers [LFSR]
- G11C 29/44: Indication or identification of errors, e.g. for repair
- H03K 5/1534: Transition or edge detectors
- G11C: STATIC STORES (semiconductor memory devices H10B)
- 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

A system-on-chip (SoC) includes a processor, a built-in self-testing (BIST) circuitry, and an adaptive masking circuitry. The processor generates a sweep enable (SWEN) signal to initiate a self-testing operation of the SoC. The BIST circuitry receives the SWEN signal and generates a set of sweep events, such that a transition of the processor from a low power (LP) mode to an active mode is initiated based on the generation of each sweep event. The BIST circuitry further receives a status signal, and identifies a subset of sweep events at which the transition of the processor from the LP mode to the active mode failed, for generating sweep failure data. The adaptive masking circuitry receives the sweep failure data and generates a mask signal, to prevent a transition of the first processor from the LP mode to the active mode, during a non-testing operation of the SoC.

## Claims

### Claim 1

A system-on-chip (SoC), comprising:
a first processor that generates a sweep enable (SWEN) signal to initiate a self-testing operation of the SoC;
a built-in self-testing (BIST) circuitry, comprising:
a sweep control circuitry that is connected to the first processor for receiving the SWEN signal and generates a set of sweep events, wherein a transition of the first processor from a low power (LP) mode to an active mode during the self-testing operation is initiated based on the generation of each sweep event of the set of sweep events; and
a diagnostic support circuitry that is connected to the sweep control circuitry for receiving the set of sweep events, further receives a status signal, identifies, based on the status signal, a subset of sweep events from the set of sweep events at which the transition of the first processor from the LP mode to the active mode failed, and generates sweep failure data, wherein the status signal indicates whether the first processor is reset.

### Claim 2 (depends on 1)

The SoC of claim 1, further comprising:
a watchdog timer that generates the status signal, and further generates a reset signal for resetting the first processor, wherein the reset signal is generated when a final count of the watchdog timer exceeds a first threshold count of the watchdog timer, and wherein when the reset signal is generated, the status signal indicates that the first processor is reset.

### Claim 3 (depends on 1)

The SoC of claim 1, wherein the first processor further generates a plurality of software trigger events (SWTEs), and wherein a time duration of each SWTE of the plurality of SWTEs is equal to a maximum (MAX) duration of the first processor to remain in the LP mode during the self-testing operation, before transitioning to the active mode.

### Claim 4 (depends on 3)

The SoC of claim 3, further comprising:
an LP protocol controller that is connected to the BIST circuitry for receiving the set of sweep events and generates a transition signal, wherein when the transition signal is generated, the transition of the first processor from the LP mode to the active mode is initiated; and
a reset circuitry for resetting the SoC, wherein the LP protocol controller and the reset circuitry generate first and second hardware trigger events (HWTEs), respectively, and wherein a time duration of each of the first and second HWTEs is equal to the MAX duration.

### Claim 5 (depends on 4)

The SoC of claim 4, wherein the sweep control circuitry comprises:
a clock multiplexer (MUX) that receives a plurality of clock signals and a select signal, and outputs a first clock signal of the plurality of clock signals based on the select signal;
a first sequential circuit that is connected to the clock MUX and the first processor for receiving the first clock signal and a MAX count that indicates a total number of sweep events of the set of sweep events, respectively, further receives a first pulse signal and a first control signal, and generates (i) a first set of counts based on the first clock and first pulse signals and the MAX count, and (ii) a sweep complete (SWC) signal based on the first control signal and the first set of counts, wherein the SWC signal indicates whether a final sweep event of the set of sweep events is generated; and
a second sequential circuit that (i) is connected to the clock MUX for receiving the first clock signal, the first sequential circuit for receiving the first set of counts and the SWC signal, the LP protocol controller and the reset circuitry for receiving the first and second HWTEs, respectively, and the first processor for receiving the plurality of SWTEs, (ii) further receives the SWEN signal, and (iii) generates the first pulse signal based on the SWC signal, the SWEN signal, the plurality of SWTEs, and the first and second HWTEs, and the set of sweep events based on the first clock and first pulse signals and the first set of counts.

### Claim 6 (depends on 5)

The SoC of claim 5, wherein the first sequential circuit comprises:
a first counter that is connected to the second sequential circuit for receiving the first pulse signal, further receives the first clock signal and the MAX count, and generates the first set of counts, wherein the first counter is incremented based on the first pulse signal to generate the first set of counts, and wherein the MAX count is a second threshold count of the first counter;
a first comparator that is connected to the first counter for receiving each count of the first set of counts, further receives the MAX count, and generates a first comparison signal on comparing each count of the first set of counts and the MAX count;
a first logic gate that is connected to the first comparator for receiving the first comparison signal, further receives the first control signal, and generates a first intermediate signal; and
a flip-flop that is connected to the first logic gate for receiving the first intermediate signal and generates the SWC signal.

### Claim 7 (depends on 5)

The SoC of claim 5, wherein the second sequential circuit comprises:
an SWTE selector that is connected to the first processor for receiving the plurality of SWTEs and outputting a first SWTE of the plurality of SWTEs;
an HWTE selector that is connected to the LP protocol controller and the reset circuitry for receiving the first and second HWTEs, respectively, and outputting a third HWTE, wherein the third HWTE is one of the first and second HWTEs;
a rising edge detector that is connected to the SWTE and HWTE selectors for receiving one of the first SWTE and the third HWTE, and generates a second pulse signal based on one of the first SWTE and the third HWTE;
a second logic gate that is connected to the rising edge detector and the first sequential circuit for receiving the second pulse and SWC signals, respectively, further receives the SWEN signal, and generates the first pulse signal;
a second counter that is connected to the second logic gate for receiving the first pulse signal, further receives the first clock signal and the set of sweep events, and generates a second set of counts, wherein the second counter is incremented based on the first clock signal to generate the second set of counts, and wherein the second counter is reset at each sweep event of the set of sweep events; and
a second comparator that is connected to the second counter for receiving the second set of counts, further receives the first set of counts, and generates the set of sweep events based on a comparison of each count of the first and second sets of counts.

### Claim 8 (depends on 5)

The SoC of claim 5, wherein each sweep event of the set of sweep events is generated with one of a first sweep granularity and a second sweep granularity, wherein the first sweep granularity is based on one of a positive clock edge and a negative clock edge of the first clock signal, and the second sweep granularity is based on both the positive and negative clock edges of the first clock signal, and wherein when the set of sweep events is generated with the second sweep granularity, a duration of each sweep event is halved as compared to a duration of each sweep event when the set of sweep events is generated with the first sweep granularity.

### Claim 9

A system-on-chip (SoC), comprising:
a first processor that generates a sweep enable (SWEN) signal to initiate a self-testing operation of the SoC;
a built-in self-testing and failure correction (BISTFC) circuitry, comprising:
a built-in self-testing (BIST) circuitry, comprising:
a sweep control circuitry that is connected to the first processor for receiving the SWEN signal and generates a set of sweep events, wherein a transition of the first processor from a low power (LP) mode to an active mode during the self-testing operation is initiated based on the generation of each sweep event of the set of sweep events; and
a diagnostic support circuitry that is connected to the sweep control circuitry for receiving the set of sweep events, further receives a status signal, identifies, based on the status signal, a subset of sweep events from the set of sweep events at which the transition of the first processor from the LP mode to the active mode failed, and generates sweep failure data, wherein the status signal indicates whether the first processor is reset; and
an adaptive masking circuitry that is connected to the diagnostic support circuitry for receiving the sweep failure data and generating a mask signal based on the sweep failure data, wherein the mask signal prevents a transition of the first processor from the LP mode to the active mode, during a non-testing operation of the SoC.

### Claim 10 (depends on 9)

The SoC of claim 9, further comprising:
a watchdog timer that generates the status signal, and further generates a reset signal for resetting the first processor, wherein the reset signal is generated when a final count of the watchdog timer exceeds a first threshold count of the watchdog timer, and wherein when the reset signal is generated, the status signal indicates that the first processor is reset.

### Claim 11 (depends on 9)

The SoC of claim 9, wherein the first processor further generates a plurality of software trigger events (SWTEs), and wherein a time duration of each SWTE of the plurality of SWTEs is equal to a maximum (MAX) duration of the first processor to remain in the LP mode during the self-testing operation, before transitioning to the active mode.

### Claim 12 (depends on 11)

The SoC of claim 11, further comprising:
an LP protocol controller that is connected to the BIST circuitry and the adaptive masking circuitry for receiving the set of sweep events and the mask signal, respectively, and generates a transition signal based on (i) the set of sweep events during the self-testing operation and (ii) the mask signal during the non-testing operation, wherein when the transition signal is generated, the transition of the first processor from the LP mode to the active mode is initiated; and
a reset circuitry for resetting the SoC, wherein the LP protocol controller and the reset circuitry generate first and second hardware trigger events (HWTEs), respectively, and wherein a time duration of each of the first and second HWTEs is equal to the MAX duration.

### Claim 13 (depends on 12)

The SoC of claim 12, wherein the sweep control circuitry comprises:
a clock multiplexer (MUX) that receives a plurality of clock signals and a select signal, and outputs a first clock signal of the plurality of clock signals based on the select signal;
a first sequential circuit that is connected to the clock MUX and the first processor for receiving the first clock signal and a MAX count that indicates a total number of sweep events of the set of sweep events, respectively, further receives a first pulse signal and a first control signal, and generates (i) a first set of counts based on the first clock and first pulse signals and the MAX count, and (ii) a sweep complete (SWC) signal based on the first control signal and the first set of counts, wherein the SWC signal indicates whether a final sweep event of the set of sweep events is generated; and
a second sequential circuit that (i) is connected to the clock MUX for receiving the first clock signal, the first sequential circuit for receiving the first set of counts and the SWC signal, the LP protocol controller and the reset circuitry for receiving the first and second HWTEs, respectively, and the first processor for receiving the plurality of SWTEs, (ii) further receives the SWEN signal, and (iii) generates the first pulse signal based on the SWC signal, the SWEN signal, the plurality of SWTEs, and the first and second HWTEs, and the set of sweep events based on the first clock and first pulse signals and the first set of counts.

### Claim 14 (depends on 13)

The SoC of claim 13, wherein the first sequential circuit comprises:
a first counter that is connected to the second sequential circuit for receiving the first pulse signal, further receives the first clock signal and the MAX count, and generates the first set of counts, wherein the first counter is incremented based on the first pulse signal to generate the first set of counts, and wherein the MAX count is a second threshold count of the first counter;
a first comparator that is connected to the first counter for receiving each count of the first set of counts, further receives the MAX count, and generates a first comparison signal on comparing each count of the first set of counts and the MAX count;
a first logic gate that is connected to the first comparator for receiving the first comparison signal, further receives the first control signal, and generates a first intermediate signal; and
a flip-flop that is connected to the first logic gate for receiving the first intermediate signal and generates the SWC signal.

### Claim 15 (depends on 13)

The SoC of claim 13, wherein the second sequential circuit comprises:
an SWTE selector that is connected to the first processor for receiving the plurality of SWTEs and outputting a first SWTE of the plurality of SWTEs;
an HWTE selector that is connected to the LP protocol controller and the reset circuitry for receiving the first and second HWTEs, respectively, and outputting a third HWTE, wherein the third HWTE is one of the first and second HWTEs;
a rising edge detector that is connected to the SWTE and HWTE selectors for receiving one of the first SWTE and the third HWTE, and generates a second pulse signal based on one of the first SWTE and the third HWTE;
a second logic gate that is connected to the rising edge detector and the first sequential circuit for receiving the second pulse and SWC signals, respectively, further receives the SWEN signal, and generates the first pulse signal;
a second counter that is connected to the second logic gate for receiving the first pulse signal, further receives the first clock signal and the set of sweep events, and generates a second set of counts, wherein the second counter is incremented based on the first clock signal to generate the second set of counts, and wherein the second counter is reset at each sweep event of the set of sweep events; and
a second comparator that is connected to the second counter for receiving the second set of counts, further receives the first set of counts, and generates the set of sweep events based on a comparison of each count of the first and second sets of counts.

### Claim 16 (depends on 13)

The SoC of claim 13, wherein each sweep event of the set of sweep events is generated with one of a first sweep granularity and a second sweep granularity, wherein the first sweep granularity is based on one of a positive clock edge and a negative clock edge of the first clock signal, and the second sweep granularity is based on both the positive and negative clock edges of the first clock signal, and wherein when the set of sweep events is generated with the second sweep granularity, a duration of each sweep event is halved as compared to a duration of each sweep event when the set of sweep events is generated with the first sweep granularity.

### Claim 17

A method for testing a system-on-chip (SoC), the method comprising:
generating, based on a sweep enable (SWEN) signal that indicates an initiation of a self-testing operation of the SoC, by a built-in self-testing (BIST) circuitry of the SoC, a set of sweep events, wherein a transition of a first processor of the SoC from a low power (LP) mode to an active mode during the self-testing operation is initiated based on the generation of each sweep event of the set of sweep events; and
identifying, by the BIST circuitry, based on a status signal, a subset of sweep events from the set of sweep events at which the transition of the first processor from the LP mode to the active mode failed, to generate sweep failure data, wherein the status signal indicates whether the first processor is reset, and wherein the generation of the sweep failure data is indicative of a completion of the self-testing operation.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
receiving, by an adaptive masking circuitry of the SoC, the sweep failure data; and
generating, by the adaptive masking circuitry, during a non-testing operation of the SoC, a mask signal for preventing a transition of the first processor from the LP mode to the active mode at each sweep event of the subset of sweep events.

### Claim 19 (depends on 17)

The method of claim 17, further comprising:
generating, by a watchdog timer of the SoC, a reset signal for resetting the first processor, wherein the reset signal is generated when a final count of the watchdog timer exceeds a first threshold count of the watchdog timer, and wherein when the reset signal is generated, the status signal indicates that the first processor is reset.

### Claim 20 (depends on 17)

The method of claim 17, further comprising:
receiving a first clock signal, a first control signal, and a maximum (MAX) count, by the BIST circuitry, wherein the MAX count indicates a total number of sweep events of the set of sweep events, and wherein the first control signal triggers the generation of the set of sweep events; and
generating, by the BIST circuitry, (i) a first set of counts based on the first clock signal and the MAX count, and (ii) a sweep complete (SWC) signal based on the first control signal and the first set of counts, wherein the SWC signal indicates whether a final sweep event of the set of sweep events is generated, and wherein the set of sweep events is further generated based on the first clock and SWC signals and the first set of counts.
