Skip to content

Commit

Permalink
axi_dmac: added ModelSim support to run_tb.sh
Browse files Browse the repository at this point in the history
Modified run_tb.sh to work with Modelsim if the SIMULATOR variable is set to
"modelsim"
  • Loading branch information
ronagyl authored and Lars-Peter Clausen committed May 3, 2018
1 parent ee4932e commit 5c2e10e
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions library/axi_dmac/tb/run_tb.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 5c2e10e

Please sign in to comment.