-
v0.30.0
Stablereleased this
2026-09-02 09:06:13 -07:00 | 221 commits to master since this releaseTwo lanes, run in parallel: semantic lints on by default, and the
vendor/formal collateral grammar.Semantic lints on by default
unused-signal,undriven-netandmultiply-drivenshipped off
because a per-file analysis cannot see a signal read or driven from
another file's hierarchy. The index now carries a per-file identifier
census (FileFacts::words,FACTS_FORMAT12 → 13 — one harvest,
which also builds the completion word table so the server no longer
re-lexes every file at startup: scan time −28 %), and the linter gains
a mention oracle:unused-signalandundriven-netsay nothing when
the name is mentioned in any other indexed file. The three rules are
on whenever an oracle exists — always in the editor, and in the CLI
when it walks a project — and stay off for a single file or stdin.
With them came the missing off switch:[lint] select = […]/
ignore = […]inlucisv.toml(CLI flags win key by key) and
lucisv.lint.select/lucisv.lint.ignorein the editor.Measured: corpus
unused-signal52 → 44 andundriven-net3 → 0 with
every silencing hand-checked as a genuine cross-file use, nothing
added; across opentitan — lint-clean under its own tools — 14
findings, spot-checked true. Store +14 %.Vendor and formal collateral grammar
The gap analysis ranked
specify/UDP/checker/interface classas
Medium on the strength of "13 corpus checker files"; the round's
census found those were UVM protocol-checker filenames, and that
every construct here has zero declarations in the corpus and in
opentitan. So this is a completeness round for vendored cell, IO and
memory models and formal collateral — and it is proven
output-neutral: formatted output is byte-identical for all 860 corpus
files and all 3 975 opentitan files against the previous release.Five keywords reserved on a measured zero-collision census
(checker,endchecker,config,endconfig,library); five
deliberately not (expecthas 41 real task-call sites — the statement
form is recognised only when its parentheses hold a sequence operator).
specify … endspecify,primitive … endprimitivewithtable,
checker … endcheckerandconfig … endconfigparse as opaque blocks
that format byte-for-byte and fold in the editor;library …;lines
parse;specparamis a real declaration that hovers and resolves;
alias a = b = c;parses with every term a reference;union tagged
formats;interface class … endclassparses as a class and
implementsnow contributes supertypes to the type hierarchy. Filed:
thetaggedpattern grammar, checker/UDP names as instantiable
symbols, the reverseimplementsedge.Downloads
-
released this
2026-09-02 07:35:24 -07:00 | 224 commits to master since this releaseFragment mode, and
`definecontinuation.The gap analysis had this one wrong in an interesting way: class-body
and module-item`includefragments already parsed, because the
file-scope item loop is the class-item loop. What did not parse were
three narrower shapes — a bare statement list, an enum-member list
(riscv-dv'sCUSTOM_1,file, included between enum members), a
covergroup-item list — and all three failed at one call site. They are
nowSourceFile::fragment, detected by a whole-file rule that cannot
misfire on a valid file: the first structural item failed (directives,
macros and stray;do not count, and a tolerant parse that quietly
recorded a diagnostic counts as failed — an existing parity test
caughtif … elsereading as a generate-if to one parser and a
statement to the other), the file does not open with a design-unit
keyword, and a shape consumes the file to its end, tried
narrowest-first because the wider grammars mis-read the narrower. A
fragment formats at indent zero through the existing printers, its
declarations bind, and its enum variants are deliberately not
exported (a package that includes the fragment is the real home of
CUSTOM_1; resolving it elsewhere would name something that does not
exist).The other opentitan
.svhthat would not parse was never a fragment
problem: a`definewhose formal-argument list spans two lines with
no backslash, which every tool accepts. The lexer now continues such a
directive until the list closes.Opentitan: 12 → 10 failing files, exactly the two predicted, nothing
else moved. Corpus baseline 813 → 814 of 820. Comment-gap fuzzer:
every remaining failing slot proven to fail identically outside a
fragment (§2.9-22). Formatter output unchanged for every file that
parsed before.Downloads
-
released this
2026-09-02 06:02:23 -07:00 | 228 commits to master since this releaseCovergroup bodies — round 2 of coverage_gaps C1, closing it.
covergroup … endgroupwas a flat token scan into verbatim text: no
name span, no coverpoint names, nothing inside bound. Now a covergroup
is a real node — the header with its argument list,with function sample(…)and@(…)event, labelled and unlabelled coverpoints,
bins/ignore_bins/illegal_binswith arrays, value lists,$,
transition lists (=>,[*n],[->n],[=n]),defaultand
default sequence,with (…)filters,wildcard,iff, crosses with
binsof … intersect … && !binsofselect expressions,option./
type_option.assignments,`ifdefarms, and theendgroup : g
label — behind the same rewind snapshot as constraints, so an unknown
shape restores both comment buckets and re-runs the old scan character
for character. No keywords were reserved. Two disambiguations are by
position, the LRM's own rule (a coverpoint bin's(…)is a transition
list, a cross bin's is a select expression), which replaced a lookahead
scan and took opentitan's fallback count from two to zero.Two guards were added to shared expression machinery and are the
round's one risk, stated plainly: an index cannot begin with*,->
or=(so1'b1[*5]reads as a transition repeat), and a bin's own
with (…)filter is not consumed as an array-method iterator
argument. The whole corpus and the whole opentitan tree re-verified
under both.Layout is canonical (one cover item per line,
{ }bin bodies like
constraint sets, the label at the header's column);verify.rs
untouched, twelve attack pairs. The comment-gap fuzzer was built in
from the start: 329 gaps, the 52 that fail are all the shared-machinery
slots already filed as §2.9-22 — and that classification is asserted by
a test that runs each shape outside a covergroup and requires the same
failure. Every sampled expression, bin value andiffbinds to the
class's properties;cg_inst.cpresolves cross-file; renaming arand
field rewrites the coverpoints that sample it.FACTS_FORMAT11 → 12.Opentitan: 544 of 544 covergroups structured, 87 of 87 DV covergroup
files idempotent with comment streams byte-identical, 81 of 3 963 files
re-laid-out and every one verified, the sweep's failure set and per-file
diagnostics identical. Corpus: 10 files change layout, all verify;
+1 139 references, 1 135 answered.Downloads
-
released this
2026-09-02 04:19:08 -07:00 | 230 commits to master since this releaseConstraint bodies — round 1 of coverage_gaps C1, the DV correctness
item.constraint c { … },constraint C::c { … }andrandomize() with { … }were opaque verbatim text: no name span, nothing inside bound,
so renaming arandfield leftconstraint c { user_id < 5; }as
non-compiling code with, at best, a generic warning. Now a constraint
declaration is a real node —soft,dist(:=/:/),->
implication,if/else,foreach,solve … before,unique,
disable soft,`ifdefarms — and the parser attempts the
structured body behind a rewind snapshot: any shape it does not know
restores the cursor and both pending-comment buckets and re-runs the
verbatim capture character for character, so an unknown body is the
old behavior, not an approximation. No keywords were reserved —
soft/dist/solve/beforeare matched by text — sologic before;
keeps working and the editor grammar is untouched.Layout is canonical: one constraint item per line,
}at the header's
column,distweights broken like a braced list; awithblock keeps
its one-line-or-not shape.verify.rsuntouched; the constraint attack
pairs re-derived and extended (a droppedsoft,:=for:/,
swappedsolve/before, a droppedelseset, a flattened
implication, a comment moved across}). Every operand binds to the
class's properties (this.implicit;foreachvariables nest; a
withblock resolves against the randomized object's class first), so
hover, definition, references and rename reach inside; renaming a
randfield from its declaration rewrites its constraint uses in-file
and cross-file.FACTS_FORMAT10 → 11. Lint rules read constraint
operands instead of treating the body as opaque.QA's finding — a comment right after
soft,dist,solve,
beforeor the constraint name was dropped, so the safety net refused
the file — was answered with an exhaustive gap fuzzer (a block comment
in every inter-token gap of fifteen fixtures, 358 gaps, format and
idempotency both demanded) and fourteen named comment fields; the
forty gaps that remain are shared expression machinery that behaves
identically outside a constraint (q[/*c*/ i],inside {[/*c*/ 0:3]},
scoped-name chains) and are filed as a parser-wide round. No opentitan
file hits one.Opentitan: 1 993 of 2 009 constraint bodies parse structured (the 16
fallbacks are macro-item bodies and non-LRM shapes), all laid out,
token-equivalent and idempotent; 48 DV files across 16 IPs re-format
idempotently with their comment streams byte-identical; the sweep's
failure set unchanged and the tolerant-diagnostic count per file
identical. Corpus: 37 files change layout, all verified; +1 646
references, 84 % answered. Covergroups are round 2.Downloads
-
v0.26.0
Stablereleased this
2026-09-02 02:19:17 -07:00 | 232 commits to master since this releaseTwo lanes, run in parallel: member completion, and escaped identifiers.
Member completion — a dot means members
Typing
item.used to get the whole-index dump — every keyword and
every project word, capped at 512 — because the empty word after a dot
fell through to the ordinary tiers. Now the answer after.or::is
exclusively the members of what precedes it: a class's properties and
methods (inherited ones included, through the same base chain hover
follows), a struct's fields (reg2hw.ctrl.via the synthesized nested
keys), an interface's signals, modports and clocking blocks (vif.,
vif.cb.), a package's members (tlul_pkg::),this./super.. The
walk is published fromvlog_semantic(Semantics::member_site,
WorkspaceIndex::members_of_chain) and the resolver's own member
resolution is rewritten to call it, so the popup cannot list a name
hover would not resolve. A dot inside an instantiation's(…)or
#(…)lists the module's ports or parameters, already-connected ones
dropped..and:are trigger characters. An unreadable head answers
nothing — never the dump. Cheaper than what it replaces: 6–62 µs
against 212 µs.QA's finding, fixed at the root:
#(.offered headerlocalparams
because the binder had discarded theparameter/localparamkeyword.
SymbolKind::LocalParamis now bound from the keyword (sticky across
continuation entries, as the ghost skeleton already read it), shows as
"localparam" on the hover card, is excluded from override lists only,
and still resolves for hierarchical reads.FACTS_FORMAT9 → 10.Escaped identifiers format
wire \my-signal ;was refused outright: the lexer ends an escaped
identifier before its terminating whitespace and the formatter emitted
every name bare, so\my-signal;re-lexed as one token and the safety
net — correctly — rejected the file. Fifty name-emission sites now go
through one choke point that writes the IEEE 1800 §5.6.1 space;
verify.rsuntouched, eight masked-corruption attack pairs; the corpus
is byte-identical by construction. Netlists and generated RTL format.
One shape is refused rather than corrupted and filed (\my-pkg ::x,
whose segments the parser joins).Downloads
-
v0.25.0
Stablereleased this
2026-09-01 23:56:22 -07:00 | 235 commits to master since this releaseStruct members —
s.field,reg2hw.ctrl.qand the anonymous
aggregates resolve.typedef struct packed {…} bus_t; bus_t s; s.fieldrecorded nothing.
The in-file gap was a single resolver gate: a struct typedef's member
scope already existed, hung off the typedef, and lookup simply never
entered it. Now any symbol whose child scope is a struct scope — a
typedef, an anonymousstruct {…} s;declarator, or an inline nested
field — answers member access with one rule, and fields carry their
own type sos.hdr.addrhops through a member. Unions are the same
node. Anonymousenum {A, B} x;variants land in the enclosing scope
exactly like typedef'd ones (the open handshake since types-decls).Across files, struct members are exported under the typedef's name,
and inline nested fields — the shape opentitan's generated register
packages use everywhere — under a synthesizedowner.fieldkey
carried as the field's type, sohw2reg.status.txfull.dlands on
txfull'sdand neverrxfull's two lines up (bare-name keys would
collide onq/d/qein every register package). Same-named struct
typedefs in two packages answer ambiguity, never a guess.FACTS_FORMAT
8 → 9 (older stores rebuild once);typeDefinitionworks inside a
typedef structbody.Unresolved names on the corpus fell 1 203 → 1 162; its store shrank
1.1 % (a resolved local fact encodes smaller than the external
candidate it replaced) while opentitan's register packages grow theirs
4.3 %. QA: 28 live opentitan probes across six IPs with three planted
sibling-field pairs, zero wrong answers, hover under 0.5 ms. Known
remaining shape: an indexed link mid-chain (reg2hw.key_share0[i].q),
pre-existing and filed.Downloads
-
v0.24.0
Stablereleased this
2026-09-01 22:55:31 -07:00 | 237 commits to master since this releaseInterface semantics — interfaces, modports and clocking blocks become
symbols, andvif.sigcrosses files.An interface was indexed as a
Module(its hover card said "module"),
modports and clocking blocks declared nothing, the signal names inside
them were not references, and one export line kept an interface's
signals out of the workspace's member table — sovirtual my_if vif; vif.sigresolved only when the interface was in the same file. Now:
SymbolKind::{Interface, Modport, Clocking}; an interface exports its
signals (they are its surface — a module still exports ports and
parameters only); every name inside a modport or clocking block is a
reference to the interface's signal, method or block; the modport half
ofbus_if.mpin a port type or avirtual bus_if.mphandle resolves
to the modport; a clocking block carries its enclosing interface as its
type, sovif.cb.datareachesdata's declaration through the member
chase unchanged.FACTS_FORMAT7 → 8 (older stores rebuild once).
Interfaces stay in the completion/ghost module table, the design
hierarchy and the port refactorings — pinned unchanged — while hover,
outline and completion kinds become honest.Unresolved names on the 860-file corpus fell 1 256 → 1 203, the first
movement in three rounds — the@(cb)andcb.datanames that had
nothing to bind. Store +1.2 %. Renaming a modport from its
type-position use now rewrites its declaration and every use. QA: 17
live opentitan probes, zero wrong answers, every hover sub-millisecond.Downloads
-
v0.23.0
Stablereleased this
2026-09-01 21:37:28 -07:00 | 239 commits to master since this releaseMember chains and instance heads — DV class-semantics round 2.
cfg.vif.clk,item.hdr.addr,u_sub.port,tb.dut.u_core.done_o:
the tail of a chain now resolves link by link through each link's
declared type. In one file the resolver hops declared type → declared
type; across files a chain becomes one composed path (item_t::hdr::addr)
the workspace's member table walks, so hover, find-references and rename
agree by construction.Def::type_namerides every indexed declaration
(FACTS_FORMAT6 → 7; older stores rebuild once), andthis.x/super.x
uses now post to the index, so references from a base class's
declaration list its subclasses' uses in other files.Instance heads: an instance's type is its module, and modules export
their ports and parameters — sou_sub.portresolves cross-file;
internal nets and vars resolve in the declaring file only, by ruling:
exporting them cost +24 % store and made.port(w)connections resolve
to internals. Typedef'd class aliases (typedef c1 my_t; my_t h; h.x)
are chased, visited-guarded. A chain link whose type is declared twice
in the workspace with different kinds is refused — round 1's lesson,
one hop out. No link ever guesses.Rename's truth moved with it: renaming
sub'swire signow rewrites
u_sub.sigtoo, which a compiler needs; an unresolvable tail is left
alone (and, a known gap filed as topo §2.9-20, no longer warned about).Corpus: unresolved unchanged at 1 256; store +15.4 % (opentitan
30.8 → 35.4 MB), most of it the inherited-member postings. Zero wrong
answers in QA's 15 live opentitan probes. Formatter output unchanged.Downloads
-
v0.22.0
Stablereleased this
2026-09-01 20:19:23 -07:00 | 241 commits to master since this releaseClass member access — the first DV class-semantics round.
task class2::update(c1 in_item); address = in_item.user_id; …—
hoveringuser_idused to show nothing. Now the tail ofhandle.member
resolves through the handle's declared type: a newSymbol::type_name
records the type as written; the member is found in that class's scope,
else up itsextendschain in the file, else through the workspace's
member table, which chasesWorkspaceIndex::base_of— a subclass→base
map built from the inheritance census the index already keeps —
cycle-guarded on both sides. Hover showsrand bit user_id;with its
file and line; go-to-definition, find-references (from either end) and
rename follow.this.x/super.xmisses resolve to inherited members
through the same chase (the open handshake since the classes wave), and
an out-of-class method body sees its class's members.FACTS_FORMAT
5 → 6 (the reference census grew; older stores are discarded).Honest by construction: a head whose type is declared in the file as
anything without a member scope — a struct typedef, an alias, an enum —
records nothing rather than reaching the workspace, after QA caught the
first cut answeringbus_t s; s.fieldfrom an unrelated class named
bus_telsewhere. Module-instance heads, chainsa.b.c, struct fields
and typedef'd class aliases are round 2.Cost: hover 7–143 µs; on opentitan a
tl_seq_itemmember resolves in
0.12 ms cold / 0.01 ms warm; store +2.85 %. Formatter output unchanged.Downloads
-
v0.21.0
Stablereleased this
2026-09-01 15:03:36 -07:00 | 244 commits to master since this releaseNull items:
endgenerate;parses — and everywhere else a stray;may
legally stand.The report was "for loop inside generate fails"; the diagnosis was that
every generate-for spelling — and three published examples — already
parsed, and the failing token was the lone;afterendgenerate.
IEEE 1800-2017 A.1.4 makes that a null item, legal in module,
generate, package, interface, program and class scope and at file
scope; lucisv rejected it in all of them withexpected item. Now
ItemKind::Empty, accepted by one parser branch, laid out where it
was written (glued to the previous line forendgenerate;/end;/
endmodule;/;;, or on its own line), token-preserving and
idempotent both ways.verify.rsuntouched; eight masked-corruption
attack pairs (a dropped;, one moved across a comment, into a
procedural block, between`ifdefarms) all rejected.New lint
empty-item(slang's-Wempty-member): warns on a null
item; its safe fix deletes the;— and the line, when nothing else
stood on it — with a deletion range that structurally cannot swallow a
comment. In the editor, a file that used to show a parse error now
shows a warning with a quick fix and fix all.Formatter output changes only for files that contain a null item;
the 820-file corpus is byte-identical (813/820) and the opentitan
sweep is unchanged file-for-file. Version bumped per the format-cache
rule.Downloads