DFT Interview Questions: Scan Chains, ATPG and Stuck-At Faults
Prepare for DFT interviews with a worked scan-chain trace and clear explanations of ATPG, stuck-at faults and test coverage.
Design for test (DFT) adds structures that make manufactured hardware easier to test. These interview questions start with controllability and observability, then work through a scan chain and a simple stuck-at fault.
1. Why add DFT to a digital design?
Internal state and logic can be difficult to control from input pins or observe at output pins. Test structures provide additional ways to initialize state, apply patterns and observe results. DFT improves testability but adds area, routing, timing and test-time trade-offs.
2. What is a scan flip-flop?
A typical scan flip-flop selects either a functional data input or a scan input. In scan shift mode, scan flops connect as a serial chain. In capture mode, the functional path supplies data for a clock edge. Actual scan-cell behavior, clocks and test controller rules are defined by the implementation.
3. Worked scan-chain trace
Assume three rising-edge scan flops with SI stable around each sampling edge. In this idealized shift model, all flops sample on the same edge: Q0 receives SI, Q1 receives the old Q0, and Q2 receives the old Q1. Scan output SO is Q2. Scan enable stays high for the three edges; initial state before the first edge is Q2 Q1 Q0 = 000. Post-edge values mean values after the outputs have settled.
SI ──► [ Q0 ] ──► [ Q1 ] ──► [ Q2 ] ──► SO
shared rising-edge clock; scan enable = 1| Rising edge | SI sampled | Q2 Q1 Q0 before edge | Q2 Q1 Q0 after edge | SO after edge |
|---|---|---|---|---|
| 1 | 1 | 000 | 001 | 0 |
| 2 | 0 | 001 | 010 | 0 |
| 3 | 1 | 010 | 101 | 1 |
Thus the settled post-edge SO sequence is 0, 0, 1. If a tester samples the settled SO value before each shift edge instead, the sequence for these three edges is 0, 0, 0. The sampling convention matters.
Follow-up: What occurs at the fourth edge if SI is 0? The post-edge state is 010; post-edge SO is 0. This example does not describe scan-out timing delays or tester setup/hold margins.
4. What happens during capture?
After loading a scan pattern, scan enable is switched to the specified capture mode at a safe time relative to the clock. A capture edge samples functional responses into scan flops. Subsequent shift cycles can move captured values toward scan output. The exact number and timing of capture pulses depend on the test architecture.
5. What is a stuck-at fault?
In a stuck-at model, a selected line is modeled as permanently 0 or permanently 1. To detect a fault, a test must activate it and propagate its effect to an observable point. This is a fault model, not a claim that every physical defect behaves as a permanently stuck logic value.
6. Worked fault example: a two-input AND
Let Y = A & B and suppose the line carrying A into the gate is stuck at 0. Apply A=1, B=1: the fault-free output is 1 while the modeled faulty output is 0. If Y is observable, the pattern distinguishes them. With B=0, both outputs are 0, so the fault effect is masked at Y.
Follow-up: If Y feeds more logic, what else is needed? Propagate the difference through that logic to an observed output or captured scan element.
7. What does ATPG do?
Automatic test pattern generation seeks patterns that detect faults under a specified fault model and set of test constraints. A tool may report detected, undetected, untestable or other categories according to its definitions. Constraints and limited observability can make a fault difficult or impossible to detect.
8. Is fault coverage the same as test coverage?
Definitions vary by tool and methodology. Ask what fault population and categories appear in each numerator and denominator before comparing percentages. A high result for one model is not proof that every physical defect will be found.
9. What are MBIST and JTAG?
Memory built-in self-test (MBIST) uses dedicated logic to exercise memories using defined test algorithms. JTAG commonly refers to IEEE 1149.1 test access and boundary-scan features. Neither term means all memory and board faults are automatically detected.
10. What scan trade-offs matter?
Scan insertion changes area, routing and potentially functional timing; shifting can affect power and test time. Chain length, number of chains and compression can change tester requirements and implementation complexity. Evaluate the actual architecture rather than assuming a single best chain count.
Review flip-flop and synchronous logic fundamentals in Digital Design interview questions, and see ASIC Verification interview questions for verification methodology.
Practice hardware interview questions
Practice explaining technical assumptions and design trade-offs.