This is my transpose code:
package newtype is
type matrix_t is array (0 to 8, 0 to 8) of integer;
end newtype;
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use work.newtype.all;
entity transpose is
port(input: in matrix_t;
clk: in std_logic;
transposed_matrix: out matrix_t);
end transpose;
architecture arch of transpose is
function change (matrix: matrix_t) return matrix_t is
variable ret: matrix_t;
begin
for i in matrix'range(1) loop
for j in matrix'range(2) loop
ret (j,i):= matrix (i,j);
end loop;
end loop;
return ret;
end function;
begin
transposed_matrix <= change (input);
end arch;
The same error with my previous code that not use a function is occurs;
Error: Design requires 5185 I/O resources -- too many to fit in 1264 available in the selected device or any device in the device family.
Why the same error still occurs? I confuse now, need your helps. Many thanks.