Skip to the content ForoHackers
Log inJoin

Hardware verification: start here

Hardware verification
#3217 · · Quote · Report

Hardware verification is proving that a chip design does what its specification says before it is built. A fabricated chip cannot be patched like software, so verification often takes more effort than the design itself. It combines simulation, formal proofs and emulation on programmable hardware, since no single method is enough.

Key concepts

  • Testbench: code that drives a design under test with inputs and checks its outputs.
  • Constrained-random stimulus: generating many legal random inputs to reach cases a person would not write.
  • Assertions: properties about signals over time that are checked in simulation or proven formally.
  • Coverage: functional and code coverage show which behaviours the tests have actually exercised.
  • Formal verification: proving properties for all inputs, or showing two designs equivalent.

Vocabulary

  • DUT: the design under test.
  • Reference model: a simple, trusted model whose outputs are compared with the design's.
  • UVM: a standard methodology and class library for building reusable testbenches.
  • Corner case: a rare combination of conditions where bugs gather.

What to study, in order

  1. Digital design and a hardware description language, with a simulator running your own design.
  2. Write a self-checking testbench for a counter and a small state machine.
  3. Add random stimulus, a reference model and coverage, and read the coverage holes.
  4. Write assertions for a bus protocol and check them in simulation and with a formal tool.
  5. Verify a small processor core against a simple instruction model.

Related tags

#digital-design #formal-methods #fpga #asic

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply