-
v0.55.0
Stablereleased this
2026-09-17 14:36:35 -07:00 | 86 commits to master since this releaseLoop 3, round 2 — find-references reaches a module's internals
- References see every cross-file use of a module's nets, variables
and instances. Withmodule leafdeclaringlogic sigand another
file writingassign w = u_leaf.sig;(or abinddirective naming
sigin a connection), Find All References from the declaration
answeredleaf.svalone — while a rename already edited both files.
The two index questions behind references asked the module's
connection surface (ports and parameters), which cannot hold an
internal net; they now ask the hierarchical surface, the one a path
in another file actually reaches the declaration by. Every answer for
a port, parameter, package member, class field or struct field is
byte-for-byte what it was. Hover's declaration snippet uses the same
lookup and now shows the live line for such a signal in an edited
buffer. On the opentitan tree, references onaes.sv's
entropy_masking_reqnow listaes_bind.sv, andstate_qin
entropy_src_main_sm.svlists its use inentropy_src_core.sv.
(docs/features/references-hierarchical-surface/README.md.) - A closed declaring file's own uses are in the answer. The index
deliberately posts no in-file references for a module's internal
signals (a table sized by every RTL body, for a rarely asked
question), so a request from another file into a declaring file
nobody has open used to list the cross-file sites and silently omit
that file's ownassign … = sig;lines. That one file is now parsed
once, on exactly that request shape — 0.4–1.5 ms on a real design
file, the same trade a rename already makes. - A stale index may omit a location; it can never point at a wrong
line. Three QA rounds found that a span recorded at index time, or
computed against one read of a closed file, could be rendered against
a different read of the same file after an external edit (another
tool,git checkout, a build step) and land on a line that no longer
holds the name. Each closed file is now read exactly once per
request, and every index-time span — closed files and the
open-buffer declaration fallback alike — must still spell the name
exactly where it is rendered, or it is dropped. Escaped identifiers,
UTF-8 boundaries, a deleted declaring file and a name that is both a
port and a net are covered by tests; references and rename are
asserted to agree with the whole-scope engine. - Cost, accepted and recorded in
docs/perf/README.md: a references
request on a heavily used local net in a 40 000-line buffer now
walks the indexed path, 1.22 → 1.54 ms median; every other harness
row unchanged.
Downloads
- References see every cross-file use of a module's nets, variables