2013-01-05 11:13:26 +01:00
|
|
|
#!/bin/bash
|
2013-03-16 21:21:38 +01:00
|
|
|
|
2016-09-15 10:00:29 +02:00
|
|
|
OPTIND=1
|
|
|
|
|
seed="" # default to no seed specified
|
|
|
|
|
while getopts "S:" opt
|
|
|
|
|
do
|
|
|
|
|
case "$opt" in
|
|
|
|
|
S) arg="${OPTARG#"${OPTARG%%[![:space:]]*}"}" # remove leading space
|
|
|
|
|
seed="SEED=$arg" ;;
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
|
shift "$((OPTIND-1))"
|
|
|
|
|
|
2013-03-16 21:21:38 +01:00
|
|
|
# check for Icarus Verilog
|
2019-09-03 01:57:32 +02:00
|
|
|
if ! command -v iverilog > /dev/null ; then
|
2013-03-16 21:21:38 +01:00
|
|
|
echo "$0: Error: Icarus Verilog 'iverilog' not found."
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2019-06-05 00:47:54 +02:00
|
|
|
shopt -s nullglob
|
|
|
|
|
exec ${MAKE:-make} -f ../tools/autotest.mk $seed *.{sv,v}
|