@veriflow/cli
v1.6.1
Published
Node.js CLI for Vik-VeriFlow Verilog design workflows.
Readme
Vik-VeriFlow CLI
The maintained Node.js command-line interface for Vik-VeriFlow Verilog design workflows. It shares HDL analysis, simulation, and waveform components with the VS Code extension.
Install
npm install --global @veriflow/cli
veriflow --helpNode.js 24.14.1 or newer is required. The package includes the Electron waveform host, so the installed size is larger than a typical command-line package. Simulation and VCD viewing work without installing a separate HDL simulator or waveform application: new projects use the bundled Icarus Verilog WebAssembly runtime and the built-in waveform viewer by default.
The bundled simulator targets Verilog-2005. To use a local tool, select
custom in the project configuration and provide command templates. Existing
tool commands can be used as templates:
Icarus Verilog: iverilog -g2005 -o "{output}" {files}; vvp "{output}"
VCS: vcs -full64 -o "{output}" {files}; ./"{output}"
XSim: xvlog {files} && xelab {top_module} -snapshot "{output}"; xsim "{output}" --runall
Surfer: surfer "{wave_file}"
GTKWave: gtkwave "{wave_file}"The command templates use {files}, {output}, {top_module}, and
{wave_file} placeholders. The VS Code extension uses the same placeholder
syntax.
The bundled Icarus Verilog WebAssembly runtime is distributed under
GPL-2.0-or-later. See the
license and corresponding-source details.
See the project repository for configuration and command documentation: https://github.com/AlexMercer12138/Vik-VeriFlow
Simulation Tasks
One Simulation Task (.st) describes one graphical Testbench with HDL/AD
sources, connections, parameter overrides and Clock/Reset/Stimulus presets:
veriflow task validate simulation.st
veriflow task run simulation.st
veriflow task run simulation.st --project project.jsonCreate and save simulation.st in the VS Code Simulation Task editor first.
validate resolves exact source references and generates the TB for validation
without executing HDL. run invokes the selected backend once, explicitly
selecting the generated TB top. Both use the same generator as the VS Code
Generate Testbench action. Relative source paths are anchored at the .st file.
The default backend is builtin. --project supplies the project's simulator,
macro definitions, library directories and interface protocol configuration.
A custom backend requires both compile and run commands in that project.
Each invocation reads current inputs. Generated compilation files are temporary and removed after execution; a produced waveform remains at the temporary path printed by the command. The task and previously exported HDL are not rewritten. Simulation completion means the process completed successfully.
Exit status is 0 for success, 1 for task/compile/run errors or cancellation, and 2 for invalid command arguments. SIGINT cancels the active run. This interface has no case selection, scenario workers, compile cache or JSON/JUnit report options. Legacy task documents with cases/assets/verification are rejected.
