| name | gf-sim | |||
|---|---|---|---|---|
| description | Run sim | |||
| argument-hint | <testbench> [dut-files...] | |||
| allowed-tools |
|
Compile and run a SystemVerilog simulation using Verilator.
Note: The
/gforchestrator usesskills/gf-siminternally, which provides structured output (GATEFLOW-RESULT blocks) for automated processing. This command version is for direct user invocation and provides human-friendly output.
-
Identify files:
- Testbench file (usually
*_tb.sv) - DUT files (modules being tested)
- If not specified, auto-detect from testbench includes
- Testbench file (usually
-
Compile with Verilator:
verilator --binary -Wall <dut-files> <testbench>
-
Run simulation:
./obj_dir/V<top_module>
-
Check results:
- Look for $display output
- Check for $error or $fatal calls
- Verify $finish was reached
-
Report outcome:
- PASS: Simulation completed without errors
- FAIL: Errors detected, show relevant output
- Unresolved module: Missing file in compilation
- Multiple tops: Specify --top-module