aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/synth/issue1169/bug.vhdl
blob: d843b770e3701b50e6b447fe5f4ed85d30e7c337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
library IEEE;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;

entity bug is
	port(
		dummy : in std_ulogic
	);
end bug;

architecture behav of bug is
	constant VALUES_END   : positive := 1;
	constant ARRAY_LENGTH : positive := 16;
	
	subtype value_t is integer range 0 to VALUES_END-1;
	type array_t is array (0 to ARRAY_LENGTH-1) of value_t;

	signal idx   : integer range 0 to ARRAY_LENGTH-1;
	signal value : value_t;
	
	signal array_v : array_t;
begin
	array_v(idx) <= value;
end architecture;