Sim tool profiles

From babyworm/rtl-agent-team · View interactive version

Sim tool profiles is an AI agent skill from the GitHub repository babyworm/rtl-agent-team. Internal reference: sim tool profiles (agent-loaded; do not invoke).

How to use this skill

Skill file

Simulation Tool Profiles

Common Contract

Open-Source Baseline

Commercial Profiles

Invocation Reference

The exact binaries and switches run_sim.sh uses per simulator. These are the

shapes each vendor documents; changing them silently breaks the stage.

| Simulator | Compile | Elaborate | Run |

|-----------|---------|-----------|-----|

| verilator | verilator --binary (or --cc) | — | generated executable |

| iverilog | iverilog -g2012 | — | vvp |

| vcs | vcs -full64 -sverilog +v2k -o <exe> | (compile produces simv) | <exe> |

| xrun | xrun -compile -sv -xmlibdirname <lib> | xrun -elaborate -sv -xmlibdirname <lib> -top <tb> | xrun -R -xmlibdirname <lib> |

| questa | vlib work + vlog -sv -work work | vopt +acc -work work <tb> -o <tb>_opt | vsim -c -work work <tb>_opt -do "..." |

Xcelium gotcha: -compile only parses and analyses — it does not write a

snapshot. -R reinvokes an existing snapshot without recompiling or

re-elaborating, so the -elaborate step is what makes -R work at all. All three

steps must name the same -xmlibdirname.

UVM Coverage Collection (Commercial Only)

Code coverage must be enabled at both compile and runtime for all commercial simulators.

| Simulator | Compile Flag | Runtime Flag | Coverage DB | Merge Tool |

|-----------|-------------|-------------|-------------|------------|

| VCS | -cm line+cond+fsm+tgl+branch | -cm line+cond+fsm+tgl+branch -cm_dir <dir>.vdb | .vdb directory | urg -dir *.vdb -format both |

| Xcelium | -coverage all | -coverage all -covworkdir <dir>/cov_work -covscope tb_top | cov_work/ directory | imc -exec merge.tcl |

| Questa | +cover=bcestf (at vlog) | -coverage (at vsim) + -do "coverage save -onexit <file>.ucdb" | .ucdb file | vcover merge out.ucdb *.ucdb |

Questa gotcha: +cover=bcestf at vlog compile is mandatory — runtime -coverage alone collects nothing.

UVM regression runner: {plugin_root}/skills/rtl-p5s-uvm-verify/scripts/run_regression_uvm.sh ({plugin_root} = plugin root from .rat/state/spawn-context.json)

Normalized Result Fields

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.