Question bank · Design for Test (DFT) Engineer
DFT interview questions
The 100 questions DFT interviewers really ask, picked from recent interview reports at chip product companies and DFT-service firms. Fault models and pattern counting, scan design and DRCs, ATPG and coverage debug, at-speed test with OCC, compression, MBIST and repair, JTAG and IEEE 1500, with worked numericals, the likely follow-up and diagrams.
How DFT interviews actually run
From recent interview reports at product companies and design-service firms in India and abroad. Rounds vary by company; this is the common shape.
- Online testDigital electronics and Verilog MCQs, CMOS basics and aptitude. Some service companies add DFT basics: fault models, scan, controllability and observability.
- Technical round 1Fundamentals: why test is needed, stuck-at and transition faults, how many vectors test a gate, scan flop and scan chain operation, shift and capture. Digital puzzles (gates from muxes) are common too.
- Technical round 2Implementation depth: scan DRCs and fixes, lock-up latches, mixed-edge chains, OCC and at-speed test, compression, ATPG flow, coverage loss debug, MBIST algorithms and repair, JTAG TAP and IEEE 1500.
- Scenario roundProblems from real projects: coverage is 3% short, patterns fail on the tester, shift fails in simulation, hold violations in shift mode, test time too long.
- Project and toolsYour flow with Tessent, DFTMAX/TestMAX or Modus: scan insertion, ATPG, pattern simulation (serial and parallel), MBIST insertion. Linux and Tcl basics come up often.
- Manager and HRWorking with design, PD and test engineering; owning DFT sign-off; handling silicon bring-up pressure.
- Be able to count test vectors and collapsed faults for AND, OR, XOR gates and small circuits instantly.
- Know the scan DRC rules (clocks, resets, X sources, loops) and the standard fix for each.
- Practise test-time and DPPM numericals; know what compression ratio does to shift time and pattern count.
- Have a clear story of your DFT flow from scan insertion to pattern validation, with the coverage numbers you reached.
Test fundamentals and fault models
1Why do we need DFT? What is the difference between verification and manufacturing test?
Verification checks that the design is correct, before tape-out. Manufacturing test checks that each manufactured chip is free of physical defects (shorts, opens, bad vias, particles), after fabrication.
A chip with millions of flops cannot be tested well from its pins alone: internal states are hard to set (controllability) and hard to see (observability). DFT adds structures, mainly scan chains, BIST and JTAG, that make internal nodes controllable and observable, so automatic test patterns can find defects quickly and cheaply on a tester. Without it, test cost and the number of bad parts shipped (defects per million, DPPM) would be unacceptable.
2What are controllability and observability?
- Controllability: how easily a node can be set to 0 or 1 from the primary inputs.
- Observability: how easily the value of a node can be seen at a primary output.
A fault can only be detected if the faulty node can be controlled to the opposite of the stuck value (activation) and the difference can be propagated to an observable point. Deep sequential logic has poor controllability and observability; scan turns every flop into a directly controllable and observable point. SCOAP is a classic numerical measure of both.
3What is the stuck-at fault model? How many single stuck-at faults does a circuit have?
The stuck-at model assumes a defect makes a line permanently 0 (stuck-at-0, SA0) or 1 (stuck-at-1, SA1). It is simple, and patterns that detect stuck-at faults also catch many real defects.
Each line (net or gate pin) can have two faults, so a circuit with n lines has 2n single stuck-at faults. For a 2-input AND gate, the lines are inputs A and B and output Y, so 6 faults. With fan-out, each branch counts as a separate line, because a defect can affect one branch only.
4How many test vectors are needed to detect all stuck-at faults on a 2-input AND gate? On an n-input AND gate?
Three for a 2-input AND gate:
11(output 1): detects A SA0, B SA0 and Y SA0, because any of them makes the output 0.01: detects A SA1 (the output would become 1). It also detects Y SA1.10: detects B SA1.
00 adds nothing. For an n-input AND: n + 1 vectors (all ones, plus each “walking zero” pattern). An OR gate is the dual: all zeros plus each walking one.
Likely follow-up: And a 2-input XOR gate?
At gate level, any three of the four vectors detect all six stuck-at faults: 00 or 11 detects the input SA1 or SA0 faults and output SA1, and 01 or 10 detects output SA0. Some answers say four, because at transistor level or with cell-aware fault models all four input combinations are needed.
5What is fault collapsing? How many collapsed faults does a 2-input AND gate have?
Two faults are equivalent if every test that detects one detects the other, and they produce the same faulty function. Keeping only one per equivalence class is equivalence collapsing. Dominance collapsing removes a fault whose tests always also detect another fault.
For a 2-input AND: A SA0, B SA0 and Y SA0 are equivalent (all force Y = 0). So 6 faults collapse to 4: one SA0 class, plus A SA1, B SA1 and Y SA1. With dominance, Y SA1 is dominated (any test for A SA1 or B SA1 also detects Y SA1), leaving 3, which matches the 3 vectors needed.
ATPG tools report coverage on collapsed or uncollapsed fault lists; both are used, so always say which.
6What is the transition (delay) fault model, and why is it needed?
Some defects do not make a node stuck; they make it slow (a resistive via, a weak transistor). The circuit works at low speed but fails at the functional frequency. Stuck-at tests applied slowly miss them.
The transition fault model assumes a node is slow-to-rise or slow-to-fall. Each test needs two vectors: the first sets the initial value, the second launches the transition, and the result is captured one functional clock period later (at-speed). Launch-on-shift and launch-on-capture are the two ways to apply them with scan.
Path delay faults target the cumulative delay of specific critical paths, and small delay defect testing targets transitions along the longest paths through each fault site.
7What are bridging, open and IDDQ faults?
- Bridging fault: two nets are shorted by a defect. The result depends on the drivers (wired-AND, wired-OR, or a dominant net). ATPG targets likely bridges extracted from the layout (neighbouring nets).
- Open fault: a broken wire or via leaves a gate input floating; it may behave like stuck-at or cause a delay or memory effect.
- IDDQ testing: measure the quiescent supply current after applying a vector. A defect-free CMOS circuit draws almost no static current; a short draws much more. IDDQ became harder at advanced nodes because normal leakage is high and varies a lot, so the difference is hard to see.
8What is cell-aware test?
Classic fault models put faults only on cell pins. Many real defects are inside standard cells: shorts and opens between transistors that only show up for specific input combinations.
Cell-aware test characterises each library cell with transistor-level (SPICE) simulation of likely internal defects, producing a table of which input patterns detect each defect. ATPG then targets those defects, generating extra patterns. It is widely used for automotive and other low-DPPM products, at the cost of more patterns and test time.
9What is the difference between fault coverage and test coverage?
- Fault coverage = detected faults ÷ all faults.
- Test coverage = detected faults ÷ testable faults (all faults minus those proven untestable, such as faults on unused or tied logic).
Example: 100,000 faults, 2,000 proven untestable, 96,000 detected. Fault coverage = 96%, test coverage = 96,000 / 98,000 ≈ 98%.
Test coverage is what most sign-off targets use (for example ≥ 99% stuck-at), because untestable faults can never be detected by any pattern. Interviewers also expect you to know ATPG classifications such as detected (DT), possibly detected (PT), ATPG untestable (AU), not detected (ND), tied (TI), blocked (BL), unused (UU) and redundant (RE).
10What is the relationship between yield, test coverage and DPPM? Calculate it for 90% yield and 99% coverage.
The Williams–Brown model estimates the defect level (fraction of shipped parts that are bad):
DL = 1 − Y^(1 − T)
where Y is yield and T is fault (test) coverage.
For Y = 0.9 and T = 0.99: DL = 1 − 0.9^0.01 = 1 − e^(0.01 × ln 0.9) ≈ 1 − e^(−0.00105) ≈ 0.00105, so about 1,050 DPPM.
With T = 0.999 it drops to about 105 DPPM. This is why automotive customers ask for very high coverage and extra fault models: each extra 0.9% of coverage cuts escapes roughly tenfold here.
11What is the difference between functional test and structural test?
- Functional test applies the chip’s normal operations (or real software) and checks outputs. Easy to relate to the product, but very hard to get high defect coverage, and slow to develop.
- Structural test ignores function and targets the structure: every gate and net, using fault models and scan. Patterns are generated automatically by ATPG with measurable coverage.
Production test is mostly structural (scan, BIST), with some functional tests for things structural test misses (analog, high-speed I/O, system-level issues).
12What is at-speed testing and why is it necessary?
At-speed testing applies the launch and capture of a test at the chip’s functional clock frequency, so timing-related defects (slow transitions, resistive opens, small delays) are detected.
Scan shifting is slow (tens of MHz, limited by the tester and shift power), which is fine for stuck-at tests. For transition and path delay tests, only the final launch and capture pulses need to be at speed. They usually come from the on-chip PLL through an on-chip clock controller (OCC), because testers cannot supply GHz clocks cleanly.
13Why are unknown values (X) a problem in test, and where do they come from?
If a flop captures an X, its value in the response is unpredictable, so that bit cannot be compared on the tester; it must be masked, which loses observability. With compression, one X can corrupt the compacted signature of many chains.
Sources: uninitialised memories and non-scan flops, analog blocks and their outputs, floating buses and tri-states, multicycle or false paths at at-speed capture, cross-clock-domain captures, and black-boxed modules.
Fixes: make flops scannable, add bypass or wrapper logic around memories and analog blocks, constrain or initialise them, use X-tolerant compression and masking, and constrain ATPG timing exceptions properly.
14For y = (a AND b) OR c, list the collapsed stuck-at faults and find a minimum test set.
Lines: a, b, c, n (the AND output) and y. No fan-out, so 5 lines give 10 faults.
Equivalence collapsing:
- AND gate: a SA0 ≡ b SA0 ≡ n SA0.
- OR gate: n SA1 ≡ c SA1 ≡ y SA1.
Collapsed classes: {a0, b0, n0}, a1, b1, {n1, c1, y1}, c0, y0, so 6 faults.
Tests (abc):
110→ y = 1; detects {a0, b0, n0} and y0.010→ y = 0; detects a1 and the {n1, c1, y1} class.100→ detects b1.001→ y = 1 through c only; detects c0.
Four vectors detect all faults. A good habit: for every fault, say the activation value and the side-input values that let it propagate (1 on the other AND input, 0 on the other OR input).
15Real defects are not stuck-at faults. Why is the stuck-at model still the main one?
- It is simple and scales to billions of faults, so ATPG and fault simulation are fast.
- Patterns that detect all stuck-at faults also detect a large share of real defects, because to detect a stuck-at fault every line must be driven to both values and observed, which exercises most of the structure.
- It gives a measurable coverage number for sign-off.
Its limits are why it is no longer used alone: timing defects need transition and small-delay patterns, bridges need bridging patterns, and defects inside cells need cell-aware patterns.
Scan design
16What is a scan flip-flop, and how does a scan chain work in shift and capture modes?
A mux-D scan flop is a normal flop with a 2:1 mux in front: SE = 0 selects the functional D input, SE = 1 selects the scan input SI. Scan insertion replaces flops with scan flops and connects each Q (or a dedicated scan-out) to the next SI, forming chains from a scan-in port to a scan-out port.
A scan test:
- Shift (SE = 1): clock in a pattern serially to load every flop; at the same time, the previous test’s response is shifted out.
- Capture (SE = 0): apply primary inputs, pulse the clock once (or twice for at-speed tests), and the flops capture the combinational logic’s response.
- Shift the response out while the next pattern shifts in.
This turns a sequential circuit into a combinational test problem for ATPG.
17What are the main scan DRC (design rule check) violations, and how are they fixed?
- Uncontrollable clocks: gated, divided or internally generated clocks that the tester cannot pulse. Fix: test-mode muxes to bypass dividers, OCC, make clock gates transparent in shift (test enable on the ICG).
- Uncontrollable asynchronous set/reset: internal logic drives a flop’s reset, which could reset it during shift. Fix: gate it with a test-mode signal so it is controlled from a top-level pin.
- Combinational loops: break them in test mode with a mux or a scan flop.
- X sources and tri-state contention: fix as in the X question, enable one driver in test mode.
- Latches: make them transparent in test mode or scannable.
- Clock used as data or data used as clock: add test-mode muxes.
Tool names: Tessent calls them DRC violations with codes (C, D, S, T rules); DFTMAX reports them during dft_drc.
18What is a lock-up latch, and where do you insert it?
When a scan chain goes from a flop in one clock domain (or one branch of a clock tree with low latency) to a flop whose clock arrives later, the second flop might capture the new value just shifted into the first, a hold violation in shift mode that skips a bit.
A lock-up latch, clocked by the inverted clock of the source flop, is inserted between them. It becomes transparent only when the source clock goes low, so it holds the old value for an extra half cycle. The destination gets almost half a cycle of hold margin.
They are inserted by the DFT tool at chain crossings between clock domains, and between flops with large clock skew (for example across hierarchical blocks).
19Can positive-edge and negative-edge flops be in the same scan chain? In what order?
Yes, with care. Within one shift clock period, a negative-edge flop updates in the middle of the cycle.
- Negative-edge → positive-edge: the negedge flop changes at mid-cycle and the posedge flop captures at the next rising edge. It works normally.
- Positive-edge → negative-edge: the negedge flop would capture, half a cycle later, the value that the posedge flop just loaded in the same cycle, so two flops load the same bit in one shift and the chain shifts incorrectly.
So the usual rule is to put all negative-edge flops first in the chain, followed by the positive-edge flops (or keep them in separate chains, or use a lock-up element at a pos→neg junction).
20How do you decide the number and length of scan chains?
Test time is dominated by shifting: each pattern needs as many shift cycles as the longest chain. So:
- More, shorter, balanced chains reduce test time.
- The number of chains is limited by the available scan-in/scan-out pins (shared with functional pins in test mode) and the tester channels, unless compression is used.
Example: 100,000 scan flops, 16 scan-in and 16 scan-out pins available → 16 chains of 6,250 flops. Chains should be balanced within a few flops, and each chain should stay in one clock domain where possible (or have lock-up latches at crossings).
21Why is scan enable treated as a special net, and what timing does it need?
Scan enable (SE) goes to every scan flop, so it is a very high-fanout net and needs a buffer tree (built in placement by HFNS, or a pipelined tree).
Timing:
- For stuck-at and launch-on-capture, SE switches between shift and capture during slow cycles, so it can be relaxed (multicycle or false path in those modes).
- For launch-on-shift, SE must fall at speed, between the last shift edge and the capture edge one functional period later, which makes it timing-critical. That is a big reason many designs prefer launch-on-capture, or use pipelined scan-enable.
22What is a test mode signal, and how is it different from scan enable?
- Test mode (TM): a static signal, set once at the start of testing and held for the whole test. It reconfigures the design for testability: bypasses clock dividers and PLLs, controls asynchronous resets, breaks loops, enables OCCs and wrappers.
- Scan enable (SE): a dynamic signal that toggles during the test, selecting shift (SE = 1) or capture (SE = 0) for every pattern.
In STA, test mode is set with case analysis to create the test-mode timing view; scan enable is timed as a real signal.
23How does clock gating affect scan, and how is it handled?
An integrated clock gating cell controlled by functional logic could stop the clock to some flops during shift, breaking the chain.
ICG cells used in DFT designs have a test enable (TE) input ORed with the functional enable before the latch. TE is driven by scan enable (or test mode), so the clock always passes during shift. During capture, the functional enable still controls the gate, so the gating logic itself is tested. The enable latch inside the ICG is also scanned in some flows, or its logic is observed through test points, so faults in the gating logic are not missed.
24What is scan chain reordering, and what information does PD need from DFT for it?
Scan insertion stitches flops in an order based on the netlist, not their placement, so the chain wiring can criss-cross the die. After placement, the PD tool reorders the chain to follow the physical locations, saving wiring and congestion.
DFT provides a SCANDEF file: the chain start and end points, the stitched elements, which segments must stay fixed (ordered segments, lock-up latches, sub-chains from IP), and which flops may move between chains of the same clock domain and edge. After reordering, the new order is written back and the ATPG patterns are generated (or re-mapped) for the final netlist.
25Why should scan shift run at a lower frequency than the functional clock?
- Power: during shift, a large fraction of flops toggle every cycle (far more than in normal operation), causing high dynamic power and IR drop. Slower shifting reduces it.
- Timing: scan paths (Q to SI) are short but cross the whole die, and the SE tree is huge; they are not optimised for speed.
- Tester limits: scan pins and tester channels have limited speed.
Typical shift frequencies are tens of MHz. Only the at-speed launch and capture pulses run at the functional frequency.
26How do you reduce power during scan test?
- Low-power fill: ATPG fills the don’t-care bits of patterns with repeating values (adjacent fill) instead of random values, so fewer flops toggle during shift.
- Lower shift frequency, or staggered shift clocks for different regions.
- Gate the functional outputs of scan flops during shift (some libraries offer flops with gated Q to the logic), so the combinational logic does not toggle.
- Clock gating in shift for parts of the design not being tested (test partitions).
- Limit the capture power by constraining how many flops capture in one pattern or how many clock domains are pulsed together.
27What is a wrapper chain, and why are cores wrapped?
In a large SoC, cores are tested separately (hierarchical test). A wrapper adds scan cells at the core’s inputs and outputs so that:
- In internal (INTEST) mode, the core’s logic is tested in isolation: wrapper cells on the inputs control the core, and those on the outputs observe it, independent of surrounding logic.
- In external (EXTEST) mode, the wrapper cells test the interconnect and glue logic between cores.
Wrapping lets each core’s patterns be generated once (even reused from the IP vendor) and retargeted to the SoC top, reducing ATPG run time. IEEE 1500 standardises core wrappers.
28How are memories and analog blocks handled during scan test?
They are not made of scan flops, so they are tested separately (MBIST for memories, analog test methods for analog), and during logic scan test they must not inject X:
- Memories: add a bypass path (inputs XORed or muxed to outputs) in test mode, or model them for RAM-sequential ATPG so logic around them (shadow logic) can be tested through the memory. Otherwise, the memory outputs are X and the logic around it loses coverage.
- Analog blocks: isolate their outputs with test-mode muxes driven by controllable values, and observe their digital inputs with observe flops.
Not handling them gives both X problems and coverage loss in the “shadow” logic around them.
29What are test points, and when are they inserted?
Some faults are hard to control or observe even with scan, for example deep inside a wide AND tree (one input combination out of millions activates it). Test points fix this:
- Control points: an extra gate (AND/OR with a scan flop) that can force a hard-to-control node.
- Observe points: a scan flop added to capture a hard-to-observe node.
They are inserted to raise coverage, reduce pattern count for deterministic ATPG, and especially for logic BIST, where random patterns struggle with random-pattern-resistant faults. They add area and can affect timing, so they are placed with timing awareness.
30What simulation checks are done on scan patterns, and what is the difference between serial and parallel simulation?
Patterns generated by ATPG are verified by simulating them on the gate-level netlist (often with SDF timing) before being sent to the tester.
- Serial (full-shift) simulation: every bit is shifted in and out through the chains exactly as on the tester. It verifies the chains themselves (connections, lock-up latches, shift timing) but is slow, so only a few patterns are run this way.
- Parallel (broadside-load) simulation: the simulator forces the scan-in values directly into all flops at once, runs the capture, and reads all flops directly. It is fast and checks the capture behaviour of every pattern, but assumes the chains work.
The usual flow: chain test patterns and a few patterns serially, all patterns in parallel, both with timing for at-speed patterns.
31What is a chain test (scan chain integrity test), and why is it run first?
Before any logic test, the tester checks that the chains themselves shift correctly. It shifts a simple pattern such as 0011 0011... through each chain (no capture) and compares what comes out.
The 00110011 pattern exercises 0→0, 0→1, 1→1 and 1→0 transitions, so it detects stuck-at faults on the chain path and hold or setup problems in shift. If a chain is broken, every logic pattern using it will fail, so chain test failures are diagnosed first (chain diagnosis can locate the failing flop).
32What scan cell styles exist besides the mux-D flop?
- Mux-D scan flop: the most common; a mux before a normal flop. Adds mux delay on the functional D path (affects setup) and a scan enable net.
- Clocked scan: a separate scan clock and scan input on the flop; no mux in the data path, so less impact on functional timing, but needs an extra clock network.
- LSSD (level-sensitive scan design): latch-based, with separate non-overlapping master and slave clocks for shift (historically used by IBM). Robust against timing problems, but needs more clocks and area.
Most standard-cell ASIC flows use mux-D scan flops because they fit the normal single-clock design style.
33How are asynchronous resets handled in scan test? Can the reset logic be tested?
During shift, asynchronous resets must be held inactive, or they would clear the chains. DFT adds test-mode control so the reset of every flop comes from a controllable top-level pin (and internally generated resets are gated off in test mode).
The reset network itself is still tested: ATPG can generate patterns that pulse the asynchronous reset during the capture window (with clocks off) and check that the flops cleared. These are separate pattern sets because they need special timing. Recovery and removal checks in test mode are part of STA.
ATPG and coverage
34Explain the ATPG flow.
- Read the scan-inserted netlist and library models.
- Set up the test protocol: clocks, scan chains, scan enable, test-mode constraints, pin constraints (from DFT insertion or a test procedure file).
- Run DRCs on the setup (clocks controllable, chains traceable, X sources).
- Choose the fault model (stuck-at, transition, etc.) and add faults.
- Generate patterns: for each fault, find a vector that activates it and propagates the effect to a scan flop or output (algorithms descended from the D-algorithm and PODEM, with fault simulation to drop faults detected by other patterns).
- Compress the pattern set (dynamic and static compaction).
- Analyse coverage and undetected faults; adjust constraints or add test points.
- Write patterns in tester formats (STIL, WGL) and testbenches for simulation.
35What are the main ATPG algorithms? Explain the D-algorithm and PODEM briefly.
- D-algorithm: uses the 5-valued logic {0, 1, X, D, D̄}, where D means “1 in the good circuit, 0 in the faulty one”. It activates the fault, propagates the D through gates to an output (D-drive), then justifies all required internal values back to the inputs, backtracking on conflicts.
- PODEM (path-oriented decision making): makes decisions only on primary inputs, then simulates forward to see whether the fault is activated and propagated. Searching in the input space makes backtracking cheaper, so it is usually faster.
- FAN improved PODEM with heuristics for fanout and headlines.
Modern ATPG tools combine these with SAT-based solving, fault simulation and compaction.
36Coverage is 97% and the target is 99%. How do you find and fix the missing coverage?
- Report undetected faults by class (AU, ND, PT, UU, TI, BL) and by hierarchy. Usually a few modules account for most of the loss.
- AU (ATPG untestable) faults usually come from constraints: pins tied in test mode, non-scan flops, X sources, memories without bypass, analog boundaries, clock-domain capture restrictions. Fix the design or the setup (bypass memories, make flops scannable, allow more clock domains to capture).
- ND (not detected) faults: run ATPG with higher effort or more patterns; check aborted faults.
- PT (possibly detected) faults on X-affected nodes: remove the X source.
- Random-resistant logic: insert control or observe test points.
- Confirm the denominator: are proven untestable faults (unused, tied, redundant) correctly excluded from test coverage?
Explaining that coverage loss is a design and setup problem far more often than an ATPG effort problem is what interviewers listen for.
37What is pattern compaction? Static vs dynamic compaction.
Each pattern only needs a few bits specified to detect its target fault; the rest are don’t-cares.
- Dynamic compaction: while generating a pattern, ATPG tries to target additional faults using the don’t-care bits of the same pattern, so each pattern detects many faults.
- Static compaction: after generation, compatible patterns are merged, and patterns that detect no new faults (in a reverse-order fault simulation) are dropped.
Fewer patterns mean less test time and tester memory, at the cost of more ATPG run time.
38What is a redundant fault?
A fault is redundant if no input pattern can detect it, because the faulty circuit behaves exactly like the good one. It usually means there is redundant logic, for example a consensus term added to remove a hazard, or logic that is masked.
ATPG classifies it as untestable-redundant and excludes it from test coverage. Redundant logic is undesirable for test (and wastes area), but sometimes it is intentional (hazard-free design, error correction logic).
39Why does a circuit with a high stuck-at coverage still need transition fault patterns?
Stuck-at patterns are applied with slow capture, so they only check that each node can reach 0 and 1 eventually. A slow node (resistive via, weak transistor) passes those tests but fails in the real system at speed. Transition fault patterns launch a transition and capture it one functional period later, catching these timing-related defects. Modern nodes produce many such defects, so production tests usually include both, plus small-delay-defect patterns for critical parts.
40How are patterns delivered to the tester, and what are STIL and WGL?
ATPG writes patterns in standard formats that tester software translates into its own programs:
- STIL (Standard Test Interface Language, IEEE 1450): describes signals, timing (waveforms per cycle), scan structures and the pattern data.
- WGL (Waveform Generation Language): an older industry format with a similar role.
Test engineers combine these with DC tests, analog tests and binning in the tester program. Testbench versions of the patterns are also written for simulation.
41What is fault diagnosis, and why is it important after silicon?
When chips fail patterns on the tester, diagnosis uses the failing pattern numbers and failing scan cells, together with the netlist, to find the most likely defect locations (a net, a cell, a bridge between two nets).
It is used for yield learning: grouping many failing parts reveals systematic problems (a layout pattern, a via type, a cell) that can be fixed in the design or the process. Diagnosis needs the tester to log failures in enough detail and works better without heavy compression, so designs often support a bypass or diagnostic mode.
42What is sequential ATPG, and why is full scan preferred?
Sequential ATPG handles non-scan flops by searching over multiple clock cycles to set and observe their values. The search space grows explosively with sequential depth, so run time is long and coverage is lower.
With full scan, every flop is directly controllable and observable, so ATPG only solves one combinational time frame (or two for transition faults). That is why almost all digital designs use full scan, with only a few exceptions (some timing-critical flops, flops inside hard IP), whose surroundings are handled with limited sequential ATPG (for example RAM-sequential patterns).
43What is N-detect testing?
Normal ATPG stops as soon as a fault is detected once. N-detect generates patterns so each fault is detected N times by different patterns (different activating and propagating conditions).
Real defects often behave differently from the fault model, and detecting the same site many ways increases the chance of catching them, lowering DPPM. The cost is a larger pattern set. It is used for high-quality products alongside cell-aware and small-delay-defect patterns.
44Why can the number of ATPG patterns grow a lot when you add more clock domains or tighter constraints?
In each capture, ATPG can usually pulse only clocks that do not interact unsafely. With many clock domains that talk to each other, many faults can only be tested with specific clock combinations, so patterns cannot be shared across domains, and compaction becomes less effective. Constraints such as holding pins fixed or masking X-prone outputs also reduce the freedom of each pattern.
Remedies: allow multiple non-interacting domains to capture together, add test-mode synchronous clocking between domains, and reduce X sources so fewer bits need masking.
45What is a test protocol (test procedure) file?
It tells the ATPG tool how to operate the design in test mode, independent of the patterns:
- the test setup sequence: which pins to set, JTAG or register programming to enter test mode, PLL lock waits,
- how to shift: which clocks to pulse, scan enable value, timing of each cycle,
- how to capture: which clocks may pulse, how OCCs are programmed,
- the waveform and timing of each signal within a cycle.
Tessent calls it a test procedure file; DFTMAX/TestMAX writes it as an SPF (STIL procedure file). Errors here cause DRC failures or patterns that fail in simulation.
46How are “possibly detected” faults counted in coverage?
A fault is possibly detected (PT/PD) when the good circuit produces a known value at an observation point, but the faulty circuit produces an X there. On silicon it may or may not be caught.
Tools usually give these faults partial credit, commonly 50%, in the coverage number (configurable). A large number of PT faults points to X sources (uninitialised memories, analog outputs, tri-states) near the fault sites, and fixing those sources converts PT to detected faults.
47What is pattern retargeting in hierarchical test?
In hierarchical DFT, patterns are generated for each core in isolation (using its wrapper and its own compression logic), at the core’s boundary. Retargeting maps those core-level patterns to the chip-level pins through the test access network (scan muxes, IJTAG, or a streaming scan network), merging the patterns of several cores that are tested in parallel.
Benefits: ATPG runs on small cores instead of the whole SoC (much faster), patterns for an identical core can be reused for every instance, and work can start before the top level is complete.
At-speed test and clocking
48Explain launch-on-shift (LOS) and launch-on-capture (LOC).
Both apply a two-vector test for transition faults; they differ in how the second vector is created.
- Launch-on-shift (skewed-load): the last shift clock launches the transition (vector 2 is vector 1 shifted by one bit). Scan enable must then drop at speed before the capture edge one functional period later. Pros: fewer patterns, higher coverage (ATPG controls vector 2 directly). Cons: scan enable timing is hard.
- Launch-on-capture (broadside): after shifting with SE high, SE drops slowly; then two functional clock pulses are applied at speed: the first launches (vector 2 is the circuit’s response to vector 1), the second captures. Pros: SE timing is relaxed. Cons: more patterns, somewhat lower coverage, because vector 2 is constrained by the logic.
Many designs use LOC as the main method, adding LOS where SE timing allows.
49What is an on-chip clock controller (OCC), and why is it needed?
An OCC sits between the PLL and the clock tree for each clock domain. It selects:
- the slow tester shift clock during shift, and
- a programmed burst of fast PLL pulses (usually 1 to 4) during capture for at-speed tests.
It contains a clock mux (glitch-free), a pulse-count shift register loaded through scan (so ATPG chooses how many capture pulses each domain gets in each pattern), and synchronisation logic. Without OCCs, the tester would have to supply GHz clocks, which it cannot do cleanly, and different domains could not be controlled independently in capture.
50What timing constraints are needed for at-speed test modes?
Separate STA modes are signed off for test:
- Shift mode: slow shift clock; check shift paths (Q to SI), scan enable, lock-up latches. Setup is easy; hold in shift is the main concern because the scan paths have no logic.
- Capture mode (stuck-at): slow capture clock from the tester.
- At-speed capture: functional clock frequencies from OCCs, with the same exceptions as functional mode plus test-specific ones (false paths between domains not pulsed together, multicycle paths).
ATPG must know which paths are exceptions (for example, through an SDC-driven setup): if a multicycle path is captured at speed, the result is unpredictable, so those flops are masked, or the slow paths are excluded from at-speed patterns.
51How do you test paths between two clock domains during at-speed test?
Inter-domain paths are tested only if the two clocks have a known relationship during capture, for example derived from the same PLL with the OCCs giving pulses in a defined order and spacing. Then ATPG can launch from one domain and capture in the other, and STA signs off that timing relationship in the test mode.
For asynchronous domains, inter-domain paths are not timed, so ATPG must avoid capturing across them at speed: it pulses one domain at a time or masks the receiving flops. Paths through synchronizers are tested for stuck-at only.
52Why do hold violations appear in scan shift mode, and how are they fixed?
Scan shift paths go directly from Q to the next flop’s SI, often with almost no logic. If the receiving flop’s clock arrives later than the sending flop’s (skew between clock branches or domains), the new data races through before the receiver’s hold window ends.
Fixes:
- Lock-up latches between domains or between distant clock branches.
- Hold buffers on the scan path (PD inserts them; they do not affect functional timing because they are on the SI path only).
- Reorder chains so consecutive flops share clock branches.
- Make sure the shift mode is included in the PD hold-fixing views.
53What is the difference between a stuck-at test and a transition test in terms of clock pulses?
- Stuck-at: shift in, one capture pulse (can be slow), shift out.
- Transition (LOC): shift in, then two capture-mode pulses at functional speed (launch and capture), shift out.
- Transition (LOS): the last shift pulse is the launch, then one at-speed capture pulse.
Some designs use more than two pulses for multi-cycle sequential patterns, for example to test through a memory or a pipeline, which OCCs support by programming more pulses.
54What is a clock domain in DFT terms, and why do DFT engineers care about them?
For DFT, a clock domain is a group of flops driven by the same test clock source that can be pulsed independently (usually one per OCC or per top-level test clock).
It matters because:
- each scan chain should ideally contain flops of one domain (or use lock-up latches at crossings),
- capture between domains needs a known relationship or masking,
- pulsing many domains at once increases capture power,
- the number of domains affects pattern count and coverage.
55What does a PLL do in test mode, and what if the PLL itself is faulty?
In at-speed test, the PLL runs at its functional frequency and feeds the OCCs, which pass the fast capture pulses. The PLL must be locked before at-speed patterns start, so the test program includes a lock sequence.
The PLL is an analog/mixed-signal block, so scan does not test it. It has its own tests: lock detection, frequency measurement with on-chip counters, jitter tests, and sometimes BIST. If the PLL fails, at-speed tests cannot run, which is why PLL tests run early in the test flow and why designs keep a bypass to run slow tests from the tester clock.
56What is small delay defect (SDD) testing?
Standard transition ATPG detects each fault through whatever path is easiest, often a short path with lots of slack. A small extra delay at that node would only cause a failure on a long path, so it escapes.
Timing-aware or SDD ATPG uses timing information (from SDF or STA) to propagate each fault through the longest sensitisable paths, so smaller delays are detected. It increases pattern count and is used for high-quality markets.
57Why might at-speed patterns fail on silicon but pass in simulation?
- IR drop during capture: at-speed capture with many flops switching causes a voltage drop that slows paths beyond what STA assumed (STA uses functional activity, which is lower). Fix: power-aware pattern generation, fewer domains capturing at once, low-power fill.
- Untimed or wrongly constrained paths captured at speed (a multicycle or false path not masked).
- Process variation: the part is slow but within spec for functional use (test guard bands too tight).
- Tester or PLL setup issues: wrong frequency, PLL not locked.
- Real timing defects, which is what the test is for.
Diagnosis and comparison across many parts separate systematic causes from real defects.
Compression and logic BIST
58How does scan compression work?
With compression, a few external scan channels feed many short internal chains:
- A decompressor (an LFSR or ring generator with a phase shifter, as in Tessent EDT, or a combinational spreading network, as in DFTMAX) expands the data from a few channels into values for all internal chains. ATPG solves equations so that the care bits (the few bits each pattern really needs) come out right.
- A compactor (an XOR tree, sometimes with a MISR) combines the responses of many chains into a few output channels, with X-masking logic to block unknown values.
Because internal chains are much shorter, shift time and tester memory drop by roughly the compression ratio (internal chains ÷ external channels), typically 10× to 100× or more.
59What limits the compression ratio? What happens to coverage and pattern count as you increase it?
- Care-bit density: each pattern needs some bits specified. Too few channels cannot deliver enough independent bits, so ATPG must split faults across more patterns, and some faults become untestable in compressed mode.
- X values: more chains per output channel means one X can corrupt more chains; masking reduces observability.
- Aliasing in the compactor (two errors cancelling), which XOR compactors mostly avoid for single errors.
As the ratio increases, test data volume and time per pattern go down, but pattern count goes up, and coverage can drop slightly. The best ratio balances them; designs often add a low-compression or bypass mode for diagnosis and for faults that only test without compression.
60Calculate the test time with and without compression.
Design: 200,000 scan flops, 8 scan channels, shift at 50 MHz.
Without compression: 8 chains of 25,000 flops. With 3,000 patterns: cycles ≈ 3,000 × (25,000 + 1) ≈ 75 M, time ≈ 75 M / 50 MHz ≈ 1.5 s.
With compression of 8 channels into 400 internal chains of 500 flops: patterns typically rise somewhat, say to 4,000. Cycles ≈ 4,000 × (500 + 1) ≈ 2.0 M (plus a few cycles per pattern for the decompressor), time ≈ 2.0 M / 50 MHz ≈ 40 ms.
That is close to a 37× reduction despite more patterns. Shift cycles dominate, which is why chain length matters so much.
61What is logic BIST (LBIST)? Explain the STUMPS architecture.
Logic BIST tests the logic on chip without external patterns, which is useful for in-field testing (automotive power-on self-test) and to reduce tester cost.
STUMPS (self-test using MISR and parallel shift-register sequence generator):
- A PRPG (pseudo-random pattern generator, an LFSR with a phase shifter) feeds the scan chains with pseudo-random patterns.
- The circuit captures responses in the chains.
- A MISR (multiple-input signature register) compresses all chain outputs into one signature.
- After N patterns, the signature is compared with the expected golden value (computed by simulation).
Challenges: random-pattern-resistant faults need test points, and any X corrupts the signature, so the design must be completely X-free (or X-bounded) in BIST mode.
62What is a MISR, and what is aliasing?
A MISR is an LFSR whose stages each XOR in one input every clock. Over many cycles it compresses a long stream of responses into a short signature (for example 32 bits).
Aliasing happens when a faulty response stream produces the same signature as the good one, so the fault escapes. For an n-bit MISR with long random-looking error streams, the aliasing probability is about 2^−n, so a 32-bit MISR has about a 1 in 4 billion chance. Larger MISRs or reading intermediate signatures reduce it further.
63What is broadcast (Illinois) scan, and how is it different from LFSR-based decompression?
Broadcast scan feeds one scan input to several internal chains at once, so those chains always receive the same data. It is very simple, but any fault that needs different values in two chains sharing an input cannot be tested in broadcast mode, so a serial (non-broadcast) mode is needed for those faults.
LFSR / ring-generator decompressors (as in Tessent EDT) continuously combine the input bits over time and space through a linear network, so the bits delivered to each chain are different linear combinations. ATPG solves linear equations to make the care bits come out right. This handles much higher compression ratios with little loss of coverage. Combinational spreading networks (as in DFTMAX) sit between the two approaches, with selectable modes.
64Why is an X value so damaging in logic BIST?
In ATPG, an X in one flop only makes that one bit unknown; the tester simply masks it. In BIST, every response bit is folded into the MISR. Once an X enters, it spreads through the feedback and makes the entire signature unpredictable, so the test cannot pass or fail reliably.
So BIST designs must remove all X sources: bound memories and analog outputs, initialise every non-scan flop, avoid floating buses, and block paths that are not timed at BIST speed.
65What is the difference between deterministic ATPG patterns and pseudo-random BIST patterns?
- Deterministic ATPG: each pattern is computed to target specific faults, so coverage is high with relatively few patterns, but patterns must be stored on the tester and shifted in.
- Pseudo-random BIST: patterns are generated on chip by an LFSR, so storage is almost zero and test can run in the field, but many more patterns are needed, and some faults (random-pattern resistant) are hard to reach without test points.
Hybrid approaches add a small number of deterministic top-up patterns, or reseed the LFSR with values computed by ATPG.
66Why are LBIST and in-system test important for automotive (ISO 26262) chips?
Automotive safety standards require detecting faults that appear during the product’s life (latent faults), not only at manufacturing. LBIST and MBIST run at power-on, periodically, or at key-off, so the system can detect a failing chip and go to a safe state.
This adds requirements: BIST must finish within a time budget, must not disturb other functions, must have known diagnostic coverage numbers for the safety analysis, and must be controlled from software (in-system test controllers).
67What are X-masking and X-tolerant compaction?
If one chain feeding an XOR compactor carries an X in a shift cycle, the compactor output for that cycle is X, hiding all the other chains combined into it.
- X-masking: gating logic before the compactor blocks selected chains (or bits) in each pattern, with mask data supplied by ATPG through the channels.
- X-tolerant compactors are designed so that several chains with errors and a limited number of Xs can still be observed in some outputs.
Both reduce the loss of observability, but the best fix is still removing X sources in the design.
68How is compression inserted with respect to scan chains and hierarchy in a big SoC?
Large SoCs usually put compression logic per core or per partition: each core has its own decompressor, compactor and internal chains, and a top-level test access network (for example a scan channel mux, or an IEEE 1687/IJTAG or packetised streaming scan network) routes the limited top-level pins to the cores under test.
This enables hierarchical ATPG (patterns generated per core and retargeted), testing several cores in parallel within power limits, and reusing the same core test in different SoCs.
Memory BIST and repair
69Why do memories need BIST instead of scan?
Memories are dense arrays of bit cells, not flops, so they cannot be put in scan chains. They also have specific defects (bit cells stuck, cells coupled to neighbours, address decoder faults, slow sense amplifiers) that need specific read/write sequences, and there are many of them with millions of bits.
MBIST adds an on-chip controller that generates addresses and data, runs March algorithms, compares the read data, and reports pass/fail (and failing locations for repair). It runs at speed, needs only a few pins (often controlled through JTAG), and tests all memories in parallel or in groups.
70Explain a March algorithm. What does March C− detect?
A March test is a sequence of March elements; each element walks through all addresses in a given order (⇑ up, ⇓ down, ⇕ either) applying the same operations at each address.
March C−: ⇕(w0); ⇑(r0, w1); ⇑(r1, w0); ⇓(r0, w1); ⇓(r1, w0); ⇕(r0)
That is 10 operations per address (10N). It detects:
- stuck-at faults (each cell written and read as 0 and 1),
- transition faults (each cell goes 0→1 and 1→0 and is read after),
- address decoder faults (addresses visited in both directions),
- coupling faults between cells (inversion and idempotent), because each cell is read after its neighbours on both sides have been written in both directions.
Other algorithms (MATS+, March B, March SS, checkerboard) trade test time against fault coverage.
71What are the main memory fault models?
- Stuck-at fault (SAF): a cell always reads 0 or 1.
- Transition fault (TF): a cell cannot make a 0→1 or 1→0 transition.
- Coupling fault (CF): a write or transition in one cell (aggressor) changes another cell (victim). Types: inversion (CFin), idempotent (CFid) and state coupling (CFst).
- Address decoder fault (AF): an address accesses no cell, the wrong cell, or several cells.
- Data retention fault: a cell loses its value over time (tested with a pause between write and read).
- Read disturb / write disturb, and dynamic faults that need back-to-back operations.
- Neighbourhood pattern sensitive faults in dense memories.
72How long does an MBIST March C− test take on a 64K × 32 memory at 500 MHz?
March C− has 10 operations per address. A 64K-word memory has 65,536 addresses, and each operation handles one full 32-bit word.
Operations: 10 × 65,536 = 655,360. At one operation per cycle at 500 MHz (2 ns): 655,360 × 2 ns ≈ 1.31 ms.
Background data patterns (solid, checkerboard, row/column stripes) multiply the time if several are used. Many memories are tested in parallel, limited by power, which is why MBIST controllers group memories into test steps.
73What is memory repair? Explain redundancy, BIRA and eFuses.
Large memories occupy much of the die and contain most of the bit cells, so they dominate yield loss. Repair replaces failing parts with spare ones:
- Memories include redundant rows and/or columns.
- MBIST finds failing cells; BIRA (built-in redundancy analysis) decides which spare rows or columns best cover the failures.
- The repair solution is stored permanently in eFuses (or antifuses), blown on the tester.
- At every power-up, the fuse contents are loaded into the memories’ repair registers (often through a serial repair chain), and the memories remap the failing addresses to spares.
A memory with more failures than spares cannot be repaired, and the chip is discarded. Repair can raise yield substantially for memory-heavy chips.
74How does MBIST connect to the memories, and how is it controlled?
- MBIST insertion tools (Tessent MemoryBIST, Synopsys STAR, Cadence Modus) add interfaces (collars or wrappers) around each memory, with muxes that select test or functional inputs.
- One controller can test several memories, sequentially or in parallel, sharing logic.
- Controllers are accessed through JTAG (IEEE 1149.1) or an IJTAG (IEEE 1687) network, so the tester can start tests, read status and fail data with a few pins.
- Controllers can also be started by a hardware signal or software for in-field test.
Timing of the MBIST paths (they run at memory speed) and the added muxes on functional memory paths must be checked in STA.
75An MBIST simulation shows a mismatch. How do you debug it?
- Identify which memory, which algorithm step, address and data bit failed from the controller’s fail log or diagnostic output.
- Check the memory model: correct simulation model and configuration (words, bits, column mux, write masks, read latency). A wrong latency setting in the MBIST configuration is a very common cause.
- Check the test setup: clocks, resets, test-mode pins, JTAG sequence, and whether the memory is enabled (power, retention, sleep pins).
- Look at the waveform at the memory interface: are address, data, write enable and read data what the algorithm expects?
- Check the functional-path muxes and any pipeline stages between the controller and the memory.
- For gate-level simulation with timing: check for timing violations on the MBIST paths.
76What is the difference between MBIST and memory testing through scan (RAM-sequential)?
- MBIST tests the memory array itself with dedicated algorithms at speed, giving high coverage of memory-specific faults.
- RAM-sequential ATPG treats the memory as a sequential element so scan patterns can write into and read from it. Its main purpose is to test the logic around the memory (address and data paths, shadow logic), not the bit cells.
They complement each other: MBIST for the array, scan (with a bypass or RAM-sequential) for the surrounding logic.
77Why are checkerboard and other data backgrounds used in MBIST?
Writing all-0 or all-1 data does not stress cells against their physical neighbours. Coupling and leakage between adjacent cells are worst when neighbours hold opposite values.
Checkerboard (alternating 0 and 1 in both rows and columns), row stripes and column stripes create those conditions. Since physical neighbours depend on the memory’s internal layout (address scrambling, column muxing), the MBIST tool uses the memory’s scrambling information to generate true physical patterns.
78What is a retention test, and how is it done?
Some defects make a cell slowly lose its stored charge (weak pull-up, leakage). The cell passes back-to-back write/read tests but loses its data after some time.
A retention test writes a pattern, waits (pauses for milliseconds, possibly in a low-power retention mode with reduced voltage), then reads and compares. It is done for both data values. Because the pause costs test time, it is applied with all memories in parallel, and often only at certain test insertions.
79How do soft repair and hard repair differ?
- Hard repair: the repair information is found on the tester and permanently programmed into eFuses. It is loaded at every power-up.
- Soft repair: MBIST and BIRA run at every power-up, and the result is loaded into the repair registers without fuses. It can also fix defects that appear later in life, but adds boot time and needs the analysis logic in every product.
Many products combine them: hard repair from manufacturing, plus soft repair at power-up to catch new failures.
80What is ROM BIST, and how is it different from RAM BIST?
A ROM cannot be written, so March algorithms do not apply. ROM BIST reads every address and compresses the data into a signature (with a MISR or CRC), then compares it with the expected signature computed from the ROM contents. Reading in both address directions helps detect address decoder faults.
If the ROM code changes, the expected signature changes too, so it must be regenerated with every ROM update.
JTAG, boundary scan and test standards
81What is JTAG (IEEE 1149.1)? Name the TAP signals and the main instructions.
IEEE 1149.1 defines a test access port (TAP) and boundary scan architecture for testing board interconnects and accessing on-chip test features.
TAP signals: TCK (test clock), TMS (test mode select, drives the TAP state machine), TDI (data in), TDO (data out), and optional TRST (asynchronous reset).
Registers: the instruction register (IR) and data registers: boundary scan register, BYPASS (1 bit), IDCODE (32 bits), and user-defined registers.
Mandatory instructions: BYPASS, SAMPLE/PRELOAD, EXTEST. Common optional ones: IDCODE, INTEST, CLAMP, HIGHZ, plus private instructions that control MBIST, scan modes and debug.
82Draw the TAP controller state machine. How do you reset the TAP without TRST?
The TAP controller is a 16-state FSM controlled only by TMS on rising TCK edges. It has two symmetric branches: one for data registers (DR) and one for the instruction register (IR), each with Capture, Shift, Exit1, Pause, Exit2 and Update states, plus Test-Logic-Reset, Run-Test/Idle, Select-DR-Scan and Select-IR-Scan.
Reset without TRST: hold TMS = 1 for at least five TCK cycles. From any state, five consecutive 1s lead to Test-Logic-Reset. This is designed into the state machine on purpose, which is why TRST is optional. A power-on reset also puts the TAP in Test-Logic-Reset.
83What is boundary scan, and what does EXTEST do?
Boundary scan places a boundary scan cell between each I/O pin and the core logic. The cells form a shift register (the boundary scan register) accessible through the TAP.
- EXTEST: the cells drive values onto output pins and capture values from input pins, ignoring the core. Connected chips on a board do the same, so shorts and opens between chips on the PCB can be found without physical probes.
- SAMPLE/PRELOAD: captures the pin values during normal operation without disturbing it, and preloads values before EXTEST.
- INTEST (optional): tests the core logic using the boundary cells as its inputs and outputs.
84What is the BYPASS register, and why is it needed?
On a board, many chips’ TAPs are daisy-chained (TDO of one to TDI of the next). To access one chip, the others are put in BYPASS, which connects TDI to TDO through a single flip-flop. That shortens the total chain from thousands of boundary cells to one bit per bypassed chip.
The BYPASS instruction is the all-ones IR code, so an undriven or stuck-high TDI naturally selects it, a safe default.
85Why was IEEE 1500 created when JTAG (1149.1) already existed?
IEEE 1149.1 is designed for chips on a board: one TAP per chip, with a fixed state machine and pin-based protocol. Inside an SoC, there are many embedded cores that need to be tested separately and in parallel.
IEEE 1500 standardises a core test wrapper: wrapper boundary cells around each core, a wrapper instruction register (WIR), and a serial interface (WSI/WSO) plus optional parallel ports for high-bandwidth scan data. It has no TAP state machine of its own, so a top-level TAP or controller drives it. It lets core providers deliver test-ready IP that SoC integrators can test in isolation (INTEST) and test the interconnect between cores (EXTEST).
86What is IEEE 1687 (IJTAG)?
IEEE 1687 defines a flexible network for accessing the many on-chip instruments (MBIST controllers, PLL test registers, sensors, debug features) through a JTAG port.
It uses segment insertion bits (SIBs) that can open or close parts of the scan path, so only the instruments of interest are in the path, keeping it short. Two languages describe it: ICL (instrument connectivity language) for the hardware and PDL (procedural description language) for the operations. Instrument procedures written at the instrument level can be retargeted automatically to the chip’s top-level pins, which simplifies test reuse across SoCs.
87What is the IDCODE register used for?
It is a 32-bit register with the manufacturer ID (JEDEC code), part number and version, ending with a fixed 1 bit. After TAP reset, if the IDCODE instruction exists, it is selected by default, so a board tester can shift it out to confirm which chips are on the board and that the scan chain through them works, before running other tests.
88What is the difference between EXTEST and INTEST?
- EXTEST: the boundary cells control the outputs and observe the inputs of the chip, to test the external board connections. Core logic is isolated.
- INTEST: the boundary cells apply test values to the core’s inputs and capture its outputs, to test the internal logic through the boundary register. It is slow and rarely used for production test today, where scan is used instead, but the same concept is used in core wrappers (IEEE 1500) for core isolation.
89How is a chip’s test mode entered, and why must it be protected?
Test modes are usually entered through dedicated pins (test mode pins), JTAG instructions, or both, often followed by programming test-control registers through the TAP.
Protection matters because test access can expose internal state, secret keys or debug features: an attacker could use scan to read out cryptographic keys. Secure designs lock JTAG and test modes after manufacturing (fuses), require authentication to unlock, reset or scramble sensitive registers when entering test mode, and keep secret-holding flops out of scan chains.
90How do test pins get shared with functional pins?
Chips rarely have spare pins for dozens of scan channels, so functional I/O pins are muxed: in test mode, controlled by the test-mode signal or a TAP instruction, some pins become scan-in, scan-out, scan enable or test clocks.
Considerations: the pin’s direction must match (inputs for scan-in, outputs for scan-out), bidirectional pads need their enables controlled in test mode, high-speed I/O (SerDes) pins are not suitable, and STA must check the timing of the muxed paths in test mode.
91What is a BSDL file?
BSDL (Boundary Scan Description Language, a subset of VHDL) describes a chip’s IEEE 1149.1 implementation: the TAP pins, instruction register length and opcodes, the IDCODE, and the boundary scan register (each cell’s type, the pin it is attached to, its control cell and safe value).
Board test tools read the BSDL files of every chip on a board to build interconnect tests automatically. A wrong BSDL causes failures on every board, so it is validated against the silicon (or the netlist) before release.
Scenarios and projects
92A scan chain fails in serial simulation. How do you debug it?
- Run the chain test pattern and find which chain fails and at which bit position the expected and actual data first differ. The failing position points to the location along the chain.
- Check the setup: test-mode pins, scan enable, clocks reaching every flop, reset inactive, OCC in shift mode.
- Look for X propagation: an X at the scan-out from the start means something in the chain is uninitialised or uncontrolled (a clock gate closed, a flop in reset).
- Look for shift timing issues (in timing simulation): hold violations between domains (missing lock-up latch), or setup on long scan paths.
- Check connectivity in the netlist around the failing position: a missing connection after ECO or reordering, an inverted scan path not reflected in the pattern.
93Patterns pass in simulation but fail on the tester. What could be wrong?
- Timing: the silicon is slower or faster than the simulation corner; check failing patterns against stuck-at vs at-speed, shift frequency, and try lower frequency or different voltage (shmoo plots).
- Power: IR drop during shift or capture; failures depend on pattern activity.
- Test program setup: wrong pin mapping, timing edges, levels, PLL lock sequence, or a missing initialisation pattern.
- Pattern issues: patterns generated from a netlist that does not match the silicon (late ECO not included), wrong test-mode constraints.
- Real defects: if failures are spread across parts randomly, run diagnosis.
Comparing failures across many parts and conditions separates systematic issues (all parts fail the same way) from defects (random parts).
94Test time is too high for the product cost. How do you reduce it?
- Increase compression (more internal chains per channel) or add scan channels if pins allow.
- Raise shift frequency if timing and power allow.
- Reduce patterns: better compaction, removing redundant pattern sets, fixing X sources that force extra patterns.
- Test cores in parallel within the power budget.
- Use BIST for parts of the test (memories already; logic BIST for some cores).
- Optimise the test program: fewer test insertions, multi-site testing (many dies in parallel on the tester).
95How would you test a design with many clock domains and asynchronous interfaces?
- Give each functional clock a test clock path: OCC per PLL clock, test muxes for internally divided clocks, controlled from the tester in shift.
- Group flops into scan chains by clock domain, with lock-up latches at crossings.
- Handle synchronizers and asynchronous FIFOs: in capture, only pulse one side at a time or mask the receiving flops; scan the synchronizer flops too.
- Make the clock relationships between OCC-driven domains known where possible, so inter-domain logic is tested.
- Sign off timing in shift, stuck-at capture and at-speed capture modes.
96How do you explain your DFT project in an interview?
Structure it as a flow with numbers:
- Design: size (flops, memories, clock domains), technology, frequency.
- DFT architecture: number of chains and channels, compression ratio, OCCs, MBIST controllers, JTAG and IJTAG network, wrappers.
- DRCs you hit and how you fixed them (uncontrolled resets, clock gating, X sources).
- ATPG results: stuck-at and transition coverage, pattern counts, what limited coverage and what you did.
- Verification: serial and parallel pattern simulation, with timing; MBIST simulation.
- Timing: shift and capture modes in STA, hold fixes, lock-up latches.
- One real problem and how you debugged it.
Interviewers will ask “why” at each step: why that compression ratio, why LOC instead of LOS.
97What is the difference between DFT for an ASIC and DFT for an FPGA?
An ASIC user designs the test structures (scan, compression, MBIST, JTAG) into the logic, because each manufactured chip must be tested for defects.
In an FPGA, the FPGA vendor has already tested the device’s fabric and memories with their own DFT. The user’s design is configured onto tested hardware, so users do not insert scan. They use JTAG for configuration and debug (on-chip logic analysers) and may add built-in self-checks for in-field reliability. DFT engineering jobs are almost all on the ASIC side or with FPGA vendors themselves.
98What are typical DFT sign-off criteria?
- Scan DRCs clean (or every violation waived with a reason).
- Coverage targets met: for example ≥ 99% stuck-at test coverage and ≥ 90 to 97% transition coverage (targets vary by product and market), with undetected faults analysed.
- Patterns verified in serial and parallel simulation, with timing for at-speed sets, at the required corners.
- MBIST inserted for every memory, simulated, with repair verified.
- JTAG / IJTAG compliance checks (BSDL file validated).
- STA clean in all test modes.
- LEC passes between pre- and post-DFT netlists (with test mode off).
- Test time and pattern volume within the tester budget.
99How does DFT interact with physical design and STA teams?
- PD needs the SCANDEF for chain reordering, places OCCs and MBIST controllers near their clocks and memories, builds the scan enable tree, and fixes hold in shift mode.
- STA needs test-mode SDCs (shift, capture, at-speed) and signs them off along with functional modes.
- DFT must re-run ATPG or pattern mapping after any netlist change (reordering, ECOs), and check coverage did not drop.
- Design teams own fixes for DRC issues in RTL (clock and reset control), ideally caught early with RTL-level DFT checks.
Good DFT engineers get involved at RTL and floorplan time, not only after synthesis.
100After a late netlist ECO, transition coverage dropped by 1%. What do you check?
- Compare the fault lists before and after: which modules lost coverage, and which fault classes grew (AU, ND, PT)?
- Check whether the ECO broke a scan connection or reordered a chain without updating the SCANDEF and test protocol (chains still trace correctly in DRC?).
- Check for new X sources or non-scan flops added by the ECO (spare cells used as flops are often non-scan).
- Check test-mode control: a new reset or clock path not controlled in test mode.
- Check timing exceptions: if new paths became multicycle or false in the test SDC, ATPG now masks their flops in at-speed capture.
Then fix the cause and regenerate patterns; LEC with test mode on and off confirms nothing else changed.