SystemVerilog Assertion Examples: ##, |->, |=>, $rose, $fell with Timing Diagrams (Tested)
In short: six operators cover most everyday assertions. ##N waits exactly N clock edges and ##[m:n] accepts any edge in a window. |-> checks on the same edge as the trigger and |=> on the next one, while $rose and $fell catch a 0-to-1 or 1-to-0 change between two edges.
Each operator below has a timing diagram from a real VCS run, a passing case and a failing case. Every failure comes with the exact line VCS printed and the reason it failed, edge by edge.
The earlier version of this post described these operators from the standard alone. This version runs every one of them on Synopsys VCS, with a planted bug for each.
Start here: the simplest example
One waveform, two assertions. a_same uses req |-> gnt and a_next uses req |=> gnt, and each fails at a different moment.
// tav_ops_simple.sv : the same waveform checked with |-> and with |=> (UVM 1.2 reporting only)
// The Art of Verification | theartofverification.com
// Run on Synopsys VCS X-2025.06-SP1 with UVM 1.2 (EDA Playground), 2 Dec 2026.
// EDA Playground: Synopsys VCS, UVM 1.2, top module "tav_top".
`timescale 1ns/1ns
`include "uvm_macros.svh"
module tav_top;
import uvm_pkg::*;
logic clk = 0, req = 0, gnt = 0;
always #5 clk = ~clk; // rising edges at 5, 15, 25, ...
// |-> : gnt must be high in the SAME cycle as req
a_same: assert property (@(posedge clk) req |-> gnt)
else `uvm_info("TAV_OPS", $sformatf("a_same (req |-> gnt) FAILED at %0t", $time), UVM_NONE)
// |=> : gnt must be high in the NEXT cycle after req
a_next: assert property (@(posedge clk) req |=> gnt)
else `uvm_info("TAV_OPS", $sformatf("a_next (req |=> gnt) FAILED at %0t", $time), UVM_NONE)
initial begin
@(negedge clk) begin req = 1; gnt = 0; end // seen at 15: gnt is late by one cycle
@(negedge clk) begin req = 0; gnt = 1; end // seen at 25
@(negedge clk) begin req = 1; gnt = 1; end // seen at 35: gnt in the same cycle
@(negedge clk) begin req = 0; gnt = 0; end // seen at 45
@(negedge clk) $finish;
end
endmodule
Here is what VCS printed:
"testbench.sv", 15: tav_top.a_same: started at 15ns failed at 15ns
Offending 'gnt'
UVM_INFO testbench.sv(16) @ 15: reporter [TAV_OPS] a_same (req |-> gnt) FAILED at 15
"testbench.sv", 19: tav_top.a_next: started at 35ns failed at 45ns
Offending 'gnt'
UVM_INFO testbench.sv(20) @ 45: reporter [TAV_OPS] a_next (req |=> gnt) FAILED at 45
$finish called from file "testbench.sv", line 27.
$finish at simulation time 50
- a_same failed at 15 ns:
reqwas 1 andgntwas 0 on that edge.|->checks on the same edge, so VCS printed “started at 15ns failed at 15ns”. - a_next failed at 45 ns: the attempt started at 35 ns, so
|=>checked one edge later.gnthad dropped by then, so VCS printed “started at 35ns failed at 45ns”.
The two numbers in each VCS line tell you which operator you used. Same time means |->, one edge apart means |=>.
What you will learn
- How each of the six operators samples the clock, shown on a timing diagram.
- Why each one fails, using five planted bugs and the VCS messages they caused.
- Why most attempts of an implication pass with nothing to check, and why that matters.
- How to read “started at … failed at …” to find the bug fast.
Cheat sheet: the six operators
| Operator | Meaning | Passes when | Fails when | Failed in this post by |
|---|---|---|---|---|
a ##N b | b exactly N edges after a | b is 1 on edge N | b is 0 on edge N, even if it comes later | +BUG=1 |
a ##[m:n] b | b on any edge from m to n after a | b is 1 on at least one edge in the window | b is 0 on every edge in the window | +BUG=2 |
a |-> b | if a, then b on the same edge | a and b both 1 | a is 1 and b is 0 on that edge | +BUG=4 |
a |=> b | if a, then b on the next edge | b is 1 one edge after a | b is 0 one edge after a | +BUG=3 |
$rose(x) | x was 0, now 1 | a real 0-to-1 change | x was already 1, or is still 0 | +BUG=5 |
$fell(x) | x was 1, now 0 | a real 1-to-0 change | x is still 1, or was already 0 | +BUG=3, +BUG=4 |
How to read the diagrams: assertions sample signals on the rising clock edge, marked by the dashed lines. A gold circle is the edge where the trigger (the antecedent) is true, a green tick is a pass and a red cross is a fail. Rows in red are the planted-bug versions of a signal.
The bench: one design, six operators, 7 checks
tav_respis the design. Whenreqis 1,busyrises on the next edge,ackpulses 2 edges afterreq, andbusyfalls on the edge afterack.tav_resp_svaholds one assertion and one cover per operator. Each check reports failures / cover hits.- Three requests are seen at 35, 105 and 175 ns. The diagrams zoom in on the first one.
- Five planted bugs,
+BUG=1to+BUG=5, each break a different operator for a real design reason.
Run it yourself: both files are on GitHub, with the expected output for all seven runs.
// tav_ops_uvm.sv : the basic SVA operators on a small design, 7 self-checks (UVM 1.2)
// The Art of Verification | theartofverification.com
// Run on Synopsys VCS X-2025.06-SP1 with UVM 1.2 (EDA Playground), 2 Dec 2026.
// EDA Playground: Synopsys VCS, UVM 1.2, top module "tav_top".
// Paste this whole file into testbench.sv and leave design.sv empty.
//
// What is in here:
// tav_ops_pkg counters that the assertion and cover action blocks update
// tav_resp the design: on req, busy rises next cycle, ack pulses 2 cycles after req, then busy falls
// tav_resp_sva one assertion and one cover per operator: ##2, ##[1:3], |->, |=>, $rose, $fell
// tav_ops_test 7 self-checks on the counters
//
// Run options (each +BUG makes a different operator fail, for a real reason):
// (none) all 7 checks pass, 0 errors
// +BUG=1 ack comes 3 cycles after req, not 2: ##2 fails, ##[1:3] still passes (check 1 fails)
// +BUG=2 ack comes 5 cycles after req: ##2 and ##[1:3] both fail (checks 1, 2 fail)
// +BUG=3 busy stays high one cycle after ack: |=> !busy and $fell fail (checks 4, 6 fail)
// +BUG=4 busy drops on the same edge ack rises: |-> busy and $fell fail (checks 3, 6 fail)
// +BUG=5 busy comes out of reset high: $rose fails for the first request (check 5 fails)
`timescale 1ns/1ns
`include "uvm_macros.svh"
package tav_ops_pkg;
int tav_fail[string] = '{"fixed":0, "range":0, "overlap":0, "next":0, "rose":0, "fell":0}; // assertion failures
int tav_hit[string] = '{"fixed":0, "range":0, "overlap":0, "next":0, "rose":0, "fell":0}; // cover matches
int tav_cycles, tav_reqs; // clock edges out of reset, and edges with req high
bit tav_stim_done;
endpackage
// The design
module tav_resp (input logic clk, rst, req, output logic busy, ack);
int tav_bug, tav_lat;
int cnt;
logic late;
initial begin
void'($value$plusargs("BUG=%d", tav_bug));
tav_lat = (tav_bug == 1) ? 3 : (tav_bug == 2) ? 5 : 2; // BUG=1 / BUG=2: slower ack
end
always @(posedge clk) begin
if (rst) begin
busy <= (tav_bug == 5); // BUG=5: busy high out of reset
ack <= 0; cnt <= 0; late <= 0;
end
else begin
ack <= 0; late <= 0;
if (req) begin
busy <= 1; cnt <= 1;
end
else if (cnt != 0) begin
if (cnt == tav_lat - 1) begin
ack <= 1; cnt <= 0;
if (tav_bug == 4) busy <= 0; // BUG=4: busy drops as ack rises
end
else cnt <= cnt + 1;
end
if (ack) begin
if (tav_bug == 3) late <= 1; // BUG=3: busy drops one cycle late
else busy <= 0;
end
if (late) busy <= 0;
end
end
endmodule
// The checker: one assertion + one cover per operator
module tav_resp_sva (input logic clk, rst, req, busy, ack);
import uvm_pkg::*;
import tav_ops_pkg::*;
// 1. ##N: ack exactly 2 cycles after req
a_fixed: assert property (@(posedge clk) disable iff (rst) req |-> ##2 ack)
else begin tav_fail["fixed"]++; `uvm_info("TAV_OPS", $sformatf("a_fixed FAILED at %0t", $time), UVM_LOW) end
c_fixed: cover property (@(posedge clk) disable iff (rst) req ##2 ack) tav_hit["fixed"]++;
// 2. ##[m:n]: ack somewhere 1 to 3 cycles after req
a_range: assert property (@(posedge clk) disable iff (rst) req |-> ##[1:3] ack)
else begin tav_fail["range"]++; `uvm_info("TAV_OPS", $sformatf("a_range FAILED at %0t", $time), UVM_LOW) end
c_range: cover property (@(posedge clk) disable iff (rst) req ##[1:3] ack) tav_hit["range"]++;
// 3. |-> : busy is still high in the same cycle as ack
a_overlap: assert property (@(posedge clk) disable iff (rst) ack |-> busy)
else begin tav_fail["overlap"]++; `uvm_info("TAV_OPS", $sformatf("a_overlap FAILED at %0t", $time), UVM_LOW) end
c_overlap: cover property (@(posedge clk) disable iff (rst) ack && busy) tav_hit["overlap"]++;
// 4. |=> : busy is low in the cycle after ack
a_next: assert property (@(posedge clk) disable iff (rst) ack |=> !busy)
else begin tav_fail["next"]++; `uvm_info("TAV_OPS", $sformatf("a_next FAILED at %0t", $time), UVM_LOW) end
c_next: cover property (@(posedge clk) disable iff (rst) ack ##1 !busy) tav_hit["next"]++;
// 5. $rose: busy goes 0 -> 1 in the cycle after req
a_rose: assert property (@(posedge clk) disable iff (rst) req |=> $rose(busy))
else begin tav_fail["rose"]++; `uvm_info("TAV_OPS", $sformatf("a_rose FAILED at %0t", $time), UVM_LOW) end
c_rose: cover property (@(posedge clk) disable iff (rst) req ##1 $rose(busy)) tav_hit["rose"]++;
// 6. $fell: busy goes 1 -> 0 in the cycle after ack
a_fell: assert property (@(posedge clk) disable iff (rst) ack |=> $fell(busy))
else begin tav_fail["fell"]++; `uvm_info("TAV_OPS", $sformatf("a_fell FAILED at %0t", $time), UVM_LOW) end
c_fell: cover property (@(posedge clk) disable iff (rst) ack ##1 $fell(busy)) tav_hit["fell"]++;
// 7. vacuity: count every edge, and the edges where a_fixed really had something to check
always @(posedge clk) if (!rst) begin
tav_cycles++;
if (req) tav_reqs++;
end
endmodule
class tav_ops_test extends uvm_test;
`uvm_component_utils(tav_ops_test)
int tav_pass, tav_fail_n;
function new(string name, uvm_component parent);
super.new(name, parent);
endfunction
task run_phase(uvm_phase phase);
phase.raise_objection(this);
wait (tav_ops_pkg::tav_stim_done);
phase.drop_objection(this);
endtask
function void tav_check(string what, string got, string exp);
if (got == exp) begin
tav_pass++;
`uvm_info("TAV_OPS", $sformatf("PASS %s: %s", what, got), UVM_LOW)
end
else begin
tav_fail_n++;
`uvm_error("TAV_OPS", $sformatf("FAIL %s: got %s, expected %s", what, got, exp))
end
endfunction
function string tav_fh(string k); // "failures / cover hits" for one operator
int f = tav_ops_pkg::tav_fail.exists(k) ? tav_ops_pkg::tav_fail[k] : 0;
int h = tav_ops_pkg::tav_hit.exists(k) ? tav_ops_pkg::tav_hit[k] : 0;
return $sformatf("%0d / %0d", f, h);
endfunction
function void report_phase(uvm_phase phase);
tav_check("1 ##2 req |-> ##2 ack: failures / cover hits", tav_fh("fixed"), "0 / 3");
tav_check("2 ##[1:3] req |-> ##[1:3] ack: failures / cover hits", tav_fh("range"), "0 / 3");
tav_check("3 |-> ack |-> busy: failures / cover hits", tav_fh("overlap"), "0 / 3");
tav_check("4 |=> ack |=> !busy: failures / cover hits", tav_fh("next"), "0 / 3");
tav_check("5 $rose req |=> $rose(busy): failures / cover hits", tav_fh("rose"), "0 / 3");
tav_check("6 $fell ack |=> $fell(busy): failures / cover hits", tav_fh("fell"), "0 / 3");
tav_check("7 a_fixed attempts: real (req high) / vacuous",
$sformatf("%0d / %0d", tav_ops_pkg::tav_reqs, tav_ops_pkg::tav_cycles - tav_ops_pkg::tav_reqs), "3 / 23");
`uvm_info("TAV_OPS", $sformatf("Checks: %0d pass, %0d fail", tav_pass, tav_fail_n), UVM_NONE)
endfunction
endclass
module tav_top;
import uvm_pkg::*;
logic clk = 0, rst = 1, req = 0;
logic busy, ack;
always #5 clk = ~clk; // rising edges at 5, 15, 25, ...
tav_resp u_dut (.*);
tav_resp_sva u_sva (.*);
task tav_req();
@(negedge clk) req = 1;
@(negedge clk) req = 0;
repeat (5) @(negedge clk);
endtask
initial begin
repeat (2) @(negedge clk); // reset for the edges at 5 and 15
rst = 0;
repeat (3) tav_req(); // requests seen at 35, 105 and 175 ns
repeat (5) @(negedge clk); // room for the slowest design (+BUG=2) to finish
tav_ops_pkg::tav_stim_done = 1;
end
initial run_test("tav_ops_test");
endmodule
How to run it
- Open EDA Playground and pick Synopsys VCS with UVM 1.2.
- Paste the file into
testbench.sv, leavedesign.svempty, and set the top module totav_top. - Run it with no option, then with
+BUG=1,+BUG=2,+BUG=3,+BUG=4and+BUG=5.
What VCS returned on the clean run
| # | Operator | Assertion | Failures / cover hits |
|---|---|---|---|
| 1 | ##N | req |-> ##2 ack | 0 / 3 |
| 2 | ##[m:n] | req |-> ##[1:3] ack | 0 / 3 |
| 3 | |-> | ack |-> busy | 0 / 3 |
| 4 | |=> | ack |=> !busy | 0 / 3 |
| 5 | $rose | req |=> $rose(busy) | 0 / 3 |
| 6 | $fell | ack |=> $fell(busy) | 0 / 3 |
| 7 | vacuity | a_fixed attempts: real / vacuous | 3 / 23 |
Result: 7 pass, 0 fail, and every cover matched all 3 requests. Here is the log.
UVM_INFO @ 0: reporter [RNTST] Running test tav_ops_test...
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_objection.svh(1276) @ 280: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 1 ##2 req |-> ##2 ack: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 2 ##[1:3] req |-> ##[1:3] ack: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 3 |-> ack |-> busy: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 4 |=> ack |=> !busy: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 5 $rose req |=> $rose(busy): failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 6 $fell ack |=> $fell(busy): failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 7 a_fixed attempts: real (req high) / vacuous: 3 / 23
UVM_INFO testbench.sv(147) @ 280: uvm_test_top [TAV_OPS] Checks: 7 pass, 0 fail
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_report_server.svh(904) @ 280: reporter [UVM/REPORT/SERVER]
--- UVM Report Summary ---
** Report counts by severity
UVM_INFO : 11
UVM_WARNING : 0
UVM_ERROR : 0
UVM_FATAL : 0
** Report counts by id
[RNTST] 1
[TAV_OPS] 8
[TEST_DONE] 1
[UVM/RELNOTES] 1
$finish called from file "/apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_root.svh", line 532.
$finish at simulation time 280
"testbench.sv", 84: tav_top.u_sva.c_overlap, 28 attempts, 3 match
"testbench.sv", 74: tav_top.u_sva.c_fixed, 28 attempts, 3 match
"testbench.sv", 79: tav_top.u_sva.c_range, 28 attempts, 3 match
"testbench.sv", 89: tav_top.u_sva.c_next, 28 attempts, 3 match
"testbench.sv", 94: tav_top.u_sva.c_rose, 28 attempts, 3 match
"testbench.sv", 99: tav_top.u_sva.c_fell, 28 attempts, 3 match
1. ##N: exactly N clock edges later
req |-> ##2 ack means: on an edge where req is 1, ack must be 1 exactly two edges later. ## counts clock edges, not nanoseconds, so it is not the same as Verilog’s # delay.

With +BUG=1 the design answers one cycle late:
UVM_INFO @ 0: reporter [RNTST] Running test tav_ops_test...
"testbench.sv", 72: tav_top.u_sva.a_fixed: started at 35ns failed at 55ns
Offending 'ack'
UVM_INFO testbench.sv(73) @ 55: reporter [TAV_OPS] a_fixed FAILED at 55
"testbench.sv", 72: tav_top.u_sva.a_fixed: started at 105ns failed at 125ns
Offending 'ack'
UVM_INFO testbench.sv(73) @ 125: reporter [TAV_OPS] a_fixed FAILED at 125
"testbench.sv", 72: tav_top.u_sva.a_fixed: started at 175ns failed at 195ns
Offending 'ack'
UVM_INFO testbench.sv(73) @ 195: reporter [TAV_OPS] a_fixed FAILED at 195
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_objection.svh(1276) @ 280: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
UVM_ERROR testbench.sv(128) @ 280: uvm_test_top [TAV_OPS] FAIL 1 ##2 req |-> ##2 ack: failures / cover hits: got 3 / 0, expected 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 2 ##[1:3] req |-> ##[1:3] ack: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 3 |-> ack |-> busy: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 4 |=> ack |=> !busy: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 5 $rose req |=> $rose(busy): failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 6 $fell ack |=> $fell(busy): failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 7 a_fixed attempts: real (req high) / vacuous: 3 / 23
UVM_INFO testbench.sv(147) @ 280: uvm_test_top [TAV_OPS] Checks: 6 pass, 1 fail
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_report_server.svh(904) @ 280: reporter [UVM/REPORT/SERVER]
--- UVM Report Summary ---
** Report counts by severity
UVM_INFO : 13
UVM_WARNING : 0
UVM_ERROR : 1
UVM_FATAL : 0
** Report counts by id
[RNTST] 1
[TAV_OPS] 11
[TEST_DONE] 1
[UVM/RELNOTES] 1
$finish called from file "/apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_root.svh", line 532.
$finish at simulation time 280
"testbench.sv", 84: tav_top.u_sva.c_overlap, 28 attempts, 3 match
"testbench.sv", 74: tav_top.u_sva.c_fixed, 28 attempts, 0 match
"testbench.sv", 79: tav_top.u_sva.c_range, 28 attempts, 3 match
"testbench.sv", 89: tav_top.u_sva.c_next, 28 attempts, 3 match
"testbench.sv", 94: tav_top.u_sva.c_rose, 28 attempts, 3 match
"testbench.sv", 99: tav_top.u_sva.c_fell, 28 attempts, 3 match
- Why it failed:
reqwas 1 at 35 ns, so##2pointed at 55 ns, whereackwas still 0. - Why being late still fails:
ackdid rise at 65 ns, but##2never looks at that edge. - How to spot it: “started at 35ns failed at 55ns” is two edges apart, which is the
##2. The coverc_fixedmatched 0 times.
2. ##[m:n]: any edge inside a window
req |-> ##[1:3] ack passes if ack is 1 on any of the next three edges. The first match ends the attempt, so later edges are not checked.
![Timing diagram for req |-> ##[1:3] ack with a shaded window from 45 to 65 ns. The clean ack at 55 ns passes, +BUG=1 ack at 65 ns passes, and +BUG=2 ack at 85 ns fails at 65 ns when the window closes. A box explains the failure with the VCS line started at 35ns failed at 65ns](https://theartofverification.com/wp-content/uploads/2026/12/sva-delay-range-tav.webp)
Note that +BUG=1, which broke ##2, passes here: its ack at 65 ns is still inside the window. +BUG=2 answers at 85 ns:
UVM_INFO @ 0: reporter [RNTST] Running test tav_ops_test...
"testbench.sv", 72: tav_top.u_sva.a_fixed: started at 35ns failed at 55ns
Offending 'ack'
UVM_INFO testbench.sv(73) @ 55: reporter [TAV_OPS] a_fixed FAILED at 55
"testbench.sv", 77: tav_top.u_sva.a_range: started at 35ns failed at 65ns
Offending 'ack'
UVM_INFO testbench.sv(78) @ 65: reporter [TAV_OPS] a_range FAILED at 65
"testbench.sv", 72: tav_top.u_sva.a_fixed: started at 105ns failed at 125ns
Offending 'ack'
UVM_INFO testbench.sv(73) @ 125: reporter [TAV_OPS] a_fixed FAILED at 125
"testbench.sv", 77: tav_top.u_sva.a_range: started at 105ns failed at 135ns
Offending 'ack'
UVM_INFO testbench.sv(78) @ 135: reporter [TAV_OPS] a_range FAILED at 135
"testbench.sv", 72: tav_top.u_sva.a_fixed: started at 175ns failed at 195ns
Offending 'ack'
UVM_INFO testbench.sv(73) @ 195: reporter [TAV_OPS] a_fixed FAILED at 195
"testbench.sv", 77: tav_top.u_sva.a_range: started at 175ns failed at 205ns
Offending 'ack'
UVM_INFO testbench.sv(78) @ 205: reporter [TAV_OPS] a_range FAILED at 205
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_objection.svh(1276) @ 280: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
UVM_ERROR testbench.sv(128) @ 280: uvm_test_top [TAV_OPS] FAIL 1 ##2 req |-> ##2 ack: failures / cover hits: got 3 / 0, expected 0 / 3
UVM_ERROR testbench.sv(128) @ 280: uvm_test_top [TAV_OPS] FAIL 2 ##[1:3] req |-> ##[1:3] ack: failures / cover hits: got 3 / 0, expected 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 3 |-> ack |-> busy: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 4 |=> ack |=> !busy: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 5 $rose req |=> $rose(busy): failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 6 $fell ack |=> $fell(busy): failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 7 a_fixed attempts: real (req high) / vacuous: 3 / 23
UVM_INFO testbench.sv(147) @ 280: uvm_test_top [TAV_OPS] Checks: 5 pass, 2 fail
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_report_server.svh(904) @ 280: reporter [UVM/REPORT/SERVER]
--- UVM Report Summary ---
** Report counts by severity
UVM_INFO : 15
UVM_WARNING : 0
UVM_ERROR : 2
UVM_FATAL : 0
** Report counts by id
[RNTST] 1
[TAV_OPS] 14
[TEST_DONE] 1
[UVM/RELNOTES] 1
$finish called from file "/apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_root.svh", line 532.
$finish at simulation time 280
"testbench.sv", 84: tav_top.u_sva.c_overlap, 28 attempts, 3 match
"testbench.sv", 74: tav_top.u_sva.c_fixed, 28 attempts, 0 match
"testbench.sv", 79: tav_top.u_sva.c_range, 28 attempts, 0 match
"testbench.sv", 89: tav_top.u_sva.c_next, 28 attempts, 3 match
"testbench.sv", 94: tav_top.u_sva.c_rose, 28 attempts, 3 match
"testbench.sv", 99: tav_top.u_sva.c_fell, 28 attempts, 3 match
- Why it failed:
ackfirst rose at 85 ns, and it was 0 at 45, 55 and 65 ns. - When it is reported: VCS reported the fail at 65 ns, the last edge of the window, not when
ackfinally arrived. - Both checks broke:
a_fixedfailed at 55 ns as well, and both covers matched 0 times.
3. |->: checked on the same edge
ack |-> busy means: on an edge where ack is 1, busy must be 1 on that same edge. On every edge where ack is 0 there is nothing to check, so the attempt passes vacuously.

With +BUG=4, the design clears busy on the same clock edge that sets ack:
UVM_INFO @ 0: reporter [RNTST] Running test tav_ops_test...
"testbench.sv", 82: tav_top.u_sva.a_overlap: started at 55ns failed at 55ns
Offending 'busy'
UVM_INFO testbench.sv(83) @ 55: reporter [TAV_OPS] a_overlap FAILED at 55
"testbench.sv", 97: tav_top.u_sva.a_fell: started at 55ns failed at 65ns
Offending '$fell(busy)'
UVM_INFO testbench.sv(98) @ 65: reporter [TAV_OPS] a_fell FAILED at 65
"testbench.sv", 82: tav_top.u_sva.a_overlap: started at 125ns failed at 125ns
Offending 'busy'
UVM_INFO testbench.sv(83) @ 125: reporter [TAV_OPS] a_overlap FAILED at 125
"testbench.sv", 97: tav_top.u_sva.a_fell: started at 125ns failed at 135ns
Offending '$fell(busy)'
UVM_INFO testbench.sv(98) @ 135: reporter [TAV_OPS] a_fell FAILED at 135
"testbench.sv", 82: tav_top.u_sva.a_overlap: started at 195ns failed at 195ns
Offending 'busy'
UVM_INFO testbench.sv(83) @ 195: reporter [TAV_OPS] a_overlap FAILED at 195
"testbench.sv", 97: tav_top.u_sva.a_fell: started at 195ns failed at 205ns
Offending '$fell(busy)'
UVM_INFO testbench.sv(98) @ 205: reporter [TAV_OPS] a_fell FAILED at 205
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_objection.svh(1276) @ 280: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 1 ##2 req |-> ##2 ack: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 2 ##[1:3] req |-> ##[1:3] ack: failures / cover hits: 0 / 3
UVM_ERROR testbench.sv(128) @ 280: uvm_test_top [TAV_OPS] FAIL 3 |-> ack |-> busy: failures / cover hits: got 3 / 0, expected 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 4 |=> ack |=> !busy: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 5 $rose req |=> $rose(busy): failures / cover hits: 0 / 3
UVM_ERROR testbench.sv(128) @ 280: uvm_test_top [TAV_OPS] FAIL 6 $fell ack |=> $fell(busy): failures / cover hits: got 3 / 0, expected 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 7 a_fixed attempts: real (req high) / vacuous: 3 / 23
UVM_INFO testbench.sv(147) @ 280: uvm_test_top [TAV_OPS] Checks: 5 pass, 2 fail
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_report_server.svh(904) @ 280: reporter [UVM/REPORT/SERVER]
--- UVM Report Summary ---
** Report counts by severity
UVM_INFO : 15
UVM_WARNING : 0
UVM_ERROR : 2
UVM_FATAL : 0
** Report counts by id
[RNTST] 1
[TAV_OPS] 14
[TEST_DONE] 1
[UVM/RELNOTES] 1
$finish called from file "/apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_root.svh", line 532.
$finish at simulation time 280
"testbench.sv", 84: tav_top.u_sva.c_overlap, 28 attempts, 0 match
"testbench.sv", 74: tav_top.u_sva.c_fixed, 28 attempts, 3 match
"testbench.sv", 79: tav_top.u_sva.c_range, 28 attempts, 3 match
"testbench.sv", 89: tav_top.u_sva.c_next, 28 attempts, 3 match
"testbench.sv", 94: tav_top.u_sva.c_rose, 28 attempts, 3 match
"testbench.sv", 99: tav_top.u_sva.c_fell, 28 attempts, 0 match
- Why it failed: at 55 ns
ackwas 1 butbusywas already 0, and|->checksbusyon that same edge. - How to spot it: “started at 55ns failed at 55ns” is the signature of
|->, and “Offending ‘busy'” names the term that was false.
4. |=>: checked on the next edge
ack |=> !busy means: on an edge where ack is 1, busy must be 0 one edge later. a |=> b is the same as a |-> ##1 b.

With +BUG=3, the design keeps busy high one cycle longer:
UVM_INFO @ 0: reporter [RNTST] Running test tav_ops_test...
"testbench.sv", 97: tav_top.u_sva.a_fell: started at 55ns failed at 65ns
Offending '$fell(busy)'
UVM_INFO testbench.sv(98) @ 65: reporter [TAV_OPS] a_fell FAILED at 65
"testbench.sv", 87: tav_top.u_sva.a_next: started at 55ns failed at 65ns
Offending '(!busy)'
UVM_INFO testbench.sv(88) @ 65: reporter [TAV_OPS] a_next FAILED at 65
"testbench.sv", 97: tav_top.u_sva.a_fell: started at 125ns failed at 135ns
Offending '$fell(busy)'
UVM_INFO testbench.sv(98) @ 135: reporter [TAV_OPS] a_fell FAILED at 135
"testbench.sv", 87: tav_top.u_sva.a_next: started at 125ns failed at 135ns
Offending '(!busy)'
UVM_INFO testbench.sv(88) @ 135: reporter [TAV_OPS] a_next FAILED at 135
"testbench.sv", 97: tav_top.u_sva.a_fell: started at 195ns failed at 205ns
Offending '$fell(busy)'
UVM_INFO testbench.sv(98) @ 205: reporter [TAV_OPS] a_fell FAILED at 205
"testbench.sv", 87: tav_top.u_sva.a_next: started at 195ns failed at 205ns
Offending '(!busy)'
UVM_INFO testbench.sv(88) @ 205: reporter [TAV_OPS] a_next FAILED at 205
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_objection.svh(1276) @ 280: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 1 ##2 req |-> ##2 ack: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 2 ##[1:3] req |-> ##[1:3] ack: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 3 |-> ack |-> busy: failures / cover hits: 0 / 3
UVM_ERROR testbench.sv(128) @ 280: uvm_test_top [TAV_OPS] FAIL 4 |=> ack |=> !busy: failures / cover hits: got 3 / 0, expected 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 5 $rose req |=> $rose(busy): failures / cover hits: 0 / 3
UVM_ERROR testbench.sv(128) @ 280: uvm_test_top [TAV_OPS] FAIL 6 $fell ack |=> $fell(busy): failures / cover hits: got 3 / 0, expected 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 7 a_fixed attempts: real (req high) / vacuous: 3 / 23
UVM_INFO testbench.sv(147) @ 280: uvm_test_top [TAV_OPS] Checks: 5 pass, 2 fail
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_report_server.svh(904) @ 280: reporter [UVM/REPORT/SERVER]
--- UVM Report Summary ---
** Report counts by severity
UVM_INFO : 15
UVM_WARNING : 0
UVM_ERROR : 2
UVM_FATAL : 0
** Report counts by id
[RNTST] 1
[TAV_OPS] 14
[TEST_DONE] 1
[UVM/RELNOTES] 1
$finish called from file "/apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_root.svh", line 532.
$finish at simulation time 280
"testbench.sv", 84: tav_top.u_sva.c_overlap, 28 attempts, 3 match
"testbench.sv", 74: tav_top.u_sva.c_fixed, 28 attempts, 3 match
"testbench.sv", 79: tav_top.u_sva.c_range, 28 attempts, 3 match
"testbench.sv", 89: tav_top.u_sva.c_next, 28 attempts, 0 match
"testbench.sv", 94: tav_top.u_sva.c_rose, 28 attempts, 3 match
"testbench.sv", 99: tav_top.u_sva.c_fell, 28 attempts, 0 match
- Why it failed: the attempt started at 55 ns, so
|=>checked 65 ns.busywas still 1 there and only dropped at 75 ns. - How to spot it: “started at 55ns failed at 65ns” is one edge apart, which is the
|=>. The same bug also broke$fell, shown in section 6.
5. $rose: a real 0-to-1 change
$rose(busy) compares two sampled values: busy was 0 on the previous edge and is 1 on this one. Being high is not enough.

With +BUG=5, busy comes out of reset at 1:
UVM_INFO @ 0: reporter [RNTST] Running test tav_ops_test...
"testbench.sv", 92: tav_top.u_sva.a_rose: started at 35ns failed at 45ns
Offending '$rose(busy)'
UVM_INFO testbench.sv(93) @ 45: reporter [TAV_OPS] a_rose FAILED at 45
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_objection.svh(1276) @ 280: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 1 ##2 req |-> ##2 ack: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 2 ##[1:3] req |-> ##[1:3] ack: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 3 |-> ack |-> busy: failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 4 |=> ack |=> !busy: failures / cover hits: 0 / 3
UVM_ERROR testbench.sv(128) @ 280: uvm_test_top [TAV_OPS] FAIL 5 $rose req |=> $rose(busy): failures / cover hits: got 1 / 2, expected 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 6 $fell ack |=> $fell(busy): failures / cover hits: 0 / 3
UVM_INFO testbench.sv(124) @ 280: uvm_test_top [TAV_OPS] PASS 7 a_fixed attempts: real (req high) / vacuous: 3 / 23
UVM_INFO testbench.sv(147) @ 280: uvm_test_top [TAV_OPS] Checks: 6 pass, 1 fail
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_report_server.svh(904) @ 280: reporter [UVM/REPORT/SERVER]
--- UVM Report Summary ---
** Report counts by severity
UVM_INFO : 11
UVM_WARNING : 0
UVM_ERROR : 1
UVM_FATAL : 0
** Report counts by id
[RNTST] 1
[TAV_OPS] 9
[TEST_DONE] 1
[UVM/RELNOTES] 1
$finish called from file "/apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_root.svh", line 532.
$finish at simulation time 280
"testbench.sv", 84: tav_top.u_sva.c_overlap, 28 attempts, 3 match
"testbench.sv", 74: tav_top.u_sva.c_fixed, 28 attempts, 3 match
"testbench.sv", 79: tav_top.u_sva.c_range, 28 attempts, 3 match
"testbench.sv", 89: tav_top.u_sva.c_next, 28 attempts, 3 match
"testbench.sv", 94: tav_top.u_sva.c_rose, 28 attempts, 2 match
"testbench.sv", 99: tav_top.u_sva.c_fell, 28 attempts, 3 match
- Why it failed:
busywas 1 at 35 ns and still 1 at 45 ns, so it was high but did not rise. - Why only once: after the first
ack,busydropped to 0, so the requests at 105 and 175 ns saw a real 0-to-1 change. VCS reported 1 failure and 2 cover hits. - The real bug: a wrong reset value, caught by an assertion about rising edges. Reset bugs often show up like this, on the first transaction only.
6. $fell: a real 1-to-0 change
ack |=> $fell(busy) needs busy to be 1 on the ack edge and 0 on the next one. Two of the bugs above break it in opposite ways.

- +BUG=3, too late:
busywas 1 at 55 ns and still 1 at 65 ns. It fell at 75 ns, one edge after the checked one. - +BUG=4, too early:
busywas already 0 at 55 ns and 0 at 65 ns. It fell at 55 ns, one edge before the checked one. - Same message, different bugs: both runs printed “a_fell: started at 55ns failed at 65ns, Offending ‘$fell(busy)'”. The other assertion that failed tells them apart:
a_nextfor+BUG=3,a_overlapfor+BUG=4.
Vacuous passes: most attempts check nothing
An implication is attempted on every clock edge. When the left side is false it passes vacuously, which means it checked nothing at all.

In this bench a_fixed had 3 real attempts and 23 vacuous ones. If the stimulus never drove req, the assertion would still report 0 failures, which is why each assertion here has a matching cover (functional coverage, coverage closure).
All six failing runs at a glance
| Option | Design bug | Failed | VCS line | Reason |
|---|---|---|---|---|
+BUG=1 | ack 1 cycle late | ##2 | started at 35ns failed at 55ns | ack 0 on the one edge ##2 checks |
+BUG=2 | ack 3 cycles late | ##2, ##[1:3] | started at 35ns failed at 65ns | ack 0 on every edge of the window |
+BUG=3 | busy falls 1 cycle late | |=>, $fell | started at 55ns failed at 65ns | busy still 1 on the next edge |
+BUG=4 | busy falls with ack | |->, $fell | started at 55ns failed at 55ns | busy already 0 on the ack edge |
+BUG=5 | busy high out of reset | $rose, first request only | started at 35ns failed at 45ns | busy was already 1, so no rise |
Every one of these is a one-cycle design mistake. Each assertion pointed to the exact edge, and the gap between “started” and “failed” showed which operator caught it.
The lesson: when an assertion fails, read the two times first. They tell you which edge triggered it and which edge broke it, and that usually points straight at the bug.
Common mistakes to avoid
| Mistake | What you see | Fix |
|---|---|---|
Using |-> when the response comes a cycle later | Fails on the trigger edge (simple example, 15 ns) | Use |=> or |-> ##1 |
Using ##N when the spec allows a latency range | Fails when the design is legally slower (+BUG=1) | Use ##[m:n] |
Reading ##2 as 2 ns | Wrong expectations about timing | ## counts sampling edges |
| Using a level where you meant an edge | Passes when the signal was already high | Use $rose / $fell |
| No cover next to an assertion | 0 failures with 0 real attempts | Add a cover on the same sequence |
No disable iff for reset | False failures during reset | Add disable iff (rst) |
How AI helps you master this
- Draw it first: describe your protocol and ask for the expected value of each signal at each edge, then compare with your waveform.
- Explain a failure: paste a “started at … failed at …” line and your property, and ask which edge was checked and why it failed.
- Pick the operator: paste the spec sentence (“ack within 3 cycles”) and ask whether it should be
##Nor##[m:n].
Warning: a convincing AI answer is not the same as a correct engineering result. The two $fell bugs above print the same message for opposite reasons, so check the waveform.
Interview questions on assertion operators
- What is the difference between |-> and |=>?
|->checks the consequent on the same edge as the antecedent;|=>checks it one edge later.a |=> bequalsa |-> ##1 b. - Is ##1 the same as #1? No.
##1is one sampling clock edge;#1is one time unit. - When does ##[1:3] fail? When the consequent is false on every edge in the window. It is reported at the last edge.
- What does $rose check? That the signal was 0 on the previous sampling edge and is 1 on the current one.
- What is a vacuous pass? An implication whose antecedent is false. It passes without checking anything.
More practice: verification interview questions.
Practice challenge
- Run the simple example and match each VCS line to a red cross in the first diagram.
- Run the full bench with
+BUG=2. Why doesa_rangefail at 65 ns and not at 85 ns? - Change
a_rangeto##[1:5]and rerun+BUG=2. What happens to check 2? - Bonus: with
+BUG=5, change$rose(busy)to plainbusy. Does the reset bug still get caught?
FAQ
What does ##N mean in a SystemVerilog assertion? N sampling clock edges later. In this bench, req |-> ##2 ack with req at 35 ns checks ack at exactly 55 ns.
What is the difference between |-> and |=>? |-> checks on the same edge as the trigger, |=> on the next edge. In VCS output, |-> failures show the same start and fail time, and |=> failures are one edge apart.
When does a ##[m:n] assertion fail? Only when the consequent is false on every edge in the window. VCS reported it at the last edge of the window.
What is the difference between $rose and checking a signal is high? $rose needs a change from 0 to 1. A signal that was already high, as with +BUG=5, is high but did not rise.
What is a vacuous pass? An implication attempt where the antecedent is false, so nothing is checked. In this bench, 23 of 26 attempts were vacuous.
References
- IEEE 1800-2023, SystemVerilog standard: clause 16, assertions (sequences, implication,
$roseand$fell). - Synopsys VCS assertion failure reports, as printed in the runs above.
Keep learning
- Why assertions pay off: SystemVerilog assertions and their advantages.
- Two kinds of assertion: immediate vs concurrent assertions.
- Attaching checkers to RTL: SVA bind.
- The next operators: assertion examples, part 2.
- Beyond simulation: formal vs functional verification and where to use formal.
- Coverage that pairs with assertions: types of coverage metrics.
Part of the learning path Assertions (SVA)

Hi,
These are good, would like to see more. Maybe include a small testbench for each.
Thanks
Mike
Hi Mike,
Thanks, for reading my blog post. I just gave an overview you can plug and play with that by creating your own testbench for a better understanding of such concepts. Still I can try to add tb if possible.
Thank you
hi..your post is very nice. can you also explain about cover property,assume property etc..
Hi Mukunthan,
Sure. I will try to cover them. Thanks for the suggestion.
Regards,
Hardik