In a voltage regulator including an inductor current flowing through a
sense element with a first temperature coefficient, and a current sense
circuit for generating a current sense signal related to the first
temperature coefficient by sensing the inductor current from the sense
element, a temperature compensation device and method determines a second
temperature coefficient according to the first temperature coefficient
and temperature variation, and produces a compensation signal with the
second temperature coefficient to compensate variations in the current
sense signal caused by the first temperature coefficient.