TDEB Top Bar

Trending
Semiconductor Industry News — The Digital Electronics Blog
Follow Us

TDEB Masthead

The Semiconductor Hub

Semiconductors.  Chips and Systems.  Innovation.

Indexed by leading Search Engines, AI and referenced by Engineers worldwide 500+ Articles 10M+ Pageviews 30+ Reports 50+ Citations

When Are DFT and Formal Verification Used?

The Editor's Desk
by
0
Share Facebook X LinkedIn WhatsApp Email

DFT and formal verification are often mentioned together, but they answer different questions. In short:

DFT:

  • Targets manufacturing defects, modeled as faults such as a node stuck at "0" or stuck at "1".
  • Checks a set of design rules, followed from the early design stages, that make the chip testable.

Formal verification:

  • Verification of the operation of the design, that is, checking that the design follows the specification.
  • Gate netlist == RTL (equivalence checking).
  • Uses mathematical proof, rather than simulation vectors, to check for equivalence.

Two different questions

The easiest way to keep them apart is to ask what could be wrong.

  • DFT (design for test) asks: "Was this particular chip manufactured correctly?" The design may be perfect, but a speck of dust, a bridged metal line or a broken via can still ruin one die. DFT adds structures, mainly scan chains, so that a tester can drive and observe the inside of every chip quickly after fabrication.
  • Formal verification asks: "Is the design itself right?" It uses mathematics to prove that two versions of the design behave the same (equivalence checking) or that the design always obeys a property (property or model checking). It runs on the design files, long before any silicon exists.

When each one is used in the flow

StageDFT workFormal work
Architecture and RTLPlan test modes, clocks and resets so they can be controlled in test; follow DFT coding rulesProperty checking of control logic, protocols and arbiters
SynthesisScan insertion, design rule checksEquivalence check: RTL against the synthesized netlist
Place and routeScan chain reorderingEquivalence check: pre-layout against post-layout netlist
ECOsRe-check test rules on the changed logicEquivalence check of the ECO netlist against the changed RTL
After fabricationRun test patterns (ATPG) on every die on the testerNot used

Equivalence checking is run at every step that transforms the design, because synthesis, test insertion, power optimization and ECOs can each change behavior by accident. Synopsys' explainer What is equivalence checking? makes the same point: those steps "can introduce subtle modifications in design behavior that can be missed by simulation".

A common mix-up

Scan insertion is a DFT step, but it changes the netlist, so the netlist after scan insertion must be equivalence-checked against the RTL with scan disabled. That is where the two topics meet in practice, and why they often appear together in interview questions.

Deep dive: the numbers and details

This part holds the fault model arithmetic, a scan test time example, how an equivalence checker works and why exhaustive simulation cannot replace it. Skip it if the overview is all you need.

The stuck-at fault model and fault coverage

The single stuck-at model assumes that one signal line is permanently stuck at 0 or at 1. Every line has two possible faults, so a netlist with N fault sites has 2N faults before collapsing (removing equivalent faults). Test quality is measured as:

Fault coverage = detected faults / total faults x 100%

Worked example: a block with 500,000 fault sites has 1,000,000 stuck-at faults. If the ATPG patterns detect 985,000, fault coverage is 98.5 percent. The remaining 15,000 faults are either untestable (for example, logic that is redundant) or need more patterns or more test points.

Why scan makes test generation practical

In a sequential circuit, the flip-flops are hard to control and observe from the pins, so finding a test for a deep fault can need long input sequences. A scan chain links the flip-flops into a shift register in test mode. As the NPTEL course Design Verification and Test of Digital VLSI Circuits, Module X puts it, scan turns a sequential circuit into a virtual combinational one, so combinational ATPG algorithms such as the D-algorithm can be used.

Each scan test has three steps: shift a pattern into the chains, apply one capture clock, and shift the response out (while the next pattern shifts in).

Worked example: scan test time

The numbers here are illustrative.

  • 1,000,000 flip-flops split into 100 balanced chains gives 10,000 flip-flops per chain.
  • 5,000 ATPG patterns.
  • Shift clock of 50 MHz.

Cycles are about patterns x (chain length + 1) = 5,000 x 10,001, about 50 million cycles. At 50 MHz that is about 1.0 second of tester time per die. Doubling the number of chains halves the chain length and roughly halves the time, which is why designs use many chains and on-chip compression.

Typical DFT design rules

  • Every flip-flop should be scannable, or the exceptions listed and justified.
  • Clocks must be controllable from a test pin in test mode, with no gated or divided clocks that the tester cannot drive.
  • Asynchronous sets and resets must be controllable, so they cannot fire during shift.
  • No combinational feedback loops.
  • Tri-state buses must not have contention in test mode.

How an equivalence checker works

Following the Synopsys description, equivalence checking runs in three steps:

  1. Setup: read the reference design (for example, the RTL), the implementation (for example, the netlist) and the cell libraries.
  2. Mapping: match compare points between the two designs. Compare points are registers, primary outputs and black-box inputs. The combinational logic that drives each compare point is its logic cone.
  3. Compare: prove each pair of logic cones equivalent, not equivalent, or inverted-equivalent. Inconclusive points can be rerun with more effort.

Because registers are matched one to one, sequential changes such as retiming or state re-encoding need extra setup or a sequential equivalence tool.

Why simulation cannot do the same job

Proving a 64-bit adder correct by simulation would need every input combination: 2^128, about 3.4 x 10^38 vectors. At a billion vectors a second that is about 3.4 x 10^29 seconds, or around 10^22 years. A formal tool proves the same result by reasoning about the logic, without vectors. That is the sense in which the original post said formal verification uses mathematics.

Interview angle

  • "Does a 100 percent fault coverage mean the chip is bug free?" No. Fault coverage is about manufacturing defects in the given netlist; a design bug is in every chip and passes the tests.
  • "Does a clean equivalence check mean the design is correct?" No. It means the netlist matches the RTL. If the RTL has a bug, so does the netlist.
The Editor's Desk
About the Author
The Editor's Desk
Share Facebook X LinkedIn WhatsApp Email

Post a Comment

0 Comments

Your comments will be moderated before it appears here.

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn more
Ok, Go it!