Forum Discussion
Altera_Forum
Honored Contributor
12 years agoOr for more flexibility you could define your own array type using an unconstrained array (VHDL-2008). Define it in a separate file like this:
type StdLogicVectorArray is array(integer range <>) of std_logic_vector; Include it in the library section library work;
use work.MyTypeFile.all; Now you are able to use it for your port like this: port(
input : in StdLogicVectorArray(0 to (2**sel_bits-1))((data_width-1 downto 0) downto 0);
(...)
); Hope that helps. Regards, Sören