diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-08-20 04:55:06 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-08-20 04:55:06 +0200 |
commit | b1be4a3eb37cde5c744493d3c9da5ce3787d428b (patch) | |
tree | f6a53db75827dbb6cabd01a758cb7d4dc5d7ed88 /testsuite/synth/psl02 | |
parent | 47b4650272ce425223da826b0de5bb7286036168 (diff) | |
download | ghdl-b1be4a3eb37cde5c744493d3c9da5ce3787d428b.tar.gz ghdl-b1be4a3eb37cde5c744493d3c9da5ce3787d428b.tar.bz2 ghdl-b1be4a3eb37cde5c744493d3c9da5ce3787d428b.zip |
testsuite/synth: add a test for assume directive in verification units.
Diffstat (limited to 'testsuite/synth/psl02')
-rwxr-xr-x | testsuite/synth/psl02/testsuite.sh | 7 | ||||
-rw-r--r-- | testsuite/synth/psl02/verif2.vhdl | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/testsuite/synth/psl02/testsuite.sh b/testsuite/synth/psl02/testsuite.sh index 0e5929ed9..53a6de2d8 100755 --- a/testsuite/synth/psl02/testsuite.sh +++ b/testsuite/synth/psl02/testsuite.sh @@ -7,8 +7,11 @@ GHDL_STD_FLAGS=--std=08 synth assert1.vhdl -e assert1 > syn_assert1.vhdl analyze syn_assert1.vhdl -synth assert2.vhdl verif1.vhdl -e assert2 > syn_assert2.vhdl -analyze syn_assert2.vhdl +synth assert2.vhdl verif1.vhdl -e assert2 > syn_assert21.vhdl +analyze syn_assert21.vhdl + +synth assert2.vhdl verif2.vhdl -e assert2 > syn_assert22.vhdl +analyze syn_assert22.vhdl clean diff --git a/testsuite/synth/psl02/verif2.vhdl b/testsuite/synth/psl02/verif2.vhdl new file mode 100644 index 000000000..d9b68e28c --- /dev/null +++ b/testsuite/synth/psl02/verif2.vhdl @@ -0,0 +1,6 @@ +vunit verif2 (assert2) +{ + default clock is rising_edge(clk); + assume always cnt < 10; + assert always cnt /= 5 abort rst; +} |