diff options
Diffstat (limited to 'testsuite/gna/issue1120/test.vhdl')
-rw-r--r-- | testsuite/gna/issue1120/test.vhdl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/testsuite/gna/issue1120/test.vhdl b/testsuite/gna/issue1120/test.vhdl new file mode 100644 index 000000000..3cbb63e16 --- /dev/null +++ b/testsuite/gna/issue1120/test.vhdl @@ -0,0 +1,25 @@ +library ieee; +use ieee.std_logic_1164.all; +use ieee.numeric_std.all; + +entity test is + generic( + BITS : positive; + ZEROS : unsigned(BITS - 1 downto 0) := (others => '0')); + port( + min : in u_unsigned(BITS - 1 downto 0) := ZEROS); +end entity; + +architecture rtl of test is + +begin + + process + variable sum : unsigned(BITS - 2 downto 0); + variable carry : std_ulogic; + begin + (carry, sum) := min; + wait; + end process; + +end architecture; |