A hysteretic regulator is provided. The hysteretic regulator includes a
delay compensation circuit that adds a delay to the output of the
hysteretic comparator. The delay is dependent on the input voltage. For
low duty cycles, the slope of the inductor current is much greater for
the rising edge than it is for the falling edge. The delay compensation
circuit adds sufficient delay to the falling edge so that the undershoot
cancels the overshoot.