Files
lucioandClaude Fable 5 a045cd7649 SVA bodies as real nodes: property and sequence expressions with Table 16-3 precedence, declarations, assertions, symbols, and a fallback that speaks
TODO section 27; the SVA half of coverage_gaps C1/M8; docs/topo.md
2.9-18's engine half.
property/sequence declarations, concurrent assert/assume/cover/restrict
property, expect, cover sequence and default disable iff were verbatim
text. They are nodes now: sequence_expr/property_expr as one
precedence-climbing extension of parse_expr (IEEE 1800-2017 Table 16-3
row by row - QA caught two rows transcribed from Table 11-2 and the
rework fixed them: nexttime on not's row, the whole loosest row read
position-independently), typed formals, assertion variables, action
blocks as the statements they are - behind a Rewind snapshot with a
byte-exact per-construct fallback that fires on 0 of 4 792 corpus and
opentitan files. No keyword reserved: operator words are text-matched
in SVA position only. One layout rule: top-level |->, |=>, ##, and, or
break one per line at the parent's indent when the spec does not fit.
SVA gap fuzzer 705 gaps / 0 failing; 46 attack pairs; verify.rs
untouched.
Semantics: SymbolKind::{Property, Sequence}, ScopeKind::PropSeq, formals
and locals scoped, instances resolve in-file and cross-file
(FACTS_FORMAT 15 -> 16); rename, references, document symbols and the
lints see inside; Scope::sva_fallback_warnings names what would still
fall back. macro_use_warnings pinned for a file whose only relationship
to the name is a macro argument (the server half stays filed).
Output moved in 13 corpus and 36 opentitan files, every changed line
inside an SVA construct (proved by tests/census.rs::sva_lines and by
QA's independent re-implementation); the 4 854 ASSERT macro uses are
byte-identical. Corpus 814/820.

docs/features/sva-bodies/README.md. Also carries TODO section 28
(decomposition, planned) and the topo rows for this round.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-09-02 16:02:29 -07:00

48 lines
1.5 KiB
Plaintext

# The linter's posture on assertion bodies, after TODO.md §27 gave them a real
# AST. See docs/features/sva-bodies/README.md.
# undriven-net now sees a read written inside a concurrent assertion: the
# operand of a property expression is an ordinary resolved reference, so a net
# read only there is no longer invisible. Before the sva-bodies round the whole
# assertion was an opaque span and `clk` had zero reads, so it was skipped.
# This is the same verdict change `covergroup-bodies` made, for the same
# reason.
#select undriven-net
module m;
logic clk;
//^ 9 undriven-net
logic sig;
assign sig = 1'b1;
assert property (@(posedge clk) sig |-> ##[1:2] sig);
endmodule
====
# the same for a name written only inside a `property` declaration's body
#select undriven-net
module m;
logic clk;
//^ 9 undriven-net
property p;
@(posedge clk) 1'b1;
endproperty
endmodule
====
# an assertion the grammar cannot read is opaque again: the names inside it
# bind nothing, exactly as they did before the round, so nothing is reported
#select undriven-net
module m;
logic clk;
assert property (@(posedge clk) $blah $blah);
endmodule
====
# unused-signal is unchanged, and deliberately so: its mention guard already
# shielded a name written inside a verbatim region, so a signal read only by an
# assertion was never reported and still is not. `constraint-bodies` made the
# same observation about its own round.
#select unused-signal
module m;
logic clk;
logic sig;
assign sig = 1'b1;
assert property (@(posedge clk) sig);
endmodule