Home / Learn / Chip Design / What Is Design for Testability (DFT)?
On this page
Why chips need to be testedVerification and test are differentControllability and observabilityScanAutomatic test pattern generationBuilt-in self-testOther DFT elementsWhat DFT costsMeasuring test qualityWhere DFT fits in the design flowTesting beyond the factoryCommon questionsRelated guidesWhat Is Design for Testability (DFT)?
Design for testability, or DFT, is the practice of adding structures to a chip so that manufacturing defects can be found after it is made. Chip manufacturing is not perfect, and some of the chips on every wafer come out faulty. DFT gives test equipment a way to reach inside each chip and check it quickly. The main techniques are scan, automatic test pattern generation and built-in self-test.
Why chips need to be tested
A design can be perfectly correct and an individual chip can still be broken. Manufacturing involves hundreds of steps at microscopic scale. A speck of contamination or a slight variation can leave a wire broken, two wires joined or a transistor that switches too slowly.
Every chip therefore has to be tested before it is shipped. The difficulty is access. A chip may have billions of transistors and only a few hundred or thousand external pins. Without help, most of the internal logic can be neither controlled nor observed from outside.
Verification and test are different
The two are often confused.
- Verification asks whether the design is correct. It is done once, before manufacture.
- Manufacturing test asks whether this particular chip was built correctly. It is done on every chip.
DFT serves the second. It does not find design bugs.
Controllability and observability
Testing a piece of logic requires two things: the ability to set its inputs to chosen values, and the ability to see its outputs. These are called controllability and observability.
Logic buried deep inside a chip has neither. DFT techniques are, in essence, ways of providing both.
Scan
Scan is the foundation of digital test. Each storage element in the design, called a flip-flop, is replaced with a version that has an extra input and a mode control. In test mode, the flip-flops are connected end to end into long shift registers called scan chains.
Test equipment can then shift any desired values into the flip-flops, run the chip for one clock cycle so the logic between them operates, and shift the results out. Every flip-flop becomes a point of control and observation.
Automatic test pattern generation
With scan in place, software can work out which values to shift in to expose each possible defect. This is automatic test pattern generation, or ATPG.
The tool uses fault models, which are simplified descriptions of how defects behave, such as a signal stuck permanently at 0 or 1, or a transition that happens too slowly. It produces a set of patterns and reports what percentage of possible faults they detect.
Built-in self-test
In built-in self-test, or BIST, the chip tests part of itself. Circuitry on the chip generates test patterns, applies them and checks the response.
- Memory BIST tests embedded memories, which are dense and prone to defects. It is used on almost every chip.
- Logic BIST tests ordinary logic using patterns generated on the chip. It is common in automotive and other safety-critical products that must test themselves in the field.
Other DFT elements
- Test compression. Logic that expands a small amount of test data into many scan chains and compacts the results. It cuts test time and data volume dramatically and is standard on large chips.
- Boundary scan. A standard, often called JTAG, that places test cells at the chip’s pins and provides a common access port. It is used to test connections on circuit boards and to reach internal test features.
- Test points. Extra logic inserted to make hard-to-test areas controllable or observable.
- Test access networks. Standardized ways to reach test features embedded in many blocks across a chip.
What DFT costs
| Cost | Effect |
|---|---|
| Area | Test logic adds to the size of the chip |
| Timing | Extra logic in the path can slow signals |
| Power | Test mode can draw more power than normal operation |
| Design effort | Test structures must be planned, inserted and verified |
| Pins | Some pins are needed for test access |
These costs are accepted because the alternative is shipping defective chips, which is far more expensive. A defect caught at the factory costs little. The same defect found in a customer’s product costs many times more.
Measuring test quality
- Fault coverage. The percentage of modeled faults the tests can detect. High targets are normal, and safety-critical applications demand more.
- Defect level. The number of faulty chips that pass testing and reach customers, often expressed in parts per million.
- Test time. How long each chip spends on the tester, which directly affects cost.
Where DFT fits in the design flow
DFT is planned at the architecture stage and implemented alongside the design.
- Architecture. Decide the test strategy, number of scan chains, compression and BIST.
- RTL. Follow design rules that make the logic testable. Insert memory BIST.
- Synthesis. Replace flip-flops with scan versions and connect the chains.
- Physical design. Reorder chains to match the layout.
- After layout. Generate final patterns and simulate them.
Testing beyond the factory
Test features are increasingly used throughout a chip’s life. Systems run self-tests at power-up or periodically during operation to catch faults that develop over time. Chips in vehicles are required to do this by functional safety standards. In data centers, operators use similar features to catch chips that produce rare, silent errors.
Test access also creates a security concern, since scan chains could expose secret data. Chips that handle sensitive information lock or restrict test features after manufacture.
Common questions
Does DFT find bugs in the design?
No. It finds manufacturing defects in individual chips. Design errors are found by verification before manufacture.
How much does DFT add to a chip?
It adds some area and design effort. The exact amount depends on the design and the test strategy. It is regarded as essential, because without it most of a chip could not be tested.
What is JTAG?
JTAG is the common name for a standard test access port and boundary scan architecture. It provides a small set of pins through which test and debug features inside a chip can be reached.