A current sensing circuit for use in a switching regulator having a
high-side switch. The current sensing circuit includes a first sensing
circuit coupled to the high-side switch for measuring current flowing in
a positive direction through the high-side switch. The first sensing
circuit includes a first replica device for generating a current which is
a scaled version of the positive current flowing through the high-side
switch. The current sensing circuit further includes a second sensing
circuit coupled to the high-side switch for measuring current flowing in
a negative direction through the high-side switch. The second sensing
circuit includes a second replica device for generating a current which
is a scaled version of the negative current flowing through the high-side
switch.