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?
- 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?
| Term | Question it answers | When | On what |
|---|---|---|---|
| Verification | Did we build the design right, as the spec says? | Before tapeout | RTL and gate-level models |
| Validation | Does the real chip work in the real system? | After fabrication | Silicon on a board |
| Manufacturing test | Was this particular chip made without defects? | On every chip made | Each manufactured die |
What is the verification cycle?
- 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?
| Method | How it works | Strength | Limit |
|---|---|---|---|
| Simulation | Runs the RTL with a testbench, one clock at a time | Flexible, every signal visible, the main method | Only checks the cases the tests reach |
| Formal verification | Uses math to prove a property holds for all inputs | Finds corner cases no test thought of | Works on small blocks; can run out of time on large ones |
| Emulation | Maps the design onto special hardware that runs it fast | Millions of times faster than simulation; can boot software | Expensive; less visibility into signals |
| FPGA prototyping | Builds the design on FPGAs | Near real speed; real interfaces and software | Late in the flow; hard to debug |
| Static checks | Analyzes the code without running it (lint, clock domain crossing, reset checks) | Fast; catches whole classes of mistakes | Finds structure problems, not wrong behavior |
| Equivalence checking | Proves two versions (RTL and gates) behave the same | Catches errors added by synthesis or edits | Needs 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 test | Constrained random test | |
|---|---|---|
| What it is | Inputs written by hand for one scenario | Random inputs kept legal by rules called constraints |
| Good for | Bring-up, specific corner cases, reproducing a bug | Finding bugs nobody thought to test |
| Needs | One test per scenario | A self-checking testbench and coverage to see what was reached |
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
- 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
- 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
- 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.
What is a bug, and what kinds of bugs are there?
| Kind of bug | What goes wrong | Example |
|---|---|---|
| Spec misread | The design does something the spec did not ask for | A FIFO accepts a write when full instead of dropping it |
| Corner case | Works normally, fails at a boundary | A counter fails only when it wraps from its maximum to 0 |
| Protocol violation | Breaks the rules of a bus or interface | Data changes while a valid signal is still high |
| Reset bug | Wrong state after reset, or reset ignored in some state | A flag stays high after reset |
| Concurrency bug | Two events in the same clock interact badly | A read and a write in the same cycle corrupt the count |
| Clock domain crossing | Signals passed between clocks without synchronizing | A pointer sampled mid-change in an asynchronous FIFO |
| Unknown value (X) bug | An uninitialized or undriven signal spreads unknowns | Output is X after power-up |
| Performance bug | Correct results, but too slow | An 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.