CLI Reference
Synopsis
Section titled “Synopsis”nexsim [FILES]... --top <TOP> --run-time <RUN_TIME> [OPTIONS]Arguments
Section titled “Arguments”| Argument | Required | Description |
|---|---|---|
[FILES]... | Yes | One or more VHDL source files |
Options
Section titled “Options”| Flag | Short | Required | Default | Description |
|---|---|---|---|---|
--top <TOP> | -t | Yes | — | Top-level entity name |
--run-time <RUN_TIME> | -r | Yes | — | Simulation duration in nanoseconds |
--output <OUTPUT> | -o | No | output.vcd | Output VCD file path |
--open <VIEWER> | — | No | — | Open VCD after simulation |
--open values
Section titled “--open values”| Value | Description |
|---|---|
nexsim | Open in the nexsim viewer |
gtkwave | Open in GTKWave |
surfer | Open in Surfer |
Examples
Section titled “Examples”# Basic simulationnexsim alu.vhd alu_tb.vhd -t alu_tb -r 1000
# Custom output pathnexsim alu.vhd alu_tb.vhd -t alu_tb -r 1000 -o result.vcd
# Open with GTKWave after simulationnexsim alu.vhd alu_tb.vhd -t alu_tb -r 1000 --open gtkwave
# Multi-file hierarchical designnexsim pkg.vhd sub.vhd top.vhd top_tb.vhd -t top_tb -r 5000Output
Section titled “Output”On success:
Running VHDL simulation for 1000ns...Simulation completed successfully!VCD file generated: output.vcdOn failure, one of:
Compilation failed: <error details>Elaboration failed: <error details>Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Success |
| non-zero | Compilation, elaboration, or simulation error |