An ultrasound circuit comprising a trans-impedance amplifier (TIA) with built-in time gain compensation functionalityis described. The TIA is coupled to an ultrasonic transducer to amplify anelectrical signal generated by the ultrasonic transducer inresponse to receiving an ultrasound signal. The TIA is, in some cases,followed by further analog and digital processing circuitry.