Digital clock frequency tracker and high-speed serial interface chip

Through the digital clock frequency tracker in the high-speed serial interface chip, the counting frequency discriminator and phase discriminator are used to extract the clock frequency information of the receiving end, generate the frequency control word, and directly adjust the frequency of the phase-locked loop of the transmitting end, solving the problem of high-efficiency clock transmission. It solves the problem of power consumption and noise impact, and achieves low power consumption, high performance clock frequency tracking and stable data transmission.

WO2024183573A1PCT designated stage expired Publication Date: 2024-09-12JOYWELL SEMICON (SHANGHAI) CO LTD

Patent Information

Application Number
PCT/CN2024/078958
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-03
Filing Date
2024-02-28
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

In high-speed serial interface chips, the transmission of clock signals consumes high power and is easily affected by noise, making the design difficult. It is difficult for existing solutions to maintain clock transmission quality at high data transmission rates.

Method used

Use a digital clock frequency tracker to extract the frequency information of the receiving end clock through a counting frequency discriminator, phase detector and digital low-pass filter, generate a frequency control word, and directly adjust the transmitting end phase-locked loop frequency in the digital circuit to avoid Analog clock transmission, reducing design difficulty and suppressing noise.

Benefits of technology

It achieves low-power consumption and high-performance clock frequency tracking, reduces the difficulty of clock transmission design, improves the performance of the transmitter, avoids phase-locked loop loss, and ensures the stability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024078958_12092024_PF_FP_ABST
    Figure CN2024078958_12092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of integrated circuits. Disclosed are a digital clock frequency tracker and a high-speed serial interface chip. The tracker comprises: a count frequency discriminator, which is used for acquiring a recovery clock signal which is recovered by a clock-data recovery circuit of a receiving end and has been subjected to frequency division, and a local clock signal which is generated by a phase-locked loop of a transmitting end and has been subjected to frequency division, for setting a corresponding target value, for performing sampling on a count value of the recovery clock signal after a count value of the local clock signal reaches a target value, and for obtaining frequency offset information; a phase discriminator, which is used for setting a frequency division coefficient according to the frequency division ratio of the recovery clock signal to the local clock signal, for performing oversampling on the recovery clock signal by using the local clock signal and according to the frequency division coefficient, and for obtaining phase information; and a digital low-pass filter, which is used for obtaining a frequency control word according to the frequency offset information and the phase information and respective gains thereof. The present invention provides a solution for tracking, on the basis of the frequency at which a transmitting end transmits serial data and in a high-performance and low-power manner, the frequency at which a receiving end receives data.
Need to check novelty before this filing date? Find Prior Art

Description

Digital clock frequency tracker, high-speed serial interface chip Technical Field

[0001] The present application relates to the field of integrated circuit technology, and in particular to a digital clock frequency tracker and a high-speed serial interface chip. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the present application as recited in the claims. No admission is made that the description herein is prior art as disclosed by virtue of its inclusion in this section.

[0003] The function of a high-speed serial interface chip used in a retimer is to amplify the signal received by the receiver and then transmit the amplified signal to the next-level device via the transmitter on the other side. Because the local receiver / transmitter and the peripheral devices use different reference clocks generated by crystal oscillators as clock sources, the local receiver / transmitter needs to implement an additional clock frequency tracking scheme in addition to the phase-locked loop (PLL) to generate the high-speed clock. This ensures that the high-speed clock frequency of the received / transmitted data is consistent with that of the peer peripheral, thereby ensuring correct data reception, amplification, and transmission. On the receiver side of the high-speed serial interface chip, CDR (clock data recovery) technology is generally used to directly recover the clock information from the received serial signal and use it as the high-speed clock for the local receive data. Because the transmitter also needs to use the same clock frequency for serial data transmission, this high-speed clock needs to be transferred from the receiver to the transmitter for serial data transmission. In the high-speed serial interface chip, transferring this high-speed clock consumes a lot of power and is easily affected by factors such as crosstalk and noise. Currently, two schemes are used for this transfer:

[0004] 1. Directly transmit the high-speed clock, recovered from the received data by the clock-data recovery circuit at the receiver, to the transmitter for high-speed serial data transmission. This solution requires the transmission of a high-speed clock signal, and as the chip's data transmission rate increases, the frequency of this clock signal also increases, making it increasingly difficult to implement in applications with higher transmission rates. Because the receiver and transmitter may be physically far apart within the chip, transmitting this high-speed clock signal requires multiple buffers to ensure clock transmission quality, which in turn consumes a lot of power. Furthermore, to ensure high-speed clock transmission performance, the clock routing channels must be well-designed and isolated, which increases the design difficulty and the area consumed by the clock channels.

[0005] 2. The high-speed clock recovered from the received data by the receiver's clock-data recovery circuit is divided and then transmitted to the transmitter. The transmitter's phase-locked loop (PLL) locks this clock as a reference clock, and the transmitter uses the output clock locked by the PLL as the high-speed clock for data transmission. This solution reduces the frequency of the recovered clock transmitted from the receiver to the transmitter, thereby reducing the power consumption of clock transmission to a certain extent. However, since the clock transmitted to the transmitter serves as the reference clock for the PLL, the quality of clock transmission remains a key factor in determining the data transmission performance of the transmitter, and the design of the clock transmission channel is still very difficult.

[0006] The present invention proposes a high-performance, low-power solution for achieving the tracking of the frequency of serial data sent by a transmitting end and the frequency of data received by a receiving end.

[0007] Summary of the Invention

[0008] The purpose of this application is to provide a digital clock frequency tracker, which greatly reduces the design difficulty of clock transmission and can suppress high-frequency noise in the recovered clock through a low-pass filter implemented in a digital circuit, thereby improving the performance of the transmitter.

[0009] The present application discloses a digital clock frequency tracker, comprising:

[0010] a counting frequency discriminator for obtaining a recovered clock signal after frequency division of a clock signal recovered by a clock-data recovery circuit at the receiving end and a local clock signal after frequency division of a clock signal generated by a phase-locked loop at the transmitting end, setting a corresponding target value according to a frequency division ratio between the recovered clock signal and the local clock signal, sampling a count value of the recovered clock signal after the count value of the local clock signal reaches the target value, and obtaining frequency offset information by comparing the count value of the recovered clock signal with the count value of the local clock signal;

[0011] a phase detector configured to receive the divided recovered clock signal and the divided local clock signal, set a frequency division coefficient according to the frequency division ratio of the recovered clock signal and the local clock signal, oversample the recovered clock signal using the local clock signal according to the frequency division coefficient, and obtain phase information based on the sampling result; and

[0012] A digital low-pass filter is used to obtain a frequency control word according to the frequency offset information, the phase information and their respective gains and output the frequency control word to the phase-locked loop of the transmitting end.

[0013] In a preferred embodiment, it also includes:

[0014] A frequency anomaly monitoring module is used to receive the recovered clock signal after division and the local clock signal after division, set a corresponding target value according to the division ratio of the recovered clock signal and the local clock signal, sample the count value of the recovered clock signal after the count value of the local clock signal reaches the target value, and when the difference between the count value of the recovered clock signal and the target value exceeds a predetermined range, turn off the digital low-pass filter, and when the difference between the count value of the recovered clock signal and the target value is within a predetermined range, enable the digital low-pass filter.

[0015] In a preferred example, the target value of the recovered clock signal is four times, six times or eight times the target value of the local clock signal, and the target values ​​of the recovered clock signal and the local clock signal set in the frequency anomaly monitoring module are smaller than the target values ​​of the recovered clock signal and the local clock signal set in the counting frequency detector.

[0016] In a preferred example, after sampling the count value of the recovered clock signal, the counting frequency discriminator is further configured to reset the count value of the recovered clock signal and the count value of the local clock signal.

[0017] In a preferred example, the target value of the recovered clock signal is four times, six times or eight times the target value of the local clock signal.

[0018] In a preferred example, the phase detector uses the local clock signal to oversample the recovered clock signal by an integer multiple of four according to a frequency division coefficient. When the sampling result is 000, 010, 101 or 111, the phase detection result is 0; when the sampling result is 001 or 110, the phase detection result is -1; when the sampling result is 011 or 100, the phase detection result is 1, and the phase detector outputs the phase detection results sequentially.

[0019] In a preferred example, the phase detector uses the local clock signal to oversample the recovered clock signal by an integer multiple of non-four according to the frequency division coefficient. When the sampling result is 000, 010, 101 or 111, the phase detector result is 0; when the sampling result is 001 or 110, the phase detector result is -1; when the sampling result is 011 or 100, the phase detector result is 1, and the phase detector outputs the integers other than four in sequence starting from the first phase detector result, and discards other phase detector results.

[0020] In a preferred example, the phase detector using the local clock signal to oversample the recovered clock signal by a non-integer multiple of four according to a frequency division coefficient further includes: performing six-fold oversampling.

[0021] The present application also discloses a high-speed serial interface chip, comprising:

[0022] A clock-data recovery circuit at the receiving end, configured to recover the high-speed clock of the receiving end;

[0023] A first frequency divider, configured to divide the recovered high-speed clock to obtain a divided recovered clock signal;

[0024] The phase-locked loop at the transmitter is used to generate the high-speed clock at the transmitter;

[0025] A second frequency divider is used to divide the high-speed clock of the transmitting end to obtain a divided local clock signal; and

[0026] A digital clock frequency tracker as described above.

[0027] The embodiments of the present application have the following beneficial effects:

[0028] 1. The digital signal of the frequency control word is directly transmitted to the transmitter, so there is no need to use analog signals to transmit the clock between the receiver and the transmitter, which reduces the design difficulty of clock transmission and reduces the power consumption of the clock transmission path.

[0029] 2. The high-frequency noise in the recovered clock can be suppressed by a low-pass filter implemented in the digital circuit, thereby improving the transmitter performance.

[0030] 3. In digital circuits, the frequency anomaly monitoring module can be used to maintain the output frequency of the transmitter phase-locked loop in an abnormal state, thereby avoiding the loss of phase-locked loop lock at the transmitter, so that the transmitter can quickly resume data transmission after the receiver returns to normal.

[0031] 4. Use digital circuits to perform frequency discrimination on the recovered clock at the receiving end and the local clock at the transmitting end. The frequency information can be read out through software and then converted into a frequency control word to directly configure the output frequency of the phase-locked loop at the transmitting end, realizing software takeover.

[0032] The specification of this application records a large number of technical features, which are distributed in various technical solutions. If all possible combinations of technical features of this application (i.e., technical solutions) are to be listed, the specification will be too lengthy. In order to avoid this problem, the various technical features disclosed in the above-mentioned invention content of this application, the various technical features disclosed in the various embodiments and examples below, and the various technical features disclosed in the accompanying drawings can be freely combined with each other to form various new technical solutions (these technical solutions should all be deemed to have been recorded in this specification), unless such a combination of technical features is technically infeasible. For example, in one example, feature A+B+C is disclosed, and in another example, feature A+B+D+E is disclosed. Features C and D are equivalent technical means that play the same role. Technically, only one of them can be used, and it is impossible to use them at the same time. Feature E can be technically combined with feature C. Then, the solution of A+B+C+D should not be deemed to have been recorded because it is technically infeasible, while the solution of A+B+C+E should be deemed to have been recorded. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] FIG1 is a schematic structural diagram of a digital clock frequency tracker according to an embodiment of the present application.

[0034] FIG2 is a schematic diagram of the working sequence of a counting frequency discriminator according to an embodiment of the present application.

[0035] FIG3 is a schematic diagram illustrating the working principle of a phase detector according to an embodiment of the present application.

[0036] FIG4 is a schematic diagram illustrating the working principle of a phase detector according to another embodiment of the present application.

[0037] Explanation of reference numerals: 100: digital clock frequency tracker 101: counter frequency detector 102: phase detector 103: digital low-pass filter 104: frequency anomaly monitoring module 105: clock-data recovery circuit 106: first frequency divider 107: phase-locked loop 108: second frequency divider DETAILED DESCRIPTION

[0038] In the following description, many technical details are provided to help readers better understand this application. However, those skilled in the art will understand that even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in this application can be implemented.

[0039] The following is a summary of some of the innovative features of the embodiments of this application:

[0040] The present invention proposes a method for extracting frequency information from the clock recovered by a clock-data recovery circuit at the receiving end using a digital circuit. By changing the frequency control word of the phase-locked loop at the transmitting end, the output frequency of the phase-locked loop at the transmitting end is adjusted, thereby enabling the transmitting end's data transmission frequency to track the receiving end's data reception frequency. This method, which uses a digital circuit to extract frequency information, allows the digital signal to be directly transmitted to the transmitting end, eliminating the need for analog signals to transmit the clock between the receiving and transmitting ends. This significantly reduces the design complexity of clock transmission, and a low-pass filter implemented in the digital circuit can suppress high-frequency noise in the recovered clock, thereby improving transmitting end performance.

[0041] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0042] One embodiment of the present application relates to a digital clock frequency tracker, the structure of which is shown in FIG1 . The digital clock frequency tracker 100 includes a counter frequency discriminator 101, a phase detector 102, and a digital low-pass filter 103. The counter frequency discriminator 101 and the phase detector 102 are respectively coupled to the digital low-pass filter 103. The counter frequency discriminator 101 is used to obtain a recovered clock signal obtained by dividing the clock signal recovered by a clock-data recovery circuit 105 at the receiving end through a first frequency divider 106, and a local clock signal obtained by dividing the clock signal generated by a phase-locked loop 107 at the transmitting end through a second frequency divider 108. The counter frequency discriminator 101 sets a corresponding target value based on the division ratio between the recovered clock signal and the local clock signal. After the count value of the local clock signal reaches the target value, the count value of the recovered clock signal is sampled, and frequency offset information is obtained by comparing the count value of the recovered clock signal with the count value of the local clock signal. Phase detector 102 obtains the recovered clock signal from the clock-data recovery circuit 105 at the receiving end, which is divided by a first frequency divider 106, and the local clock signal from the clock signal generated by the phase-locked loop 107 at the transmitting end, which is divided by a second frequency divider 108. Phase detector 102 sets a frequency division coefficient based on the division ratio between the recovered and local clock signals. It then oversamples the recovered clock signal using the local clock signal according to the frequency division coefficient and obtains phase information based on the sampling result. Digital low-pass filter 103 is used to obtain a frequency control word based on the frequency offset information, phase information, and their respective gains, and outputs it to the phase-locked loop 107 at the transmitting end.

[0043] At the receiving end, a frequency divider 106 divides the clock recovered from the received serial data by the clock-data recovery circuit 105 and transmits it to a digital clock frequency tracker 100, implemented in a digital circuit, as a reference clock input. Furthermore, at the transmitting end, a frequency divider 108 divides the high-speed clock generated by the transmitting phase-locked loop 107 and transmits it to the digital clock frequency tracker 100 as the local clock to be adjusted. After performing frequency and phase discrimination on the two input clocks, the digital clock frequency tracker 100 generates a frequency control word and transmits it to the transmitting phase-locked loop 107 to control the frequency of the output clock.

[0044] In the digital clock frequency tracker 100, the frequency information extraction function is implemented by two submodules: a counter frequency detector 101 and a bang-bang phase detector 102. In the implementation of the counter frequency detector 101, the target count values ​​for the receiver's recovered clock and the transmitter's local clock are first configured based on the data transmission rates of the receiver and transmitter and the frequency divider ratios of the two high-speed clock paths. Subsequently, the reset signals for the two counters driven by the receiver's recovered clock and the transmitter's local clock, respectively, are released simultaneously to ensure that both counters begin operating simultaneously. Finally, when the transmitter's local clock counter reaches the target value, a pulse signal is generated to sample the receiver's recovered clock counter and compare it with the corresponding target value to obtain frequency offset information. This frequency offset information is multiplied by a configurable gain and fed into a digital low-pass filter 103, which then generates the frequency control word for the transmitter's phase-locked loop 107. Configuration allows the full value of the frequency offset information to be used, or only its sign, as the increment for the frequency control word.

[0045] The operating timing of counter frequency discriminator 101 is shown in Figure 2. Because the recovered clock at the receiving end is affected by the data received and thus exhibits uncertainty, the local clock at the transmitting end is used as the master clock for the counter frequency discriminator logic to generate sampling signals and counter reset signals. In one embodiment, after sampling the count value of the recovered clock signal, counter frequency discriminator 101 also resets the count value of the recovered clock signal and the count value of the local clock signal. In one embodiment, the target value of the recovered clock signal is four, six, eight, or other times the target value of the local clock signal. It should be understood that in other embodiments of the present application, other multiples, such as two, five, or so forth, may be used.

[0046] The operating principle of bang-bang phase detector 102 is shown in Figure 3. Similar to counting frequency detector 101, bang-bang phase detector 102 also uses the transmitter's local clock as the master clock for its digital logic. By configuring different division factors using a frequency divider, bang-bang phase detector 102 uses the transmitter's local clock at a frequency four times that of the receiver's recovered clock. Bang-bang phase detector 102 uses the transmitter's local clock to oversample the receiver's recovered clock by a factor of four, and the sampling results are used to determine the relative phase relationship between the two clocks. The relationship between the sampling results, the phase relationship, and the bang-bang phase detector output is shown in Table 1. When the bang-bang phase detector sampling result is 000, 010, 101, or 111, it indicates a phase relationship error. The phase detection result is 0, and the bang-bang phase detector outputs 0. When the bang-bang phase detector sampling result is 001 or 110, it indicates that the received clock is ahead of the local clock of the transmitter. The phase detection result is -1, and the bang-bang phase detector outputs -1. When the sampling result is 011 or 100, it indicates that the received clock is lagging behind the local clock of the transmitter. The phase detection result is 1, and the bang-bang phase detector outputs 1. The phase information of the two clocks is multiplied by a configurable gain and sent to the digital low-pass filter 103, which then generates the frequency control word for the transmitter phase-locked loop 107.

[0047] Table 1 Relationship between sampling results, phase relationship and phase detection results

[0048] In other embodiments of the present application, other settings may also be adopted, but it is necessary to ensure that the multiple of oversampling the receiving end recovered clock using the local clock of the transmitting end in the bang-bang phase detector 102 is greater than twice, for example, four times, six times, eight times, and so on. If the oversampling multiple is an integer multiple of 4, the sampling result (phase detection result) does not need to be screened, and the bang-bang phase detector outputs the phase detection results sequentially. If it is not an integer multiple of 4, the sampling result (phase detection result) needs to be screened before use. The screening principle is to convert the frequency of the receiving end recovered clock and the transmitting end local clock into a fractional form, such as A / B, where A and B are both integers. Then the first phase detection result in every N phase detection results is valid data, and the remaining N-1 phase detection results are invalid, and N is taken as the least common multiple of A and B.

[0049] Taking sixfold oversampling as an example, the operating principle of bang-bang phase detector 102 is shown in FIG4 . When the sampling results of the bang-bang phase detector are 000, 010, 101, or 111, the phase relationship is incorrect, and the phase detection result is 0. When the sampling results of the bang-bang phase detector are 001 or 110, the received recovered clock leads the transmitted local clock, and the phase detection result is -1. When the sampling results are 011 or 100, the received recovered clock lags the transmitted local clock, and the phase detection result is 1. With sixfold oversampling, the frequency ratio of the received recovered clock and the transmitted local clock is 1 / 6. Therefore, A = 1, B = 6, and N is the least common multiple of 1 and 6, i.e., 6. Phase detector 102 outputs every six phase detection results, starting from the first one, and discards the remaining phase detection results. In other words, the first of every six phase detection results is valid data, and the remaining data is discarded.

[0050] In the present invention, the frequency and phase detection results output by the two sub-modules of the counting frequency detector 101 and the bang-bang phase detector 102 are multiplied by their independently configured gains and then enter the parameter-configurable digital low-pass filter 103. The digital low-pass filter 103 generates the frequency control word of the transmitting end phase-locked loop 107 and outputs it to the transmitting end phase-locked loop 107.

[0051] Because the recovered clock at the receiving end is affected by the receiving end data and has uncertainty, the present invention requires a frequency anomaly monitoring module 104 to detect whether the recovered clock frequency at the receiving end is abnormal. Frequency anomaly monitoring module 104 is used to obtain the recovered clock signal after the clock signal recovered by the clock-data recovery circuit 105 at the receiving end is divided by the first frequency divider 106, and the local clock signal after the clock signal generated by the phase-locked loop 107 at the transmitting end is divided by the second frequency divider 108. A corresponding target value is set based on the frequency division ratio between the recovered clock signal and the local clock signal. After the count value of the local clock signal reaches the target value, the count value of the recovered clock signal is sampled. When the difference between the count value of the recovered clock signal and the target value exceeds a predetermined range, the digital low-pass filter 103 is disabled. When the difference between the count value of the recovered clock signal and the target value is within the predetermined range, the data low-pass filter 103 is enabled. In one embodiment, the target value of the recovered clock signal at the receiving end in the frequency anomaly monitoring module 104 can be four times, six times, eight times, or the like, the target value of the local clock signal at the transmitting end. It should be understood that in other embodiments of the present application, it can also be other times, for example, two times, five times, etc.

[0052] The operating principle of the frequency anomaly monitoring module 104 is the same as that of the counter frequency discriminator 101, but with lower accuracy and higher bandwidth. The target value of the recovered clock signal at the receiving end and the target value of the local clock signal at the transmitting end in the frequency anomaly monitoring module 104 are set smaller than the target value of the recovered clock signal at the transmitting end and the target value of the local clock signal at the transmitting end in the counter frequency discriminator 101, which shortens the counting cycle and calculates the deviation more quickly from the counting results. Therefore, it is possible to quickly detect whether the recovered clock frequency at the receiving end deviates significantly from the expected value to achieve high bandwidth. If the recovered clock frequency at the receiving end is abnormal, the frequency anomaly monitoring module will turn off the enable signal of the digital filter, and the frequency control word output by the digital filter will remain unchanged until the recovered clock frequency at the receiving end returns to normal.

[0053] In summary, the present invention does not directly transmit the analog clock from the receiving end to the transmitting end to achieve frequency tracking. Instead, it uses a digital circuit to extract the frequency information from the recovered clock on the receiving end and sends this digital signal to the transmitting end to complete frequency tracking. In this digital circuit, a frequency anomaly monitoring module can be used to maintain the output frequency of the transmitting end's phase-locked loop (PLL) in abnormal conditions, preventing the transmitting end's PLL from losing lock and allowing the transmitting end to quickly resume data transmission after the receiving end returns to normal.

[0054] It should be noted that in this patent application, relational terms such as first and second, etc., are used solely to distinguish one entity or operation from another, and do not necessarily require or imply any actual relationship or order between these entities or operations. Furthermore, the terms "comprise," "include," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. Without further limitation, an element specified by the phrase "comprising a" does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element. In this patent application, reference to performing an action in accordance with an element means performing the action in accordance with at least that element, including two situations: performing the action in accordance with that element alone, and performing the action in accordance with that element and other elements. Expressions such as "plurality," "multiple times," and "many" include "two," "twice," "two kinds," and "more than two," "more than two times," and "more than two kinds."

[0055] The term "coupled to" and its derivatives may be used herein. "Coupled" may mean that two or more elements are in direct physical or electrical contact. However, "coupled" may also mean that two or more elements are in indirect contact with each other, but still cooperate or interact with each other, and may mean that one or more other elements are coupled or connected between the elements referred to as being coupled to each other.

[0056] This specification includes combinations of the various embodiments described herein. Separate references to an embodiment (e.g., "one embodiment" or "some embodiments" or "preferred embodiments") do not necessarily refer to the same embodiment; however, these embodiments are not mutually exclusive unless indicated as such or clear to one skilled in the art. It should be noted that the word "or" is used in this specification in a non-exclusive sense unless the context clearly indicates or requires otherwise.

[0057] All documents mentioned in this specification are considered to be included in their entirety in the disclosure of this application so that they can be used as a basis for modification when necessary. In addition, it should be understood that the above description is only a preferred embodiment of this specification and is not intended to limit the scope of protection of this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification should be included in the scope of protection of one or more embodiments of this specification.

Claims

1. A digital clock frequency tracker, characterized in that: include: A counting frequency discriminator, used for obtaining a recovered clock signal after the clock signal recovered by the clock-data recovery circuit in the receiving end is divided and a local clock signal after the clock signal generated by the phase-locked loop in the transmitting end is divided, setting a corresponding target value according to the frequency division ratio of the recovered clock signal and the local clock signal, sampling the count value of the recovered clock signal after the count value of the local clock signal reaches the target value, and obtaining frequency offset information according to the comparison between the count value of the recovered clock signal and the count value of the local clock signal; A phase detector, used to receive the divided recovered clock signal and the divided local clock signal, set a frequency division coefficient according to the frequency division ratio of the recovered clock signal and the local clock signal, use the local clock signal to oversample the recovered clock signal according to the frequency division coefficient, and obtain phase information according to the sampling result; as well as A digital low-pass filter is used to obtain a frequency control word according to the frequency offset information and the phase information and their respective gains and output the frequency control word to the phase-locked loop of the transmitting end.

2. The digital clock frequency tracker according to claim 1, characterized in that: Also includes: A frequency anomaly monitoring module is used to receive the recovered clock signal after division and the local clock signal after division, set a corresponding target value according to the division ratio of the recovered clock signal and the local clock signal, sample the count value of the recovered clock signal after the count value of the local clock signal reaches the target value, and when the difference between the count value of the recovered clock signal and the target value exceeds a predetermined range, turn off the digital low-pass filter, and when the difference between the count value of the recovered clock signal and the target value is within a predetermined range, enable the digital low-pass filter.

3. The digital clock frequency tracker as claimed in claim 2, characterized in that: The target value of the recovered clock signal is four times, six times or eight times the target value of the local clock signal, and the target values ​​of the recovered clock signal and the local clock signal set in the frequency anomaly monitoring module are smaller than the target values ​​of the recovered clock signal and the local clock signal set in the counting frequency detector.

4. The digital clock frequency tracker as claimed in claim 1, characterized in that: After sampling the count value of the recovered clock signal, the count discriminator is further used to reset the count value of the recovered clock signal and the count value of the local clock signal.

5. The digital clock frequency tracker as claimed in claim 1, characterized in that: The target value of the recovered clock signal is four times, six times, or eight times the target value of the local clock signal.

6. The digital clock frequency tracker as claimed in claim 1, characterized in that: The phase detector uses the local clock signal to oversample the recovered clock signal by an integer multiple of four according to the frequency division coefficient. When the sampling result is 000, 010, 101 or 111, the phase detection result is 0, when the sampling result is 001 or 110, the phase detection result is -1, when the sampling result is 011 or 100, the phase detection result is 1, and the phase detector outputs the phase detection results sequentially.

7. The digital clock frequency tracker according to claim 1, characterized in that: The phase detector uses the local clock signal to oversample the recovered clock signal by an integer multiple of non-four according to the frequency division coefficient. When the sampling result is 000, 010, 101 or 111, the phase detector result is 0, when the sampling result is 001 or 110, the phase detector result is -1, and when the sampling result is 011 or 100, the phase detector result is 1, and the phase detector outputs the phase detector result in sequence from the first phase detector result at intervals of the integer non-four, and discards other phase detector results.

8. The digital clock frequency tracker as claimed in claim 7, characterized in that: The phase detector uses the local clock signal to oversample the recovered clock signal by a non-integer multiple of four according to the frequency division coefficient, further comprising: performing six-fold oversampling.

9. A high-speed serial interface chip, characterized in that: include: A clock-data recovery circuit at a receiving end, used to recover a high-speed clock at the receiving end; A first frequency divider, used for dividing the recovered high-speed clock to obtain a divided recovered clock signal; The phase-locked loop at the transmitting end is used to generate the high-speed clock of the transmitting end; A second frequency divider, used for dividing the high-speed clock of the transmitting end to obtain a divided local clock signal; as well as A digital clock frequency tracker as claimed in any one of claims 1 to 8.

Citation Information

Patent Citations

  • High-speed multi-channel clock data recovery circuit

    CN101610083A

  • Clock data recovery system

    CN105680851A

  • Data clock recovery circuit

    CN106330180A

  • Digital clock frequency tracker and high-speed serial interface chip

    CN116527038A

  • Device, system and method of frequency tracking for clock and data recovery

    US20070153837A1

Cited By

  • Label chip and digital baseband clock configuration method thereof

    CN120597565A

  • Control word digital adjustment circuit and retimer based on decimal N frequency division phase-locked loop

    CN120710500A