+

CN119341520A - A clock and data recovery circuit adaptive method and device - Google Patents

A clock and data recovery circuit adaptive method and device Download PDF

Info

Publication number
CN119341520A
CN119341520A CN202411900973.0A CN202411900973A CN119341520A CN 119341520 A CN119341520 A CN 119341520A CN 202411900973 A CN202411900973 A CN 202411900973A CN 119341520 A CN119341520 A CN 119341520A
Authority
CN
China
Prior art keywords
clock
loop filter
cdr
output
data recovery
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411900973.0A
Other languages
Chinese (zh)
Other versions
CN119341520B (en
Inventor
朱明瑞
张玉龙
金鑫涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanqi Semiconductor Hangzhou Co ltd
Original Assignee
Yuanqi Semiconductor Hangzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yuanqi Semiconductor Hangzhou Co ltd filed Critical Yuanqi Semiconductor Hangzhou Co ltd
Priority to CN202411900973.0A priority Critical patent/CN119341520B/en
Publication of CN119341520A publication Critical patent/CN119341520A/en
Application granted granted Critical
Publication of CN119341520B publication Critical patent/CN119341520B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H21/00Adaptive networks
    • H03H21/0012Digital adaptive filters
    • H03H21/0043Adaptive algorithms
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G11/00Limiting amplitude; Limiting rate of change of amplitude
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H21/00Adaptive networks
    • H03H21/0012Digital adaptive filters
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H21/00Adaptive networks
    • H03H21/0012Digital adaptive filters
    • H03H21/0067Means or methods for compensation of undesirable effects
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/085Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/085Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal
    • H03L7/093Details of the phase-locked loop concerning mainly the frequency- or phase-detection arrangement including the filtering or amplification of its output signal using special filtering or amplification characteristics in the loop
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/10Details of the phase-locked loop for assuring initial synchronisation or for broadening the capture range
    • H03L7/107Details of the phase-locked loop for assuring initial synchronisation or for broadening the capture range using a variable transfer function for the loop, e.g. low pass filter having a variable bandwidth
    • H03L7/1075Details of the phase-locked loop for assuring initial synchronisation or for broadening the capture range using a variable transfer function for the loop, e.g. low pass filter having a variable bandwidth by changing characteristics of the loop filter, e.g. changing the gain, changing the bandwidth

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a self-adapting method and a device of a clock and data recovery circuit, which relate to the technical field of communication and comprise the following steps of judging phase deviation and frequency deviation between a sending clock and a receiving clock, transmitting a phase error signal to a loop filter, analyzing the frequency response of the loop filter, determining the range and the relative relation of parameter adjustment, calculating the statistical characteristic output by the loop filter in real time, judging the working state of the clock and data recovery circuit, realizing a state machine of the clock and data recovery circuit, and determining and adjusting the parameters and the output range of the loop filter according to the statistical characteristic output by the loop filter and based on the principle of threshold detection. According to the invention, the working states of the clock and data recovery circuit are monitored, the design parameters of the loop filter are adjusted in real time according to the state change, the frequency capturing range is ensured, the phase noise of the clock and data recovery circuit in a steady state is improved, and the stability of data acquisition is improved.

Description

Self-adaptive method and device for clock and data recovery circuit
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for self-adapting a clock and data recovery circuit.
Background
Clock and data recovery circuit Clock and Data Recovery, abbreviated as CDR, is a core functional module of modern digital communication system and is widely used in various wireless and wired communication systems. The goal of the clock and data recovery circuit is to track the clock drift and a range of clock jitter at the transmitting end at the receiving end to ensure correct data sampling. The principle of CDR is that the data is sampled by using the multi-phase clock generated locally by the receiving end, the edge of the data bit is judged by the phase discriminator, the output of the phase discriminator is filtered and then controlled by the voltage-controlled oscillator or the phase interpolator to form a loop, and the edge alignment of the local sampling clock and the edge of the received data is adjusted, thereby realizing the recovery of the clock with the same frequency and the same phase as the data.
Among the many components used in clock and data recovery circuits, loop filters are the most important component because they determine the system transfer function and dynamic range, the bandwidth, type and order of the loop filter need to trade off the noise versus frequency capture range metrics, and system stability, and CDR loop filters need to provide sufficient bandwidth to achieve the same frequency, in-phase clock recovery when there is a large frequency offset between the transmit and receive clocks. On the other hand, after the clock and data recovery circuit enters a steady state, an excessively wide loop bandwidth can cause larger output phase noise, and the stability of data sampling is affected.
Disclosure of Invention
The present invention is directed to a method and apparatus for clock and data recovery circuit to solve the above-mentioned problems.
In order to achieve the above purpose, the invention provides a self-adaptive method of a clock and data recovery circuit, comprising the following steps:
Step S1, receiving data sent by a sending device through a sampler, and processing and transmitting data signals;
step S2, receiving the data signal transmitted by the sampler through the phase discriminator, judging the phase deviation and the frequency deviation between the transmitting clock and the receiving clock, and outputting the phase deviation and the frequency deviation as phase error signals ;
Step S3 by phase error signalTransmitting the signals to a loop filter to remove noise and interference signals, firstly analyzing the frequency response of the loop filter, and determining the range and the relative relation of parameter adjustment;
S4, calculating the statistical characteristics of Loop Filter output in real time, and judging the working state of the CDR;
Step S5, finally, a CDR state machine is realized, and how to adjust parameters and output ranges of the Loop Filter is determined according to statistical characteristics of the Loop Filter output and based on a principle of threshold detection;
And S6, the output signal of the loop filter enters a voltage-controlled oscillator to form a loop, and the edge alignment of the local sampling clock and the edge of the received data is adjusted, so that the recovery of the clock with the same frequency and the same phase as the data is realized.
Preferably, in the step S3, the loop filter ring-opening frequency response, taking a second-order loop filter as an example, is given by the formula:
;
Is known to be The system function of the CDR is:
;
the system function H (Z) has (N+1) poles, and a single zero In order to ensure the stability and causality of the system, the (n+1) poles of H (Z) are all required to be in a unit circle (|z|=1), the distribution of the poles and zero affects the frequency response of the system together, and given the system delay N, the system analysis determines K, K 1 and the adjustment range and relative relation of K 2, wherein K is the common gain of the CDR loop, K 1 and K 2 are the gains of the first-order and second-order integrators respectively, and the method of the system analysis is applicable to the second-order loop filter and the loop filter with any order.
Preferably, in step S4, the method is as followsThe operating state of the CDR can be divided into a capture phase and a tracking phase, where,To a large extent, at this timeAlong with itRapid changes, requiring H (Z) to provide sufficient bandwidth, increased K, and each order integrator gain (K 1,K2, …Kn) to ensure system stabilityFast followingIs a variation of (c).
Preferably, said step S4 is performed during a tracking phase,Jitter around 0 is generated, and CDR is avoidedAlong with itIs unnecessarily varied, it is necessary to reduce K, and the integrator gain of each stage (K 1,K2, …Kn).
Preferably, the CDR state machine in step S5 includes:
The common gain of the clock and the data recovery circuit and the gain of the loop filter integrator are both configurable in real time;
The output of the clock and data recovery circuit comprises a limiter, and the output amplitude of the limiter is configurable;
for the non-limited phase output and frequency output of the loop filter, their statistical properties, including but not limited to mean and variance, are calculated in real time.
Preferably, the CDR state machine in step S5 includes two important design parameters, acq_th and track_th, corresponding to the detection thresholds of CDR tending to capture state and CDR tending to track state, respectively, and the main task is to calculate the statistical characteristics of phase output and frequency output of the loop filter, and compare with the set thresholds acq_th and track_th.
Preferably, the CDR state machine further comprises:
The CDR state machine determines the moment and direction of adjusting K and the gains of the integrator of each step, when the CDR is in a capturing state, the K and the gains of the integrator of each step need to be kept high, and when the CDR state tends to be converged, the K and the gains of the integrator of each step can be gradually reduced;
the respective adjustment ranges and adjustment granularities of the given system delays N, K and the gains of the integrator of each order are determined by the stability analysis and the frequency response of the system function H (Z);
Whether increasing K and each order integrator gain or decreasing K and each order integrator gain, the value of each gain change cannot exceed a set threshold to smooth out the transient response caused by the gain change.
Preferably, the CDR state machine further comprises:
when the CDR tends to capture state, increasing K and the gains of the integrator of each step according to the granularity calculated in advance, and correspondingly adjusting output amplitude limiting, wherein the K and the gains of the integrator of each step are required to be in a preset range;
When the CDR tends to a tracking state, K and the gains of the integrator of each step are reduced according to the granularity calculated in advance, and output amplitude limiting is correspondingly adjusted, wherein the K and the gains of the integrator of each step are required to be in a preset range;
in the CDR state adjustment process, the detection thresholds acq _ th and track _ th are also adjusted based on the corresponding design granularity, respectively, such that when K, and the respective order integrator gains increase, AndThe detection thresholds acq _ th and track _ th based on both statistics increase as well, and as K, and the integrator gains of the respective stages decrease,AndThe detection thresholds acq_th and track_th based on the statistical characteristics of both are also reduced;
The state machine comprises a waiting state, wherein when the parameters of the CDR change, the state machine enters the waiting state, and unstable results caused by transient response are ignored.
An adaptive device of a clock and data recovery circuit, comprising:
the sampler is used for receiving the data sent by the sending device;
a phase detector connected to the sampler for determining a phase deviation and a frequency deviation between the transmit clock and the receive clock and outputting a phase error signal ;
The loop filter is connected with the phase discriminator and is used for adjusting the built-in gain and the output range of the loop filter in real time according to the working state of the CDR;
and the voltage-controlled oscillator is connected with the loop filter and the sampler.
Preferably, the loop filter includes:
A gain unit for adjusting the intensity of the phase detector output signal and adjusting the gain of the amplifier to match the state of the clock and data recovery circuit;
the delayer is used for adjusting the response time of the gain device;
the statistical characteristic analysis module is used for calculating the statistical characteristic output by the Loop Filter in real time and judging the working state of the CDR;
the CDR state machine is used for adjusting parameters and output ranges of the Loop Filter according to statistical characteristics of the Loop Filter output and based on a principle of threshold detection;
Limiter for dynamic range control, peak protection and noise cancellation.
The invention has the technical effects and advantages that:
The invention utilizes the matched setting mode of the statistical characteristic of the Loop Filter output and the CDR state machine, determines the range and the relative relation of parameter adjustment by analyzing the frequency response of the Loop Filter, calculates the statistical characteristic of the Loop Filter output in real time for judging the working state of the CDR, realizes the CDR state machine, determines and adjusts the parameter and the output range of the Loop Filter according to the statistical characteristic of the Loop Filter output and based on the principle of threshold detection, achieves the aim of monitoring the working state of the CDR circuit, adjusts the design parameter of the Loop Filter in real time according to the state change, improves the phase noise under the CDR steady state while ensuring enough frequency capturing range, and improves the stability of data acquisition.
Drawings
FIG. 1 is a schematic diagram of the CDR adaptive filtering principle of the present invention.
FIG. 2 is a schematic diagram of a CDR state machine according to the present invention.
FIG. 3 is a schematic diagram of a CDR adaptive device according to the present invention.
Fig. 4 is a schematic diagram of a two-loop filter structure according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides an adaptive method of a clock and data recovery circuit as shown in fig. 1-2, which comprises the following steps:
Step S1, receiving data sent by a sending device through a sampler, and processing and transmitting data signals;
step S2, receiving the data signal transmitted by the sampler through the phase discriminator, judging the phase deviation and the frequency deviation between the transmitting clock and the receiving clock, and outputting the phase deviation and the frequency deviation as phase error signals ;
Step S3 by phase error signalTransmitting the signals to a loop filter to remove noise and interference signals, firstly analyzing the frequency response of the loop filter, and determining the range and the relative relation of parameter adjustment;
S4, calculating the statistical characteristics of Loop Filter output in real time, and judging the working state of the CDR;
Step S5, finally, a CDR state machine is realized, and how to adjust parameters and output ranges of the Loop Filter is determined according to statistical characteristics of the Loop Filter output and based on a principle of threshold detection;
And S6, the output signal of the loop filter enters a voltage-controlled oscillator to form a loop, and the edge alignment of the local sampling clock and the edge of the received data is adjusted, so that the recovery of the clock with the same frequency and the same phase as the data is realized.
In step S3, taking the second-order loop filter as an example, the formula is:
;
Is known to be The system function of the CDR is:
;
the system function H (Z) has (N+1) poles, and a single zero . To ensure stability and causality of the system, the (n+1) poles of H (Z) need to be all within the unit circle (|z|=1), and the distribution of zeros and poles together affect the frequency response of the system. Given the system delay N, the system analysis determines K, K 1, and the adjustment range and relative relationship of K 2, Z/(Z-1) is the integrating circuit Z transform, and K 1 and K 2 are the gains of the first and second order integrators, respectively. It should be noted that a delay is inevitably introduced in the system implementation, so the delay logic Z -N must be included in the transfer function for the phase output and the frequency output, and the second order loop filter is the loop filter most commonly used in CDRs, but can be extended to any order of loop filter.
According to the following steps S4The operating state of the CDR can be divided into a capture phase and a tracking phase, where,To a large extent, at this timeAlong with itRapid changes, requiring H (Z) to provide sufficient bandwidth, increased and various integrator gains (K 1,K2, …Kn) to ensure system stabilityFast followingIs provided, during the tracking phase,Jitter around 0 is generated, and CDR is avoidedAlong with itUnnecessary variations in jitter, need to be reduced and the integrator gains of each order (K 1,K2, …Kn), when CDR is enabled, due to unknown frequency and phase offsets between transmit and receive clocks,And particularly when the frequency deviation is large,Oscillations may occur, withGradually lockingIn the course of the variation of (a),Gradually decreasing the absolute value of (a) to finally realize dynamic balance, at this time,|I≡0, during the capture phase and tracking phase,There will be a difference in the range of values of (2), the former, the system design hopes to accelerateCan quickly catch up with the change of (a)Variations of (2) are not intended to limitIn the latter state, however, the system design wishes to avoid occasional abnormal events leading toSo that it is required toLimited in a certain range, the Loop Filter parameter is adaptively adjusted and simultaneously adjusted in real timeIs provided.
The CDR state machine in step S5 includes:
The common gain of the clock and the data recovery circuit and the gain of the loop filter integrator are both configurable in real time;
The output of the clock and data recovery circuit comprises a limiter, and the output amplitude of the limiter is configurable;
for the non-limited phase output and frequency output of the loop filter, their statistical properties, including but not limited to mean and variance, are calculated in real time.
In step S5, the CDR state machine comprises two important design parameters, namely acq_th and track_th, which correspond to detection thresholds of CDR tending to capture state and CDR tending to track state respectively, and mainly work is to calculate the statistical characteristics of phase output and frequency output of a loop filter and compare the statistical characteristics with set thresholds acq_th and track_th.
The CDR state machine further comprises:
The CDR state machine determines the moment and direction of adjusting K and the gains of the integrator of each step, when the CDR is in a capturing state, the K and the gains of the integrator of each step need to be kept high, and when the CDR state tends to be converged, the K and the gains of the integrator of each step can be gradually reduced;
the respective adjustment ranges and adjustment granularities of the given system delays N, K and the gains of the integrator of each order are determined by the stability analysis and the frequency response of the system function H (Z);
Whether increasing K and each order integrator gain or decreasing K and each order integrator gain, the value of each gain change cannot exceed a set threshold to smooth out the transient response caused by the gain change.
The CDR state machine further comprises:
when the CDR tends to capture state, increasing K and the gains of the integrator of each step according to the granularity calculated in advance, and correspondingly adjusting output amplitude limiting, wherein the K and the gains of the integrator of each step are required to be in a preset range;
When the CDR tends to a tracking state, K and the gains of the integrator of each step are reduced according to the granularity calculated in advance, and output amplitude limiting is correspondingly adjusted, wherein the K and the gains of the integrator of each step are required to be in a preset range;
in the CDR state adjustment process, the detection thresholds acq _ th and track _ th are also adjusted based on the corresponding design granularity, respectively, such that when K, and the respective order integrator gains increase, AndThe detection thresholds acq _ th and track _ th based on both statistics increase as well, and as K, and the integrator gains of the respective stages decrease,AndThe detection thresholds acq_th and track_th based on the statistical characteristics of both are also reduced;
The state machine comprises a waiting state, wherein when the parameters of the CDR change, the state machine enters the waiting state, and unstable results caused by transient response are ignored.
The invention provides a self-adaptive device of a clock and data recovery circuit as shown in figures 3-4, which comprises a sampler, a phase detector, a loop filter and a voltage-controlled oscillator, wherein the sampler is used for receiving data sent by a sending device, the phase detector is connected with the sampler, and is used for judging phase deviation and frequency deviation between a sending clock and a receiving clock and outputting a phase error signalThe loop filter is connected with the phase discriminator, the loop filter is used for adjusting the built-in gain and the output range of the loop filter in real time according to the working state of the CDR, the loop filter is composed of a first-order or multi-order integrator, the voltage-controlled oscillator is connected with the loop filter and the sampler, the phase discriminator can judge the phase deviation and the frequency deviation between the sending clock and the receiving clock based on the turnover characteristic of the digital signal after sampling, the receiving sampling clock is assumed to be unchanged and the influence of noise and a channel is eliminated, when the sending clock and the receiving clock are in the same frequency and different phase, the error signal is a constant which is not changed with time, when the frequency of the sending clock and the receiving clock are deviated,The change slope is normalized frequency deviation with time linear change, so theoretically, the receiving device can analyzeRecovering the ideal transmission clock but the transmission channel and analog front end result inIncluding significant linear and nonlinear disturbances, as well as noise, masks true phase and frequency deviations, soNoise and interference signals must be removed by the loop filter before it can be used for local clock reconstruction.
The Loop Filter comprises a gain device, a delay device, a statistical characteristic analysis module, a CDR state machine and a limiter, wherein the gain device is used for adjusting the intensity of an output signal of the phase discriminator and adjusting the gain of the amplifier to match the state of a clock and data recovery circuit, the delay device is used for adjusting the response time of the gain device, the statistical characteristic analysis module is used for calculating the statistical characteristic of the Loop Filter output in real time and judging the working state of the CDR, the CDR state machine is used for adjusting the parameter and the output range of the Loop Filter according to the statistical characteristic of the Loop Filter output and based on the principle of threshold detection, and the limiter is used for dynamic range control, peak protection and noise elimination.
The principle of the invention is as follows:
The frequency response of the Loop Filter is analyzed, the range and the relative relation of parameter adjustment are determined, the statistical characteristics of Loop Filter output are calculated in real time and are used for judging the working state of the CDR, a CDR state machine is realized, the parameter and the output range of the Loop Filter are determined to be adjusted according to the statistical characteristics of Loop Filter output and based on the principle of threshold detection, the purpose of monitoring the working state of the CDR circuit is achieved, the design parameters of the Loop Filter are adjusted in real time according to state change, the sufficient frequency capturing range is ensured, meanwhile, the phase noise in the stable state of the CDR is improved, and the stability of data acquisition is improved.
It should be noted that the foregoing description is only a preferred embodiment of the present invention, and although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood that modifications, equivalents, improvements and modifications to the technical solution described in the foregoing embodiments may occur to those skilled in the art, and all modifications, equivalents, and improvements are intended to be included within the spirit and principle of the present invention.

Claims (10)

1.一种时钟与数据恢复电路的自适应方法,其特征在于,包括以下步骤:1. An adaptive method for a clock and data recovery circuit, characterized in that it comprises the following steps: 步骤S1:通过采样器对发送器件发出的数据进行接收,并且对数据信号进行处理和传输;Step S1: receiving data sent by the sending device through a sampler, and processing and transmitting the data signal; 步骤S2:通过鉴相器对采样器传输的数据信号进行接收,判断出发送时钟与接收时钟之间的相位偏差和频率偏差,其输出为相位误差信号Step S2: Receive the data signal transmitted by the sampler through the phase detector, determine the phase deviation and frequency deviation between the sending clock and the receiving clock, and output the phase error signal ; 步骤S3:通过将相位误差信号传输至环路滤波器,排除噪声和干扰信号,首先分析环路滤波器的频率响应,确定参数调整的范围和相对关系;Step S3: By converting the phase error signal Transmit to the loop filter, eliminate noise and interference signals, first analyze the frequency response of the loop filter, and determine the range and relative relationship of parameter adjustment; 步骤S4:其次,实时计算环路滤波器输出的统计特性,用于判定CDR的工作状态;Step S4: Secondly, the statistical characteristics of the loop filter output are calculated in real time to determine the working state of the CDR; 步骤S5:最后,实现CDR状态机,根据Loop Filter输出的统计特性并基于门限检测的原理,决定如何调整Loop Filter的参数和输出范围;Step S5: Finally, the CDR state machine is implemented to determine how to adjust the parameters and output range of the Loop Filter according to the statistical characteristics of the Loop Filter output and based on the principle of threshold detection; 步骤S6:环路滤波器的输出信号进入到压控振荡器,形成环路,调整本地采样时钟边沿与接收数据的边沿对齐,从而实现与数据同频率、同相位时钟的恢复。Step S6: The output signal of the loop filter enters the voltage-controlled oscillator to form a loop, and adjusts the local sampling clock edge to align with the edge of the received data, thereby realizing the recovery of the clock with the same frequency and phase as the data. 2.根据权利要求1所述的一种时钟与数据恢复电路的自适应方法,其特征在于,所述步骤S3中环路滤波器开环频率响,以二阶环路滤波器为例,公式为:2. The adaptive method of a clock and data recovery circuit according to claim 1, characterized in that the open-loop frequency response of the loop filter in step S3, taking a second-order loop filter as an example, is: ; 已知(Z)= (Z)- (Z), CDR的系统函数为:Known (Z)= (Z)- (Z), the system function of CDR is: ; 系统函数H(Z)有(N+1)个极点,以及单一零点,保证系统的稳定性和因果性,H(Z)的(N+1)个极点需都在单元圆(|Z|=1)内,而零、极点的分布共同影响系统的频率响应,给定系统延时N,系统分析确定K、 1、以及K2的调整范围和相对关系,公式中K为CDR环路的共同增益,K1和K2分别为一阶和二阶积分器的增益,系统分析的方法适用于二阶环路滤波器及任意阶数的环路滤波器。The system function H(Z) has (N+1) poles and a single zero. To ensure the stability and causality of the system, the (N+1) poles of H(Z) must all be within the unit circle (|Z|=1), and the distribution of zeros and poles jointly affects the frequency response of the system. Given the system delay N, the system analysis determines K, 1 , and the adjustment range and relative relationship of K 2. In the formula, K is the common gain of the CDR loop, K 1 and K 2 are the gains of the first-order and second-order integrators respectively. The system analysis method is applicable to second-order loop filters and loop filters of any order. 3.根据权利要求2所述的一种时钟与数据恢复电路的自适应方法,其特征在于,所述步骤S4中根据的变化范围,CDR的工作状态可以划分为捕捉阶段和跟踪阶段,在捕捉阶段,在大范围内变化,此时迅速变化,需要H(Z)提供足够的带宽,在保证系统稳定性的情况下,加大的K、以及各阶积分器增益(K1,K2, …Kn),保证快速跟随的变化。3. The adaptive method of a clock and data recovery circuit according to claim 2, characterized in that in step S4, The working state of CDR can be divided into the capture phase and the tracking phase. In the capture phase, In a large range of changes, Follow Rapid changes require H(Z) to provide sufficient bandwidth. Under the condition of ensuring system stability, K and the gains of each order integrator (K 1 ,K 2 , …K n ) are increased to ensure Quick Follow changes. 4.根据权利要求3所述的一种时钟与数据恢复电路的自适应方法,其特征在于,所述步骤S4在跟踪阶段,会在0附近抖动,此时CDR避免的抖动而发生不必要的变化,需要减小K、以及各阶积分器增益。4. The adaptive method of a clock and data recovery circuit according to claim 3, characterized in that, in the tracking phase, step S4: Will jitter around 0, at this time CDR avoids Follow To prevent unnecessary changes due to jitter, it is necessary to reduce K and the gains of integrators of each order. 5.根据权利要求4所述的一种时钟与数据恢复电路的自适应方法,其特征在于,所述步骤S5中CDR状态机包括:5. The adaptive method of a clock and data recovery circuit according to claim 4, characterized in that the CDR state machine in step S5 comprises: 时钟与数据恢复电路的共同增益、环路滤波器积分器的增益均为实时可配置;The common gain of the clock and data recovery circuits and the gain of the loop filter integrator are all configurable in real time; 时钟与数据恢复电路的输出包含限幅器,限幅器的输出幅度可配置;The output of the clock and data recovery circuit includes a limiter, and the output amplitude of the limiter is configurable; 对于环路滤波器的未经限幅的相位输出和频率输出,实时计算它们的统计特性,包含但不限于均值和方差。For the non-limited phase output and frequency output of the loop filter, their statistical characteristics, including but not limited to mean and variance, are calculated in real time. 6.根据权利要求5所述的一种时钟与数据恢复电路的自适应方法,其特征在于,所述步骤S5中CDR状态机包含两个重要的设计参数:acq_th以及track_th,分别对应CDR趋于捕捉状态和CDR趋于跟踪状态的检测门限,主要工作是计算环路滤波器相位输出和频率输出的统计特性,并与设定的门限acq_th和track_th做比较。6. The adaptive method of a clock and data recovery circuit according to claim 5 is characterized in that the CDR state machine in step S5 includes two important design parameters: acq_th and track_th, which respectively correspond to the detection thresholds of the CDR tending to the capture state and the CDR tending to the tracking state, and the main work is to calculate the statistical characteristics of the phase output and frequency output of the loop filter, and compare them with the set thresholds acq_th and track_th. 7.根据权利要求5所述的一种时钟与数据恢复电路的自适应方法,其特征在于,所述CDR状态机还包括:7. The adaptive method of a clock and data recovery circuit according to claim 5, wherein the CDR state machine further comprises: CDR状态机决定调整K、以及各阶积分器增益的时刻和方向,当CDR处于捕捉状态时,需保持高值K、以及各阶积分器增益,当CDR状态趋向收敛时,可以逐步减小K、以及各阶积分器增益;The CDR state machine determines the time and direction of adjusting K and the gain of each order integrator. When the CDR is in the capture state, it is necessary to maintain a high value of K and the gain of each order integrator. When the CDR state tends to converge, K and the gain of each order integrator can be gradually reduced. 给定系统延时N,K、以及各阶积分器增益各自的调整范围和调整颗粒度由系统函数H(Z)的稳定性分析和频率响应决定;Given the system delay N, K, and the adjustment range and granularity of each order integrator gain are determined by the stability analysis and frequency response of the system function H(Z); 无论是增大K、以及各阶积分器增益还是减小K、以及各阶积分器增益,每次增益的变化值不能超过设定的门限,以平滑增益变化导致的瞬态响应。No matter whether K and the gains of each order integrator are increased or decreased, the gain change value each time cannot exceed the set threshold to smooth the transient response caused by the gain change. 8.根据权利要求6所述的一种时钟与数据恢复电路的自适应方法,其特征在于,所述CDR状态机还包括:8. The adaptive method of a clock and data recovery circuit according to claim 6, wherein the CDR state machine further comprises: CDR趋于捕捉状态时,根据预先计算的颗粒度增大K、以及各阶积分器增益,并相应调整输出限幅,K、以及各阶积分器增益需要在预先设定的范围内;When the CDR tends to capture state, K and the gain of each order integrator are increased according to the pre-calculated granularity, and the output limit is adjusted accordingly. K and the gain of each order integrator need to be within the pre-set range. CDR趋于跟踪状态时,根据预先计算的颗粒度减小K、以及各阶积分器增益,并相应调整输出限幅,K、以及各阶积分器增益需要在预先设定的范围内;When the CDR tends to the tracking state, K and the gains of each order integrator are reduced according to the pre-calculated granularity, and the output limit is adjusted accordingly. K and the gains of each order integrator need to be within the pre-set range. 在CDR状态调整的过程中,检测门限acq_th以及track_th也分别基于相应的设计颗粒度调整:当K、以及各阶积分器增益增大时,以及的变化范围增大,所以基于两者统计特性的检测门限acq_th和track_th也会增大;当K、以及各阶积分器增益减小时,以及的变化范围减小,所以基于两者统计特性的检测门限acq_th和track_th也会减小;During the CDR state adjustment process, the detection thresholds acq_th and track_th are also adjusted based on the corresponding design granularity: when K and the gains of each order integrator increase, as well as The range of change increases, so the detection thresholds acq_th and track_th based on the statistical characteristics of the two will also increase; when K and the gains of each order integrator decrease, as well as The variation range of is reduced, so the detection thresholds acq_th and track_th based on the statistical characteristics of the two will also be reduced; 状态机包含等待状态:当CDR的参数发生变化,状态机进入等待状态,忽略瞬态响应导致的不稳定结果。The state machine includes a wait state: when the parameters of the CDR change, the state machine enters the wait state, ignoring the unstable results caused by the transient response. 9.一种时钟与数据恢复电路的自适应装置,其特征在于,包括:9. An adaptive device for a clock and data recovery circuit, comprising: 采样器,所述采样器用于对发送器件发出的数据进行接收;A sampler, the sampler is used to receive data sent by the sending device; 鉴相器,所述鉴相器与采样器相连接,所述鉴相器用于判断出发送时钟与接收时钟之间的相位偏差和频率偏差并且输出相位误差信号A phase detector is connected to the sampler, and is used to determine the phase deviation and frequency deviation between the sending clock and the receiving clock and output a phase error signal ; 环路滤波器,所述环路滤波器与鉴相器相连接,所述环路滤波器用于根据CDR的工作状态实时调整环路滤波器的内置增益和输出范围;A loop filter, the loop filter is connected to the phase detector, and the loop filter is used to adjust the built-in gain and output range of the loop filter in real time according to the working state of the CDR; 压控振荡器,所述压控振荡器与环路滤波器和采样器相连接。A voltage controlled oscillator is connected to the loop filter and the sampler. 10.根据权利要求9所述的一种时钟与数据恢复电路的自适应装置,其特征在于,所述环路滤波器包括:10. The adaptive device of a clock and data recovery circuit according to claim 9, wherein the loop filter comprises: 增益器,所述增益器用于调整鉴相器输出信号的强度并且调整放大器的增益以匹配时钟与数据恢复电路的状态;A gainer, the gainer being used to adjust the strength of the phase detector output signal and adjust the gain of the amplifier to match the state of the clock and data recovery circuit; 延时器,所述延时器用于对增益器的响应时间进行调整;A delay device, wherein the delay device is used to adjust the response time of the gain device; 统计特性分析模块,所述统计特性分析模块用于实时计算Loop Filter输出的统计特性并且判定CDR的工作状态;A statistical characteristic analysis module, which is used to calculate the statistical characteristics of the Loop Filter output in real time and determine the working status of the CDR; CDR状态机,所述CDR状态机用于根据Loop Filter输出的统计特性并基于门限检测的原理对Loop Filter的参数和输出范围进行调整;A CDR state machine, wherein the CDR state machine is used to adjust the parameters and output range of the Loop Filter according to the statistical characteristics of the Loop Filter output and based on the principle of threshold detection; 限幅器,所述限幅器用于动态范围控制、峰值保护和噪音消除。A limiter is provided for dynamic range control, peak protection and noise elimination.
CN202411900973.0A 2024-12-23 2024-12-23 A clock and data recovery circuit adaptive method and device Active CN119341520B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411900973.0A CN119341520B (en) 2024-12-23 2024-12-23 A clock and data recovery circuit adaptive method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411900973.0A CN119341520B (en) 2024-12-23 2024-12-23 A clock and data recovery circuit adaptive method and device

Publications (2)

Publication Number Publication Date
CN119341520A true CN119341520A (en) 2025-01-21
CN119341520B CN119341520B (en) 2025-04-15

Family

ID=94276190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411900973.0A Active CN119341520B (en) 2024-12-23 2024-12-23 A clock and data recovery circuit adaptive method and device

Country Status (1)

Country Link
CN (1) CN119341520B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120508325A (en) * 2025-07-21 2025-08-19 上海芯炽集成电路技术有限公司 Method for starting crystal oscillator-free high-speed transceiver system

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471508A (en) * 1993-08-20 1995-11-28 Hitachi America, Ltd. Carrier recovery system using acquisition and tracking modes and automatic carrier-to-noise estimation
US20060076993A1 (en) * 2004-10-12 2006-04-13 Broadcom Corporation High speed clock and data recovery system
US20060146959A1 (en) * 2005-01-05 2006-07-06 Agere Systems Inc. Look-ahead digital loop filter for clock and data recovery
US20110267122A1 (en) * 2009-01-22 2011-11-03 Glonet Systems, Inc. All-digital clock data recovery device and transceiver implemented thereof
CN102281043A (en) * 2011-03-30 2011-12-14 无锡晨星网联科技有限公司 Clock data recovery system realized by digital circuit
US9036764B1 (en) * 2012-12-07 2015-05-19 Rambus Inc. Clock recovery circuit
CN105703767A (en) * 2016-01-13 2016-06-22 中国科学技术大学先进技术研究院 High-energy-efficiency low-jitter single loop clock data recovery circuit
CN108055036A (en) * 2017-10-31 2018-05-18 北京集创北方科技股份有限公司 The loop bandwidth adjusting method and device of clock data recovery circuit
CN108282162A (en) * 2017-01-06 2018-07-13 联咏科技股份有限公司 Clock and data recovery circuit with improved jitter tolerance
CN108322214A (en) * 2018-01-15 2018-07-24 北京时代民芯科技有限公司 A kind of clock and data recovery circuit of no reference clock input
CN109194460A (en) * 2018-10-26 2019-01-11 光梓信息科技(上海)有限公司 Clock data recovery circuit, adaptive adjustment module and method
CN110995257A (en) * 2019-12-28 2020-04-10 苏州芯动科技有限公司 Loop filter circuit
CN111147415A (en) * 2019-12-23 2020-05-12 东方红卫星移动通信有限公司 Phase tracking method of low-orbit satellite MAPSK communication system
CN117792487A (en) * 2023-12-29 2024-03-29 中国人民解放军国防科技大学 Retiming circuits, receivers and computers for high-performance computer optical interconnects
CN118199621A (en) * 2024-03-11 2024-06-14 上海安路信息科技股份有限公司 Clock data recovery circuit and clock data recovery method based on phase-locked loop

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5471508A (en) * 1993-08-20 1995-11-28 Hitachi America, Ltd. Carrier recovery system using acquisition and tracking modes and automatic carrier-to-noise estimation
US20060076993A1 (en) * 2004-10-12 2006-04-13 Broadcom Corporation High speed clock and data recovery system
US20060146959A1 (en) * 2005-01-05 2006-07-06 Agere Systems Inc. Look-ahead digital loop filter for clock and data recovery
US20110267122A1 (en) * 2009-01-22 2011-11-03 Glonet Systems, Inc. All-digital clock data recovery device and transceiver implemented thereof
CN102281043A (en) * 2011-03-30 2011-12-14 无锡晨星网联科技有限公司 Clock data recovery system realized by digital circuit
US9036764B1 (en) * 2012-12-07 2015-05-19 Rambus Inc. Clock recovery circuit
CN105703767A (en) * 2016-01-13 2016-06-22 中国科学技术大学先进技术研究院 High-energy-efficiency low-jitter single loop clock data recovery circuit
CN108282162A (en) * 2017-01-06 2018-07-13 联咏科技股份有限公司 Clock and data recovery circuit with improved jitter tolerance
CN108055036A (en) * 2017-10-31 2018-05-18 北京集创北方科技股份有限公司 The loop bandwidth adjusting method and device of clock data recovery circuit
CN108322214A (en) * 2018-01-15 2018-07-24 北京时代民芯科技有限公司 A kind of clock and data recovery circuit of no reference clock input
CN109194460A (en) * 2018-10-26 2019-01-11 光梓信息科技(上海)有限公司 Clock data recovery circuit, adaptive adjustment module and method
CN111147415A (en) * 2019-12-23 2020-05-12 东方红卫星移动通信有限公司 Phase tracking method of low-orbit satellite MAPSK communication system
CN110995257A (en) * 2019-12-28 2020-04-10 苏州芯动科技有限公司 Loop filter circuit
CN117792487A (en) * 2023-12-29 2024-03-29 中国人民解放军国防科技大学 Retiming circuits, receivers and computers for high-performance computer optical interconnects
CN118199621A (en) * 2024-03-11 2024-06-14 上海安路信息科技股份有限公司 Clock data recovery circuit and clock data recovery method based on phase-locked loop

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
JOSHUA LIANG: "CDR AND loop filter and gain Loop Gain Adaptation for Optimum Jitter Tolerance in Digital CDRs", 《IEEE JOURNAL OF SOLID-STATE CIRCUITS 》, 29 June 2018 (2018-06-29), pages 2696 - 2708 *
常承: "一种环路带宽自适应调整的时钟数据恢复电路", 《微电子学》, 20 August 2022 (2022-08-20), pages 656 - 662 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120508325A (en) * 2025-07-21 2025-08-19 上海芯炽集成电路技术有限公司 Method for starting crystal oscillator-free high-speed transceiver system

Also Published As

Publication number Publication date
CN119341520B (en) 2025-04-15

Similar Documents

Publication Publication Date Title
CN119341520B (en) A clock and data recovery circuit adaptive method and device
US7688887B2 (en) Precision adaptive equalizer
AU2001286987B2 (en) Digital-data receiver synchronization method and apparatus
US6304615B1 (en) Serial digital data communications receiver with improved automatic cable equalizer, AGC system, and DC restorer
US9379682B2 (en) Digital equalizer adaptation using on-die instrument
US11139949B2 (en) Equalizer adaptation based on eye monitor measurements
CN110417536B (en) Phase detection method and phase detection circuit
US11451250B1 (en) Signal-to-noise and interference ratio (SNAIR) aware analog to digital converter (ADC)-based receiver and a method thereof
US8369470B2 (en) Methods and apparatus for adapting one or more equalization parameters by reducing group delay spread
US5454015A (en) Adaptive timing recovery with gain adjustment
WO2022105468A1 (en) Method for correcting analog equalizer, and control chip, receiver and storage medium
TWI799328B (en) Transceiver apparatus and transceiver apparatus operation method thereof having phase-tracking mechanism
KR20010068618A (en) Timing recovery apparatus and method for digital television
CN108055036B (en) Loop bandwidth adjusting method and device of clock data recovery circuit
CN118199621A (en) Clock data recovery circuit and clock data recovery method based on phase-locked loop
US20150263848A1 (en) Cdr relock with corrective integral register seeding
US20050271162A1 (en) Techniques to adjust vertical offset
US20030169835A1 (en) Error correction method and apparatus for data transmission system
US6650186B1 (en) Clock pulse and data regenerator for different data rates
US5521939A (en) Timing reproduction device
CN100555931C (en) The device of conditioning signal sampled point, system and method
EP1532763B1 (en) Transition error based jitter estimation
CN119299268B (en) Adaptive analog equalization device, system and algorithm
US10855242B1 (en) Adaptive equalizer for high speed serial data and related control method
CN113595548B (en) Phase-locking device and system for adaptive bandwidth adjustment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载