A method of generating a slope compensation signal for use in a current
mode switching regulator. The method includes the steps of summing a
clock signal and a reference signal so as to generate a linear ramp
signal; generating a non-linear signal from the linear ramp signal;
multiplying a correction signal with an input voltage signal so as to
generate a signal which varies based on a measured value of a current
flowing within the current mode switching regulator; summing a first
voltage signal corresponding to the non-linear correction signal and a
second voltage signal indicating the difference between an actual voltage
level of the current mode switching regulator and the desired voltage
level of the current mode switching regulator so as to generate a first
output signal which represents the second voltage signal minus the first
voltage signal; and comparing the first output signal and the measured
value of a current flowing within the current mode switching regulator,
and generating a second output signal utilized to control current flow
within the current mode switching regulator based on the result of the
comparison.