What is ATPG (automatic test pattern generation)?

Automatically generating test patterns that detect faults from a circuit's netlist. It is used together with scan design.

Field: Testing and inspection

Japanese name: ATPG(自動テストパターン生成)

How ATPG finds a test

Automatic test pattern generation (ATPG) works from the gate-level netlist and a fault model. For each target fault it must activate the fault, driving the faulty line to the opposite of its stuck value, and propagate the difference along a sensitized path to an observable output, while finding primary-input values that justify both. Classic algorithms such as the D-algorithm and PODEM search this space. Each new pattern is fault-simulated to mark every other fault it happens to detect, and patterns are compacted, because test time and tester memory grow with pattern count.

Fault models and coverage

The stuck-at model assumes a line is permanently 0 or 1, giving 2n faults for n lines. It is abstract, yet patterns that detect stuck-at faults also catch many real shorts and opens, and it is the baseline for measuring fault coverage, the fraction of modeled faults the pattern set detects. Defects that only slow a signal are invisible to static tests, so delay fault models such as transition faults add at-speed patterns that launch a transition and capture the result one clock later. Coverage is always relative to a model, not to every possible physical defect.

Why scan design is essential

Generating tests for a deep sequential circuit is very hard, because internal states can be reached only through many clock cycles. Scan design, a design-for-testability (DFT) technique, adds a multiplexer at each flip-flop input so that in test mode the flip-flops link into shift-register chains. The tester shifts a state in, applies one functional capture clock and shifts the result out. ATPG then only has to solve combinational logic between scan cells, which is what makes high coverage practical for chips with hundreds of millions of gates.

ATPG vs. functional verification

Functional verification asks whether the design is correct; ATPG assumes the design is correct and asks whether each manufactured chip matches it. Its output is test patterns, also called test vectors: input values per time step plus the expected responses, which automatic test equipment applies and compares. Other screens complement it. Part average testing (PAT) rejects chips whose measurements are statistical outliers even though they pass, a practice common for automotive parts, while automatic defect classification (ADC) belongs to wafer inspection, not to electrical test.

Try it: questions about ATPG (automatic test pattern generation)

Which correctly describes scan design, a form of design for testability (DFT)?

  1. AScanning the chip surface with an optical microscope to find defects
  2. BGradually raising the supply voltage during test to find the operating limit
  3. CConnecting the flip-flops in a circuit like a shift register to make it easy to set and observe internal states
Show answer and explanation

Answer: C. Connecting the flip-flops in a circuit like a shift register to make it easy to set and observe internal states

Scan design adds a multiplexer at each flip-flop input; in test mode the flip-flops are chained into scan chains so arbitrary values can be shifted in and internal values shifted out. This turns sequential-circuit testing into combinational-circuit testing, letting ATPG automatically generate patterns with high fault coverage. It has nothing to do with microscope scanning or voltage sweeps.

Which correctly describes the stuck-at fault model used in testing logic circuits?

  1. AA fault in which signals propagate more slowly
  2. BA fault in which a signal line's value is fixed at 0 or 1
  3. CA fault in which the chip's temperature rises
Show answer and explanation

Answer: B. A fault in which a signal line's value is fixed at 0 or 1

The stuck-at model assumes a signal line is permanently fixed at 0 (stuck-at-0) or 1 (stuck-at-1), giving 2n faults for n lines. Simple as it is, it represents many physical defects such as shorts and opens, and it underpins ATPG and fault-coverage evaluation. Slow signals are handled by delay fault models, and temperature rise is not a fault model.

FAQ

What is ATPG in VLSI testing?

It is software that automatically generates input patterns and expected outputs that detect modeled manufacturing faults, such as stuck-at faults, from a circuit's netlist.

Why does ATPG need scan chains?

Scan chains let the tester set and read every flip-flop directly, turning a hard sequential test problem into a combinational one that ATPG can solve efficiently with high coverage.

What is the difference between stuck-at and transition fault models?

Stuck-at faults model a line fixed at 0 or 1 and are found with static tests. Transition faults model a line that switches too slowly and need at-speed launch-and-capture patterns.

Questions that mention ATPG (automatic test pattern generation) (5)

ATPG (automatic test pattern generation) appears in 7 practice questions across 4 topics, including Testing and inspection, Metrology and analysis, Yield and quality control.

  1. What is it called to automatically generate test patterns that detect faults from a circuit's netlist?
  2. In testing, what is the set of sequences of 0 and 1 signals applied to a chip's inputs, together with the expected responses, called?
  3. Which function captures SEM images of defects found in inspection and automatically classifies their types from the images?
  4. Which technique rejects chips that are within specification in test but show values far outside the distribution of the same lot?
  5. What is the step called that extracts wire resistance and capacitance from the layout after place and route?

Books on Testing and inspection Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary