I need a n/1024 , fractional divider in my design , but I cannot get a good design currently , we know as a normal divider , we add the counter by 1 every cycle , but in this topic , how can i do , add the counter by n ?
cheers
Assuming that you want to divide by the number 1024, you change your value to binary. Then shift them to the right 10 times. That will give you the desired 1024 division. Remainders will be lost.
For example, if you have 10000, and want to divide by 1024,
0010 0111 0001 0000.
shift everything right by 10,
0010 01.11 0001 0000
You get 1001 which is equivalent to 9. The remainders are discarded.