diff options
Diffstat (limited to 'testsuite/synth/issue1909/reproducebug.vhdl')
-rw-r--r-- | testsuite/synth/issue1909/reproducebug.vhdl | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testsuite/synth/issue1909/reproducebug.vhdl b/testsuite/synth/issue1909/reproducebug.vhdl new file mode 100644 index 000000000..60655b0eb --- /dev/null +++ b/testsuite/synth/issue1909/reproducebug.vhdl @@ -0,0 +1,27 @@ +library ieee; + use ieee.std_logic_1164.all; + use ieee.numeric_std.all; + +entity ReproduceBug is + port( + clk : in std_logic; + input : in unsigned(7 downto 0); + output : out unsigned(7 downto 0) + ); +end ReproduceBug; + +architecture rtl of ReproduceBug is + -- only to get rid of "latch inferrence" warning + -- signal outputLcl : unsigned(7 downto 0) := (others => '0'); +begin + + Main: process(clk) + begin + if rising_edge(Clk) then + output <= input ror 1; -- can also be 'rol' + end if; + end process; + +-- output <= outputLcl; + +end rtl; |