# US 2025/0364976 A1 · Bi-directional scan flip-flop circuit and method

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

- Number: US 2025/0364976 A1
- Document ID: US20250364976A1
- Status: Published application
- Kind: A1
- Application number: 19/293,927
- Filed: 2025-08-07
- Published: 2025-11-27
- Earliest claimed: 2022-09-20
- Assignees: Taiwan Semiconductor Manufacturing Company, Ltd.; Tsmc Nanjing Company, Limited
- Applicants: Taiwan Semiconductor Manufacturing Company, Ltd.; Tsmc Nanjing Company, Limited
- Inventors: Huaixin XIAN; Tzu-Ying LIN; Liu HAN; Jerry Chang Jui KAO; Qingchao MENG; Xiangdong CHEN
- Web page: https://patentgrep.com/patent/US20250364976A1

## CPC

- H03K 3/037: Bistable circuits
- G01R 31/3177: Testing of logic operation, e.g. by logic analysers
- G01R 31/318525: {Test of flip-flops or latches}
- G01R 31/318541: {Scan latches or cell details}
- G01R 31/31855: {Interconnection testing, e.g. crosstalk, shortcircuits}
- H03K 19/0002: {Multistate logic (H03K19/02 takes precedence)}
- H03K 19/0948: using CMOS {or complementary insulated gate field-effect transistors}
- 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)
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)

## Abstract

A scan flip-flop circuit includes first and second I/O nodes, a selection circuit coupled to the first and second I/O nodes and including first through third PMOS transistors arranged in parallel and first through third NMOS transistors arranged in parallel, each including a gate configured to receive a corresponding first through third signal, and an output terminal configured to output one of the first through third signals as a selected signal based on scan direction and scan enable signals, a flip-flop circuit including an input terminal coupled to the output terminal of the selection circuit and an output terminal configured to output an output signal based on the selected signal, first and second drivers coupled to the output terminal and configured to output the first signal to the first I/O node and the second signal to the second I/O node responsive to the selected signal and the scan direction signal.

## Claims

### Claim 1

A scan flip-flop circuit comprising:
first and second input/output (I/O) nodes;
a selection circuit coupled to the first and second I/O nodes, the selection circuit comprising:
first through third PMOS transistors arranged in parallel and comprising gates configured to receive respective first through third signals;
first through third NMOS transistors arranged in parallel and comprising gates configured to receive the respective first through third signals; and
an output terminal configured to output one of the first through third signals as a selected signal based on a scan direction signal and a scan enable signal;
a flip-flop circuit comprising:
an input terminal coupled to the output terminal of the selection circuit; and
an output terminal configured to output an output signal based on the selected signal;
a first driver coupled to the output terminal of the flip-flop circuit and configured to output the first signal to the first I/O node responsive to the selected signal and the scan direction signal; and
a second driver coupled to the output terminal of the flip-flop circuit and configured to output the second signal to the second I/O node responsive to the selected signal and the scan direction signal.

### Claim 2 (depends on 1)

The scan flip-flop circuit of claim 1, wherein the selection circuit further comprises:
a fourth PMOS transistor in series with the first PMOS transistor and comprising a gate configured to receive the scan direction signal;
a fourth NMOS transistor in series with the first NMOS transistor and comprising a gate configured to receive a complement to the scan direction signal;
a fifth PMOS transistor in series with the second PMOS transistor and comprising a gate configured to receive the complement to the scan direction signal;
a fifth NMOS transistor in series with the second NMOS transistor and comprising a gate configured to receive the scan direction signal;
a sixth PMOS transistor in series with the third PMOS transistor and comprising a gate configured to receive the scan enable signal; and
a sixth NMOS transistor in series with the third NMOS transistor and comprising a gate configured to receive a complement to the scan enable signal.

### Claim 3 (depends on 2)

The scan flip-flop circuit of claim 2, wherein the selection circuit further comprises:
a seventh PMOS transistor in series with the first and fourth PMOS transistors and the second and fifth PMOS transistors and comprising a gate configured to receive the complement to the scan enable signal; and
a seventh NMOS transistor in series with the first and fourth NMOS transistors and the second and fifth NMOS transistors and comprising a gate configured to receive the scan enable signal.

### Claim 4 (depends on 3)

The scan flip-flop circuit of claim 3, wherein the selection circuit further comprises:
an eighth PMOS transistor in series with the seventh PMOS transistor and the third and sixth PMOS transistors and comprising a gate configured to receive a clock signal; and
an eighth NMOS transistor in series with the seventh NMOS transistor and the third and sixth NMOS transistors and comprising a gate configured to receive a complement to the clock signal.

### Claim 5 (depends on 3)

The scan flip-flop circuit of claim 3, wherein the selection circuit further comprises:
a node coupled to the third and sixth PMOS transistors, the seventh PMOS transistor, the third and sixth NMOS transistors, and the seventh NMOS transistor; and
an inverter comprising:
an eighth PMOS transistor comprising a gate coupled to the node;
a ninth PMOS transistor in series with the eighth PMOS transistor and comprising a gate configured to receive a clock signal;
an eighth NMOS transistor comprising a gate coupled to the node; and
a ninth NMOS transistor in series with the eighth NMOS transistor and comprising a gate configured to receive a complement to the clock signal.

### Claim 6 (depends on 2)

The scan flip-flop circuit of claim 2, further comprising:
a first inverter configured to output the complement to the scan direction signal based on the scan direction signal; and
a second inverter configured to output the complement to the scan enable signal based on the scan enable signal.

### Claim 7 (depends on 1)

The scan flip-flop circuit of claim 1, wherein each of the first driver and the second driver comprises:
a fourth PMOS transistor comprising a gate coupled to the output terminal of the flip-flop circuit;
a fifth PMOS transistor in series with the fourth PMOS transistor and comprising a gate configured to receive one of the scan direction signal or a complement to the scan direction signal;
a fourth NMOS transistor comprising a gate coupled to the output terminal of the flip-flop circuit; and
a fifth NMOS transistor in series with the fourth NMOS transistor and comprising a gate configured to receive the other of the scan direction signal or the complement to the scan direction signal.

### Claim 8 (depends on 7)

The scan flip-flop circuit of claim 7, wherein each of the first driver and the second driver further comprises:
a sixth PMOS transistor parallel to the fourth PMOS transistor and comprising a gate configured to receive the scan enable signal; and
a sixth NMOS transistor in series with the fourth NMOS transistor and the fifth NMOS transistor and comprising a gate configured to receive the scan enable signal.

### Claim 9 (depends on 1)

The scan flip-flop circuit of claim 1, wherein the selection circuit further comprises:
a data input terminal configured to receive the third signal.

### Claim 10 (depends on 1)

The scan flip-flop circuit of claim 1, further comprising:
a third driver coupled to the output terminal of the flip-flop circuit and configured to output a data output signal on a data output terminal responsive to the selected signal.

### Claim 11

A circuit series comprising:
first and second input/output (I/O) nodes; and
first through last scan flip-flop circuits coupled in series between the first and second I/O nodes,
wherein
the first scan flip-flop circuit comprises a selection circuit coupled to the first I/O node, the selection circuit comprising:
first through third PMOS transistors arranged in parallel and comprising gates configured to receive respective first through third signals;
first through third NMOS transistors arranged in parallel and comprising gates configured to receive the respective first through third signals; and
an output terminal configured to output one of the first through third signals as a selected signal based on a scan direction signal and a scan enable signal, and
the last scan flip-flop circuit is coupled to the second I/O node and comprises:
a first driver configured to output the first signal to the first I/O node
responsive to the selected signal and the scan direction signal; and
a second driver configured to output the second signal to the second I/O node responsive to the selected signal and the scan direction signal.

### Claim 12 (depends on 11)

The circuit series of claim 11, wherein the selection circuit further comprises:
a fourth PMOS transistor in series with the first PMOS transistor and comprising a gate configured to receive the scan direction signal;
a fourth NMOS transistor in series with the first NMOS transistor and comprising a gate configured to receive a complement to the scan direction signal;
a fifth PMOS transistor in series with the second PMOS transistor and comprising a gate configured to receive the complement to the scan direction signal;
a fifth NMOS transistor in series with the second NMOS transistor and comprising a gate configured to receive the scan direction signal;
a sixth PMOS transistor in series with the third PMOS transistor and comprising a gate configured to receive the scan enable signal;
a sixth NMOS transistor in series with the third NMOS transistor and comprising a gate configured to receive a complement to the scan enable signal;
a seventh PMOS transistor in series with the first and fourth PMOS transistors and the second and fifth PMOS transistors and comprising a gate configured to receive the complement to the scan enable signal; and
a seventh NMOS transistor in series with the first and fourth NMOS transistors and the second and fifth NMOS transistors and comprising a gate configured to receive the scan enable signal.

### Claim 13 (depends on 11)

The circuit series of claim 11, wherein the selection circuit further comprises:
a data input terminal configured to receive the third signal.

### Claim 14 (depends on 11)

The circuit series of claim 11, wherein
the last scan flip-flop circuit comprises a flip-flop circuit configured to output an output signal on an output terminal, and
each of the first driver and the second driver comprises:
each of a fourth PMOS transistor and a fourth NMOS transistor comprising a gate coupled to the output terminal of the flip-flop circuit;
a fifth PMOS transistor in series with the fourth PMOS transistor and comprising a gate configured to receive one of the scan direction signal or a complement to the scan direction signal; and
a fifth NMOS transistor in series with the fourth NMOS transistor and comprising a gate configured to receive the other of the scan direction signal or the complement to the scan direction signal.

### Claim 15 (depends on 14)

The circuit series of claim 14, wherein each of the first driver and the second driver further comprises:
a sixth PMOS transistor parallel to the fourth PMOS transistor and comprising a gate configured to receive the scan enable signal; and
a sixth NMOS transistor in series with the fourth NMOS transistor and the fifth NMOS transistor and comprising a gate configured to receive the scan enable signal.

### Claim 16

A method of operating a scan flip-flop circuit, the method comprising:
receiving a scan direction signal at each of a selection circuit, a first driver, and a second driver of a scan flip-flop circuit;
receiving a scan enable signal and first through third signals at the selection circuit;
in response to the scan direction signal and the scan enable signal, using the selection circuit to select one of the first through third signals as a selected signal; and
in response to the scan direction signal:
using the first driver to output the first signal to the first I/O node based on the selected signal, or
using the second driver to output the second signal to the second I/O node based on the selected signal.

### Claim 17 (depends on 16)

The method of claim 16, wherein
the receiving the first through third signals at the selection circuit comprises receiving the first through third signals at gates of respective first through third PMOS transistors arranged in parallel and at gates of respective first through third NMOS transistors arranged in parallel, and
the receiving the scan direction and scan enable signals at the selection circuit comprises:
receiving the scan direction signal at gates of a fourth PMOS transistor in series with the first PMOS transistor and a fifth NMOS transistor in series with the second NMOS transistor;
receiving a complement to the scan direction signal at gates of a fourth NMOS transistor in series with the first NMOS transistor and a fifth PMOS transistor in series with the second PMOS transistor;
receiving the scan enable signal at gates of a sixth PMOS transistor in series with the third PMOS transistor and a seventh NMOS transistor in series with the first and fourth NMOS transistors and the second and fifth NMOS transistors; and
receiving a complement to the scan enable signal at gates of a sixth NMOS transistor in series with the third NMOS transistor and a seventh PMOS transistor in series with the first and fourth PMOS transistors and the second and fifth PMOS transistors.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
receiving a clock signal at a gate of an eighth PMOS transistor in series with the seventh PMOS transistor and the third and sixth PMOS transistors; and
receiving a complement to the clock signal at a gate of an eighth NMOS transistor in series with the seventh NMOS transistor.

### Claim 19 (depends on 17)

The method of claim 17, further comprising:
receiving a clock signal at a gate of an eighth PMOS transistor included in an inverter configured to output the selected signal; and
receiving a complement to the clock signal at a gate of an eighth NMOS transistor included in the inverter.

### Claim 20 (depends on 16)

The method of claim 16, further comprising:
receiving the scan enable signal at each of the first driver and the second driver,
wherein the using the first driver to output the first signal to the first I/O node or using the second driver to output the second signal to the second I/O node is further in response to the scan enable signal.
