Home / Learn Verilog / Assertion-Based Verification

Assertion-Based Verification

Rules embedded in the design.

In shortRules embedded in the design.

What's actually going on

Where to assertFIFO: no write when fullFSM: state is legalbus: no X on valid datahandshake: data stable while waiting
Where to assert

Definition

Assertions at interfaces and inside blocks catch violations at the moment they occur.

Why you need this

Shorter debug time.

How it works

Check protocol rules, one-hot state, FIFO overflow.

Where you'll see this

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

Assertions in plain VerilogVerilog: edit and run

Two rules, two violations.

Test what you just read

1. Assertions find bugs...