I'm facing a problem that I cannot solve, so I'm asking for your help. In a VHDL package I should define a customized type of array in the following way, in order to use it as a parameter in the function:
type matrixsignal is array (integer range <>) of std_logic_vector;
function first_defined(matrix:matrixsignal; start_index,col_index:integer) return integer;
As you can see, the std_logic_vector should not have range, since it depends on a variable which is present in the main code. But, of course, the compiler rejects this structure...I read that it is only possible with VHDL2008 but still...is there any kind of possible solution to solve this problem?