blob: 25a17bc9e36259a37a6ee4e0d2df0d62316462c3 [file] [log] [blame]
#!/bin/csh -f
# RTL/GL
set sim = RTL
#set sim = GL
# Simulator
#set simulator = Icarus
set simulator = Questa
# Compile option
set compopt =
set compopt = "$compopt +define+PRINTF_COND=0" # 0 = stop instruction trace
# Simulation option
set simopt =
#set simopt = "$simopt +waveform"
set simopt = "$simopt +pc_monitor"
#set simopt = "$simopt +max_cycle=200000"
if ($sim == RTL) then
make SIMULATOR=$simulator SIM=$sim USER_COMPOPT="$compopt" USER_SIMOPT="$simopt" |& spike-dasm | egrep -v '\[0\] pc=' | tee sim_${sim}.log
else
make SIMULATOR=$simulator SIM=$sim USER_COMPOPT="$compopt" USER_SIMOPT="$simopt" |& tee sim_${sim}.log
endif