diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-05-06 08:22:10 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-05-06 18:38:26 +0200 |
commit | fa6147b879add9ad4db0f2bc8d4c47f7fd92f41c (patch) | |
tree | a9ca346ab1951833df6e8e09615e54346f0305f2 /testsuite/synth/issue1273/tb_assert3.vhdl | |
parent | 3b70e630543da3d42fc0cda37389312d8910e0ab (diff) | |
download | ghdl-fa6147b879add9ad4db0f2bc8d4c47f7fd92f41c.tar.gz ghdl-fa6147b879add9ad4db0f2bc8d4c47f7fd92f41c.tar.bz2 ghdl-fa6147b879add9ad4db0f2bc8d4c47f7fd92f41c.zip |
testsuite/synth: add more tests for #1273
Diffstat (limited to 'testsuite/synth/issue1273/tb_assert3.vhdl')
-rw-r--r-- | testsuite/synth/issue1273/tb_assert3.vhdl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/testsuite/synth/issue1273/tb_assert3.vhdl b/testsuite/synth/issue1273/tb_assert3.vhdl index 2ad3d0572..543898ef1 100644 --- a/testsuite/synth/issue1273/tb_assert3.vhdl +++ b/testsuite/synth/issue1273/tb_assert3.vhdl @@ -1,4 +1,5 @@ entity tb_assert3 is + generic (with_err : boolean := False); end tb_assert3; library ieee; @@ -22,10 +23,12 @@ begin assert res = 5 severity failure; -- Trigger an error. - en <= '1'; - v <= b"0000_0010"; - wait for 1 ns; - assert res = 1 severity failure; + if with_err then + en <= '1'; + v <= b"0000_0010"; + wait for 1 ns; + assert res = 1 severity failure; + end if; wait; end process; |