Method for Correcting TDC Step Size in ADPLL Based on Average Step Size

By calculating the average step size of TDC and correcting the conversion coefficient, the problem of inconstant TDC step size is solved, and high-accurate clock performance tracking and jitter suppression are achieved, ensuring the stability of ADPLL.

CN118694358BActive Publication Date: 2024-11-15成都星拓微电子科技股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411161017.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-15
Estimated Expiration
2044-08-22

AI Technical Summary

Technical Problem

The TDC step size value is not constant under process, voltage, and temperature changes, resulting in clock jitter and phase-locked loop loss.

Method used

By initializing the count value and total step size value, calculate the average step size of TDC, and use this average step size to correct the TDC conversion coefficient, track the step size changes in real time, and generate a decimal part of the phase error for loop filter input, ensuring the clock performance.

Benefits of technology

It realizes high-accuracy TDC step size adaptive calculation, tracks step size changes in real time, suppresses clock rising edge jitter, and ensures output clock performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694358B_ABST
    Figure CN118694358B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for correcting the TDC step length in an ADPLL based on an average step length. In order to reduce the influence of TDC step length fluctuation on the performance of the ADPLL, the TDC of the present invention receives a DCO output clock and a reference clock, and generates a plurality of delayed DCO output clocks through the DCO output clock to sample the reference clock respectively to obtain a TDC codeword; then the number of steps and the step length value within a reference clock cycle are obtained according to the TDC codeword; the TDC coefficient correction module obtains a TDC conversion coefficient according to the average step length and outputs it to the TDC, and the TDC conversion coefficient is equal to the average step length multiplied by the DCO output clock frequency. The present invention can overcome the influence of environmental factors such as temperature, process, voltage, etc. on the TDC step length, and improve the performance of the ADPLL output clock.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of clock chips, and in particular to a method for correcting a TDC step length in an ADPLL based on an average step length. Background Art

[0002] A clock chip is an integrated circuit that provides accurate timing information, i.e. clock signals, for electronic devices. These signals are necessary for the coordinated and stable operation of electronic systems and play an important role as the "pulse" of the system. Clock chips mainly include: oscillators, clock buffers, clock generators, de-jitter chips, real-time clock chips, and clock synchronization chips.

[0003] The core of the clock chip is the crystal oscillator, which generates a stable oscillation signal that outputs an accurate clock signal after frequency division, counting, and other processing. It provides a beat signal for each module in the clock tree.

[0004] Clock chips are widely used. In smart devices such as mobile phones and computers, clock chips are used to provide accurate time information. In car navigation systems, clock chips are used to provide accurate timestamps. In the fields of medical equipment, financial equipment, etc., clock chips are used to record patients' body signals or ensure the security and accuracy of transactions.

[0005] Currently, a clock chip called All Digital Phase Locked Loop (ADPLL) has received widespread attention and attention. ADPLL often uses a time to digital converter (TDC) to measure phase error. Figure 1 A schematic diagram of an ADPLL in a scenario in the prior art is shown. The ADPLL includes an integrator, a TDC, a loop filter, a digital controlled oscillator (DCO), and a counter.

[0006] However, TDC is affected by process, voltage, and temperature. The unit delay value measured by TDC, that is, the TDC step value, is not constant. If it is not corrected, the error may increase clock jitter and affect clock performance. In addition, when using the spread spectrum mode, the error may cause phase-locked loop fluctuations, resulting in phase-locked loop loss of lock. Summary of the invention

[0007] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:

[0008] A method for correcting the TDC step length in an ADPLL based on an average step length comprises the following steps: initializing a count value to zero and initializing a total step length value to zero; before the count value reaches a maximum count value, accumulating the step length value to the total step length value, and increasing the count value by one; when the count value reaches the maximum count value, obtaining an average step length, the average step length being equal to the total step length value divided by the maximum count value; a TDC coefficient correction module obtaining a TDC conversion coefficient according to the average step length and outputting it to a TDC, the TDC conversion coefficient being equal to the average step length multiplied by a DCO output clock frequency; and obtaining The step value is obtained: the TDC receives the DCO output clock and the reference clock, and generates a plurality of delayed DCO output clocks through the DCO output clock to sample the reference clock respectively to obtain a TDC codeword; the number of steps and the step value within a reference clock cycle are obtained according to the TDC codeword, wherein the step value is equal to 1 / (reference clock frequency×number of steps); in addition, the ADPLL includes a TDC and a DCO, and the DCO output clock comes from the DCO; the TDC codeword includes at least 3 segments of continuous 1 or continuous 0, wherein 1 represents that the reference clock is at a high level, and 0 represents that the reference clock is at a low level.

[0009] Further, the TDC code word is shifted left by one bit, and the mantissa is padded with zero to obtain a left-shifted TDC code word;

[0010] An XOR operation is performed on the TDC codeword and the left-shifted TDC codeword to obtain the XORed TDC codeword; an AND operation is performed on the XORed TDC codeword and the TDC codeword to obtain the ANDed TDC codeword, and there are two 1s in the ANDed TDC codeword; the number of steps within one reference clock cycle is equal to the number of 0s between the two 1s in the ANDed TDC codeword plus 1.

[0011] Further, the TDC codeword is sent to a TDC coefficient correction module.

[0012] Furthermore, the TDC receives a fractional part of a frequency control word, and the fractional part of the frequency control word comes from an integrator in the ADPLL.

[0013] Further, the TDC generates a fractional part of the phase error, and the fractional part of the phase error is used to synthesize the phase error.

[0014] Furthermore, the phase error is used as input information of a loop filter in the ADPLL.

[0015] The technical solution of the present invention has the following beneficial technical effects:

[0016] The present invention can adaptively calculate the average step length of TDC in the background with high accuracy, does not affect the operation of ADPLL, can also track the step length change of TDC caused by temperature, voltage, etc. in real time, and can filter out the clock rising edge jitter caused by the external environment to ensure the output clock performance.

[0017] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of an ADPLL in a scenario in the prior art;

[0019] Figure 2 Schematic diagram of TDC step length correction in the present invention;

[0020] Figure 3 It is a schematic diagram of the TDC codeword sampling waveform;

[0021] Figure 4 is a schematic diagram of bit operations to obtain step values;

[0022] Figure 5 is a flow chart for obtaining the average step length. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] In order to clearly describe the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order.

[0025] Figure 2 The TDC receives the fractional part of the frequency control word and the reference clock, as well as the DCO output clock and the TDC conversion coefficient, and outputs the fractional part of the phase error and the TDC codeword.

[0026] The fractional part of the frequency control word can come from the integrator in the ADPLL. The DCO output clock comes from the DCO in the ADPLL. The following article will introduce how to obtain the TDC codeword in the TDC.

[0027] How to obtain the fractional part of the phase error belongs to the common technical knowledge in the field and will not be elaborated in the present invention.

[0028] In the present invention, the TDC generates a fractional portion of the phase error, and the fractional portion of the phase error is used to synthesize the phase error.

[0029] The phase error is used as input information of a loop filter in the ADPLL.

[0030] Figure 3 This is a schematic diagram of the TDC codeword sampling waveform. After receiving the reference clock and the DCO output clock, the TDC performs multiple delays on the DCO output clock to obtain multiple delayed DCO output clocks, such as a delay DCO output clock, delay 2 DCO output clock, delay 3 The DCO output clock, ... and delay 6 The DCO output clock is Indicates the unit delay time.

[0031] The multiple delayed DCO output clocks sample the reference clock respectively. For example, if the reference clock is at a high level at the sampling moment, the sampled value is 1, otherwise it is 0.

[0032] In the present invention, within one reference clock cycle, the TDC codeword must have 3 or more consecutive 1s or consecutive 0s. For example, Figure 3 The sampling result is 1001110, which, as a TDC code word, includes 4 consecutive 1s or consecutive 0s.

[0033] In other words, the sum of the TDC step sizes needs to be greater than one reference clock period.

[0034] Figure 4 1 is a schematic diagram of bit operation for obtaining a step value STEP. After the TDC codeword is left-shifted, a left-shifted TDC codeword is obtained, and the tail bit value is padded with zero during the left-shifting process.

[0035] The left-shifted TDC codeword is subjected to an XOR operation with the TDC codeword to obtain an XORed TDC codeword. The XORed TDC codeword is subjected to an AND operation with the TDC codeword to obtain an ANDed TDC codeword.

[0036] The number of 0s between two 1s in the TDC codeword after the AND operation plus 1 is the number of steps corresponding to one reference clock cycle. Figure 4 In the example of , the number of 0s between two 1s in the TDC codeword after the AND operation is 4, and the number of steps is 5.

[0037] In the present invention, the step value STEP is equal to 1 / (reference clock frequency×number of steps). Assuming the reference clock frequency is 100 MHz, in the above example, the step value STEP is equal to 2 nanoseconds. Based on the above method of the present invention, the step value STEP can be obtained.

[0038] Figure 5 is a flowchart for obtaining the average step length. At the beginning, the count value CNT=0, and the total step value SUM_STEP=0. When the count value CNT<the maximum count value CNT_MAX, the step value STEP corresponding to a reference clock cycle is calculated according to the method described above. Then, the count value CNT is incremented by one, and the step value STEP is added to the total step value SUM_STEP until the count value CNT is not less than the maximum count value CNT_MAX.

[0039] Finally, the average step length is obtained = total step length value SUM_STEP / maximum count value MAX_CNT. So far, the average step length acquisition process is completed.

[0040] After the average step length is obtained, the TDC conversion coefficient is equal to the average step length multiplied by the DCO output clock frequency. The TDC coefficient correction module sends the TDC conversion coefficient to the TDC.

[0041] In order to better illustrate the present invention, numerous specific details are provided in the above specific embodiments. It should be understood by those skilled in the art that the present invention can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.

[0042] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for correcting TDC step size in ADPLL based on average step size, characterized in that: The steps include: Initialize the count value to zero and the total step value to zero; Before the count value reaches the maximum count value, the step value is accumulated to the total step value, and the count value is incremented by one; When the count value reaches the maximum count value, an average step length is obtained, where the average step length is equal to the total step length value divided by the maximum count value; The TDC coefficient correction module obtains a TDC conversion coefficient according to the average step length and outputs it to the TDC, wherein the TDC conversion coefficient is equal to the average step length multiplied by the DCO output clock frequency; and the step length value is obtained by the following method: The TDC receives the DCO output clock and the reference clock, and generates a plurality of delayed DCO output clocks through the DCO output clock to sample the reference clock respectively, thereby obtaining a TDC codeword; The number of steps and the step value within a reference clock cycle are obtained according to the TDC codeword, wherein the step value is equal to 1 / (reference clock frequency×number of steps); in addition, The ADPLL includes a TDC and a DCO, and the DCO output clock comes from the DCO; The TDC codeword includes at least 3 consecutive 1s or consecutive 0s, wherein 1 represents that the reference clock is at a high level, and 0 represents that the reference clock is at a low level; Shift the TDC code word left by one bit and fill the mantissa with zero to obtain the left-shifted TDC code word; Perform an XOR operation on the TDC code word and the left-shifted TDC code word to obtain an XORed TDC code word; Performing an AND operation on the XORed TDC codeword and the TDC codeword to obtain a TDC codeword after the AND operation, wherein the TDC codeword after the AND operation has two 1s; The number of steps in one reference clock cycle is equal to the number of 0s between two 1s in the TDC code word after the AND operation plus 1.

2. The method for correcting TDC step length in ADPLL based on average step length according to claim 1, characterized in that: The TDC codeword is sent to the TDC coefficient correction module.

3. The method for correcting TDC step length in ADPLL based on average step length according to claim 2, characterized in that: The TDC receives the fractional portion of the frequency control word from an integrator in the ADPLL.

4. The method for correcting TDC step length in ADPLL based on average step length according to claim 3, characterized in that: The TDC generates a fractional portion of the phase error, and the fractional portion of the phase error is used to synthesize the phase error.

5. The method for correcting TDC step length in ADPLL based on average step length according to claim 4, characterized in that: The phase error is used as input information of a loop filter in the ADPLL.