To resolve this contradiction, engineers have developed a suite of DFT techniques that inject testability into the architecture before the first line of RTL (Register Transfer Level) code is written.
1. Scan Chain Design (the most ubiquitous DFT technique) The dominant solution for sequential circuits is scan testing. During normal operation, flip-flops act as state-holding elements. In test mode, these same flip-flops are reconfigured into a giant shift register, or "scan chain." Test vectors are shifted in serially, setting every internal flip-flop to a known state in just a few hundred clock cycles. After a single functional clock pulse captures the circuit's response, the result is shifted out for comparison. This elegantly converts a complex sequential test problem into a simpler combinational one.
2. Built-In Self-Test (BIST) For critical or embedded systems (like memory cores or automotive ICs), external testers become impractical. BIST embeds the test logic directly on the chip. A Linear Feedback Shift Register (LFSR) generates pseudo-random test patterns, while a Multiple Input Signature Register (MISR) compresses the output responses into a unique "signature." If the signature matches the golden value, the circuit is fault-free. BIST allows a chip to test itself at power-up or during mission mode—a vital feature for avionics or medical implants.
3. Boundary Scan (JTAG) Physical access to pins is a luxury of the past. The IEEE 1149.1 standard (JTAG) solves this by placing a shift-register cell between every functional pin and the core logic. These boundary-scan cells can be used to drive signals into the chip or capture outputs, enabling in-circuit testing of soldered boards without physical probes. It is the silent workhorse of every electronics manufacturing line.
ATPG algorithms generate the input vectors required to detect faults. The industry standard is the D-Algorithm and its successors (like PODEM and FAN), which use path sensitization and backtrace techniques to propagate a fault to an observable output. Modern ATPG tools are "fault-oriented," calculating patterns to achieve >95% stuck-at fault coverage.
Digital systems are prone to manufacturing defects (shorts, opens, process variations) and design errors. Testing ensures:
Testable design means adding extra circuitry to make internal nodes controllable and observable, drastically reducing test cost and time.