DUT-centred hierarchy view: star a module as DUT, its children and its parents in their own sections, everything else re-rooted
TODO §56 (docs/features/dut-hierarchy), the owner's request of 2026-09-06.
Client-only, over the flat `lucisv/moduleHierarchy` snapshot the server
already sends. `hierarchySections.js`: per starred DUT, in starred
order, the DUT's forward subtree (the DUT at the top) and an upward tree
from the DUT through every module that instantiates it (labelled `via
<instance>`, cycles cut with one `recursive` row), then one section for
every module in no DUT's subtree or ancestor closure, re-rooted where
its only parents are DUT ancestors (the review ruling — a monitor beside
the DUT under the same bench stays on screen); a module both below one
DUT and above another appears in both DUT sections; a starred name the
index lacks keeps its sections with a "not in the index" row. Star and
unstar from the webview row menu (the pane is a WebviewView, so the
menu is the renderer's, driven by a `menuTable()` per render), the
`lucisv.hierarchy.{starDut,unstarDut,clearDuts}` commands and title
actions, persistence in `workspaceState` in starred order, and the
`lucisv.hierarchy.duts` setting whose entries show locked. With nothing
starred the pane is byte-identical to before (pinned).
opentitan `hw/ip` (847 modules): `aes` → 3 sections with `tb` in its
parents and 5 modules under `aes_tb` re-rooted into others; `aes` +
`hmac` → 5 sections; every module reachable in both configurations; QA's
200-trial fuzz found no overlap and no gap. `extract_test.js` added to
`.vscodeignore`.
(Committed after the 0.48.0 version commit: the release chain broke at a
test-output grep and cut the tag one commit early; the tag is moved here.)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
4d342367b9
commit
449b874798
25 files changed
+2158
-38
No files matched your search
@@ -10,11 +10,21 @@ description: Set up lucisv-server in VS Code, Neovim, Vim, and other Language Se
|
||||
Install the `.vsix` attached to a lucisv release:
|
||||
|
||||
```bash
|
||||
code --install-extension lucisv-0.9.0.vsix
|
||||
code --install-extension lucisv-<version>-darwin-arm64.vsix # or the linux/windows package for your machine
|
||||
```
|
||||
|
||||
The extension registers Verilog/SystemVerilog file types, syntax highlighting, snippets, color settings, configuration, and starts `lucisv-server` from `PATH` by default.
|
||||
|
||||
**DUT-centred hierarchy.** Right-click a module in the Hierarchy pane and
|
||||
choose **Star as DUT**. The pane splits into sections: the DUT with its
|
||||
children, the DUT's parents (an upward tree through everything that
|
||||
instantiates it — usually the testbench), and all other modules, re-rooted
|
||||
where their only parents are the DUT's ancestors. Star a second DUT and you
|
||||
get five sections. Unstar from the same menu, or clear every DUT from the
|
||||
pane's title bar. Starred DUTs are remembered per workspace; a team can also
|
||||
check them in with `"lucisv.hierarchy.duts": ["aes", "hmac"]`, and DUTs that
|
||||
come from the setting are shown locked.
|
||||
|
||||
## Neovim 0.11+
|
||||
|
||||
```lua
|
||||
|
||||
Reference in new issue
Block a user