Forum Discussion
Altera_Forum
Honored Contributor
14 years agoyou've got the sizing wrong.
(5 downto -4) * (5 downto -4) would give you a (11 downto -8) result. out_A(i) is (9 downto -10), so it doesnt fit properly. BUT there are the correct number of bits, so you effectivly just divided the result by 4. Secondly - you cannot put the loop outside of the clock branch. Move the for loop into the clocked bit of the process.