Forum Discussion
Altera_Forum
Honored Contributor
14 years agoReplace always @ ( clk or in_port)
with always @ (posedge clk) You may also need to change further, if you want the counter to increment only once when you push the switch: now it keeps on increasing at the clk rate as long as you keep the switch pressed.