In one embodiment, a switching regulator comprises a control circuit that
activates and deactivates at least one power switch to control a voltage
of a switching node. The system also comprises an inductor that conducts
a current from the switching node to an output to generate an output
voltage. The system further comprises a PWM comparison circuit that
controls an on-time and/or an off-time of the at least one power switch
based on a comparison of a feedback voltage and a reference voltage. The
PWM comparison circuit comprises a ramp signal generator configured to
provide a ramp signal having a non-zero slope that is combined with
either the feedback voltage or the reference voltage at a beginning of
either the on-time or the off-time. The PWM comparison circuit can be
further configured to set the slope of the ramp signal to zero during the
off-time in a discontinuous conduction mode.