Forum Discussion
Altera_Forum
Honored Contributor
15 years agoHave you tried doing this again without using the buffer port type? Its hardly used by anyone, and not really the standard way to create output registers. Usually you would use an internal signal to store the value and assign an output to the internal signal. Another thing I notice is that in your code you have 2 separate if statements resetting the counter. It would be more common to use something like:
if CNT= 1000 or START = '1' then
CNT <= 0;
else
CNT <= CNT + 1;
end if;