for i in 0 to 3 loop
for j in 0 to 3 loop
tmp(i,j) <= abs(curr_image(((currblk_row*4+i)*64)+(currblk_column*4+j))- ref_image(((refblk_row*4+i)*64)+(refblk_column*4+j)));
end loop;
end loop;
you have been asking similar kind of questions for a long time and we told you not to use for loops without care.
Code:for i in 0 to 3 loop for j in 0 to 3 loop tmp(i,j) <= abs(curr_image(((currblk_row*4+i)*64)+(currblk_column*4+j))- ref_image(((refblk_row*4+i)*64)+(refblk_column*4+j))); end loop; end loop;
I got the these lines from sad.txt and I think you should go for a simple design. Doing so much over a clock edge is difficult and will take hours to synthesis.
if reset = '1' then
--do reset
elsif rising_edge(clk) then
--do all the other stuff you wrote
end if;
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?