aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple_abc9/run-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_abc9/run-test.sh')
-rwxr-xr-xtests/simple_abc9/run-test.sh30
1 files changed, 26 insertions, 4 deletions
diff --git a/tests/simple_abc9/run-test.sh b/tests/simple_abc9/run-test.sh
index 650e42fca..4a5bf01a3 100755
--- a/tests/simple_abc9/run-test.sh
+++ b/tests/simple_abc9/run-test.sh
@@ -17,16 +17,38 @@ if ! command -v iverilog > /dev/null ; then
exit 1
fi
+for file in `ls *.v *.sv`; do
+ if [ ! -f "../simple/$file" -a "$file" != "abc9.v" ]; then
+ echo "Warning: $file is in simple_abc9/, but not in simple/"
+ backup="$file.bak"
+ if [ -f "$backup" ]; then
+ if cmp "$file" "$backup" > /dev/null; then
+ echo " => $backup already exists and matches; removing $file"
+ rm "$file"
+ else
+ echo " => $backup already exists but differs; leaving $file in place"
+ fi
+ else
+ echo " => moving $file to $backup"
+ mv -i "$file" "$backup"
+ fi
+ fi
+done
+
cp ../simple/*.v .
cp ../simple/*.sv .
+rm specify.v # bug 2675
DOLLAR='?'
-exec ${MAKE:-make} -f ../tools/autotest.mk $seed *.v *.sv EXTRA_FLAGS="-n 300 -p '\
+exec ${MAKE:-make} -f ../tools/autotest.mk $seed *.v *.sv EXTRA_FLAGS="-f \"verilog -noblackbox -specify\" -n 300 -p '\
+ read_verilog -icells -lib +/abc9_model.v; \
hierarchy; \
synth -run coarse; \
opt -full; \
techmap; \
- abc9 -lut 4 -box ../abc9.box; \
+ abc9 -lut 4; \
clean; \
- check -assert; \
+ check -assert * abc9_test037 %d; \
select -assert-none t:${DOLLAR}_NOT_ t:${DOLLAR}_AND_ %%; \
- setattr -mod -unset blackbox'"
+ setattr -mod -unset blackbox -unset whitebox'"
+
+# NOTE: Skip 'check -assert' on abc9_test037 because it intentionally has a combinatorial loop