Adnan86
Full Member level 2
Hi
i defined matrix as :
and because of multiplication i had to in 2 Dimension .
but i want to give initials to 2 signal as matrix , but ones just have 1 row and ones just have one column .
and i said i had to define them as 2 Dimension .
but i have this error :
String literal foun where type sub_way #2 of matrix_2d , whose element type .... is not an enumeration type , was expected .
and now ehat can i do ? please help ? and please don't say change your type matrix as 1D , because i need to be 2D ,
thanks a lot
i defined matrix as :
Code:
type matrix_2D is array (integer range <>, integer range <>) of signed(31 downto 0);
but i want to give initials to 2 signal as matrix , but ones just have 1 row and ones just have one column .
and i said i had to define them as 2 Dimension .
Code:
signal a : matrix_2D(1 to 1,1 to 3 ) := (1;3;4);
signal b : matrix_2D(1 to 3,1 to 1 ) := (1,3,4);
String literal foun where type sub_way #2 of matrix_2d , whose element type .... is not an enumeration type , was expected .
and now ehat can i do ? please help ? and please don't say change your type matrix as 1D , because i need to be 2D ,
thanks a lot