2021-10-25 19:25:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Defaults
|
|
|
|
INSTR_LIMIT=0
|
|
|
|
INSTR_WAVEON=1
|
|
|
|
CHECKPOINT=0
|
|
|
|
|
|
|
|
# Arg Parsing
|
|
|
|
for i in "$@"; do
|
|
|
|
case $i in
|
|
|
|
--INSTR_LIMIT=*)
|
|
|
|
INSTR_LIMIT="${i#*=}"
|
|
|
|
shift # past argument=value
|
|
|
|
;;
|
|
|
|
--INSTR_WAVEON=*)
|
|
|
|
INSTR_WAVEON="${i#*=}"
|
|
|
|
shift # past argument=value
|
|
|
|
;;
|
|
|
|
--CHECKPOINT=*)
|
|
|
|
CHECKPOINT="${i#*=}"
|
|
|
|
shift # past argument=value
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
# unknown option
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "INSTR_LIMIT = ${INSTR_LIMIT}"
|
|
|
|
echo "INSTR_WAVEON = ${INSTR_WAVEON}"
|
|
|
|
echo "CHECKPOINT = ${CHECKPOINT}"
|
|
|
|
|
2023-02-04 12:38:41 +00:00
|
|
|
vsim -do "do ./wally.do buildroot buildroot $RISCV $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT"
|