Altera_Forum
Honored Contributor
14 years agoSending Array serially
Here's what I need to do, I have an array 16x16, and want to send one by one element to an output.
I made an code, but when I put one line, the FPGA use wich was 10% becomes very higher and do not compile. here's what I was doing:
TYPE array_t IS ARRAY (0 TO 15, 0 to 15) OF STD_LOGIC_VECTOR(7 DOWNTO 0);
output_a: OUT STD_LOGIC_VECTOR(7 downto 0);
SIGNAL full_signal_output: array_t
if rising_edge(clk_a) then
if (all_done='0') then
if (clk_var=256) then all_done<='1';
end if;
if (clk_var<256) then
clk_var<=clk_var+1;
output_a <= full_signal_output(i, ii);
ii<=ii+1;
if (ii=15) then
i<=i+1;
ii<=0;
end if;
end if;
end if;
end if;
] Any idea how can I do this? Thank you.