docs: coverage_gaps addendum at 0.32.0 — the recommended order is complete; TODO §27 planned (SVA bodies as real nodes, §2.9-18)
Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
baf0bf16f0
commit
c2f107444c
2 files changed
+102
-7
No files matched your search
@@ -2836,3 +2836,86 @@ TODO §26. Runs after §25 (parser/format overlap).
|
||||
re-format byte-identically. Sweep unchanged (`git status
|
||||
--porcelain` on opentitan showed only the owner's three files
|
||||
throughout). See QA log.
|
||||
|
||||
## 27. SVA bodies as real nodes (planned 2026-09-02) — the SVA half of C1/M8, plus §2.9-18
|
||||
|
||||
Mapped: `property`/`sequence` declarations, concurrent `assert`/`assume`/
|
||||
`cover`/`restrict property` and `expect`/`cover sequence` are captured
|
||||
verbatim (`parse_concurrent_assertion`, `parse_property_decl`,
|
||||
`parse_expect_statement` → `RawText`), so a signal named only inside one
|
||||
is invisible to rename, references and the lints — the last correctness
|
||||
residue of `docs/coverage_gaps.md` (C1's "SVA expressions can follow";
|
||||
M8). Population: opentitan 82 `property`/`sequence` declarations in 23
|
||||
files and 106 concurrent assertions (its 4 643 `` `ASSERT* `` macro uses
|
||||
are macro tokens — §2.9-18's problem, carried here); corpus 80
|
||||
concurrent assertions in 6 files. Plan, on the constraint-bodies /
|
||||
covergroup-bodies precedent (real nodes behind a `Rewind` snapshot,
|
||||
byte-exact verbatim fallback per construct, no keyword reserved —
|
||||
`and`/`or`/`not`/`until`/`throughout`/`within`/`intersect`/`nexttime`/
|
||||
`always`/`eventually`/`implies`/`iff` and the `s_`/`sync_` forms are
|
||||
text-matched in SVA position only): **P1** grammar — `sequence_expr` /
|
||||
`property_expr` as one precedence-climbing extension of `parse_expr`
|
||||
(cycle delay `##n`/`##[a:b]`/`##[+]`/`##[*]`, repetition suffixes
|
||||
`[*n]`/`[*a:b]`/`[=n]`/`[->n]`, binary `and`/`or`/`intersect`/`within`/
|
||||
`throughout`/`|->`/`|=>`/`#-#`/`#=#`/`until`/`until_with`/`implies`/
|
||||
`iff`, unary `not`/`nexttime`/`always`/`eventually`/`strong`/`weak`/
|
||||
`first_match`/`accept_on`/`reject_on`/`sync_*`, property `if … else` and
|
||||
`case … endcase`, a leading `@(…)` clocking and `disable iff (…)`,
|
||||
sequence instances with arguments, `.triggered`/`.matched`, local
|
||||
variable assignments `(a, x = b)`); **P2** declarations — property/
|
||||
sequence headers with typed formals (`sequence`/`property`/`untyped`/
|
||||
data types, defaults), local variable declarations in the body,
|
||||
`endproperty : name`, and the concurrent assertion's action block as the
|
||||
statement it already is; **P3** formatter — canonical layout with one
|
||||
rule: the spec's top-level operators (`|->`, `|=>`, `##`, `and`, `or`)
|
||||
break one-per-line at the parent's indent, everything else inline; the
|
||||
verbatim fallback keeps bytes; **P4** semantics — a property/sequence
|
||||
declares a `SymbolKind::Property`/`Sequence` symbol with a scope for its
|
||||
formals and local variables, every identifier in a body is an ordinary
|
||||
use, an instance names the declaration (`FACTS_FORMAT` bump), so rename/
|
||||
references/hover/document symbols/the semantic lints all see inside
|
||||
(M8 closes by construction for what parses); **P5** what stays verbatim
|
||||
still *speaks*: a whole-word text scan of any remaining SVA verbatim
|
||||
region feeds rename an "inside an assertion lucisv could not structure"
|
||||
warning, the `macro_use_warnings` shape; **P6** §2.9-18 — those macro
|
||||
warnings answered from `FileFacts::words` for files with no other
|
||||
relationship to the name (the census exists since §24; only the wiring
|
||||
is missing); **P7** an SVA gap fuzzer (every inter-token gap of the
|
||||
fixture set takes a `/*C*/`; zero failures) on the comment-slots
|
||||
precedent, and the 12 assertion attack pairs kept with new ones for
|
||||
every token an SVA slot is defined between. Files:
|
||||
crates/vlog_parser/src/{ast.rs, parser.rs}, tests/spans.rs,
|
||||
crates/vlog_formatter/src/format.rs, tests/cases/{assertions.cases,
|
||||
sva_bodies.cases (new)}, tests/verification.rs, crates/vlog_semantic/
|
||||
src/{bind.rs, facts.rs, resolve.rs, model.rs}, tests/sva.rs (new),
|
||||
crates/vlog_refactor/src/rename.rs + tests/rename.rs,
|
||||
crates/lucisv_server/src/{symbols.rs, hover.rs} (kinds), tests/e2e.rs,
|
||||
crates/vlog_linter (exhaustive-match arms only), docs/features/
|
||||
sva-bodies/README.md (new), amendments in assertions / refactor-rename /
|
||||
semantic-lints READMEs, docs/coverage_gaps.md C1/M8 rows, docs/topo.md
|
||||
§2.9-18 struck (lead), TODO §27. Runs after §26 (parser/format/bind
|
||||
collide); no parallel lane.
|
||||
- [ ] P1 grammar (real nodes behind `Rewind`, byte-exact fallback,
|
||||
nothing reserved)
|
||||
- [ ] P2 declarations + action blocks; `expect`, `cover sequence`,
|
||||
`default clocking`/`default disable iff` as nodes or explicitly
|
||||
left verbatim (say which)
|
||||
- [ ] P3 canonical layout — one rule, stated in the README; corpus
|
||||
moves only in assertion text (QA reads every diff)
|
||||
- [ ] P4 semantics — `SymbolKind::{Property, Sequence}`, formals and
|
||||
locals scoped, instances resolve; `FACTS_FORMAT` bump; rename of a
|
||||
signal named inside a property edits it (pin), references list
|
||||
it, document symbols show the declaration, `unused-signal` no
|
||||
longer fires for a signal read only by an assertion (pin)
|
||||
- [ ] P5 verbatim-SVA rename warning (pin: a fallback region spelling
|
||||
the old name warns, never silent)
|
||||
- [ ] P6 §2.9-18 wiring (pin: a file whose only relationship to the name
|
||||
is a macro argument still warns)
|
||||
- [ ] P7 SVA gap fuzzer at zero; attack pairs; `verify.rs` untouched
|
||||
- [ ] Measurement: opentitan 82 declarations / 106 assertions structured
|
||||
(count), corpus 80; sweep otherwise byte-identical; the 4 643
|
||||
`` `ASSERT* `` uses unchanged
|
||||
- [ ] QA on opentitan (read-only): structured counts re-derived; every
|
||||
moved file's diff read; rename of a signal used in
|
||||
`hw/ip/*/rtl/*_assert*.sv` properties; sweep unchanged
|
||||
|
||||
+19
-7
@@ -126,14 +126,26 @@ Delivered since this analysis was written at 0.21.0, in the recommended order:
|
||||
| H3 escaped identifiers | done (one scoped-name shape refused, §2.9-21) | 0.26.0 |
|
||||
| **C1** constraint bodies (`soft`/`dist`/`->`/`foreach`/`solve before`) as real nodes, rename reaches inside | done; 1 993/2 009 opentitan bodies structured | 0.27.0 |
|
||||
| **C1** covergroup bodies | done; 544/544 opentitan covergroups structured | 0.28.0 |
|
||||
| H5 `` `define`` go-to-definition | **open** | — |
|
||||
| H5 `` `define`` go-to-definition | done (`nav::definition` shares hover's lookup) | 0.31.0 |
|
||||
| H4 fragment mode — statement / enum-member / covergroup-item files, plus the `` `define`` formal-argument continuation (the H4 row above is corrected: class-body and module-item fragments already parsed) | done; opentitan 12 → 10, corpus 813 → 814 | 0.29.0 |
|
||||
| M1–M3 specify/UDP/checker/interface class, plus L1/L2/L4/L5 (`alias`, statement `expect`, `config`/`library`, `union tagged`) | done; corpus 814/820 and the opentitan 3 975-file sweep byte-identical | pending release |
|
||||
| M7 semantic lints on by default (§2.9-6) | queued | — |
|
||||
| **M4/M5/M6** corrected and closed: the macro gap in expression position, the conditional region inside a connection's value, the indexed `bind` target + `bind` semantics (§2.9-15), and `lucisv.instantiate` (§2.9-19, L8) | done; corpus 814/820, opentitan 3 965/3 975 with 2 files' output changed and +2 instantiation edges | pending release |
|
||||
| M1–M3 specify/UDP/checker/interface class, plus L1/L2/L4/L5 (`alias`, statement `expect`, `config`/`library`, `union tagged`) | done; corpus 814/820 and the opentitan 3 975-file sweep byte-identical | 0.30.0 |
|
||||
| M7 semantic lints on by default (§2.9-6), with `[lint] select/ignore` (§2.9-4, the first half of M12) | done; `FileFacts::words` census, `MentionOracle`; corpus `unused-signal` 52 → 44, `undriven-net` 3 → 0, opentitan 14 findings all true | 0.30.0 |
|
||||
| §2.9-22 comment slots in shared machinery (a parser-wide round), with H5, M11's cast half, §2.9-20 and §2.9-21 | done; ~70 slots, four gap fuzzers at zero (329/153/395/352), 860 corpus + 3 975 opentitan files byte-identical | 0.31.0 |
|
||||
| **M4/M5/M6** corrected and closed: the macro gap in expression position, the conditional region inside a connection's value, the indexed `bind` target + `bind` semantics (§2.9-15), and `lucisv.instantiate` (§2.9-19, L8) | done; corpus 814/820, opentitan 3 965/3 975 with 2 files' output changed and +2 instantiation edges | 0.32.0 |
|
||||
|
||||
New gaps filed along the way: §2.9-20 (rename loses its warning for an
|
||||
New gaps filed along the way — §2.9-20 (rename loses its warning for an
|
||||
unresolvable hierarchical tail), §2.9-21 (escaped segment in a scoped
|
||||
name is refused), §2.9-22 (comment slots inside shared expression
|
||||
machinery — index brackets, `inside` ranges, scoped-name chains — drop
|
||||
the comment and the safety net refuses; a parser-wide round).
|
||||
machinery) — were all delivered by 0.31.0. Open after 0.32.0: §2.9-23 (a
|
||||
cross-file instance-member tail is not edited by rename; since 0.31.0 the
|
||||
rename says so).
|
||||
|
||||
**The recommended order is complete at 0.32.0.** What the tables above
|
||||
still leave open, by weight: the SVA half of C1/M8 (`property`/`sequence`
|
||||
bodies and concurrent-assertion expressions are still verbatim, so a
|
||||
rename cannot see a renamed signal inside one — the last correctness
|
||||
residue of the analysis; the "at least identifier occurrences" fallback
|
||||
was never built); M9 statement-level and class-body format fences
|
||||
(§2.9-3); M10 error recovery inside headers and lists; the second half of
|
||||
M12 (`--rules-doc`, §2.9-5); M13's small interface/DPI grammar arms; L3,
|
||||
L6, L9, L10; and the three stale READMEs named under the order.
|
||||
Reference in new issue
Block a user