An amplifier includes an amplifier module coupled to an input node, and an attenuating module. The attenuating module includes an attenuation resistor coupled to the input node, and an impedance compensation module coupled to the input node. The impedance compensation module compensates an input impedance when an input RF signal is attenuated by the attenuating module.