Digital Compensation for Analog Front-ends