Clock and data recovery circuit and receiver
A clock and data recovery circuit includes a phase detector that outputs phase characteristic data based on a digital data signal and an adjustment circuit that adjusts phase characteristic data. The clock and data recovery circuit sets an adjustment value in an adjustment circuit by calculating an adjustment value of phase characteristic data using a monitor circuit while changing a phase of a reference clock signal to be adjusted in a phase interpolation circuit based on offset data output from an offset output circuit in a training period before communication starts.
1. A clock and data recovery circuit comprising:
a phase interpolation circuit that adjusts a phase of a reference clock signal generated by a reference clock generation circuit and generates a reception clock signal;
a phase detector that inputs a reception digital data signal output from an analog-to-digital converter, that operates in synchronization with the reception clock signal generated in the phase interpolation circuit and converts a reception analog data signal into the reception digital data signal, and outputs phase characteristic data based on the reception digital data signal;
an adjustment circuit that adjusts the phase characteristic data;
a monitor circuit that monitors the phase characteristic data output from the adjustment circuit and calculates an adjustment value to be set in the adjustment circuit based on the phase characteristic data;
a loop filter that outputs adjustment data for generating phase data to be set in the phase interpolation circuit based on the phase characteristic data output from the adjustment circuit; and
an offset output circuit that outputs offset data for generating the phase data to be set in the phase interpolation circuit, wherein
the clock and data recovery circuit sets the adjustment value in the adjustment circuit by calculating the adjustment value using the monitor circuit while changing a phase of the reference clock signal to be adjusted in the phase interpolation circuit based on the offset data output from the offset output circuit, in a training period before communication starts.
2. The clock and data recovery circuit according to claim 1 , wherein
the monitor circuit calculates the adjustment value based on output characteristics with respect to a phase difference representing a relationship between a phase to be adjusted in the phase interpolation circuit in the training period and the phase characteristic data.
3. The clock and data recovery circuit according to claim 1 , wherein
the adjustment value includes an offset adjustment value and a gain adjustment value.
4. The clock and data recovery circuit according to claim 3 , wherein
the monitor circuit calculates the gain adjustment value based on variance of the phase characteristic data.
5. The clock and data recovery circuit according to claim 4 , wherein
the monitor circuit acquires the gain adjustment value by referring to a table that associates variance of the phase characteristic data with the gain adjustment value.
6. The clock and data recovery circuit according to claim 3 , wherein
the monitor circuit calculates the offset adjustment value based on an average value of the phase characteristic data.
7. The clock and data recovery circuit according to claim 2 , wherein
the phase detector is a Mueller-Muller phase detector, and the output characteristics with respect to a phase difference is an S curve of Mueller-Muller output.
8. A receiver comprising:
the clock and data recovery circuit according to claim 1 ;
the reference clock generation circuit; and
the analogue-to-digital converter.