diff options
author | Tristan Gingold <tgingold@free.fr> | 2019-09-25 07:37:33 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2019-09-25 07:37:33 +0200 |
commit | 3fca9501e16d90cc268b641ae165a22afdacf5e8 (patch) | |
tree | 811bb0b58bdb6f6a2ff18d4c09d48fdc91894fe2 /testsuite/synth/issue937/enot.vhdl | |
parent | 28802d1a7a775d8c54921965b6793dfd9dafdf3c (diff) | |
download | ghdl-3fca9501e16d90cc268b641ae165a22afdacf5e8.tar.gz ghdl-3fca9501e16d90cc268b641ae165a22afdacf5e8.tar.bz2 ghdl-3fca9501e16d90cc268b641ae165a22afdacf5e8.zip |
testsuite/synth: add testcase for #937
Diffstat (limited to 'testsuite/synth/issue937/enot.vhdl')
-rw-r--r-- | testsuite/synth/issue937/enot.vhdl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/synth/issue937/enot.vhdl b/testsuite/synth/issue937/enot.vhdl new file mode 100644 index 000000000..ea583d4ed --- /dev/null +++ b/testsuite/synth/issue937/enot.vhdl @@ -0,0 +1,20 @@ +entity enot is + port ( + i : in bit; + x : in boolean; + o : out bit + ); +end entity; + +architecture a of enot is +begin + process(i, x) + begin + if not x then + o <= i; + else + o <= '0'; + end if; + end process; +end; + |