runtest.sh 866 Bytes
Newer Older
Guillem's avatar
Guillem committed
1
2
#$1
TOP=../../..
GuillemCabo's avatar
GuillemCabo committed
3
4
RED='\033[7;31m'
NC='\033[0m' # No Color
Guillem's avatar
Guillem committed
5
6
7
      
vlib PMU_raw
vmap work $PWD/PMU_raw
GuillemCabo's avatar
GuillemCabo committed
8
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 $TOP/submodules/seu_ip/*.sv
Guillem's avatar
Guillem committed
9
10
11
12
vmake PMU_raw/ > Makefile

if [ -z "$1" ]
then
GuillemCabo's avatar
GuillemCabo committed
13
14
      printf "${RED}WARNING: Check if you want Fault Tolerance active or not${RED}${NC}\n"
      printf "${RED}To enable FT add -gFT=1 after vsim${RED}${NC}\n"
15
      vsim work.tb_PMU_raw -do "view wave -new" -do "do wave.do" -do "run -all"
Guillem's avatar
Guillem committed
16
else
GuillemCabo's avatar
GuillemCabo committed
17
18
19
20
      echo "#INFO# Test Default IP "
      vsim -gFT=0 work.tb_PMU_raw $1 -do "do save_wave.do"
      echo "#INFO# Test FT IP"
      vsim -gFT=1 work.tb_PMU_raw $1 -do "do save_wave.do"
Guillem's avatar
Guillem committed
21
fi