aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/fsm01/testsuite.sh
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-06-29 18:43:12 +0200
committerTristan Gingold <tgingold@free.fr>2019-06-29 18:43:12 +0200
commit71cd14f43e9741a4a62a8dc3be6e3d55d3940db8 (patch)
tree5cbd1779090a151786d44d522c98bee1c660f523 /testsuite/synth/fsm01/testsuite.sh
parentc395d7ba1c0982ffd34dcb76fb7bdb65760a9a6e (diff)
downloadghdl-71cd14f43e9741a4a62a8dc3be6e3d55d3940db8.tar.gz
ghdl-71cd14f43e9741a4a62a8dc3be6e3d55d3940db8.tar.bz2
ghdl-71cd14f43e9741a4a62a8dc3be6e3d55d3940db8.zip
testsuite: add synth/fsm01
Diffstat (limited to 'testsuite/synth/fsm01/testsuite.sh')
-rwxr-xr-xtestsuite/synth/fsm01/testsuite.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/synth/fsm01/testsuite.sh b/testsuite/synth/fsm01/testsuite.sh
new file mode 100755
index 000000000..b9a451fa2
--- /dev/null
+++ b/testsuite/synth/fsm01/testsuite.sh
@@ -0,0 +1,16 @@
+#! /bin/sh
+
+. ../../testenv.sh
+
+for t in fsm_4s; do
+ analyze $t.vhdl tb_$t.vhdl
+ elab_simulate tb_$t
+ clean
+
+ synth $t.vhdl -e $t > syn_$t.vhdl
+ analyze syn_$t.vhdl tb_$t.vhdl
+ elab_simulate tb_$t
+ clean
+done
+
+echo "Test successful"