How to count pressed keys on FPGA spartan board

The effect you are witnessing is called “bouncing” of the switch. You need to “debounce” the external input. How to synchronize an external input An external input is not synchronous to the internal clock domain. Thus signal edges within the setup or hold time of a register could cause metastability. You need to synchronize your … Read more