run.sh 618 Bytes
Newer Older
1 2
#!/bin/bash

3
set -x
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
test -f $1.sv
trap "echo FAIL > $1.status" ERR

while read t; do
	{
		echo "[options]"
		echo "mode bmc"
		echo "depth 32"
		echo "expect $(echo $t | cut -f1 -d_)"
		echo ""
		echo "[engines]"
		echo "smtbmc yices"
		echo ""
		echo "[script]"
		echo "verific -sv $1.sv"
19
		echo "verific -import $t"
20 21 22 23 24 25
		echo "prep -nordff -top $t"
		echo ""
		echo "[files]"
		echo "$1.sv"
	} > $1.$t.sby
	sby -f $1.$t.sby
26 27 28 29 30
	if [ $? != 0 ] ; then
    	echo FAIL > ${1}_${2}.status
    	touch .stamp
    	exit 0
	fi
31 32 33
done < <( egrep '^module (pass|fail)_[0-9][0-9]' $1.sv | gawk '{ print $2; }'; )

echo PASS > $1.status