B4.5.1 Which Tool Proves It

MediumImplement22 minIcarus Verilog · serverReview the topic

Give each verification question to the tool that can answer it, and work out how rare a sequence random stimulus must hit.

Hardware context: A lock that opens on three exact bytes. Deciding between simulation and formal for a rule.

The lock of the lesson opens on three exact bytes in a row. A million random clocks never opened it; the formal engine found the sequence at step 5 in 592 ms (recorded).

This worksheet uses named constants. The first three entries show how to record your decisions.

Replace each unresolved value of 4294967295 with your result.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
CodeTool
1Simulation with a self-checking bench
2Formal property checking
3Equivalence checking
4Lint and static checks
5Emulation or an FPGA prototype
EntryYour decision
Q_NEVER_OPENShow that no input sequence of any length opens the lock in normal use.
Q_BOOT_OSBoot an operating system on the whole chip, billions of clocks.
Q_SAME_GATESShow the netlist from synthesis does the same as the RTL.
Q_UNUSED_WIREFind a signal that is declared and never driven, without running anything.
Q_UART_BYTESSend 500 random bytes through the transmitter and compare them at a receiver model.
Q_FIFO_RULEShow the FIFO never says full and empty at once, for every input.
ODDS_3Three exact bytes in a row from random bytes: 1 in how many clocks?
FORMAL_STEPAt which step did the formal run report the failure?
ODDSA bug needs NBITS exact random bits at once. Enter how many random draws give one hit on average (1 in how many).

Examples

Example 1

Q NEVER OPEN
Input
Show that no input sequence of any length opens the lock in normal use.
Output
matches = 1

Only a proof covers every sequence of any length.

Example 2

Q BOOT OS
Input
Boot an operating system on the whole chip, billions of clocks.
Output
matches = 1

Far too long for a simulator.

Example 3

Q SAME GATES
Input
Show the netlist from synthesis does the same as the RTL.
Output
matches = 1

Two versions of one design, compared.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For ODDS, enter a constant expression using NBITS. Only this entry changes with the parameter. The supported integer range is 1 through 24, inclusive.

Hints

Hint 1

Formal.

Hint 2

Equivalence.

Hint 3

Emulation or a prototype.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

13 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.

See all 1 problem on this path

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

Q NEVER OPEN

Input
Show that no input sequence of any length opens the lock in normal use.
Expected output
matches = 1

Only a proof covers every sequence of any length.

Run samples executes all 3 public checks. Check all tests runs 13 checks on the server.

Icarus Verilog · server