diff options
Diffstat (limited to 'testsuite/synth/issue1006/test.vhdl')
-rw-r--r-- | testsuite/synth/issue1006/test.vhdl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/synth/issue1006/test.vhdl b/testsuite/synth/issue1006/test.vhdl new file mode 100644 index 000000000..1473d3eb8 --- /dev/null +++ b/testsuite/synth/issue1006/test.vhdl @@ -0,0 +1,20 @@ +library ieee; +use ieee.std_logic_1164.all; + +library work; +use work.test_package.all; + +entity test is + generic( + MEMORY_SIZE : natural := 4096 + ); + port( + val_in : in std_logic_vector(63 downto 0) + ); +end entity test; + +architecture behaviour of test is + signal tmp : std_logic_vector(log2(MEMORY_SIZE) - 1 downto 0); +begin + tmp <= val_in(log2(MEMORY_SIZE) - 1 downto 0); +end architecture behaviour; |