Forum Discussion
Altera_Forum
Honored Contributor
14 years agoI just corrected the output assignment.
Yes I detect switch rising level, the count is set to 1 due to one clock latency. for safer design you may put this for edge detection: if switch = '1' and switch_d = '0' then instead