How scan shift enable can improve ATPG coverage

An asynchronous reset needs to stay inactive while a scan chain shifts. The choice of signal used to hold it inactive determines what ATPG can observe on the next capture clock. In this three-flop design, one OR gate driven by test_se protects shift and lets ATPG exercise the reset logic during capture.

Where the unknown reset comes from

Two scan flops feed a NOR2X1 inside u_reset_logic. Its output drives the active-low asynchronous reset pin RN on u_target_reg, the last flop in the scan chain. In mission mode, reset clears both source flops. With both Q outputs low, the NOR drives RN high and releases the target.

During scan shift, those same Q outputs carry scan data. If either source holds a one, the target clears asynchronously. With both sources unknown, the NOR output is also unknown. The original testcase was reported to trigger Tessent T3 and T5, with T5 flagging an X on the target reset pin.

GOF schematic tracing the Q pins of u_source_a_reg and u_source_b_reg through the submodule NOR2X1 to u_target_reg/RN.
Figure 1. Original reset path in GOF. The squares mark crossings into and out of u_reset_logic. Follow target_reset_n from the NOR output to the target’s RN pin.

The two masks differ on the capture cycle

The Liberty model for SDFFRX1 specifies clear : "!RN". The safe shift value is therefore one. An OR2X1 after the NOR forces that value even when the functional reset is X. Adding a third input to the NOR would drive RN low when the test control goes high and hold the target in reset.

target_reset_n = ~(a_q | b_q)
u_target_reg/RN = target_reset_n | test_se
Phasetest_modetest_seRN with test_mode maskRN with test_se mask
Mission00Functional NORFunctional NOR
Scan shift111 (released)1 (released)
ATPG capture101 (released)Functional NOR

In this protocol, test_mode stays high through capture. If it drives the OR, a change at either NOR input cannot propagate through the target’s reset pin. Faults on those input branches can consequently fall into Tessent’s AU.TC category under the test constraints. With test_se driving the OR, dropping shift enable restores the propagation path.

A clock gate offers a second example. Driving its test-enable pin with scan shift enable opens the gate for shifting. When shift enable falls, the functional enable determines whether a capture clock reaches the downstream flops. A fault in that enable logic can then affect the captured response. An ATPG-mode override held high through capture would keep the gate open and mask that effect. The related GOF case traces a clock gate’s SE pin to a zero tie-off and reconnects it to scan_en. Read the clock-gating ECO case study.

GOF ECO schematic showing the functional NOR and the test_se input driving the OR2X1 u_target_shift_mask, whose output connects to RN.
Figure 2. GOF trace after the ECO. The functional reset enters pin A of u_target_shift_mask, and test_se enters pin B. The OR output drives u_target_reg/RN.

A fault the target can now observe

Consider a stuck-at-one fault on the A input pin of the NOR. Shift zeros into both source flops. Hold data_a=0 and data_b=0 so those flops stay at zero across the capture edge. Drive data_target=1, lower test_se, let the reset settle, then pulse clk.

Timing diagram for NOR input A stuck at one. As test_se falls, the faulty target’s active-low reset asserts before the rising capture edge. With test_mode driving the mask, reset stays high and both circuits capture one.
Figure 3. With the shift-enable mask, the fault clears the target before the rising clock edge. The good target captures a one, so the fault is visible at scan_out.
Mask controlGood circuit after captureNOR A stuck at 1Observed at scan_out
test_seRN = 1, target Q = 1RN = 0, target Q = 01 vs. 0
test_modeRN = 1, target Q = 1RN = 1, target Q = 11 in both circuits

The target’s Q directly drives scan_out, so the difference is visible before the next shift edge. The same pattern also distinguishes a stuck-at-one fault on the B input. This is the coverage opportunity gained by limiting the mask to shift.

Applying and grading the ECO

The GOF script inserts the OR at the target pin, using the existing functional reset net and the top-level shift enable.

change_pin('u_target_reg/RN', 'OR2X1', 'u_target_shift_mask',
           'target_reset_n,test_se');

The GOF captures establish the wiring, and the stuck-at example establishes observability for the stated pattern. A numerical coverage gain and the exact AU.TC assignments require a Tessent fault-grading run. To measure the difference, grade both mask variants with the same scan protocol, fault model and constraints, then compare the detected and AU.TC faults at u_reset_logic/u_nor.

GOF ECO script