MDAC Design for an 8-bit 40 MS/s Pipelined ADC in a 0.18 μm CMOS Process