diff --git a/README.md b/README.md index bf7b130..38bc61d 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,10 @@ line-length = 100 # 40..400, same as --line-length indent = 2 # 1..8, same as --indent exclude = [ "*_gen.sv", "build" ] # added to --exclude patterns filelist = "rtl/files.f" # an EDA `.f` filelist, relative to this file + +[lint] +select = ["no-tabs", "unused-signal"] # optional replacement for defaults +ignore = ["module-filename"] # removed after selection ``` `filelist` names the project's sources the way the rest of the EDA world @@ -156,8 +160,9 @@ with a file that sets only `line-length` uses both). `exclude` is the exception: config patterns are *added* to `--exclude`, not replaced by it. An unknown key, a bad value, an out-of-range number, or any TOML beyond the -supported subset (tables, multi-line arrays, string escapes) is a hard error -naming the file and line — exit 2, with nothing written. This is deliberate: +supported subset (tables other than `[lint]`, multi-line arrays, string +escapes) is a hard error naming the file and line — exit 2, with nothing +written. This is deliberate: a silently ignored `line_length` typo costs more than a strict parser does. ## Linting @@ -193,12 +198,12 @@ what it can see. | `undriven-net` † | — | everything read is driven by something | | `multiply-driven` † | — | one driver per variable | -† Off by default — `--select` them. These three read the file's *symbol -table*, not just its syntax, which is what lets them tell one `count` from -another; they are off because a single-file analysis cannot see a signal used -from another file's hierarchy. See -`docs/features/semantic-lints/README.md`. The table above is not the whole -set — naming-style rules ship too, and +† On by default when lucisv can see a project (a multi-file CLI run or the +language server), and off for a single file or stdin unless `--select` names +them. These three read the file's *symbol table*, not just its syntax; the +project-wide identifier census keeps a hierarchical use in another file from +becoming a false positive. See `docs/features/semantic-lints-on/README.md`. +The table above is not the whole set — naming-style rules ship too, and `cargo run -p vlog_linter --example rules_markdown` prints the generated reference for every rule with its default. @@ -397,24 +402,28 @@ Basic Verilog-2001 and the common synthesizable SystemVerilog subset: methods with `virtual`/`static`/`local`/`protected`/`automatic`, `function new`, `extern` and `pure virtual` prototypes and their out-of-body definitions, plus everything that already works at module scope (`typedef`, - `localparam`, `import`, directives, macro items, nested classes). `constraint - c { ... }` and `covergroup … endgroup` are **passed through verbatim** — two - grammars with no layout convention worth inventing. See - `docs/features/classes/README.md` + `localparam`, `import`, directives, macro items, nested classes). + `constraint c { ... }` and `covergroup … endgroup` are structured too: + constraint expressions, `soft`/`dist`, implication, `foreach`, `solve + before`, coverpoints, bins, transitions and crosses all format canonically + and participate in rename, references and semantic lints. An unrecognized + body rewinds to its exact source bytes instead of blocking the surrounding + file. See `docs/features/constraint-bodies/README.md` and + `docs/features/covergroup-bodies/README.md` - Concurrent assertions (IEEE 1800 §16): `assert`/`assume`/`cover`/`restrict property ( ... )` with an optional `label:` prefix and an action block (`else $error(...)`, `$info(...); else ...`, `else begin ... end`, and any statement that nests blocks: `if (c) begin ... end else ...`, - `fork ... join_none`, `case ... endcase`), wherever - a module item or a statement can appear — module and package bodies, - generate regions, `begin`/`end`, and at file scope. Plus `sequence ... - endsequence` and `property ... endproperty` declarations. All of it is - **passed through verbatim**, for the same reason `constraint` is: the - property/sequence expression language (`|->`, `##[1:3]`, `throughout`, - `disable iff`, `$rose`) is a second grammar with no layout convention worth - inventing. Only the first line is re-indented to the item's level; the - relative layout the source wrote is what survives. See - `docs/features/assertions/README.md` + `fork ... join_none`, `case ... endcase`), wherever a module item or a + statement can appear — module and package bodies, generate regions, + `begin`/`end`, and at file scope. `sequence` and `property` declarations, + typed formals, local variables, `expect`, `cover sequence`, and `default + disable iff` are real nodes. The property/sequence expression grammar uses + the LRM precedence table; top-level `|->`/`|=>`/`##`/`and`/`or` operators + break one per line when needed. Rename, references, document symbols and + semantic lints see inside; an unrecognized construct falls back to its exact + source bytes and produces a rename warning. See + `docs/features/sva-bodies/README.md` - Dynamic types: queues (`string q[$]`, bounded `[$:N]`), dynamic arrays (`int a[]`), associative arrays (`[*]`, `[string]`, `[key_t]`) — in declarations, class properties, typedefs and function/task arguments; the @@ -423,8 +432,8 @@ Basic Verilog-2001 and the common synthesizable SystemVerilog subset: `docs/features/dynamic-types/README.md` - DV statements (IEEE 1800 §7.12, §9.3.5, §11.12, §12.7.3, §13.4.2, §18.7, §18.16): `randomize() with { ... }` / `std::randomize(x, y) with { ... }` - (the call is structural, the constraint block is **passed through - verbatim**, exactly as `constraint c { ... }` is), the array-method + (the call and its constraint block are structural, with byte-exact fallback + for an unrecognized constraint shape), the array-method iterator argument `q.sum() with (item.w)`, `foreach` over a package-scoped or hierarchical array with selects on the way (`foreach (pkg::isa[i])`, `foreach (h[id].sub[k])`, `foreach (a[i][j])`), @@ -464,7 +473,8 @@ Basic Verilog-2001 and the common synthesizable SystemVerilog subset: trailing `;` is reproduced only if the source wrote one. At item and statement position a space before the argument list is accepted too (`` `uvm_field_int (a, UVM_DEFAULT) ``) and is reproduced as written; in - *expression* position `` `A (b) `` still parses as a call applied to `(b)`. + *expression* position the author-written gap is preserved too, because it + can affect how a macro with formals is interpreted. A macro that ends its line is a complete macro, so whatever opens the next line — a declaration, or a statement starting with `@`, `#`, `->` or `{` — is its own item. See `docs/features/item-misc/README.md` and @@ -490,10 +500,17 @@ Basic Verilog-2001 and the common synthesizable SystemVerilog subset: (``sub #(`include "config.vh") u (...)``). See `docs/features/directives-in-lists/README.md` and `docs/features/directives-in-instances/README.md` +- Programs, interface classes, `alias`, `union tagged`, `specparam`, library + map entries, and statement-form `expect`. `specify`, UDP `primitive`/`table`, + `checker`, and `config` blocks are recognized as opaque blocks so vendored + simulation models and formal collateral do not block the rest of a file; + their internal layout is preserved. See + `docs/features/vendor-formal-grammar/README.md` -Not yet supported (parse errors). Roadmap ordered by measured impact on -real RTL — see `docs/features/corpus-check/README.md` for the 820-file -corpus baseline this ordering comes from: +### Historical syntax roadmap + +This roadmap records how parse coverage was raised, in measured-impact order. +See `docs/features/corpus-check/README.md` for the 820-file corpus baseline: 1. ~~Macro invocation at module-item / statement position (`` `ASSERT_INIT(...) `` style)~~ — **done**; see @@ -574,8 +591,9 @@ corpus baseline this ordering comes from: `docs/features/dv-statements/README.md`. Emptied the `dv-statements` bucket (26 files) and moved the parse rate from 94.1% to 97.1%; 24 of the 26 files format, the other 2 advanced to a macro-items blocker and to the - `new obj` shallow-copy expression. `specify` blocks, `checker`, - `program`, `interface class` and `randsequence` remain unsupported + `new obj` shallow-copy expression. `randsequence` remained unsupported at + this point; the other vendor/formal constructs listed here landed later in + 0.30.0 11. ~~A macro statement that ends its line followed by a symbol on the next one, the `new obj` shallow copy (IEEE 1800 §8.12), and a based number whose digits come from a macro (`` 32'h`DM_ADDR ``)~~ — **done**; see @@ -598,6 +616,11 @@ corpus baseline this ordering comes from: `` `X_EACH_CSR`` (need macro expansion, a deliberate non-goal) and 5 files that are not valid standalone Verilog +Fragment-mode support subsequently raised the current frozen corpus baseline +to **814/820 (99.3%)**. The remaining six files require cross-file macro +expansion, contain a conditional-split outlier, or are not valid standalone +Verilog; none regressed when the vendor/formal and SVA grammars landed. + Like ruff, `lucisv` refuses to output anything for a file it cannot fully parse, so it can never corrupt code. diff --git a/docs/coverage_gaps.md b/docs/coverage_gaps.md index 11e34ca..c9163a4 100644 --- a/docs/coverage_gaps.md +++ b/docs/coverage_gaps.md @@ -102,12 +102,12 @@ LSP: hover + definition for package-imported parameters, enum members, class par 7. **M1–M3** grammar arms (specify/UDP/checker/interface class) as one "vendor and formal collateral" round, verbatim capture acceptable. *(Done by TODO §23 — and the M2 row's evidence was wrong; see the correction in the Medium table.)* 8. **M7** semantic lints on by default via §2.9-6. -Two stale READMEs found by the inventory, to fix on the next docs pass: -`docs/features/interfaces/README.md` still lists `program` and the -clocking `= expression` as unsupported (delivered in §11 round 2); -`docs/features/dv-statements/README.md` lists `foreach (a[, j])` as not -done (delivered by testbench-mopup); `docs/features/assertions/README.md` -says `interface` is still a parse error. +The three stale README claims found by the inventory are now closed: +`docs/features/interfaces/README.md` records that `program` and clocking +`= expression` landed in testbench-mopup; `docs/features/dv-statements/README.md` +records the delivered `foreach (a[, j])` form; and +`docs/features/assertions/README.md` records that assertions work in an +interface body through the shared item path. --- @@ -153,4 +153,5 @@ quiet). What the tables above still leave open, by weight: M9 statement-level and class-body format fences (§2.9-3); M10 error recovery inside headers and lists; the second half of M12 (`--rules-doc`, §2.9-5); M13's small interface/DPI grammar arms; L3, -L6, L9, L10; and the three stale READMEs named under the order. +L6, L9 and L10. The three stale READMEs named under the order were reconciled +in the 0.33.0 documentation pass. diff --git a/docs/features/assertions/README.md b/docs/features/assertions/README.md index 7907be9..3fe1a96 100644 --- a/docs/features/assertions/README.md +++ b/docs/features/assertions/README.md @@ -119,13 +119,11 @@ the same two grammar rules and cost nothing: ### Requests to other clusters -- **interface cluster**: `assert property` inside an `interface` body cannot - be tested yet — `interface` itself is still a parse error - (`unsupported construct starting with keyword \`interface\``). Once an - interface body parses through the ordinary item path - (`Parser::parse_item_kind`), concurrent assertions inside it work with no - further change, because that is the same dispatch module bodies use. Worth - one case in `interface.cases` when that lands. +- ~~**interface cluster**: `assert property` inside an `interface` body could + not be tested because `interface` was still a parse error.~~ **Delivered by + `interfaces`**: an interface body uses the ordinary item path, so concurrent + assertions work there through the same dispatch as module bodies; the + original request required no assertion-specific parser change. - **dv-statements cluster**: if you add a general `label:` prefix for *statements*, note that `Parser::parse_stmt_kind` already consults `at_concurrent_assertion()` before the keyword dispatch, and that check @@ -440,4 +438,3 @@ the `skip_action_stmt` depth-counter rewrite. half of the `a4f8476` commit too (the two changes were reviewed together). No BLOCKING findings. The round-1 gap is closed. - diff --git a/docs/features/dv-statements/README.md b/docs/features/dv-statements/README.md index e2ef616..d025b0d 100644 --- a/docs/features/dv-statements/README.md +++ b/docs/features/dv-statements/README.md @@ -60,8 +60,9 @@ its input bytes exactly is trivially token-equivalent. `foreach (a[i][j])` spelling real code writes is read as "loop over `j` with `a[i]` as the array". lucisv only prints the header back, so the two readings emit the same tokens either way. -- **Empty loop-variable slots (`foreach (a[, j])`) are not supported.** No - corpus file writes one; it stays the parse error it was. +- **Empty loop-variable slots (`foreach (a[, j])`) were not supported in this + round.** *Amended by `testbench-mopup`*: omitted iterator slots are now + structural. No corpus file wrote one when this round was measured. - **A `let` port is a task/function port without a direction**, so `parse_tf_ports` reads the list and [`TfArg`] holds each entry. `untyped` is accepted the way any user-defined type name is. @@ -213,7 +214,8 @@ another feature's region, so they are written here rather than made: corpus file writes one; it is an "unsupported statement starting with keyword `let`" error - [ ] `randsequence` — no corpus file writes one -- [ ] empty `foreach` loop-variable slots (`foreach (a[, j])`) +- [x] empty `foreach` loop-variable slots (`foreach (a[, j])`) — delivered by + `testbench-mopup` ## Work log diff --git a/docs/features/interfaces/README.md b/docs/features/interfaces/README.md index 80b4167..157a69a 100644 --- a/docs/features/interfaces/README.md +++ b/docs/features/interfaces/README.md @@ -35,10 +35,9 @@ At the start of this round `interface` was the corpus's top blocker at it is unchanged: an `interface` followed by `class` has always been something else, and now there is somewhere for it to go. Still 0 of 820 corpus files. -- **`program … endprogram` is out of scope** for this round even though - it shares the same header/body grammar and would be a one-line - addition here. No corpus file uses it (0 of 820), so it buys nothing - measurable; see Handshakes. +- **`program … endprogram` was out of scope for this round.** *Amended by + `testbench-mopup`*: it now shares the module header/body grammar and is + formatted structurally. No corpus file used it when this round was measured. - A modport port is a **direction keyword plus the names it governs**. The source's grouping is preserved (`input valid, data` is one group, not two ports), because regrouping it would be a token-order change @@ -51,7 +50,8 @@ At the start of this round `interface` was the corpus's top blocker at never re-lays-out either. The `#(min:typ:max)` skew spelling is not supported (0 corpus uses). - A clocking item's optional `= expression` (`input data = top.dut.d;`, - IEEE 1800-2017 §14.4) is not supported. 0 corpus uses. + IEEE 1800-2017 §14.4) was not supported in this round. *Amended by + `testbench-mopup`*: it is now structural. The original corpus had 0 uses. - `virtual` / `virtual interface` in a **type position** is recorded on `DataType::virt` as a one-byte `VirtualKw`, not as a `String`: every `Expr` carries a `DataType` through `ExprKind::Type`, and a `String` @@ -256,4 +256,3 @@ Targeted attacks: `an_interface_is_held_to_the_same_rule`). Correct. No BLOCKING findings for this cluster. - diff --git a/docs/site/dist/404.html b/docs/site/dist/404.html index 5212474..2d52b95 100644 --- a/docs/site/dist/404.html +++ b/docs/site/dist/404.html @@ -24,7 +24,7 @@ }, }; })(); -Skip to content
Skip to content
Skip to content
Skip to content
Skip to content
Skip to content
Skip to content
Skip to content

Linter

The linter shares discovery, parsing, configuration, and ignore behavior with the formatter, but uses error-tolerant parsing so it can report useful findings from partially understood files.

Terminal window
lucisv check rtl/
lucisv check --select no-tabs,unused-signal rtl/
lucisv check --ignore module-filename rtl/
lucisv check --fix rtl/
lucisv check --output-format json rtl/
-

--select replaces the default set with a comma-separated list. It can be repeated. --ignore then removes rules from the selected or default set. Semantic rules such as unused-signal, undriven-net, and multiply-driven are opt-in because a single-file view cannot see all hierarchy interactions.

+

--select replaces the default set with a comma-separated list. It can be repeated. --ignore then removes rules from the selected or default set. Both can also be written in lucisv.toml under a [lint] table (select = [...], ignore = [...]), which a command-line flag overrides key by key, and in an editor as lucisv.lint.select / lucisv.lint.ignore.

+

The semantic rules — unused-signal, undriven-net, multiply-driven — run by default wherever lucisv can see the other files of your project (lucisv check rtl/, or the language server), because it can then tell that another file reads a signal through a hierarchical path. Over a single file or a stdin buffer there is nothing to ask, so they are off and must be --selected.

--fix applies safe changes and rewrites the file. Today, no-tabs and no-trailing-whitespace provide safe fixes. --unsafe-fixes widens applicability, but no built-in rule currently offers an unsafe fix.

Fixes are sorted, overlap-checked, and never applied inside format-fenced regions.

@@ -81,4 +82,4 @@
wire a; // lucisv: waive no-tabs
// lucisv: waive no-tabs
wire b;
// lucisv: waive-start module-name-style
module LegacyName;
endmodule
// lucisv: waive-stop module-name-style

verilog_lint: is accepted in place of lucisv: for Verible compatibility. The unused-waiver rule reports malformed, unknown, or no-longer-needed suppressions when their target rule is enabled.

See the complete rule reference.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/site/dist/guides/syntax/index.html b/docs/site/dist/guides/syntax/index.html index 943399e..1da5dc0 100644 --- a/docs/site/dist/guides/syntax/index.html +++ b/docs/site/dist/guides/syntax/index.html @@ -24,7 +24,7 @@ }, }; })(); -Skip to content
Skip to content

Supported syntax

lucisv targets Verilog-2001 and the common synthesizable SystemVerilog subset, plus the design-verification constructs most often encountered in real repositories. On the measured 820-file corpus, 99.1% of files parse; the remaining failures are concentrated in deliberately unsupported categories and non-standalone inputs.

+

Supported syntax

lucisv targets Verilog-2001 and the common synthesizable SystemVerilog subset, plus the design-verification constructs most often encountered in real repositories. On the measured 820-file corpus, 99.3% of files parse; the remaining failures require cross-file macro expansion, hit a conditional-split outlier, or are not valid standalone inputs.

    -
  • Modules, interfaces, packages, classes, generate regions, and nested classes.
  • +
  • Modules, interfaces, programs, packages, classes, interface classes, generate regions, and nested classes.
  • ANSI and non-ANSI ports, parameter ports, header imports, timeunit, genvar, and defparam.
  • Net and variable declarations, signing, packed and unpacked dimensions, and net delays.
  • typedef aliases, enums, packed structs/unions, forward class declarations, anonymous aggregate types, and type parameters.
  • @@ -84,16 +84,18 @@
    • assign, always, always_comb, always_ff, always_latch, initial, and final.
    • Blocks, conditionals, every case kind, loops, foreach, fork/join*, waits, timing controls, events, force/release, and jump statements.
    • -
    • Immediate and concurrent assertions, sequences, and properties. Concurrent property bodies are preserved verbatim.
    • +
    • Immediate and concurrent assertions, sequences, properties, expect, cover sequence, and default disable iff. Property and sequence expressions use their LRM precedence and participate in formatting and semantic tools.
    • randomize() with, randcase, let, statement labels, array iterator methods, and omitted positional arguments.
    • -
    • Constraint blocks, covergroups, and randomization constraint bodies are preserved verbatim.
    • +
    • Constraint blocks and randomization constraint bodies, including soft, dist, implication, foreach, and solve before.
    • +
    • Covergroups with coverpoints, bins, transitions, crosses, with, and iff expressions.
    • Module and gate instantiation, named and ordered connections, .*, parameter overrides, instance arrays, and drive strengths.
    • -
    • bind directives at file, module, and generate scope.
    • +
    • bind directives at file, module, and generate scope, including indexed hierarchical targets and target-scope connection resolution.
    • Module-level generate if, for, and case, including elaboration system tasks.
    • Compiler directives and macros between list elements, including conditional branches inside ports, parameters, enums, overrides, and connections.
    • +
    • Vendored/formal collateral: specify/specparam, UDP primitive/table, checker, config, library map entries, alias, and union tagged. Block interiors that do not feed language tools are preserved as opaque source.
      @@ -103,8 +105,8 @@
    • Macro invocations in expression, statement, and item position; macro digits in based numbers.
    -

    Some constructs are recognized structurally but emitted with their internal source layout intact: compiler directives, macro bodies, constraints, covergroups, concurrent property/sequence bodies, and carefully recovered conditional-split declarations. This keeps unfamiliar subgrammars safe without blocking the surrounding file.

    +

    Some constructs are recognized structurally but emitted with their internal source layout intact: compiler directives, macro bodies, specify, UDP, checker and config blocks, and carefully recovered conditional-split declarations. Constraint, covergroup and SVA parsers also keep a byte-exact fallback for an unfamiliar body, so unsupported subgrammar does not block the surrounding file.

    -

    specify blocks, checker, program, interface class, and randsequence remain outside the formatter grammar. lucisv also does not run a preprocessor, so a file that becomes valid only after cross-file macro expansion may not format as a standalone input.

    +

    randsequence and a small set of rare expression/port forms remain outside the formatter grammar. lucisv also does not run a preprocessor, so a file that becomes valid only after cross-file macro expansion may not format as a standalone input.

    -
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/site/dist/images/opentitan-lucisv-vscode.png b/docs/site/dist/images/opentitan-lucisv-vscode.png new file mode 100644 index 0000000..13fadf6 Binary files /dev/null and b/docs/site/dist/images/opentitan-lucisv-vscode.png differ diff --git a/docs/site/dist/index.html b/docs/site/dist/index.html index 1496ee8..c901139 100644 --- a/docs/site/dist/index.html +++ b/docs/site/dist/index.html @@ -1,4 +1,4 @@ -lucisv — Verilog tooling that stays out of your way | lucisvSkip to content
Skip to content

RTL, without the friction.

One fast Rust toolchain for formatting, linting, navigation, refactoring, and editor intelligence across Verilog and SystemVerilog.
99.1%measured corpus parse rate
16built-in lint rules
2portable binaries
0runtime dependencies
- -

lucisv treats formatting, diagnostics, and code intelligence as one problem. The same parser and semantic model power the command line and every editor, so the answer in CI is the answer at your cursor.

-
Formatter

Deterministic by construction

Width-aware layout, preserved comments, inferred alignment, format fences, range formatting, and idempotency checks—without rewriting files it cannot fully parse.

Linter

RTL-aware defaults

Sixteen focused rules, safe fixes, source waivers, text and JSON output, plus opt-in semantic checks.

Language server

Fast feedback in any editor

Formatting, diagnostics, navigation, completion, semantic highlighting, refactors, hierarchy, and more over standard LSP.

Workspace

Understands real projects

EDA filelists, nested includes, defines, Git-style ignores, multi-root indexes, and live overlay promotion.

Safety

No half-formatted source

Parse-first operation, atomic writes, equivalence verification, convergence checks, deterministic parallel output, and explicit exit codes make lucisv suitable for CI and large RTL trees.

- -
01 / parseComment-preserving tokens and an error-tolerant AST.
→
02 / understandScopes, symbols, references, defines, and workspace units.
→
03 / actFormat, lint, navigate, refactor, complete, and diagnose.
-
The 30-second tour
lucisv rtl/ # format in place
lucisv --check rtl/ # enforce formatting in CI
lucisv check --fix rtl/ # lint and apply safe fixes
lucisv --lines 120-134 rtl/alu.sv # format only your change
lucisv-server # start the language server over stdio
-
\ No newline at end of file +

SystemVerilog, understood.

Format, lint, navigate, and refactor RTL with one fast engine—at your cursor and in CI.
lucisv language server

Real RTL. Real project context.

Move from an instance to its module, inspect a port, rename a symbol, or fix a diagnostic without leaving the editor. The same project model powers every answer.

HoverCompletionGo to definitionRenameHierarchyDiagnostics
OpenTitan SystemVerilog source open in Visual Studio Code with lucisv port hover information and project diagnostics
01Semantic hoverPort type at the cursor02Project diagnosticsRules across the workspace03Design-aware navigationSymbols, modules, and instances04OpenTitan scaleReal-world SystemVerilog
99.3%measured corpus parse rate
17built-in lint rules
2portable binaries
0runtime dependencies
+ +

Formatting, diagnostics, and code intelligence share one parser and one semantic model. The answer in CI is the answer at your cursor.

+
Same engine, anywhere

Editor-fast. CI-certain.

Use lucisv-server from any LSP client, then enforce the exact same formatting and diagnostics with the standalone CLI.

Set up your editor →
$ lucisv –check rtl/
✓ 184 files already formatted

$ lucisv check rtl/
✓ no diagnostics · 0.42s
\ No newline at end of file diff --git a/docs/site/dist/pagefind/fragment/en_1593154.pf_fragment b/docs/site/dist/pagefind/fragment/en_1593154.pf_fragment new file mode 100644 index 0000000..740be43 Binary files /dev/null and b/docs/site/dist/pagefind/fragment/en_1593154.pf_fragment differ diff --git a/docs/site/dist/pagefind/fragment/en_21a4ff8.pf_fragment b/docs/site/dist/pagefind/fragment/en_21a4ff8.pf_fragment deleted file mode 100644 index 80b5ad2..0000000 Binary files a/docs/site/dist/pagefind/fragment/en_21a4ff8.pf_fragment and /dev/null differ diff --git a/docs/site/dist/pagefind/fragment/en_2a84712.pf_fragment b/docs/site/dist/pagefind/fragment/en_2a84712.pf_fragment new file mode 100644 index 0000000..78c10a4 Binary files /dev/null and b/docs/site/dist/pagefind/fragment/en_2a84712.pf_fragment differ diff --git a/docs/site/dist/pagefind/fragment/en_349b54f.pf_fragment b/docs/site/dist/pagefind/fragment/en_349b54f.pf_fragment deleted file mode 100644 index b13c055..0000000 Binary files a/docs/site/dist/pagefind/fragment/en_349b54f.pf_fragment and /dev/null differ diff --git a/docs/site/dist/pagefind/fragment/en_5219892.pf_fragment b/docs/site/dist/pagefind/fragment/en_5219892.pf_fragment new file mode 100644 index 0000000..76bcf07 Binary files /dev/null and b/docs/site/dist/pagefind/fragment/en_5219892.pf_fragment differ diff --git a/docs/site/dist/pagefind/fragment/en_79aff69.pf_fragment b/docs/site/dist/pagefind/fragment/en_79aff69.pf_fragment deleted file mode 100644 index 7c3afbf..0000000 Binary files a/docs/site/dist/pagefind/fragment/en_79aff69.pf_fragment and /dev/null differ diff --git a/docs/site/dist/pagefind/fragment/en_883f9cc.pf_fragment b/docs/site/dist/pagefind/fragment/en_883f9cc.pf_fragment deleted file mode 100644 index 5703842..0000000 Binary files a/docs/site/dist/pagefind/fragment/en_883f9cc.pf_fragment and /dev/null differ diff --git a/docs/site/dist/pagefind/fragment/en_996b97a.pf_fragment b/docs/site/dist/pagefind/fragment/en_996b97a.pf_fragment deleted file mode 100644 index d37673e..0000000 Binary files a/docs/site/dist/pagefind/fragment/en_996b97a.pf_fragment and /dev/null differ diff --git a/docs/site/dist/pagefind/fragment/en_b5fa167.pf_fragment b/docs/site/dist/pagefind/fragment/en_b5fa167.pf_fragment deleted file mode 100644 index 7595174..0000000 Binary files a/docs/site/dist/pagefind/fragment/en_b5fa167.pf_fragment and /dev/null differ diff --git a/docs/site/dist/pagefind/fragment/en_ce8ecef.pf_fragment b/docs/site/dist/pagefind/fragment/en_ce8ecef.pf_fragment new file mode 100644 index 0000000..4235bbf Binary files /dev/null and b/docs/site/dist/pagefind/fragment/en_ce8ecef.pf_fragment differ diff --git a/docs/site/dist/pagefind/fragment/en_ecdbda8.pf_fragment b/docs/site/dist/pagefind/fragment/en_ecdbda8.pf_fragment deleted file mode 100644 index 3557fa2..0000000 Binary files a/docs/site/dist/pagefind/fragment/en_ecdbda8.pf_fragment and /dev/null differ diff --git a/docs/site/dist/pagefind/fragment/en_f11b508.pf_fragment b/docs/site/dist/pagefind/fragment/en_f11b508.pf_fragment new file mode 100644 index 0000000..48e6e26 Binary files /dev/null and b/docs/site/dist/pagefind/fragment/en_f11b508.pf_fragment differ diff --git a/docs/site/dist/pagefind/fragment/en_f6c130e.pf_fragment b/docs/site/dist/pagefind/fragment/en_f6c130e.pf_fragment new file mode 100644 index 0000000..9b2b195 Binary files /dev/null and b/docs/site/dist/pagefind/fragment/en_f6c130e.pf_fragment differ diff --git a/docs/site/dist/pagefind/fragment/en_fea9c38.pf_fragment b/docs/site/dist/pagefind/fragment/en_fea9c38.pf_fragment new file mode 100644 index 0000000..416c49e Binary files /dev/null and b/docs/site/dist/pagefind/fragment/en_fea9c38.pf_fragment differ diff --git a/docs/site/dist/pagefind/index/en_3959ea1.pf_index b/docs/site/dist/pagefind/index/en_3959ea1.pf_index deleted file mode 100644 index f2bf0d9..0000000 Binary files a/docs/site/dist/pagefind/index/en_3959ea1.pf_index and /dev/null differ diff --git a/docs/site/dist/pagefind/index/en_d012a2c.pf_index b/docs/site/dist/pagefind/index/en_d012a2c.pf_index new file mode 100644 index 0000000..a92a207 Binary files /dev/null and b/docs/site/dist/pagefind/index/en_d012a2c.pf_index differ diff --git a/docs/site/dist/pagefind/pagefind-entry.json b/docs/site/dist/pagefind/pagefind-entry.json index ed3e722..b6fec30 100644 --- a/docs/site/dist/pagefind/pagefind-entry.json +++ b/docs/site/dist/pagefind/pagefind-entry.json @@ -1 +1 @@ -{"version":"1.5.2","languages":{"en":{"hash":"en_c7941c6d99","wasm":"en","page_count":12}},"include_characters":["_","‿","⁀","⁔","︳","︴","﹍","﹎","﹏","_"]} \ No newline at end of file +{"version":"1.5.2","languages":{"en":{"hash":"en_be5ced3c43","wasm":"en","page_count":12}},"include_characters":["_","‿","⁀","⁔","︳","︴","﹍","﹎","﹏","_"]} \ No newline at end of file diff --git a/docs/site/dist/pagefind/pagefind.en_be5ced3c43.pf_meta b/docs/site/dist/pagefind/pagefind.en_be5ced3c43.pf_meta new file mode 100644 index 0000000..97726d0 Binary files /dev/null and b/docs/site/dist/pagefind/pagefind.en_be5ced3c43.pf_meta differ diff --git a/docs/site/dist/pagefind/pagefind.en_c7941c6d99.pf_meta b/docs/site/dist/pagefind/pagefind.en_c7941c6d99.pf_meta deleted file mode 100644 index d838345..0000000 Binary files a/docs/site/dist/pagefind/pagefind.en_c7941c6d99.pf_meta and /dev/null differ diff --git a/docs/site/dist/reference/architecture/index.html b/docs/site/dist/reference/architecture/index.html index a5302e0..be2e363 100644 --- a/docs/site/dist/reference/architecture/index.html +++ b/docs/site/dist/reference/architecture/index.html @@ -24,7 +24,7 @@ }, }; })(); -Skip to content
Skip to content
Skip to content
Skip to content
Skip to content
Skip to content

Language tools

31 request families indexed

+

Language tools

Complete capability index

The server speaks standard LSP over stdio. Features are derived from one in-memory document overlay, semantic model, include graph, and workspace index.

@@ -147,7 +147,7 @@ - + @@ -209,6 +209,11 @@ + + + + +
Go to definition textDocument/definitionResolves local, external, include, and define targetsResolves local, external, include, macro-define, and bind targets
Go to typecallHierarchy/outgoingCalls Lists calls or instantiated units
Design hierarchylucisv/moduleHierarchyReturns the instance-oriented snapshot used by the VS Code hierarchy sidebar
@@ -275,8 +280,8 @@ Instantiate module -completion / commands -Builds an instance from an indexed module interface +inline completion / lucisv.instantiate +Builds an instance from an indexed module interface, including in clients without ghost text Apply workspace edit @@ -324,4 +329,4 @@

The server handles didOpen, incremental didChange, didSave, didClose, watched-file changes, configuration changes, cancellation, shutdown, and exit. It dynamically registers file watchers, emits work-done progress while building large indexes, coalesces code-lens refreshes, and promotes open-buffer overlays into the workspace without waiting for disk writes.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/site/dist/reference/rules/index.html b/docs/site/dist/reference/rules/index.html index afede91..76c426b 100644 --- a/docs/site/dist/reference/rules/index.html +++ b/docs/site/dist/reference/rules/index.html @@ -1,4 +1,4 @@ -Lint rules | lucisvSkip to content
Skip to content

Lint rules

16 rules indexed

+

Lint rules

17 rules indexed

+

A rule marked on (project) runs by default only where lucisv can see the other files of your project — lucisv check <dir>, or the language server. Over a single file or a stdin buffer it is off and must be --selected, because its one false-positive mode is a use in another file. Turn any rule off with --ignore, with ignore under [lint] in lucisv.toml, or with lucisv.lint.ignore in your editor.

@@ -100,6 +101,12 @@ + + + + + + @@ -125,7 +132,7 @@ - + @@ -155,13 +162,13 @@ - + - + @@ -185,6 +192,8 @@

Reports blocking assignments inside always_ff. Immediate updates can create simulation/synthesis mismatches between registers assigned in one clocked block.

Reports case, casex, and casez statements without default, including unique and priority cases. The correct default action is a design decision.

+ +

Reports a lone ; where an item belongs — after endgenerate, after a generate block’s end, after endmodule, or anywhere else in a module, package, interface, program or class body. It is a legal null item (IEEE 1800-2017 A.1.4) that does nothing, almost always a semicolon carried over from a statement context; slang reports the same shape as -Wempty-member. Its safe fix deletes the ;, and the line with it when nothing else stood there; a comment on that line is kept.

Requires typedef enum names to match lower_snake_case ending in _e or _t. Anonymous enums and escaped identifiers are exempt.

@@ -194,7 +203,7 @@

Requires lower_snake_case module names. It is opt-in because naming policy is project-specific; escaped identifiers are exempt.

-

Reports SystemVerilog variables written by multiple sources. Nets are intentionally excluded, as are partial writes, generated alternatives, preprocessor alternatives, initializers, initial blocks, and function/task bodies where the analysis cannot prove a conflict.

+

Reports SystemVerilog variables written by multiple sources. Nets are intentionally excluded, as are partial writes, generated alternatives, preprocessor alternatives, initializers, initial blocks, and function/task bodies where the analysis cannot prove a conflict. It never consults the project census — nothing another file does can take an in-file driver away — but it shares the other two rules’ default: on wherever there is a project, off for a single file.

Reports tabs outside string literals. Its safe fix expands each tab using the active indentation width.

@@ -204,11 +213,11 @@

Requires typedef struct and typedef union names to use lower_snake_case ending in _t. Anonymous aggregates and escaped identifiers are exempt.

-

Reports internal signals that are read but never driven. It stays silent for ports, instance/gate connections, task arguments, macros, directives, verbatim or unparsed regions, wildcard connections, and declarations with initializers to avoid false positives.

+

Reports internal signals that are read but never driven. It stays silent for ports, instance/gate connections, task arguments, macros, directives, verbatim or unparsed regions, wildcard connections, and declarations with initializers to avoid false positives — and, over a project, for any name another file writes down, which may be driving it through a hierarchical assignment or a testbench force.

-

Reports internal nets or variables with no use. Ports, intentionally unused names, and names mentioned anywhere in raw tokens are excluded. The rule is opt-in because cross-file hierarchy can establish uses a single-file analysis cannot see.

+

Reports internal nets or variables with no use. Ports, intentionally unused names, and names mentioned anywhere in raw tokens are excluded — and, over a project, any name another file writes down, since cross-file hierarchy can establish uses a single-file analysis cannot see. That is why the rule runs by default over a directory and stays off for one file.

Reports malformed, unknown, or ineffective waiver comments when their target rule is enabled. A waiver for a disabled rule is not judged.

Reports reg in .sv and .svh files and recommends logic. Verilog .v/.vh files and unnamed stdin are exempt; wire remains valid and is never flagged.

- \ No newline at end of file + \ No newline at end of file diff --git a/docs/site/dist/reference/rust-api/index.html b/docs/site/dist/reference/rust-api/index.html index a4c9760..739fa03 100644 --- a/docs/site/dist/reference/rust-api/index.html +++ b/docs/site/dist/reference/rust-api/index.html @@ -24,7 +24,7 @@ }, }; })(); -Skip to content
Skip to content
Skip to content
Skip to content

Configuration

Place lucisv.toml or .lucisv.toml beside your project. Every key is optional.

-
lucisv.toml
line-length = 100
indent = 2
exclude = ["*_gen.sv", "build"]
filelist = "rtl/files.f"
+
lucisv.toml
line-length = 100
indent = 2
exclude = ["*_gen.sv", "build"]
filelist = "rtl/files.f"
+
[lint]
select = ["no-tabs", "unused-signal"]
ignore = ["module-filename"]
Give every case a default branch
empty-itemonsafeDrop a ; that stands where an item belongs
enum-name-style on —
multiply-drivenoffon (project) — Give variables one driver
undriven-netoffon (project) — Drive signals that are read
unused-signaloffon (project) — Detect unreferenced internal signals
@@ -112,6 +113,20 @@ + + + + + + + + + + + + + +
EDA .f path server index
[lint].selectstring arraydefaultslint rule namesCLI and server
[lint].ignorestring array[]lint rule namesCLI and server

filelist does not change what a bare lucisv rtl/ formats. The CLI reads a filelist only when -f names one.

@@ -125,7 +140,7 @@

The first file wins; configuration files are never merged. CLI options override file values per setting. Exclusions are the exception: configuration and CLI patterns are combined.

-

Unknown keys, out-of-range numbers, invalid values, tables, multiline arrays, and string escapes are rejected. A bad configuration is an error for the CLI, preventing partial writes. In an editor, the server reports the problem and falls back to the next available setting.

+

Unknown keys, out-of-range numbers, invalid values, tables other than [lint], multiline arrays, and string escapes are rejected. A bad configuration is an error for the CLI, preventing partial writes. In an editor, the server reports the problem and falls back to the next available setting.

@@ -142,6 +157,11 @@ + + + + + @@ -152,6 +172,11 @@ + + + + + @@ -176,9 +201,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Executable name or absolute path
lucisv.verbosefalseLog request and lifecycle timing; changing it restarts the server
lucisv.rainbowBeginEnd true Color matching block delimiters by depthOffer structural ghost-text completions
lucisv.inlineInstantiationtrueOffer indexed module instantiation ghost text
lucisv.formatOnSave false Server-driven save formatting for clients that need it"" Filelist that defines the workspace index
lucisv.index.scopefolderIndex the configured folder or widen to the workspace
lucisv.index.scopeDepth2Parent-directory depth used by folder-scope indexing
lucisv.index.maxFileSize1048576Largest file, in bytes, admitted to the workspace index
lucisv.index.logFilestrueLog files skipped or rejected during indexing
lucisv.index.persisttrueReuse the disposable persistent semantic index
lucisv.index.cachePath""Override the persistent index location
lucisv.largeFile.threshold4194304Switch oversized open buffers to large-file mode
lucisv.lint.select[]Replace the default lint rule set
lucisv.lint.ignore[]Remove rules from the selected or default set

Project configuration takes priority over editor settings. For regular VS Code format-on-save, use editor.formatOnSave; do not also enable lucisv.formatOnSave.

Successful “already formatted” verdicts are cached under .lucisv_cache/. Entries are keyed by file, content hash, line length, indentation, and lucisv version. Files that would change or fail are never cached. Use --no-cache to disable reads and writes or --cache-dir to relocate the store.

-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/site/dist/start/quick-start/index.html b/docs/site/dist/start/quick-start/index.html index 2ca147f..d4e9bd4 100644 --- a/docs/site/dist/start/quick-start/index.html +++ b/docs/site/dist/start/quick-start/index.html @@ -24,7 +24,7 @@ }, }; })(); -Skip to content
Skip to content