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}"
|
|
|
|
|
2022-02-05 05:07:07 +00:00
|
|
|
#vsim -c <<!
|
|
|
|
#do wally-buildroot-batch.do $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT
|
|
|
|
#!
|
|
|
|
# *** change config from buildroot to rv64gc
|
2021-04-17 03:27:29 +00:00
|
|
|
vsim -c <<!
|
2022-02-05 05:07:07 +00:00
|
|
|
do wally-pipelined-batch.do buildroot buildroot $INSTR_LIMIT $INSTR_WAVEON $CHECKPOINT
|
|
|
|
!
|