Forum Discussion
Altera_Forum
Honored Contributor
12 years agoWhat's your fpga clock frequency?
a-For example, if your fclk is 50MHz, count from 0 to 50MHz/40KHz=1250. b-add a comparator to the counter: when count<625 output is '1' else '0'. c-register the output to avoid glitches.