axi_dmac: added ModelSim support to run_tb.sh

Modified run_tb.sh to work with Modelsim if the SIMULATOR variable is set to
"modelsim"
main
Laszlo Nagy 2018-04-06 09:59:35 +01:00 committed by Lars-Peter Clausen
parent ee4932ecee
commit 5c2e10eca5
1 changed files with 18 additions and 5 deletions

View File

@ -1,8 +1,21 @@
NAME=`basename $0`
mkdir -p run
mkdir -p vcd
iverilog -I.. ${SOURCE} -o run/run_${NAME} $1 || exit 1
if [[ ${SIMULATOR} != "modelsim" ]]; then
cd vcd
../run/run_${NAME}
#Icarus flow
mkdir -p run
mkdir -p vcd
iverilog -o run/run_${NAME} -I.. ${SOURCE} $1 || exit 1
cd vcd
../run/run_${NAME}
else
# ModelSim flow
vlib work
vlog ${SOURCE} || exit 1
vsim "dmac_"${NAME} -do "add log /* -r; run -a" -gui || exit 1
fi