Altera_Forum
Honored Contributor
9 years agoImplementing an asynchronous counter in a FPGA
I need to implement a 32-bit counter that counts random impulsions in a FPGA.
The counter has to be asynchronous (or not?) for the following reasons: - low consumption - to latch the impulsions, a system clock greater than 100M would be required but mandory for EMC reasons What I want: the counter is incremented when an impulsion occurs, and I synchronize the counter with the system clock every second for example. After reading the Application Brief 135 (see attachment), I thought of implementing a ripple-clocked gray-code counter. The clock of the LSB flip-flop would be the impulsion, and only one bit of the counter would change when an impulsion occurs. However, I have been unable to find an easy implementation scheme for a n-bit counter. I'm also not sure how to use the Karnaugh map with this additionnal "dummy bit" in the attached document. 1) What do you think about this choice? 2) Do you have any ressources or advices to help me understand the attached document, or to implement the ripple-clocked gray-code counter (32bits)? Thank you in advance Damien