Design verification course · Lesson 1 of 18

What Is Design Verification? The Verification Process, Cycle and Types

Why this matters

A chip cannot be patched after it is made. A bug that reaches silicon can mean a new set of masks, months of delay, or a product recall, so every design is verified before it is built. On many chip projects verification takes as much engineering effort as the design itself, or more.

At a glance

  • Design verification checks that a design does what its specification says, before the chip is manufactured.
  • It sits right after RTL design in the chip design flow, and every bug it finds goes back to the designer.
  • It runs as a cycle: plan, build a testbench, run tests, debug, measure coverage, close the gaps, repeat until sign-off.
  • Main methods: simulation, formal verification, emulation, FPGA prototyping and static checks.
  • A design is not verified when tests pass. It is verified when every feature in the plan has been exercised and checked.

What is design verification?

Design verification is the work of showing, with evidence, that a digital design behaves as its specification says. A few terms come up in every lesson of this course:

  • Specification (spec): the document that says what the design must do. It is the reference for every check.
  • RTL (register transfer level): the design written in a hardware description language such as Verilog or VHDL.
  • DUT (design under test): the block being verified, for example a FIFO, a UART or a whole processor.
  • Testbench: code that drives inputs into the DUT, watches its outputs and decides whether they are correct.
  • Test: one scenario run on the testbench, such as "fill the FIFO, then empty it".
  • Bug: any place where the design's behavior differs from the specification.
  • Coverage: a measure of which features and situations the tests actually exercised.

Where does verification sit in the chip design flow?

Chip design flow from specification to post-silicon validation, with functional verification after RTL design
The chip design flow. Functional verification follows RTL design and loops back to it with every bug it finds.
  • Before RTL: the specification and architecture say what to build. Verification engineers read the spec as early as designers do.
  • At RTL: functional verification checks the RTL against the spec. This is the stage this course teaches.
  • After RTL: synthesis and physical design turn RTL into gates and layout. Their checks (equivalence, timing, power) make sure nothing changed the function.
  • After fabrication: post-silicon validation tests real chips in the lab. Bugs found there are the most expensive.

Verification, validation and testing: what is the difference?

TermQuestion it answersWhenOn what
VerificationDid we build the design right, as the spec says?Before tapeoutRTL and gate-level models
ValidationDoes the real chip work in the real system?After fabricationSilicon on a board
Manufacturing testWas this particular chip made without defects?On every chip madeEach manufactured die

What is the verification cycle?

Verification cycle: plan, build testbench, run tests, debug, measure coverage, close holes, then sign-off
The verification cycle. It repeats until every check passes and every coverage goal in the plan is met.
  • Write the plan: list every feature from the spec, how each is checked and what coverage proves it was tested.
  • Build the testbench: the code that drives the DUT, monitors it and checks its outputs.
  • Run the tests: many tests, many times, with different random seeds. A full set of runs is a regression.
  • Debug failures: for each failing test, find whether the bug is in the design, the testbench or the spec.
  • Measure coverage: see which plan features the tests really reached.
  • Close coverage holes: add or steer tests toward what was missed, and update the plan when the spec changes.
  • Sign-off: when all checks pass and all coverage goals are met, the block is ready for tapeout.

What are the types of verification?

MethodHow it worksStrengthLimit
SimulationRuns the RTL with a testbench, one clock at a timeFlexible, every signal visible, the main methodOnly checks the cases the tests reach
Formal verificationUses math to prove a property holds for all inputsFinds corner cases no test thought ofWorks on small blocks; can run out of time on large ones
EmulationMaps the design onto special hardware that runs it fastMillions of times faster than simulation; can boot softwareExpensive; less visibility into signals
FPGA prototypingBuilds the design on FPGAsNear real speed; real interfaces and softwareLate in the flow; hard to debug
Static checksAnalyzes the code without running it (lint, clock domain crossing, reset checks)Fast; catches whole classes of mistakesFinds structure problems, not wrong behavior
Equivalence checkingProves two versions (RTL and gates) behave the sameCatches errors added by synthesis or editsNeeds a verified reference version

Directed vs constrained random tests

  • Directed test: inputs written by hand for one scenario.
  • Constrained random test: random inputs, kept legal by rules called constraints.
  • Seed: the starting number for the random values; the same seed gives the same test again.
Directed tests hit a few chosen inputs; constrained random tests spread over all legal inputs
Directed tests reach only the inputs someone picked. Constrained random tests spread over every legal input.
Directed testConstrained random test
What it isInputs written by hand for one scenarioRandom inputs kept legal by rules called constraints
Good forBring-up, specific corner cases, reproducing a bugFinding bugs nobody thought to test
NeedsOne test per scenarioA self-checking testbench and coverage to see what was reached
Comparison table of directed testing and constrained random testing
Directed vs constrained random testing at a glance.

Black box, white box and gray box verification

These three names describe how much of the design's inside the testbench can see (gray box is also spelled grey box).

Black box verification

Black box verification: the testbench sees only the design inputs and outputs
Black box: only the inputs and outputs are used.
  • The testbench drives the inputs and checks the outputs against the spec.
  • Nothing inside the design is looked at.
  • Tests keep working when the design's insides change.
  • A bug is seen only when it reaches an output, which can be many clocks after its cause.

White box verification

White box verification: the testbench also probes signals inside the design
White box: the testbench also probes signals inside the design.
  • The testbench also watches internal signals, often with assertions placed inside the RTL.
  • Bugs are caught close to where they start.
  • Checks depend on the design's internal names, so they change when the design changes.

Gray box verification

Gray box verification: inputs and outputs plus one internal signal watched
Gray box: mostly inputs and outputs, plus a few internal signals.
  • Mostly black box, with a few internal signals watched where it helps, such as a state machine's state.
  • This is what most real testbenches do.
Comparison table of black box, white box and gray box verification
Black box vs white box vs gray box verification at a glance.

What is a bug, and what kinds of bugs are there?

Kind of bugWhat goes wrongExample
Spec misreadThe design does something the spec did not ask forA FIFO accepts a write when full instead of dropping it
Corner caseWorks normally, fails at a boundaryA counter fails only when it wraps from its maximum to 0
Protocol violationBreaks the rules of a bus or interfaceData changes while a valid signal is still high
Reset bugWrong state after reset, or reset ignored in some stateA flag stays high after reset
Concurrency bugTwo events in the same clock interact badlyA read and a write in the same cycle corrupt the count
Clock domain crossingSignals passed between clocks without synchronizingA pointer sampled mid-change in an asynchronous FIFO
Unknown value (X) bugAn uninitialized or undriven signal spreads unknownsOutput is X after power-up
Performance bugCorrect results, but too slowAn extra wait cycle halves throughput

What should you test in a design?

  • Every feature in the spec, each one at least once (this is what the plan lists).
  • Reset: from every important state, and in the middle of activity.
  • Boundaries: empty and full, zero and maximum, first and last address, counter wrap.
  • Illegal or unexpected inputs: a write when full, a read when empty, a bad address. The spec says what should happen.
  • Back-to-back and simultaneous events: operations on consecutive clocks, and two operations in the same clock.
  • Every mode and configuration the design supports.
  • Error handling: error flags, timeouts and recovery.
  • Interfaces with other blocks: every bus protocol rule.
  • Performance: throughput and latency against the spec's numbers.

How do you know verification is done?

  • All tests pass in the regression, with many random seeds.
  • All coverage goals are met: every feature and corner in the plan was exercised.
  • No open bugs of the agreed severity remain.
  • The plan has been reviewed against the latest spec, so nothing new is missing.

Common mistakes

  • Treating "all tests pass" as done. Passing tests only prove the cases they reached.
  • Writing tests from the RTL instead of the spec, which copies the designer's misunderstandings into the checks.
  • Testing only the normal path and skipping reset, boundaries and illegal inputs.
  • Assuming a testbench is correct. A check that never fires can hide every bug; test the testbench too.

Quick revision

  • Verification: does the RTL match the spec, before tapeout.
  • Cycle: plan, build, run, debug, measure coverage, close holes, sign-off.
  • Methods: simulation, formal, emulation, FPGA prototyping, static checks, equivalence checking.
  • Done means: all checks pass and all coverage goals are met.

Exercises

A team's regression passes 100% of its tests. Name two reasons the design might still have bugs.

The tests may never have reached the buggy case (low coverage), or the checker may not be checking the right thing, so wrong outputs pass unnoticed. Passing tests prove only what they exercised and checked.

You need to prove that two request signals are never granted at the same time, for every possible input. Which method fits best, and why?

Formal verification. It proves a property for all inputs instead of only the cases a simulation happens to run, which is exactly what "never, for every input" asks for.

List four situations you would test on a FIFO that are not the normal write-then-read path.

Write when full, read when empty, a read and a write in the same clock, reset when full, and the pointers wrapping from the last slot to the first. Any four of these.

Why does the verification cycle loop back to the plan instead of ending after the tests run?

Coverage shows what the tests missed, debugging can reveal spec questions, and the spec itself changes during a project. Each of these changes what still has to be tested, so the plan is updated and the cycle runs again.

Interview questions

What is the difference between verification and validation?

Verification checks the design against its specification before fabrication, mostly in simulation. Validation checks that the manufactured chip works in the real system, on silicon in the lab.

Why is verification often said to take more effort than design?

The design is written once, but every feature, boundary and combination of events has to be stimulated and checked, and the testbench is itself a large program. A missed bug in silicon is so costly that teams spend heavily to avoid it.

Compare simulation and formal verification.

Simulation runs chosen input sequences and checks the results; it scales to large designs but only covers what it runs. Formal verification proves properties for all inputs; it is exhaustive but practical mainly on smaller blocks or specific properties.

When would you use emulation or FPGA prototyping instead of simulation?

When the design is too big or the test too long for simulation, for example booting an operating system or running real software on a processor. Both run far faster than simulation, at the cost of less signal visibility.

What is a corner case? Give an example.

A situation at the edge of normal operation where bugs tend to hide, such as a FIFO going full and being read in the same clock, or a counter wrapping from its maximum value back to zero.

What is a regression?

The full set of tests run together, usually every night or on every change, often with many random seeds, to make sure new changes did not break anything that worked before.

Sources

Frequently asked questions

What is design verification in VLSI?

Design verification checks, before a chip is manufactured, that its RTL design behaves exactly as its specification says. It uses testbenches, simulation, formal methods and coverage to show every feature works.

What are the types of design verification?

The main types are simulation, formal verification, emulation, FPGA prototyping, static checks such as lint and clock domain crossing checks, and equivalence checking.

What is the verification cycle?

Write the verification plan, build the testbench, run the tests, debug failures, measure coverage and close the coverage holes, then repeat until every check passes and every coverage goal is met.

Is design verification a good career?

Verification engineers are needed wherever chips are designed, including semiconductor, processor, networking and consumer electronics companies, because every design must be verified before it is built.

Keep going