Following the calculation of Iref , normalized value of
inductor current, measured by the sensing resistor, is
subtracted from Iref to form the current error signal. The
current error is operated upon by the current loop compensator
to produce suitable value of boost transistor duty cycle that
will make the average inductor current to track the line input
voltage waveform.