Home / Learn Chip Programming / Design Verification: Testbench Architecture, Coverage, UVM
Design Verification: Testbench Architecture, Coverage, UVM
How professionals prove a chip works before spending millions on masks.
Theory in plain words
What it is
Verification builds a layered testbench: stimulus generator, driver, monitor, scoreboard (checker) and coverage. UVM is the standard SystemVerilog methodology with reusable components and constrained random tests.
Why we use it
Bugs found after tape-out cost millions. Verification is about 60 to 70 percent of chip design effort and the most common entry role.
How it works
Random but legal stimulus covers more cases than hand tests. Coverage tells you when you are done. Assertions and a reference model check correctness.
Where it is used
- Verifying FIFO, UART, bus protocols
- Reusable verification IP
- Interview: design a testbench
Constrained random + coverage
A hidden corner-case bug (255 - 255) appears only when random stimulus is biased toward corner values and a scoreboard compares with a reference model.
| Component | Job |
|---|---|
| Sequencer + sequence | create transactions (what to send) |
| Driver | convert transactions to pin wiggles |
| Monitor | observe pins and rebuild transactions |
| Scoreboard | compare DUT output with reference model |
| Coverage collector | measure which scenarios occurred |
| Assertions | check rules continuously |
| Test | selects environment config and sequences |
- Directed tests: hand-written scenarios for known cases.
- Constrained random: legal random stimulus finds unexpected cases.
- Coverage-driven: add tests until all coverage bins hit and all assertions pass.
- Formal verification: tools prove properties mathematically for small blocks.
- Open source starting point: cocotb (Python) with Verilator or Icarus.
Quick quiz
1. What does the scoreboard do?
It is the checker.
2. Coverage tells you...
It measures completeness of testing.