Home / Learn / Chip Design / Design Verification Explained

On this pageWhy verification dominatesVerification, validation and testThe main techniquesThe anatomy of a testbenchThe verification planMeasuring progress with coverageLevels of verificationDeciding when to stopWhy bugs still escapeCommon questionsRelated guides

Design Verification Explained

Design verification is the work of proving that a chip design does what its specification says, before the chip is manufactured. It is the largest single effort in most chip projects, typically taking more engineering time than the design itself. The reason is simple: a mistake found after manufacture costs months and a great deal of money, so teams invest heavily in finding errors while they are still cheap to fix.

Why verification dominates

Software with a bug can be patched. A chip with a bug in its logic usually cannot. Fixing it means correcting the design, manufacturing again and waiting for new chips, which takes months at an advanced process node and is very expensive.

Chips are also extraordinarily complex. The number of possible states in a modern design is far beyond anything that can be tested exhaustively. Verification is the discipline of gaining enough confidence without being able to try everything.

Verification, validation and test

Three terms are easily confused.

TermQuestion it answersWhen
VerificationDoes the design match the specification?Before manufacture
ValidationDoes the real chip work in a real system?After manufacture
Manufacturing testWas this individual chip built without defects?On every chip produced

This guide concerns the first. for the second.

The main techniques

Simulation. The design is run in software, driven with inputs, and its outputs are checked. It is the workhorse of verification: flexible and easy to debug, but slow for large designs.

Formal verification. Mathematical methods prove that a property holds for every possible input, or produce a counterexample. It is exhaustive within its scope but limited in the size of design it can handle.

Emulation. The design is mapped onto special hardware that runs it thousands of times faster than simulation. That makes it possible to boot an operating system and run real software before the chip exists.

FPGA prototyping. The design is implemented on programmable chips, running faster still, mainly for software development.

Static checks. Automated tools examine the code without running it, looking for coding errors and for problems where signals cross between clock domains.

The anatomy of a testbench

A simulation testbench is the environment built around the design to test it. Modern testbenches have a standard set of parts.

  • Stimulus generation. Creates inputs. Constrained random generation produces huge numbers of varied, legal scenarios automatically.
  • Drivers. Apply the inputs to the design’s pins following the correct protocol.
  • Monitors. Observe what the design does.
  • A reference model. Predicts what the correct result should be.
  • A scoreboard. Compares actual results with predicted ones.
  • Assertions. Statements of how the design must behave, checked continuously.
  • Coverage collection. Records which behaviors have been exercised.

The industry standard for building these environments is UVM.

The verification plan

Verification begins with a plan, written from the specification. It lists every feature that must be tested, the method to be used for each and what counts as done.

The plan turns an open-ended task into a measurable one. Progress is tracked against it throughout the project.

Measuring progress with coverage

Since exhaustive testing is impossible, teams need a way to judge how much has been checked. They use two kinds of coverage.

  • Code coverage measures how much of the design’s code has been executed by the tests.
  • Functional coverage measures how many of the scenarios in the verification plan have occurred.

High code coverage with low functional coverage means the tests ran the code without exercising the important situations. Both are needed.

Levels of verification

Verification is done at several levels, each catching different problems.

  • Block level. Individual modules are tested thoroughly in isolation, where it is easiest to reach every corner.
  • Subsystem level. Groups of blocks are tested together, exposing interface problems.
  • Chip level. The whole design is tested, focusing on integration, start-up and interactions between major functions.
  • System level. The chip is tested with its real software, usually on an emulator or prototype.

Deciding when to stop

Verification is never truly complete. The decision to send a design for manufacture rests on a set of criteria.

  • Coverage targets have been met
  • All planned tests pass
  • The rate at which new bugs are found has fallen to near zero
  • No serious known bugs remain open
  • Formal proofs and static checks are clean
  • Real software runs on the emulated design

Why bugs still escape

Even with all this, some errors reach silicon.

  • Gaps in the specification. If a requirement was never written down, it was never tested.
  • Unimagined scenarios. Tests cover what engineers think of.
  • Integration effects. Blocks correct in isolation interact badly.
  • Configuration. The design is used in a mode that was not verified.
  • Effects outside logic. Electrical and timing problems that functional verification does not address.

This is why chips often include ways to work around problems in software or firmware.

Common questions

Why does verification take more effort than design?

Because the space of possible behaviors is vast, and confidence has to be built across it. Writing a block may take weeks. Demonstrating that it works in every situation it will encounter takes much longer.

What is the difference between simulation and emulation?

Simulation runs the design as software on ordinary computers. Emulation maps it onto dedicated hardware that runs far faster, which allows long tests and real software.

Can verification prove a chip has no bugs?

No. It can show that the design behaves correctly in everything that was checked and, with formal methods, prove specific properties. It cannot guarantee the absence of all errors.

Related guides