• v0.55.0
    ci / checks (push) Successful in 1m11s
    ci / corpus (push) Successful in 33s
    release / build-and-publish (push) Successful in 9m37s
    Stable

    lucio released this 2026-09-17 14:36:35 -07:00 | 86 commits to master since this release

    Loop 3, round 2 — find-references reaches a module's internals

    • References see every cross-file use of a module's nets, variables
      and instances.
      With module leaf declaring logic sig and another
      file writing assign w = u_leaf.sig; (or a bind directive naming
      sig in a connection), Find All References from the declaration
      answered leaf.sv alone — 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 on aes.sv's
      entropy_masking_req now list aes_bind.sv, and state_q in
      entropy_src_main_sm.sv lists its use in entropy_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 own assign … = 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