Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- I am not sure if switch will rise once only or many times. ...etc. --- Quote End --- Yes switch is allowed transitions "if switch = '1' and switch_d = '0' then" If I am not wrong this is detecting the positive edge So my count needs to be increased only when there is a positive edge and inputs(serial 8 bits) need to be stored in a reg. Moreover, me being familiar with Verilog, not VHDL, the syntax output(count) <= input; is troubling me