Forum Discussion
Altera_Forum
Honored Contributor
13 years agoI'm nut even sure how this code can run in a simulator without any errors but you should maybe check your algorithm first. In this line
sum:=sum + x(k)*y(n-k);(n-k) can take a lot of values outside of the range 0 to 1, and that should cause an error in the simulator real quick. You do realize that this code isn't synthesizable on real hardware, don't you?