FVO — Formal Verification Online
Lesson 15.3 · Waveform Problems: Pass or Fail?

Sampled-value functions and reset

Puzzle 9
property
assert property (@(posedge clk) valid && !ready |=> $stable(data));
012345clkvalidreadydataD0D1

What does a formal tool report for this assertion on this trace?

Show answer

Answer B: Fails at tick 3

At tick 2 the transfer is stalled (valid && !ready), so at tick 3 data must equal its tick-2 value (D0). It changed to D1. The producer replaced data that was still waiting — a real protocol bug. The attempt from tick 3 (D1 stays D1 at tick 4) would pass.

Puzzle 10
property
assert property (@(posedge clk) $rose(req) |-> ##[1:2] ack);
012345clkreqack

What does a formal tool report for this assertion on this trace?

Show answer

Answer B: Fails at tick 3

$rose(req) is true only at tick 1 (the first tick req is sampled high). The window is ticks 2–3. ack arrives at tick 4 — too late. The failure becomes certain at tick 3, when the window closes. Attempts at ticks 2 and 3 are vacuous because req did not rise there.

Puzzle 11
property
assert property (@(posedge clk) disable iff (rst) req |=> ack);
012345clkrstreqack

What does a formal tool report for this assertion on this trace?

Show answer

Answer B: Passes: the attempt is cancelled by reset

The attempt from tick 1 would check ack at tick 2, but rst is high then, so the attempt is disabled: neither pass nor fail. Tools usually count it separately as "disabled". Remember that disable iff reacts to reset asynchronously — it does not wait for a clock edge.

Puzzle 12
property
assert property (@(posedge clk) $fell(busy) |-> done);
012345clkbusydone

What does a formal tool report for this assertion on this trace?

Show answer

Answer A: Passes

$fell(busy) is true at tick 4: the first tick where busy is sampled low after being high. done is high at tick 4, so the only real attempt passes. A common mistake is to think $fell is true at tick 3, the last high tick.

Discussion

No comments yet.

Was this page helpful?

Tip: select any text on the page before clicking Report and it will be quoted in your report.