Architecture of a CMOS correlator