Skip to content

SV: concurrent assertions (assert property) are a parse error (blocks rtlmeter E203) #2130

Closed

Description

@tignear

SV: concurrent assertions (assert property) are a parse error

A concurrent assertion in a module body fails to parse ("unrecognized body declaration"), so a design that contains one cannot be compiled at all. The error is not even reported as unsupported. This blocks rtlmeter HummingbirdV2-E203 in four files (e203_exu_alu_muldiv.v, e203_exu_commit.v, e203_ifu_ifetch.v, sirv_gnrl_xchecker.v), unless DISABLE_SV_ASSERTION is defined.

Minimal repro

module top;
  logic clk = 0, rst_n = 0;
  logic [3:0] x = 0;
  always #5 clk = ~clk;
  always @(posedge clk) x <= x + 1;
  initial begin #12 rst_n = 1; #100 $display("done x=%0d", x); $finish; end
  CHECK_NONZERO: assert property (@(posedge clk) disable iff (~rst_n) (x != 4'd15))
    else $fatal(1, "x reached 15");
endmodule
  • Celox (master): sva.sv:7:3: unrecognized body declaration.
  • Verilator 5.052 (--binary --timing --assert): runs it and prints done x=11.
  • Icarus 13.0: sorry: concurrent_assertion_item not supported. Try -gno-assertions or -gsupported-assertions to turn this message off.

Options (yours to decide)

  1. Parse concurrent assertions (IEEE 1800-2023 16.14) and report them as unsupported with a precise diagnostic. Minimal; it fixes the misleading parse error.
  2. Accept them and skip them with a warning, like Icarus' -gno-assertions. A design-level diagnostic, relaxable through --diagnostic, would control it. This lets E203 and similar designs run.
  3. Evaluate a supported subset: a clocked property with disable iff and simple boolean or |->/|=> sequences, sampled with the 16.5 sampled-value semantics, plus action blocks.

My recommendation: (1) now. (2) or (3) depends on whether assertions are in Celox's scope; E203 itself has a DISABLE_SV_ASSERTION switch.

Found while widening the designs used to measure #2013's partitioning heuristic.

Activity

  1. tignear commented on Oct 26, 2026

    @tignear
    ContributorAuthor

    Concurrent assertions are expected to come from the SVA work (Roadmap #89; the stage-1 stack #1879–#1882 covers sampled-value functions). Until then, rtlmeter E203 can be run with DISABLE_SV_ASSERTION defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions