diff options
Diffstat (limited to 'testsuite/synth/snsuns01/testsuite.sh')
-rwxr-xr-x | testsuite/synth/snsuns01/testsuite.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/synth/snsuns01/testsuite.sh b/testsuite/synth/snsuns01/testsuite.sh new file mode 100755 index 000000000..453469303 --- /dev/null +++ b/testsuite/synth/snsuns01/testsuite.sh @@ -0,0 +1,25 @@ +#! /bin/sh + +. ../../testenv.sh + +GHDL_STD_FLAGS="-fsynopsys -fexplicit" + +# Compare opers. +for s in u s; do + for f in adds subs unaries muls cmplt cmple cmpgt cmpge cmpeq cmpne shrs; do + analyze $s$f.vhdl + analyze tb_$f.vhdl + elab_simulate tb_$f > $s$f.ref + + synth $s$f.vhdl -e > syn_$s$f.vhdl + analyze tb_$f.vhdl + elab_simulate tb_$f > $s$f.out + + diff --strip-trailing-cr $s$f.out $s$f.ref + done + + clean +done + + +echo "Test successful" |