Verification #50 · 2026-11-12 · Delay ranges · Easy · about 10 min

The assertion with a window that starts too late

A block answers each one-cycle cmd pulse with a one-cycle done pulse. done must arrive 1 to 3 cycles after the cycle where cmd is high: the cycle right after cmd counts as 1, and done in the same cycle as cmd is not an answer. A new cmd is only issued after the previous one has been answered.

Write a concurrent assertion in checker.sv that enforces this and is disabled while rst_n is low. Use $error in the failure branch, or leave the branch out.

The stimulus in tb.sv has two legal commands and one answered too late. Press Run: your assertion should fire once, but the starter fires on the wrong commands. Grading uses three hidden scenarios.

Write and run your answer in the browser. The hidden tests check it, and it’s free.