3.4 Using Qrun (QuestaSim Only)

QuestaSim includes qrun, a unified utility that automatically compiles, optimizes and simulates in a single command.

# Single command handles compile + optimize + simulate
qrun rtl/dut.sv -top dut -do "run -all; quit -f"

# Mixed-language design
qrun rtl/*.sv rtl/*.vhd -top tb_top

# With optimization visibility
qrun rtl/dut.sv -top dut +acc=rn -debugdb
The qrun has the following features:
  • Automatically selects correct compiler (vlog/vcom) for file extension
  • Tracks timestamps to only recompile changed files
  • Maintains command history for quick re-runs