# US 2024/0201255 A1 · Time-to-digtial converter circuit with self-testing function

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

- Number: US 2024/0201255 A1
- Document ID: US20240201255A1
- Status: Published application
- Kind: A1
- Application number: 18/066,783
- Filed: 2022-12-15
- Published: 2024-06-20
- Earliest claimed: 2022-12-15
- Assignees: STMicroelectronics International N.V.
- Applicants: STMicroelectronics International N.V.
- Inventors: John Kevin Moore; Gavin Stuart Ball
- Web page: https://patentgrep.com/patent/US20240201255A1

## CPC

- G01R 31/31726: {Synchronization, e.g. of test, clock or strobe signals; Signals in different clock domains; Generation of Vernier signals; Comparison and adjustment of the signals}
- G01R 31/31703: {Comparison aspects, e.g. signature analysis, comparators (concerning scan tests G01R31/318566; concerning testers G01R31/3193)}
- G01R 31/31727: {Clock circuits aspects, e.g. test clock circuit details, timing aspects for signal generation, circuits for testing clocks (G01R31/31725 takes precedence; concerning scan test G01R31/318552, for tester hardware G01R31/31922)}
- G04F 10/005: {Time-to-digital converters [TDC] (analog-to-digital converters with intermediate conversion to time or phase H03M1/50, H03M1/60)}
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)
- G04F: TIME-INTERVAL MEASURING (measuring pulse characteristics G01R, e.g. G01R29/02; in radar or like systems G01S)

## Abstract

A time-to-digital converter (TDC) circuit with self-testing function includes: a D flip-flop, where an input terminal of the D flip-flop is configured to be coupled to a data signal, and a clock terminal of the D flip-flop is configured to be coupled to a clock signal; and an AND gate, where a first input terminal of the AND gate is configured to be coupled to an enable signal of the TDC circuit, a second input terminal of the AND gate is configured to be coupled to a test signal, and an output terminal of the AND gate is coupled to a control terminal of the D flip-flop.

## Claims

### Claim 1

A time-to-digital converter (TDC) circuit with self-testing function, the TDC circuit comprising:
a D flip-flop, wherein an input terminal of the D flip-flop is configured to be coupled to a data signal, and a clock terminal of the D flip-flop is configured to be coupled to a clock signal; and
an AND gate, wherein a first input terminal of the AND gate is configured to be coupled to an enable signal of the TDC circuit, a second input terminal of the AND gate is configured to be coupled to a test signal, and an output terminal of the AND gate is coupled to a control terminal of the D flip-flop.

### Claim 2 (depends on 1)

The TDC circuit of claim 1, wherein the control terminal of the D flip-flop is a low-active SET terminal that sets an output terminal of the D flip-flop to a logic high state when the control terminal is in a logic low state.

### Claim 3 (depends on 2)

The TDC circuit of claim 2, wherein during a self-test mode of the TDC circuit, the enable signal of the TDC circuit is configured to stay in the logic high state, the data signal is configured to stay in the logic low state, and the test signal is configured to changes from the logic high state to the logic low state at a first pre-determined time instant.

### Claim 4 (depends on 3)

The TDC circuit of claim 3, wherein during the self-test mode, the test signal is further configured to:
after changing from the logic high state to the logic low state at the first pre-determined time instant, change from the logic low state to the logic high state at a second pre-determined time instant.

### Claim 5 (depends on 3)

The TDC circuit of claim 3, wherein during a normal operation mode of the TDC circuit, the enable signal of the TDC is configured to stay in the logic high state, and the test signal is configured to stay in the logic high state.

### Claim 6 (depends on 3)

The TDC circuit of claim 3, further comprising a test signal generator configured to generate the test signal.

### Claim 7 (depends on 6)

The TDC circuit of claim 6, further comprising an input/output (I/O) interface configured to receive an external test signal as the test signal.

### Claim 8

A time-to-digital converter (TDC) circuit with self-testing function, the TDC circuit comprising:
a sampling stage comprising:
first plurality of D flip-flops, wherein first input terminals of the first plurality of D flip-flops are configured to be coupled to a data signal, wherein first clock terminals of the first plurality of D flip-flops are configured to be coupled to respective ones of a plurality of clock signals, wherein the plurality of clock signals have a same frequency but different phases; and
a plurality of AND gates, wherein first input terminals of the plurality of AND gates are configured to be coupled to an enable signal, wherein second input terminals of the plurality of AND gates are configured to be coupled to respective ones of a plurality of test signals, wherein output terminals of the plurality of AND gates are coupled to respective ones of control terminals of the first plurality of D flip-flops.

### Claim 9 (depends on 8)

The TDC circuit of claim 8, wherein the control terminals of the first plurality of D flip-flops are low-active SET terminals for setting output signals of the first plurality of D flip-flops to a logic high value when the SET terminals have a logic low value.

### Claim 10 (depends on 9)

The TDC circuit of claim 9, wherein during a self-test mode of the TDC circuit, the enable signal is configured to be at the logic high value, the data signal is configured to be at the logic low value, and the plurality of test signals are configured to generate pulses at pre-determined time instants.

### Claim 11 (depends on 10)

The TDC circuit of claim 10, wherein during a normal operation mode of the TDC circuit, the enable signal is configured to be at the logic high value, and the plurality of test signals are configured to be at the logic high value.

### Claim 12 (depends on 10)

The TDC circuit of claim 10, further comprising a test signal generator configured to generate the plurality of test signals.

### Claim 13 (depends on 10)

The TDC circuit of claim 10, further comprising:
a re-sampling stage comprising second plurality of D flip-flops, wherein second input terminals of the second plurality of D flip-flops are coupled to respective output terminals of the first plurality of D flip-flops, wherein each of the second plurality of D flip-flops and a respective one of the first plurality of D flip-flops are clocked by a same respective clock signal of the plurality of clock signals.

### Claim 14 (depends on 13)

The TDC circuit of claim 13, further comprising:
a first synchronization stage comprising third plurality of D flip-flops, wherein third input terminals of the third plurality of D flip-flops are coupled to respective output terminals of the second plurality of D flip-flops, wherein a first group of D flip-flops of the second plurality of D flip-flops are clocked by a first clock signal of the plurality of clock signals, and a second group of D flip-flops of the second plurality of D flip-flops are clocked by a second clock signal of the plurality of clock signals.

### Claim 15 (depends on 14)

The TDC circuit of claim 14, wherein a timing difference between the first clock signal and the second clock signal is equal to half of a clock cycle of the first clock signal.

### Claim 16 (depends on 14)

The TDC circuit of claim 14, further comprising:
a second synchronization stage comprising fourth plurality of D flip-flops, wherein fourth input terminals of the fourth plurality of D flip-flops are coupled to respective output terminals of the third plurality of D flip-flops, wherein the fourth plurality of D flip-flops are clocked by the first clock signal.

### Claim 17

A method of operating a time-to-digital converter (TDC) circuit having a self-testing function, the method comprising:
in a self-test mode of the TDC circuit, operating the TDC circuit by:
keeping an input terminal of a D flip-flop in an input stage of the TDC circuit in a logic low state;
sending a clock signal to a clock terminal of the D flip-flop;
keeping an enable signal at a first input terminal of an AND gate in a logic high state, wherein an output terminal of the AND gate is coupled to a control terminal of the D flip-flop; and
generating a pulse at a second input terminal of the AND gate at a pre-determined time instant.

### Claim 18 (depends on 17)

The method of claim 17, wherein the control terminal is a low-active SET terminal of the D flip-flop.

### Claim 19 (depends on 18)

The method of claim 18, further comprising:
in a normal operation mode of the TDC circuit, operating the TDC circuit by:
supplying a data signal to the input terminal of the D flip-flop;
sending the clock signal to the clock terminal of the D flip-flop;
keeping the enable signal at the first input terminal of the AND gate in the logic high state; and
keeping the second input terminal of the AND gate in the logic high state.

### Claim 20 (depends on 18)

The method of claim 18, further comprising:
collecting output signals of the TDC circuit during the self-test mode;
comparing the collected output signals with expected output signals; and
in response to detecting a difference between the collected output signals and the expected output signals, declaring that the TDC circuit is faulty.
