circuitry for use in a differential amplifier includes an input stage having a first differential amplifier and an offset compensation stage that includes at least one controllable current source . the offset compensation stage is connected to a bias input of the first differential amplifier . the circuitry includes an output stage having a second differential amplifier , where the output stage is after an output of the input stage , and a programmable resistor network for controlling an amplification of the input stage . the programmable resistor network controls the amplification in accordance with a feedback from the first differential amplifier .