I would like to be able to parameterize an I/O port for a component. The problem is that the port in question is an array. I need to be able to vary the number of terms in the array (not the size of the terms).
Is there a way to do this?
(Apart from using a very large bus instead of an array.)
I know the code below is incorrect but it illistrates what I want to do:
(In Bold)
Eg:
COMPONENT node_en IS
GENERIC(n: positive);
PORT(node_IO: INOUT IS ARRAY (n - 1 DOWNTO 0) OF BUS_typ);
END COMPONENT node_en;
Is there a way to do this?
(Apart from using a very large bus instead of an array.)
I know the code below is incorrect but it illistrates what I want to do:
(In Bold)
Eg:
COMPONENT node_en IS
GENERIC(n: positive);
PORT(node_IO: INOUT IS ARRAY (n - 1 DOWNTO 0) OF BUS_typ);
END COMPONENT node_en;