aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/fsm02/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-08-21 20:48:54 +0200
committerTristan Gingold <tgingold@free.fr>2019-08-27 07:51:46 +0200
commit7fc4bb760bae92af88e41cfd70e67a4393dafc12 (patch)
treee02d933f58d5773ec0db6b18f41cf8cb470e2ca0 /testsuite/synth/fsm02/testsuite.sh
parentf977ba0dd5b152e97619ecfe1d848d83f2e062ff (diff)
downloadghdl-7fc4bb760bae92af88e41cfd70e67a4393dafc12.tar.gz
ghdl-7fc4bb760bae92af88e41cfd70e67a4393dafc12.tar.bz2
ghdl-7fc4bb760bae92af88e41cfd70e67a4393dafc12.zip
testsuite/synth: add fsm02 test.
Diffstat (limited to 'testsuite/synth/fsm02/testsuite.sh')
-rwxr-xr-xtestsuite/synth/fsm02/testsuite.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/fsm02/testsuite.sh b/testsuite/synth/fsm02/testsuite.sh
new file mode 100755
index 000000000..6326874de
--- /dev/null
+++ b/testsuite/synth/fsm02/testsuite.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+for t in recv; do
+ analyze -fpsl $t.vhdl tb_$t.vhdl
+ elab_simulate tb_$t
+ clean
+
+ synth -fpsl $t.vhdl -e $t > syn_$t.vhdl
+ analyze syn_$t.vhdl tb_$t.vhdl
+ elab_simulate tb_$t
+ clean
+done
+
+echo "Test successful"