Forum Discussion
Altera_Forum
Honored Contributor
12 years agoBecause having the line:
result <= '0'; before the if statement does not match the "pattern" used to infer a register. Drop that line and it'll synthesize fine. Your process line should be process(clk,rst). Sure, all works, but it does not provide your "intent" for the logic. Explicitly indicating you wanted the process only to be sensitive to clock and reset helps the next person maintaining your code understand it better. Cheers, Dave