2017-08-28 08:21:05 +00:00
|
|
|
NAME=`basename $0`
|
|
|
|
|
2018-04-06 08:59:35 +00:00
|
|
|
if [[ ${SIMULATOR} != "modelsim" ]]; then
|
2017-08-28 08:21:05 +00:00
|
|
|
|
2018-04-06 08:59:35 +00:00
|
|
|
#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
|