Hallo, This division consumes a lot of logic elements which affects the timing. Since the denominator can vary according to the incoming value, I am not able to equate it to a 2**x value which reduces the logic elements.
1 | timer_us := SYS_FREQ/(ctr_freq)-1; -- say (40000000/1000000 -1) |
Any suggestions?