A circuit for generating a reference current comprises: a first current
mirror configured to current-mirror based on a second current, so as to
generate a first current that is substantially in inverse proportion to a
variation of a power supply voltage; a current compensation unit
configured to remove a variation of the first current corresponding to
the variation of the power supply voltage to form a compensated first
current; a second current mirror configured to generate the second
current based on the compensated first current, and configured to provide
the second current to the first current mirror; and a current output unit
configured to output the second current as the reference current.