An intelligent correlator based on a DSP