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]>
This commit is contained in:
1 parent
f3af34980a
commit
a045cd7649
29 files changed
+5279
-196
No files matched your search
@@ -169,9 +169,24 @@ the same two grammar rules and cost nothing:
|
||||
`case`/`endcase` nesting, so an action block that is an `if` with a
|
||||
`begin ... end` body (with or without `else`) is captured whole
|
||||
(3 parser tests + 2 cases).
|
||||
- [ ] **Not done, deliberately:** canonical layout for property/sequence
|
||||
expressions; `expect property`; `cover sequence`; `default clocking` /
|
||||
`default disable iff` (interface cluster's).
|
||||
- [x] **Superseded 2026-09-02 by `docs/features/sva-bodies/README.md`.** Every
|
||||
item this list called "not done, deliberately" is done: the
|
||||
property/sequence grammar is a real tree with a canonical layout,
|
||||
`expect`, `cover sequence` and `default disable iff` are nodes, and
|
||||
`default clocking` had already become one in the `clocking-wave` round.
|
||||
The lead's original decision — "all of it is verbatim pass-through,
|
||||
there is no layout convention worth inventing for it" — held for two
|
||||
rounds and is now reversed for one reason it did not weigh: a signal
|
||||
named *only* inside an assertion was invisible to rename, to
|
||||
find-references and to the semantic lints, which is
|
||||
`docs/coverage_gaps.md` C1 and M8. What this round kept is the *safety*
|
||||
half of that decision: a spec the grammar cannot read still rewinds to
|
||||
the byte-exact capture below, so the risk the original call named — "a
|
||||
new place to drop a token" — is bounded by an all-or-nothing fallback
|
||||
rather than argued away. `parse_concurrent_assertion`,
|
||||
`parse_property_decl`, `parse_expect_statement`, `parse_default_disable`,
|
||||
`skip_action_block` and `skip_action_stmt` are all still here,
|
||||
unchanged, and are what the fallback runs.
|
||||
|
||||
## Work log
|
||||
|
||||
|
||||
Reference in new issue
Block a user