Skip to content

CLI tools

Standalone binaries for scripts and CI, next to the lazyverilog-lsp editor server. Each reads lazyverilog.toml by walking up from the target file, like the server does. They are built from source:

bash
cmake -B build
cmake --build build -j$(nproc) --target lazyverilog-fmt lazyverilog-lint lazyverilog-rtltree
ToolDoesReference
lazyverilog-fmtFormats a file to stdout, or in place with -iFormatter CLI
lazyverilog-lintLints a file, or every file in a -f filelistLinter CLI
lazyverilog-rtltreePrints the module hierarchy, or --reverse for parentsRTL tree CLI
bash
./build/lazyverilog-fmt -i rtl/top.sv
./build/lazyverilog-lint -f rtl/vcode.f
./build/lazyverilog-rtltree rtl/top.sv

Startup banner

On a terminal, each binary prints a logo and its version to stderr. Piped, redirected, and editor-started runs print nothing, so stdout is never affected. Set LAZYVERILOG_NO_BANNER=1 to hide it, LAZYVERILOG_FORCE_BANNER=1 to print it in CI logs, or NO_COLOR=1 for no colors. --version and --help never print it.

Released under the MIT License. Themed with Catppuccin.