Skip to content

CLI Reference

nexsim [FILES]... --top <TOP> --run-time <RUN_TIME> [OPTIONS]
ArgumentRequiredDescription
[FILES]...YesOne or more VHDL source files
FlagShortRequiredDefaultDescription
--top <TOP>-tYesTop-level entity name
--run-time <RUN_TIME>-rYesSimulation duration in nanoseconds
--output <OUTPUT>-oNooutput.vcdOutput VCD file path
--open <VIEWER>NoOpen VCD after simulation
ValueDescription
nexsimOpen in the nexsim viewer
gtkwaveOpen in GTKWave
surferOpen in Surfer
Terminal window
# Basic simulation
nexsim alu.vhd alu_tb.vhd -t alu_tb -r 1000
# Custom output path
nexsim alu.vhd alu_tb.vhd -t alu_tb -r 1000 -o result.vcd
# Open with GTKWave after simulation
nexsim alu.vhd alu_tb.vhd -t alu_tb -r 1000 --open gtkwave
# Multi-file hierarchical design
nexsim pkg.vhd sub.vhd top.vhd top_tb.vhd -t top_tb -r 5000

On success:

Running VHDL simulation for 1000ns...
Simulation completed successfully!
VCD file generated: output.vcd

On failure, one of:

Compilation failed: <error details>
Elaboration failed: <error details>
CodeMeaning
0Success
non-zeroCompilation, elaboration, or simulation error