Coverage gaps L3, L6, L10: six language shapes, randsequence as real nodes, an opt-in uvm_field_* indent

TODO §54 (docs/features/coverage-gaps-l); closes docs/coverage_gaps.md
L3, L6 and L10. The first dev stalled under machine load; a second
finished from the tree.

54.1 `->>` with optional delay or event control (`StmtKind::EventTrigger`),
stream `with [range]` (`ExprKind::StreamWith`), the LRM's other
`casting_type`s, drive strength on a net declaration (`DataDecl::strength`,
whose comment slots also fix a pre-existing refusal on an `assign` with
a comment before its strength), `let` at statement position
(`StmtKind::Let`), and `#(min:typ:max)` clocking skews — `ClockingSkew`
as the LRM's two alternatives, `edge [delay]` | `delay` (review rework of
QA's HIGH). Comment slots added to `let`, stream concatenations and the
clocking grammar; the RTL gap fuzzer at 505 gaps, zero failing.
54.2 `randsequence` (it was a parse error; the keyword is new):
`RandSequence` → `Production` → `Alternative` → `ProdItem` (ref, block,
if, repeat, case, rand join), code blocks by the statement grammar; one
production per line, alternatives aligned; the LRM's examples as cases.
54.3 `[format] uvm-utils-indent` / `lucisv.format.uvmUtilsIndent`, default
off, tracking nested `_begin`/`_end` pairs; 21 corpus files change with
it on, all idempotent. A short comment-free enum body already one-lines,
so no key was built — the behaviour is pinned. `[format]` table tests
added (review rework). `->>`'s event control is bound through the shared
`bind_timing` (review rework of QA's second HIGH).

0 of 820 corpus files differ from 0.48.x with the key off; the opentitan
sweep is identical; no corpus or opentitan file writes any of the new
shapes.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5.1 committed 2026-09-07 01:12:49 -05:00
1 parent e1679bebc5
commit a69a1cb528
69 files changed
+3660 -127

No files matched your search

+15 -1
View File
@@ -134,13 +134,27 @@ impl<'a> Parser<'a> {
/// writes no parens at all, which is what `has_parens` records.
pub(super) fn parse_let(&mut self) -> PResult<LetDecl> {
self.expect_kw("let")?;
let after_kw = self.take_gap();
let Name { text: name, span: name_span } = self.expect_name()?;
let has_parens = self.cur().is_sym("(");
let ports = self.parse_tf_ports(false)?.args;
let mut eq_comments = Box::new(BinaryComments::default());
eq_comments.before = self.gap_before("=");
self.expect_sym("=")?;
eq_comments.after = self.take_gap();
let value = self.parse_expr()?;
let before_semi = self.gap_before(";");
self.expect_sym(";")?;
Ok(LetDecl { name, name_span, has_parens, ports, value })
Ok(LetDecl {
after_kw,
name,
name_span,
has_parens,
ports,
eq_comments,
value,
before_semi,
})
}
/// The header a subroutine declaration and a `modport` method prototype