Forum Discussion
Altera_Forum
Honored Contributor
13 years agoyou can sample the start and stop buttons in the clocked part of the process. You can have for example an 'on' signal that you set to 1 when you detect the start button has been pressed and back to 0 when you detect the stop button has been pressed. Then only update your counter when the 'on' signal is 1.