Why SystemVerilog assertions pay off: immediate vs concurrent, cover, disable iff, bind and assertoff. Tested on VCS. The Art of Verification

SystemVerilog Assertions: What They Are and Why They Pay Off (Tested)

In short: An assertion is a rule about your design that the simulator checks for you and reports the moment it breaks, with the exact time. Immediate assertions check a condition right now, inside procedural code. Concurrent assertions check behaviour across clocks, like “every request is granted one clock later”, and a cover property with the same syntax tells you whether a scenario ever happened.

Without assertions, a bug shows up as a wrong value at the end of a test, maybe thousands of clocks later. With an assertion, the simulator points at the clock and the signals where the rule first broke.

In this lesson we start with one assertion and one cover, then go further with a UVM bench of 7 checks on a tiny design, using disable iff, bind and $assertoff. I ran all of it on Synopsys VCS.

Start here: the simplest example

One rule: rd and wr must never be high together. One cover: did we ever see two reads in a row? Five cycles of stimulus break the rule once, on purpose.

// tav_sva_simple.sv : the smallest assertion + cover example (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), 1 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, rd = 0, wr = 0;
  always #5 clk = ~clk;

  // The rule: read and write must never be high together
  a_no_rw_overlap: assert property (@(posedge clk) !(rd && wr))
    else `uvm_error("TAV_SVA", $sformatf("rd and wr both high at %0t", $time))

  // Did the test ever do two reads in a row?
  c_back_to_back_rd: cover property (@(posedge clk) rd ##1 rd)
    `uvm_info("TAV_SVA", $sformatf("cover hit: two reads in a row, ending at %0t", $time), UVM_NONE)

  initial begin
    @(negedge clk) rd = 1;            // read
    @(negedge clk) rd = 1;            // read again: the cover should hit
    @(negedge clk) rd = 0; wr = 1;    // write
    @(negedge clk) rd = 1; wr = 1;    // BOTH: the assertion should fire
    @(negedge clk) rd = 0; wr = 0;
    @(negedge clk) $finish;
  end
endmodule

Here is what VCS printed:

UVM_INFO testbench.sv(20) @ 25: reporter [TAV_SVA] cover hit: two reads in a row, ending at 25
"testbench.sv", 15: tav_top.a_no_rw_overlap: started at 45ns failed at 45ns
	Offending '(!(rd && wr))'
UVM_ERROR testbench.sv(16) @ 45: reporter [TAV_SVA] rd and wr both high at 45
$finish called from file "testbench.sv", line 28.
$finish at simulation time                   60
"testbench.sv", 19: tav_top.c_back_to_back_rd, 6 attempts, 1 match
  • At 25 ns: the cover hit. Two reads in a row really happened.
  • At 45 ns: the assertion fired, with its own VCS report (Offending '(!(rd && wr))') and our uvm_error.
  • At the end: VCS printed 6 attempts, 1 match for the cover. That is a coverage report you did not have to write.

That is the whole idea: the rule sits next to the design, and the tool watches it every clock.

What you will learn

  • The difference between immediate and concurrent assertions.
  • How cover property gives you functional coverage for free.
  • How disable iff keeps assertions quiet during reset.
  • How bind attaches checks without touching the design file.
  • How $assertoff and $asserton switch checks off and on.

For the sequence operators themselves (##, |->, |=>, $rose), see Basic Assertions Examples Part-1.

The advantages, in one table

AdvantageWhat it meansWhere the bench shows it
Catch bugs at the sourceThe failure points at the clock where the rule brokea_req_gnt failed at 95 ns in the bug run
Easier debugThe report names the assertion, the time and the offending expressionOffending 'gnt'
Free coverageA cover property counts how often a scenario happenedc_req_gnt, 15 attempts, 3 match
ReuseThe same properties run in simulation and in formal toolsThe checker is a separate module, attached with bind
ControlSwitch checks off for reset or for known-bad windowsdisable iff and $assertoff

Immediate vs concurrent

ImmediateConcurrent
Looks likeassert (len inside {[1:8]});assert property (@(posedge clk) req |=> gnt);
CheckedOnce, when the line runsOn every clock edge
Can span clocksNoYes
Lives inProcedural code: tasks, functions, always blocksModules, interfaces, checkers

Analogy: an immediate assertion is checking your ticket once at the gate. A concurrent assertion is a guard who watches the platform every minute and notes the exact time anything goes wrong.

Waveform of clk, rst, req, gnt, rd and wr from the bench, marked with where each check fired: a request during reset is ignored, c_btb hits at 65 ns, c_req_gnt hits three times, a_no_rw fails at 105 ns, and a second overlap inside the $assertoff window is not checked. With +BUG=1 the grant after the third request is missed, so a_req_gnt fails at 95 ns
The full bench as a waveform, with where VCS reported each hit and failure.

Going further: one bench, 7 checks

  • tav_arb is a tiny design: gnt follows req one clock later.
  • tav_arb_sva holds the assertions and covers, and their action blocks update counters in a package.
  • bind tav_arb tav_arb_sva u_sva (.*); attaches the checker to the design without editing it.
  • The stimulus includes a request during reset and two rd/wr overlaps, one inside a $assertoff window.
  • Planted bug: +BUG=1 makes the design miss one grant.

Run it yourself: both files are on GitHub, with the expected output.

// tav_sva_uvm.sv : assertions and their advantages, a complete working example (UVM 1.2)
// The Art of Verification | theartofverification.com
// Run on Synopsys VCS X-2025.06-SP1 with UVM 1.2 (EDA Playground), 1 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_sva_pkg     counters that the assertion and cover action blocks update
//   tav_arb         a tiny design: gnt follows req one clock later (registered)
//   tav_arb_sva     the checker: assertions and covers, attached to tav_arb with bind
//   tav_top         clock, reset and a fixed stimulus, including two rd/wr overlaps on purpose
//   tav_sva_test    7 self-checks on the counters, each printed with `uvm_info and checked with `uvm_error
//
// Run options:
//   (none)   all 7 checks pass, 0 errors
//   +BUG=1   the design misses one grant, so the assertion fires and the cover count drops (checks 2 and 3 fail)

`timescale 1ns/1ns
`include "uvm_macros.svh"

package tav_sva_pkg;
  int    tav_req_gnt_fail, tav_req_gnt_hit, tav_btb_hit, tav_rst_req_hit;
  int    tav_rw_fail, tav_rw_driven;
  string tav_sva_path;
  bit    tav_done;
endpackage

// ---------------------------------------------------------------
// The design: gnt follows req one clock later
// ---------------------------------------------------------------
module tav_arb (input logic clk, rst, req, rd, wr, output logic gnt);
  int tav_bug, tav_cyc;
  initial void'($value$plusargs("BUG=%d", tav_bug));
  always_ff @(posedge clk) begin
    tav_cyc <= tav_cyc + 1;
    if (rst)                              gnt <= 1'b0;
    else if (tav_bug == 1 && tav_cyc == 8) gnt <= 1'b0;    // BUG: one grant is missed (the request driven in cycle 7)
    else                                  gnt <= req;
  end
endmodule

// ---------------------------------------------------------------
// The checker, kept separate from the design
// ---------------------------------------------------------------
module tav_arb_sva (input logic clk, rst, req, gnt, rd, wr);
  import uvm_pkg::*;
  `include "uvm_macros.svh"
  import tav_sva_pkg::*;

  initial tav_sva_path = $sformatf("%m");

  // Rule 1: every request is granted on the next clock (switched off during reset)
  a_req_gnt: assert property (@(posedge clk) disable iff (rst) req |=> gnt)
    else begin
      tav_req_gnt_fail++;
      `uvm_info("TAV_SVA", $sformatf("a_req_gnt FAILED at %0t: req was not granted", $time), UVM_LOW)
    end

  // Rule 2: rd and wr never together
  a_no_rw: assert property (@(posedge clk) !(rd && wr))
    else begin
      tav_rw_fail++;
      `uvm_info("TAV_SVA", $sformatf("a_no_rw FAILED at %0t: rd and wr both high", $time), UVM_LOW)
    end

  // Coverage: did these things really happen?
  c_req_gnt: cover property (@(posedge clk) disable iff (rst) req ##1 gnt) tav_req_gnt_hit++;
  c_btb:     cover property (@(posedge clk) disable iff (rst) req ##1 req) tav_btb_hit++;
  c_rst_req: cover property (@(posedge clk) rst && req)                    tav_rst_req_hit++;
endmodule

// Attach the checker to every tav_arb, without touching the design file
bind tav_arb tav_arb_sva u_sva (.*);

// ---------------------------------------------------------------
// The test: reads the counters at the end
// ---------------------------------------------------------------
package tav_sva_test_pkg;
  import uvm_pkg::*;
  `include "uvm_macros.svh"
  import tav_sva_pkg::*;

  class tav_sva_test extends uvm_test;
    `uvm_component_utils(tav_sva_test)

    int tav_pass, tav_fail;

    function new(string name, uvm_component parent);
      super.new(name, parent);
    endfunction

    function void tav_check(string what, string got, string exp);
      if (got == exp) begin
        tav_pass++;
        `uvm_info("TAV_SVA", $sformatf("PASS %s: %s", what, got), UVM_LOW)
      end
      else begin
        tav_fail++;
        `uvm_error("TAV_SVA", $sformatf("FAIL %s: got %s, expected %s", what, got, exp))
      end
    endfunction

    task run_phase(uvm_phase phase);
      int tav_len, tav_imm_pass, tav_imm_fail;
      phase.raise_objection(this);

      // 1. Immediate assertion: checked right now, inside procedural code
      tav_len = 4;
      assert (tav_len inside {[1:8]}) tav_imm_pass++; else tav_imm_fail++;
      tav_len = 12;
      assert (tav_len inside {[1:8]}) tav_imm_pass++;
      else begin
        tav_imm_fail++;
        `uvm_info("TAV_SVA", "immediate assert caught tav_len = 12", UVM_LOW)
      end
      tav_check("1 immediate assert: pass / fail", $sformatf("%0d / %0d", tav_imm_pass, tav_imm_fail), "1 / 1");

      wait (tav_done);

      // 2-7. Concurrent assertions and covers, counted by their action blocks
      tav_check("2 a_req_gnt failures", $sformatf("%0d", tav_req_gnt_fail), "0");
      tav_check("3 c_req_gnt hits (req then gnt)", $sformatf("%0d", tav_req_gnt_hit), "3");
      tav_check("4 c_btb hits (two requests in a row)", $sformatf("%0d", tav_btb_hit), "1");
      tav_check("5 rd/wr overlaps driven / a_no_rw failures (one inside $assertoff)",
                $sformatf("%0d / %0d", tav_rw_driven, tav_rw_fail), "2 / 1");
      tav_check("6 bind: checker instance path", tav_sva_path, "tav_top.u_arb.u_sva");
      // (check 2 already shows that this request did not cause an a_req_gnt failure)
      tav_check("7 req during reset seen (disable iff ignores it)", $sformatf("%0d", tav_rst_req_hit), "1");

      `uvm_info("TAV_SVA", $sformatf("Checks: %0d pass, %0d fail", tav_pass, tav_fail), UVM_NONE)
      phase.drop_objection(this);
    endtask
  endclass
endpackage

// ---------------------------------------------------------------
// Top: clock, reset, stimulus (driven on the falling edge, sampled on the rising edge)
// ---------------------------------------------------------------
module tav_top;
  import uvm_pkg::*;
  import tav_sva_pkg::*;
  import tav_sva_test_pkg::*;

  logic clk = 0, rst = 1, req = 0, rd = 0, wr = 0, gnt;
  always #5 clk = ~clk;

  tav_arb u_arb (.clk, .rst, .req, .rd, .wr, .gnt);

  task automatic tav_cycle(bit r, bit q, bit rd_v, bit wr_v);
    @(negedge clk);
    rst = r; req = q; rd = rd_v; wr = wr_v;
    if (rd_v && wr_v) tav_rw_driven++;
  endtask

  initial begin
    //        rst req rd wr
    tav_cycle(1,  0,  0, 0);
    tav_cycle(1,  1,  0, 0);   // a request during reset: disable iff ignores it
    tav_cycle(1,  0,  0, 0);
    tav_cycle(0,  0,  0, 0);   // reset released
    tav_cycle(0,  1,  0, 0);   // request
    tav_cycle(0,  1,  0, 0);   // request again: back to back
    tav_cycle(0,  0,  0, 0);
    tav_cycle(0,  1,  0, 0);   // request (the one +BUG=1 does not grant)
    tav_cycle(0,  0,  0, 0);
    tav_cycle(0,  0,  1, 1);   // rd and wr together: a_no_rw fires
    tav_cycle(0,  0,  0, 0);
    $assertoff(0, tav_top.u_arb.u_sva.a_no_rw);
    tav_cycle(0,  0,  1, 1);   // rd and wr together again, but a_no_rw is off
    tav_cycle(0,  0,  0, 0);
    $asserton(0, tav_top.u_arb.u_sva.a_no_rw);
    tav_cycle(0,  0,  0, 0);
    tav_cycle(0,  0,  0, 0);
    tav_done = 1;
  end

  initial run_test("tav_sva_test");
endmodule

How to run it

  1. Open EDA Playground and pick Synopsys VCS with UVM 1.2.
  2. Paste the file into testbench.sv and leave design.sv empty.
  3. Run it once as is, then add +BUG=1 to the run options and run again.

What VCS returned

#CheckResultWhat it proves
1Immediate assert on a length: pass / fail1 / 1Checked once, right where the line runs
2a_req_gnt failures0Every request was granted on time
3c_req_gnt hits3The scenario really happened three times
4c_btb hits1Two requests in a row happened once
5Overlaps driven / a_no_rw failures2 / 1The overlap inside $assertoff was not checked
6bind: checker pathtav_top.u_arb.u_svaThe checker lives inside the design instance
7Request during reset seen1disable iff ignored it, and check 2 stayed at 0

Result: 7 pass, 0 fail. Here is the log.

UVM_INFO @ 0: reporter [RNTST] Running test tav_sva_test...
"testbench.sv", 111: tav_sva_test_pkg::\tav_sva_test::run_phase .unnamed$$_1: started at 0ns failed at 0ns
	Offending '(tav_len inside {[1:8]})'
UVM_INFO testbench.sv(114) @ 0: uvm_test_top [TAV_SVA] immediate assert caught tav_len = 12
UVM_INFO testbench.sv(95) @ 0: uvm_test_top [TAV_SVA] PASS 1 immediate assert: pass / fail: 1 / 1
"testbench.sv", 60: tav_top.u_arb.u_sva.a_no_rw: started at 105ns failed at 105ns
	Offending '(!(rd && wr))'
UVM_INFO testbench.sv(63) @ 105: reporter [TAV_SVA] a_no_rw FAILED at 105: rd and wr both high
Stopping new assertion attempts at time 110ns: level = 0 arg = u_arb.u_sva.a_no_rw (from inst tav_top (testbench.sv:168))
Starting assertion attempts at time 130ns: level = 0 arg = u_arb.u_sva.a_no_rw (from inst tav_top (testbench.sv:171))
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 2 a_req_gnt failures: 0
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 3 c_req_gnt hits (req then gnt): 3
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 4 c_btb hits (two requests in a row): 1
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 5 rd/wr overlaps driven / a_no_rw failures (one inside $assertoff): 2 / 1
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 6 bind: checker instance path: tav_top.u_arb.u_sva
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 7 req during reset seen (disable iff ignores it): 1
UVM_INFO testbench.sv(130) @ 150: uvm_test_top [TAV_SVA] Checks: 7 pass, 0 fail
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_objection.svh(1276) @ 150: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_report_server.svh(904) @ 150: reporter [UVM/REPORT/SERVER] 
--- UVM Report Summary ---

** Report counts by severity
UVM_INFO :   13
UVM_WARNING :    0
UVM_ERROR :    0
UVM_FATAL :    0
** Report counts by id
[RNTST]     1
[TAV_SVA]    10
[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                  150
"testbench.sv", 67: tav_top.u_arb.u_sva.c_req_gnt, 15 attempts, 3 match
"testbench.sv", 68: tav_top.u_arb.u_sva.c_btb, 15 attempts, 1 match
"testbench.sv", 69: tav_top.u_arb.u_sva.c_rst_req, 15 attempts, 1 match

Three things in this log are worth a second look:

  • Two reports per failure: VCS prints its own started at ... failed at ... Offending line, then the action block runs. You get the expression for free.
  • The $assertoff window is logged: “Stopping new assertion attempts at time 110ns” and “Starting … at 130ns”. Anyone reading the log can see the hole in the checking.
  • Cover summary at the end: each cover property reports attempts and matches, even if nobody asked.

The planted bug: one missed grant

With +BUG=1, the design does not grant the request driven at 85 ns.

UVM_INFO @ 0: reporter [RNTST] Running test tav_sva_test...
"testbench.sv", 111: tav_sva_test_pkg::\tav_sva_test::run_phase .unnamed$$_1: started at 0ns failed at 0ns
	Offending '(tav_len inside {[1:8]})'
UVM_INFO testbench.sv(114) @ 0: uvm_test_top [TAV_SVA] immediate assert caught tav_len = 12
UVM_INFO testbench.sv(95) @ 0: uvm_test_top [TAV_SVA] PASS 1 immediate assert: pass / fail: 1 / 1
"testbench.sv", 53: tav_top.u_arb.u_sva.a_req_gnt: started at 85ns failed at 95ns
	Offending 'gnt'
UVM_INFO testbench.sv(56) @ 95: reporter [TAV_SVA] a_req_gnt FAILED at 95: req was not granted
"testbench.sv", 60: tav_top.u_arb.u_sva.a_no_rw: started at 105ns failed at 105ns
	Offending '(!(rd && wr))'
UVM_INFO testbench.sv(63) @ 105: reporter [TAV_SVA] a_no_rw FAILED at 105: rd and wr both high
Stopping new assertion attempts at time 110ns: level = 0 arg = u_arb.u_sva.a_no_rw (from inst tav_top (testbench.sv:168))
Starting assertion attempts at time 130ns: level = 0 arg = u_arb.u_sva.a_no_rw (from inst tav_top (testbench.sv:171))
UVM_ERROR testbench.sv(99) @ 150: uvm_test_top [TAV_SVA] FAIL 2 a_req_gnt failures: got 1, expected 0
UVM_ERROR testbench.sv(99) @ 150: uvm_test_top [TAV_SVA] FAIL 3 c_req_gnt hits (req then gnt): got 2, expected 3
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 4 c_btb hits (two requests in a row): 1
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 5 rd/wr overlaps driven / a_no_rw failures (one inside $assertoff): 2 / 1
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 6 bind: checker instance path: tav_top.u_arb.u_sva
UVM_INFO testbench.sv(95) @ 150: uvm_test_top [TAV_SVA] PASS 7 req during reset seen (disable iff ignores it): 1
UVM_INFO testbench.sv(130) @ 150: uvm_test_top [TAV_SVA] Checks: 5 pass, 2 fail
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_objection.svh(1276) @ 150: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase
UVM_INFO /apps/vcsmx/vcs/X-2025.06-SP1//etc/uvm-1.2/src/base/uvm_report_server.svh(904) @ 150: reporter [UVM/REPORT/SERVER] 
--- UVM Report Summary ---

** Report counts by severity
UVM_INFO :   12
UVM_WARNING :    0
UVM_ERROR :    2
UVM_FATAL :    0
** Report counts by id
[RNTST]     1
[TAV_SVA]    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                  150
"testbench.sv", 67: tav_top.u_arb.u_sva.c_req_gnt, 15 attempts, 2 match
"testbench.sv", 68: tav_top.u_arb.u_sva.c_btb, 15 attempts, 1 match
"testbench.sv", 69: tav_top.u_arb.u_sva.c_rst_req, 15 attempts, 1 match

Two checks fail, and each tells a different part of the story:

  • Check 2: a_req_gnt fired with started at 85ns failed at 95ns and Offending 'gnt'. That says what broke and when.
  • Check 3: the cover dropped to 2 match. That says the scenario happened one time less than planned.

The lesson: pair every important assertion with a cover. The assertion catches the bug, and the cover proves the situation the assertion checks really happened.

Common mistakes to avoid

MistakeWhat you seeFix
No disable iff on a rule that is not true during resetFalse failures at the start of every testdisable iff (rst)
An assertion with no matching coverIt never fails, because the scenario never happenedAdd a cover property for the antecedent
Writing the checks inside the design fileDesigners and verifiers edit the same filePut them in a checker module and bind it
A $assertoff left onA window with no checkingAlways pair it with $asserton, and keep the window short
Driving and sampling on the same clock edgeRace-dependent resultsDrive on the falling edge or through a clocking block
Reusing one counter for two different checksA check fails for the wrong reasonOne counter, or one cover, per question

That last row happened while building this bench: check 7 first reused the a_req_gnt failure counter, so the bug run failed it for the wrong reason. It now asks only about the reset request.

How AI helps you master this

  • Turn a spec line into a property: paste “grant must follow request within 2 clocks” and ask for the assertion and its cover.
  • Read a failure: paste the VCS Offending line and the waveform values, and ask which part of the property failed.
  • Review for reset: paste your assertions and ask which ones need disable iff.

Warning: a convincing AI answer is not the same as a correct engineering result. An assertion that never fails can mean the design is right, or that the scenario never happened. Check the cover, and run the code.

Interview questions on assertions

  • What is the difference between immediate and concurrent assertions? Immediate ones are checked once, in procedural code. Concurrent ones are checked on every clock and can span clocks.
  • What is disable iff used for? To stop checking a property while a condition such as reset is true.
  • Why use bind? It attaches a checker to a design module without editing the design file.
  • What does cover property give you? A count of how often a sequence happened, which is functional coverage.
  • How do you switch an assertion off for a while? $assertoff, then $asserton.

More practice: SystemVerilog interview questions.

Practice challenge

  1. Run the simple example and find both reports for the 45 ns failure.
  2. Run the full bench, then +BUG=1, and match the failure time with the waveform.
  3. Remove disable iff (rst) from a_req_gnt. Predict check 2, then run.
  4. Bonus: change the rule to “grant within 1 to 2 clocks” with ##[1:2]. Does the bug still fail?

FAQ

What is an assertion in SystemVerilog? A statement that a condition or sequence must hold. The simulator checks it and reports a failure with the time and the failing expression.

What are the main advantages of assertions? They catch bugs where they happen, make debug faster, give functional coverage through cover property, and can be reused in formal verification.

How do assertions improve debug time? The failure names the rule, the start and end time and the offending expression, so you start debugging at the right clock.

Can the same assertion run in formal verification? Yes. Concurrent assertions written as properties are the input formal tools work on.

How do assertions provide functional coverage? cover property counts each time a sequence matches, and VCS prints the attempts and matches at the end.

Should I write assertions for testbench logic too? Yes. Immediate assertions are a cheap way to check testbench assumptions, as check 1 does for a length.

References

  • IEEE 1800-2017, SystemVerilog standard: section 16 (assertions), including 16.3 (immediate assertions), 16.12 (declaring properties, disable iff), 16.14 (concurrent assertions and cover) and 20.12 (assertion control tasks such as $assertoff); section 23.11 (bind).

Keep learning