A switching voltage regulator is disclosed for regulating a voltage
supplied to system circuitry. The switching voltage regulator comprises
an oscillator operable to generate an oscillator signal representing a
gate speed of a reference circuit in the system circuitry, and a
frequency generator operable to generate a reference signal representing
a target gate speed of the reference circuit. A cycle comparator compares
at least one cycle of the oscillator signal to at least one cycle of the
reference signal, and switching circuitry charges a charging element
based at least on part on the comparison.