Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYou may try using feedback system (I assume without loop filter as you are using CPLD, similarly any oversampling may be difficult in CPLD).
Your input x1 feeds the XOR. Your other input x2 feeds through a delay line. The XOR output error feeds back to delay units on x2. The system if designed carefully should settle and lock when x1 is in phase with x2_d. When locked the error from XOR is the phase error(in samples).