diff options
Diffstat (limited to 'testsuite/synth/issue1043/ent.vhdl')
-rw-r--r-- | testsuite/synth/issue1043/ent.vhdl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/synth/issue1043/ent.vhdl b/testsuite/synth/issue1043/ent.vhdl new file mode 100644 index 000000000..0d0b83ea2 --- /dev/null +++ b/testsuite/synth/issue1043/ent.vhdl @@ -0,0 +1,22 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity ent is + generic ( + g : natural := 8 + ); + port ( + o1 : out std_logic; + o2 : out std_logic + ); +end; + +architecture a of ent is + constant x : real := real(g); + + constant a : natural := g; + constant y : real := real(a); +begin + o1 <= '1' when integer(x) = 8 else '0'; + o2 <= '1' when integer(y) = 8 else '0'; +end; |