runtest.sh 503 Bytes
Newer Older
Guillem's avatar
Guillem committed
1
2
3
4
5
#$1
TOP=../../..
      
vlib PMU_raw
vmap work $PWD/PMU_raw
6
vlog +acc=rn +incdir+$TOP/hdl/ $TOP/hdl/PMU_raw.sv $TOP/submodules/MCCU/hdl/* $TOP/submodules/crossbar/hdl/*.sv $TOP/submodules/RDC/hdl/*.sv $TOP/submodules/overflow/*.sv $TOP/submodules/quota/*.sv  $TOP/submodules/counters/*.sv  tb_PMU_raw.sv ./colors.vh
Guillem's avatar
Guillem committed
7
8
9
10
vmake PMU_raw/ > Makefile

if [ -z "$1" ]
then
11
      vsim work.tb_PMU_raw -do "view wave -new" -do "do wave.do" -do "run -all"
Guillem's avatar
Guillem committed
12
13
14
else
      vsim work.tb_PMU_raw $1 -do "do save_wave.do"
fi