nizdom
Member level 2
Hi guys. I wanted to make a matrix array that is created inside a for loop. It's like in every loop, a different matrix array is created.
Here is a portion of my code. This part is when the matrix is updated and incremented.
In here, for example, for 0 to 3, for every loop, I want to create a different matrix so at the end of all the loops, I can have 4 different matrix array with integer values. so PORTMATRIXA would consist of 4 arrays with integer values. What would be my declaration types? Any help?
Here is a portion of my code. This part is when the matrix is updated and incremented.
Code:
IF(CLK'EVENT AND CLK = '1') THEN
FOR I IN 0 TO PORT_SIZE-1 LOOP
IF(START_RX(I) = '1')THEN
PORT_RX(I) := TO_INTEGER(UNSIGNED(RX_MATRIX(I)(1 DOWNTO 0))); -- GET PORT ADDRESS
PORTMATRIXA(I)(PORT_RX(I)) <= PORTMATRIXA(CARD_RX)(PORT_RX(I)) + 1; -- INCREMENT MATRIX POSITION
END IF;
In here, for example, for 0 to 3, for every loop, I want to create a different matrix so at the end of all the loops, I can have 4 different matrix array with integer values. so PORTMATRIXA would consist of 4 arrays with integer values. What would be my declaration types? Any help?