Altera_Forum
Honored Contributor
10 years agoimage read in vhdl
i want to read an image (or preferably a matrix of size 8x8) pixel by pixel in one clock cycle(if rising edge then read one pixel in 2nd rising edge 2nd pixel)....thanks in advance
what about something simple like this?
signal row, col : unsigned(1 downto 0) := "00";
process(clk)
begin
if rising_edge(clk) begin
output <= input(to_integer(row), to_integer(col));
col <= col + 1;
if col = "11" then
row <= row + 1;
end if;
end if;
end if;