cvw/wally-pipelined/testgen/privileged/run.sh
2021-03-30 16:58:46 -04:00

31 lines
697 B
Bash

#
# Written 1 Mar 2021 by Domenico Ottolia (dottolia@hmc.edu)
#
# See README.md in this directory for more info
#
clear
printf "\n\n#####\nStarting tests for $1\n#####\n\n"
if [[ "$2" != "-simonly" ]]
then
cd ~/riscv-wally/wally-pipelined/testgen/privileged
python3 "testgen-$1.py"
printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n"
if [[ "$2" != "-nosim" ]]
then
cd ~/riscv-wally/imperas-riscv-tests
make privileged
fi
fi
if [[ "$2" == "-sim" || "$2" == "-simonly" ]]
then
printf "\n\n\n#####\nSimulating!\n#####\n\n"
cd ~/riscv-wally/wally-pipelined/regression
vsim -do wally-privileged.do -c
fi
cd ~/riscv-wally/wally-pipelined
printf "\n\n\n#####\nDone!\n#####\n\n"