Hi guys. I just want to ask how am I gonna do a 2x2 matrix array in a separate VHDL entity block wherein the data of each cell are coming from a separate VHDL entity block instantiated twice? It's like I have a code for a header data then I instantiated the whole entity block twice then from a separate entity block, I'd like to make a matrix array of the data from the two instantiations. Any help?
What if I have 2 instantiations then both has PORT_ASSIGNMENT which is an array of integer and I want to use these two sets of arrays? How can I do that? Like I have PORT_ASSIGNMENT from Instantiation 1 then I have another PORT_ASSIGNMENT from Instantiation 2. Then I want to place these values in one array (in a separate entity block).
The ports have the same name, but you will be connecting them to a local signal declared in the entity where they are being instantiated. So you can connect each component to half of an array.
eg:
Code:
signal some_local_signal : array(0 to 7);
... instantiation 1
my_output => array(0 to 3),
... instantiation 2
my_output => array(4 to 7),