I have the following type
type VECTOR_ARRAY_TYPE is array(natural range <>) of std_logic_vector;
which I use in my entity as follows:
entity mux is
generic (
sel_width : positive := 2;
data_width : positive := 3
);
port (
d : in VECTOR_ARRAY_TYPE(2**sel_width - 1 downto 0)(data_width - 1 downto 0);
sel : in std_logic_vector(sel_width - 1 downto 0);
q : out std_logic_vector(data_width - 1 downto 0)
);
end mux;
I am using Vivado 2017.1 and have marked the files as VHDL 2008. The files synthesize perfectly well, but I get the following error when trying to Run Simulation:
ERROR: [XSIM 43-4187] File "/project_dir/sources_1/new/alu_data.vhd" Line 42 : The "Vhdl 2008 Unconstrained Array Type as Subtype in Array Type Definition" is not supported yet for simulation.
The line number it is referring to is the type definition above.
Is it the case that the error is correct, and that unconstrained array types cannot be used for simulation? Or is there a setting somewhere which I need to change to configure the simulator differently?
Thanks.