DFT / ATPG ยท All levels

ATPG Constraints

ATPG & Pattern Generation: ATPG constraints encode legal test-mode behavior, clocks, resets, and masks so generated patterns are both executable and meaningful.

What this topic teaches

ATPG Constraints turns DFT intent into measurable release confidence. ATPG constraints encode legal test-mode behavior, clocks, resets, and masks so generated patterns are both executable and meaningful. The senior challenge is proving whether a metric move came from real quality gain, setup drift, or hidden regression.

The senior-engineer question

When constraint consistency errors, illegal state count, pattern abort rate moves, can you identify mechanism, evidence quality, owner, and the minimum safe next action?

diagram
DFT CLOSURE FLOW - ATPG Constraints

scan/test architecture
        |
        v
ATPG constraints + fault models
        |
        v
pattern generation + compression
        |
        v
timing/power/physical validation
        |
        v
silicon diagnosis and release signoff

Debug rule: always state metric, run tags, and owning team with any claim.

Picture the closure flow

Draw the causal flow before opening tools. Use these diagrams to anchor architecture, constraints, and silicon behavior discussions.

ATPG legality envelope

diagram
constraints define legal test states:
clocks + resets + masks + test enables + safe unknown handling

invalid envelope -> great-looking but unusable patterns.

Process sequence

diagram
DFT FLOW - ATPG Constraints

scan insertion -> chain stitch -> compression map -> ATPG -> tester apply -> diagnosis
      |                |                |            |             |
 controllability   shift balance    channel use   coverage     silicon correlation

Primary metric: constraint consistency errors, illegal state count, pattern abort rate

Ownership layers

diagram
DFT OWNERSHIP LAYERS - ATPG Constraints

layer              owns                         failure mode
----------------   --------------------------   -------------------------
rtl/architecture   scanability hooks            uncontrollable logic
atpg/constraints   legal pattern intent         aborts, low coverage
physical/clocking  chain route + test clocks    shift hold/timing escapes
tester/program     pattern apply integrity      false binning / bad fails
quality signoff    release criteria             escapes or schedule slip

Evidence to collect

  • Primary metric: constraint consistency errors, illegal state count, pattern abort rate.

  • Primary artifact: ATPG constraint file, legality checker log, constraint diff report.

  • Owners to bring into review: ATPG owner, RTL owner, DFT owner.

  • One failing signature and one reduced reproduction path.

  • Exact run tags for constraints, patterns, and tester program.

Ownership map

diagram
OWNERSHIP MAP - ATPG Constraints

artifact              owner
----------------      -----------------
architecture/report ATPG owner
constraints/setup   RTL owner
physical/test       DFT owner

Name an owner for each failing metric cluster.

Subpages in this topic

Each topic includes mechanism, inputs/outputs, reports, debug, worked example, pitfalls, interview, checklist, theory, design space, expanded case study, walkthrough, comparison matrix, software view, and silicon impact.

Key takeaways

  • State metric and run tags with every claim.

  • Connect every fix to a regression matrix.

  • Treat quality, timing, and power as coupled.

Common pitfalls

  • Coverage-centric decisions without legality checks.

  • Pattern changes without tester correlation.

  • Release calls without owner signoff.

DFT deep dive

ATPG quality comes from fault model choice plus legal constraints, not raw pattern volume alone.

Concept diagram

diagram
ATPG FLOW

fault model -> constraints -> generation -> simulation -> coverage closure -> signoff

Metric graph

diagram
COVERAGE GAP

target coverage
  ^
  |      o before closure
  |          o after fixes
  +---------------------> iteration

Reports and artifacts

  • fault model coverage

  • untestable class report

  • constraint legality errors

  • pattern signoff memo

Mini case study

Transition coverage stalled due to clock constraints mismatch; updated at-speed capture definitions recovered target.

Debug branches

  • Classify untestable faults

  • Diff ATPG constraints each run

  • Pair coverage with pattern budget

Senior review question

Ask: what evidence proves this DFT decision is safe for production?

Key takeaways

  • State metric, lot/corner context, and pattern tag with every claim.

  • Treat timing, power, and quality as one signoff problem.

Common pitfalls

  • Chasing coverage without legality checks.

  • Ignoring test-power side effects of pattern changes.

  • Debugging silicon without reproducible tags.