OpenCores
no use no use 1/1 no use no use
how to divide clock by 2.5 factor
by kulalsharath on May 31, 2013
kulalsharath
Posts: 2
Joined: Nov 22, 2012
Last seen: Mar 9, 2015
i used to run vga monitor on my previous spartan 3 fpga kit on 4 mhz clock
now on my new kit the clock is of 10mhz
i wish to divide clock such that i get 4 mhz out of 10 mhz
how shall i do that in vhdl
RE: how to divide clock by 2.5 factor
by lhademmor on Jun 2, 2013
lhademmor
Posts: 1
Joined: Aug 18, 2011
Last seen: Jan 12, 2025
If You can mutliply the clock with 2, the first divide by 5 and then multiply by 2. Could it be done ?
RE: how to divide clock by 2.5 factor
by du00000001 on Jun 3, 2013
du00000001
Posts: 1
Joined: May 11, 2012
Last seen: Mar 14, 2018
OK - I'm currently not firm in VHDL but can give you a concept:

1. Multiply the clock by 2 !
If no PLL is available: have one and the same counter incremented on the rising_edge
and on the falling_edge of the clock.
2. Divide the doubled frequency by 5.

This will result in a better duty cycle of the output than when first dividing and then
doubling - even if the input signal is not perfect.
RE: how to divide clock by 2.5 factor
by Jezmo on Jun 3, 2013
Jezmo
Posts: 8
Joined: Apr 10, 2010
Last seen: Nov 21, 2013
Standard way of dividing a clock signal by a non-integer number is to dither the division ratio between the two nearest integers, so in this case a counter which divides by 2 half the time and three half the time, the instantaneous frequency is incorrect but on average it is.
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.