# US 2020/0402929 A1 · Fully Digital Glitch Detection Mechanism with Process and Temperature Compensation

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

- Number: US 2020/0402929 A1
- Document ID: US20200402929A1
- Status: Published application
- Kind: A1
- Application number: 16/445,650
- Filed: 2019-06-19
- Published: 2020-12-24
- Earliest claimed: 2019-06-19
- Assignees: NXP B.V.
- Applicants: NXP B.V.
- Inventors: Andreas Lentz; Stefan Heyse; Martin Heinrich Butkus; Oliver Alexander Schmidt
- Web page: https://patentgrep.com/patent/US20200402929A1

## CPC

- H10W 42/405: {using active circuits}
- G06F 21/556: {involving covert channels, i.e. data leakage between processes (inhibiting the analysis of circuitry or operation with measures against power attack G06F21/755)}
- G06F 21/755: {with measures against power attack}
- H03K 3/011: Modifications of generator to compensate for variations in physical values, e.g. voltage, temperature {(to maintain energy constant H03K3/015)}
- H03K 3/037: Bistable circuits
- H03K 5/00: Manipulating of pulses not covered by one of the other main groups of this subclass (circuits with regenerative action H03K3/00, H03K4/00; by the use of non-linear magnetic or dielectric devices H03K3/45)
- H03K 5/1252: Suppression or limitation of noise or interference (specially adapted for transmission systems H04B15/00, H04L25/08)
- H03K 19/20: characterised by logic function, e.g. AND, OR, NOR, NOT circuits (H03K19/003 - H03K19/01 take precedence)
- G06F 2221/034: Test or assess a computer or a system
- H03K 2005/00078: {Fixed delay}
- H10W: GENERIC PACKAGES, INTERCONNECTIONS, CONNECTORS OR OTHER CONSTRUCTIONAL DETAILS OF DEVICES COVERED BY CLASS H10
- 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

A fully digital method and apparatus are provided for detecting glitches on a monitored line by providing a toggle signal to an initial delay circuit and a plurality of delay elements formed with standard logic cells so that logic values from the delay elements are captured in a corresponding plurality of clocked capture flops to provide a digitized representation of a delay value during a sampling period which is converted to a numerical measurement result which is evaluated against a reference value to generate an output error signal if a difference between the numerical measurement result and reference value exceeds a programmable margin, where the initial delay circuit is configured with a trim setting to impose an initial delay to compensate for process variations and where the reference value is adapted over a plurality of sampling periods to compensate for temperature effects on the numerical measurement result.

## Claims

### Claim 1

A method, comprising:
providing a toggle signal over a plurality of clock cycles to a delay chain comprising a configurable initial delay circuit and a plurality of delay elements formed with standard logic cells and connected to a monitored line, where the initial delay circuit is configured with a trim setting to impose an initial delay to compensate for process variations;
capturing logic values from the plurality of delay elements in a corresponding plurality of capture flops to provide a digitized representation of a delay value during a sampling period;
converting the digitized representation of the delay value into a numerical measurement result for the sampling period;
evaluating the numerical measurement result against a reference value to determine if a difference between the numerical measurement result and reference value exceeds a programmable margin; and
generating an output error signal if the difference between the numerical measurement result and reference value exceeds the programmable margin.

### Claim 2 (depends on 1)

The method of claim 1, where the monitored line comprises an internal bus, I/O port, or power supply or reset line of a data processing system.

### Claim 3 (depends on 1)

The method of claim 1, where capturing logic values from the plurality of delay elements comprises:
capturing logic values from the plurality of delay elements in a corresponding plurality of interim capture flops to provide a first digitized representation of the delay value during the sampling period;
passing the first digitized representation through an AND gate line to remove a second change in the first digitized representation resulting from a previous measurement cycle;
passing the first digitized representation through an OR gate line to remove a second change in the first digitized representation resulting from a previous measurement cycle; and
capturing logic values from the AND gate line and OR gate line in a corresponding plurality of corrected capture flops using a toggled plurality of multiplexers to provide a second digitized representation of the delay value during the sampling period.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
monitoring the numerical measurement results for a maximum measurement value and minimum measurement value during the sampling period; and
computing an updated reference value by averaging the reference value with the maximum measurement value and minimum measurement value after a predetermined number of clock cycles for use in evaluating the numerical measurement result against the updated reference value in a subsequent sampling period.

### Claim 5 (depends on 4)

The method of claim 4, where computing the updated reference value comprises applying a programmable weight to the reference value.

### Claim 6 (depends on 1)

The method of claim 1, further comprising adapting the reference value over a plurality of sampling periods to compensate for temperature effects on the numerical measurement result.

### Claim 7 (depends on 1)

The method of claim 1, further comprising setting the programmable margin by performing tests to generate on-chip noise during production characterization to detect minimum and maximum test result values and then setting the programmable margin setting to be greater than half a difference measure between the minimum and maximum test result values.

### Claim 8 (depends on 1)

The method of claim 1, where the initial delay circuit, the plurality of delay elements, and the plurality of capture flops are formed with standard digital logic cells which are connected to capture the digitized representation of a delay value in response to an internal or localized voltage glitch which is induced by electro-magnetic fault injection (EMFI) techniques.

### Claim 9

A processing system, comprising:
a measurement hardware unit formed with standard logic cells and connected to a monitored line, the measurement hardware unit comprising a configurable initial delay circuit, a plurality of delay elements, and a plurality of capture flops, where the initial delay circuit imposes an initial delay to compensate for process variations, and where the plurality of capture flops is connected to capture logic values from the plurality of delay elements to provide a digitized representation of a delay value during a sampling period;
a digital converter hardware unit connected to convert the digitized representation of the delay value into a numerical measurement result for the sampling period; and
an error detection unit connected to generate an output error signal if a difference between the numerical measurement result and a reference value exceeds a programmable margin indicating a positive or negative glitch on the monitored line.

### Claim 10 (depends on 9)

The processing system of claim 9, where the monitored line comprises an internal bus or signal line, I/O port, power supply, reset line, or clock line of a data processing system.

### Claim 11 (depends on 9)

The processing system of claim 9, where the measurement hardware unit comprises:
a first plurality of interim capture flops connected to capture logic values from the plurality of delay elements to provide a first digitized representation of the delay value during the sampling period;
an AND gate line connected to receive the first digitized representation to remove a first change in the first digitized representation resulting from a previous measurement cycle;
an OR gate line connected to receive the first digitized representation to remove a second change in the first digitized representation resulting from a previous measurement cycle; and
a plurality of corrected capture flops connected to capture logic values from the AND gate line and OR gate line using a toggled plurality of multiplexers to provide a second digitized representation of the delay value during the sampling period.

### Claim 12 (depends on 9)

The processing system of claim 9, further comprising:
a detection hardware unit connected to monitor the numerical measurement results for a maximum measurement value and minimum measurement value during the sampling period; and
a reference handling hardware unit connected to compute an updated reference value by averaging the reference value with the maximum measurement value and minimum measurement value after a predetermined number of clock cycles for use in evaluating the numerical measurement result against the updated reference value in a subsequent sampling period.

### Claim 13 (depends on 12)

The processing system of claim 12, where the reference handling hardware unit computes the updated reference value by applying a programmable weight to the reference value.

### Claim 14 (depends on 9)

The processing system of claim 9, further comprising a reference handling hardware unit connected to adapt the reference value over a plurality of sampling periods to compensate for temperature effects on the numerical measurement result.

### Claim 15 (depends on 9)

The processing system of claim 9, where the error detection unit is configured with the programmable margin by performing tests to generate on-chip noise during production characterization, detecting minimum and maximum test result values, and computing the programmable margin to be at least half a difference measure between the minimum and maximum test result values.

### Claim 16

An integrated circuit (IC) System-on-Chip (SoC) device, comprising:
a monitored line;
a digital measurement unit formed with standard cells comprising:
a toggle signal generator for generating a toggle signal,
an initial delay circuit connected to generate a delayed toggle signal by imposing an initial delay on the toggle signal to compensate for process variations in the fabrication of the SoC device,
a delay line comprising a plurality of delay elements connected to measure a glitch-induced delay in the delayed toggle signal,
a plurality of capture devices connected to capture logic values from the plurality of delay elements which provide a digitized representation of the glitch-induced delay, and
a digital converter unit connected to convert the digitized representation of the glitch-induced delay into a numerical measurement result for the sampling period; and
an error detector configured to apply digital post-processing to the numerical measurement result for generating an error signal if a difference between the numerical measurement result and a computed reference value exceeds a programmable margin.

### Claim 17 (depends on 16)

The IC SoC device of claim 16, where the initial delay circuit is configured with a trim setting to set the initial delay setting to compensate for process variations.

### Claim 18 (depends on 16)

The IC SoC device of claim 16, where the error detector is configured to modify the computed reference value over a plurality of sampling periods to compensate for temperature effects on the numerical measurement result.

### Claim 19 (depends on 16)

The IC SoC device of claim 16, where the digital converter unit comprises:
a first plurality of interim capture flops connected to capture logic values from the plurality of delay elements in the delay line to provide a first digitized representation of the glitch-induced delay during the sampling period;
an AND gate line connected to receive the first digitized representation to remove a first change in the first digitized representation resulting from a previous measurement cycle;
an OR gate line connected to receive the first digitized representation to remove a second change in the first digitized representation resulting from a previous measurement cycle; and
a toggled plurality of multiplexers connected to provide logic values from the AND gate line and OR gate line to the plurality of capture devices to provide a second digitized representation of the glitch-induced delay during the sampling period.

### Claim 20 (depends on 16)

The IC SoC device of claim 16, further comprising:
a min/max detector connected to monitor the numerical measurement results for a maximum measurement value and minimum measurement value during the sampling period; and
a reference handling hardware unit connected to compute an updated reference value by averaging the computed reference value with the maximum measurement value and minimum measurement value after a predetermined number of clock cycles for use in evaluating the numerical measurement result against the updated reference value in a subsequent sampling period.
