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
Why bother declaring row_pixel at all? its just an array of length 1, why not just return an integer?
Why are you using an inout for output? this is bad practice the error is here: for i in 0 to 3 loop ret_pixel(i) := row1(pixel, i); end loop; ret_pixel is a row_pixel type with a range 0 to 0. Your loop is going out of range.