Prompt file imported from Aeeonn/tilt-sand-fpga (
.github/prompts/questa-sim.prompt.md). Copyright stays with the author.
Questa Simulation — Run & Report
Run a Questa Intel FPGA Starter Edition simulation for the specified testbench and report PASS/FAIL results.
Steps
-
Resolve the testbench name — accept either
tb_fooorfoo; always look fortb_<name>.sv. -
Locate the do-script — find
sim/scripts/do_<name>.doorsim/scripts/tb_<name>.do. If no script exists, stop and ask before improvising a compile/simulate sequence. -
Locate the Questa installation — check for
vsim/vlogin PATH or common install paths:C:\intelFPGA_lite\*\questa_fse\win64\C:\intelFPGA_lite\*\modelsim_ase\win64\
-
Run the simulation from the project root:
vsim -c -do "sim/scripts/do_<name>.do"Use
-c(command-line / no GUI) unless the user explicitly asks for the waveform GUI. -
Parse the transcript (
transcriptin the project root) for:- Lines matching
PASS/FAIL/ERROR(case-insensitive) - The final summary line:
TB <module>: N/N PASSor*** FAIL *** - Any
$fatal,$error, or assertion failures - Simulation time at finish
- Lines matching
-
Present a result block:
Testbench : tb_<name> Do-script : sim/scripts/do_<name>.do Result : PASS (or FAIL — N failures) Sim time : X nsIf there are failures, list each one with its line/message from the transcript.
-
On failure:
- Show the failing check(s) and the mismatch (expected vs actual)
- Identify the likely RTL source location
- Propose a minimal fix candidate — do NOT implement it without user confirmation
-
Do not edit RTL as part of this prompt. Report only. If a fix is warranted, the user should invoke the FPGA HDL Steward agent for implementation.
