Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- 'Z' just means high impedance, which is odd for an input. It will probably connect it to '0' when its synthesized. The output should be correct. Alternativly, just do addr <= adda + addb; in your code --- Quote End --- Dear Tricky What different between this code:
cnt<= cnt + 1;
if cnt = 0 then
adda <= first value;
elsif cnt = 1 then
addb <= second value;
elsif cnt = 2 then
addr <= addr;
end if;
-- this code was used with lpm adder
and your code:
addr <= first value + second value;
Sometime I want to calculate directly as same as your code but my professor said that not true. I did not know why? Could you help me?