From 8fb42ce39ad5392557b281fa3d607bb7c6d79c5e Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 19 Apr 2020 11:54:42 +0200 Subject: testsuite/synth: add tests for #1239 --- testsuite/synth/issue1239/repro2.vhdl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 testsuite/synth/issue1239/repro2.vhdl (limited to 'testsuite/synth/issue1239/repro2.vhdl') diff --git a/testsuite/synth/issue1239/repro2.vhdl b/testsuite/synth/issue1239/repro2.vhdl new file mode 100644 index 000000000..53e77ea9a --- /dev/null +++ b/testsuite/synth/issue1239/repro2.vhdl @@ -0,0 +1,18 @@ +library ieee; +use ieee.std_logic_1164.all; + +entity repro2 is + generic ( + constant DIN_WIDTH : positive := 8; + constant F_SIZE : positive := 2 + ); +end repro2; + +architecture Behav of repro2 is + type SLIDING_WINDOW is array (0 to F_SIZE-1, 0 to F_SIZE-1) + of STD_LOGIC_VECTOR(DIN_WIDTH- 1 downto 0); + signal WINDOW: SLIDING_WINDOW; +begin + WINDOW <=(WINDOW 'range=> (WINDOW 'range=> (WINDOW 'range=>'0'))); +end Behav; + -- cgit v1.2.3