vhdl port array
a [16,32] array of what type of element? Let's call the it "elementtype" for the moment.
in C, the last dimension is contiguous in memory. So let's try to simulate that:
type t_myarray is array(0 to 31) of elementtype;
type t_my2darray is array(0 to 15) of t_myarray;
If elementtype is "std_logic" then you can replace t_myarray by
subtype t_myarray is std_logic_vector(0 to 31);
By the way: to read an element from
signal myarraysig : t_myarray;
you must write 2 sets of parentheses:
myarraysig(13)(24)