A phase detector compares two input signals and produces an error signal which is proportional to their phase difference.
Analog phase locked loops are generally built with an analog phase detector, low pass filter and VCO placed in a negative feedback configuration.