Method for determining convergence position of time-to-digital converter and all-digital phase-locked loop
By counting and adjusting the convergence position of the time-to-digital converter in high-speed digital communication scenarios, the problem of quantization noise caused by thermometer code jumps is solved, high-performance, low-jitter clock output is achieved, and the adverse impact of bubbles on the clock chip is avoided. .
Patent Information
- Application Number
- CN202411160273.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-22
AI Technical Summary
In a high-speed digital communication scenario, the thermometer code in the time-to-digital converter may jump, resulting in an increase in quantization noise and degradation of output clock performance. Existing technology cannot effectively avoid the adverse impact of air bubbles on the clock chip.
By counting the number of occurrences of different TDC code values closest to the convergence position of the digital converter at the current time within N reference clock cycles, if the count values are greater than the threshold value, the convergence position is confirmed; otherwise, the convergence position is gradually increased and counted again , until the count value is greater than the threshold value, realizing automatic skipping of bubbles.
It effectively improves the performance of the output clock, avoids interrupting the clock output, and implements this solution with extremely low chip area and power consumption, occupying less than 1% of the resources of the all-digital phase-locked loop.
Smart Images

Figure CN118677446B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of clock chips, and in particular to a method for determining a convergence position of a time-to-digital converter and a fully digital phase-locked loop. Background Art
[0002] High-speed digital communication scenarios, such as high-speed data centers, require extremely low system jitter and clock jitter. Whether it is the fifth generation of mobile communications or the sixth generation of mobile communications, increasingly stringent requirements are placed on the resolution, accuracy, stability, and time synchronization technology of clock chips.
[0003] All Digital Phase Locked Loop (ADPLL) is a commonly used high-performance clock chip technology that uses a time-to-digital converter (TDC) to measure the phase difference. The delay accuracy of the time-to-digital converter is often very small, such as 1 picosecond. Process errors during chip manufacturing may cause delay errors. If one or more of the thermometer codes in the time-to-digital converter have a delay error, one or more jumps will appear in the middle of the thermometer code.
[0004] Figure 1 The waveform diagram of the thermometer code signal with transitions is shown. The multiple reference delays 1 to 4 of the ideal clock digital converter are incremented in sequence, but Figure 1 Reference delay 2 appears earlier than reference delay 1, resulting in the thermometer code "10100" obtained by sampling the reference clock and reference delays 1 to 4 by the fast clock. The thermometer code includes a bubble-like data pattern of "101", which is inconsistent with the ideal data pattern of "11000" or "11100". This non-ideal phenomenon is also called a bubble in the art.
[0005] If bubbles appear in the time-to-digital converter, the quantization noise will increase sharply and the output clock performance will be seriously degraded. In order to avoid the adverse effects of bubbles on the time-to-digital converter, outputting a high-performance, low-jitter clock has become a technical problem that needs to be solved urgently in this field. Summary of the invention
[0006] In order to alleviate or partially alleviate the above technical problems, the solution of the present invention is as follows:
[0007] A method for determining a convergence position of a time-to-digital converter comprises the following steps:
[0008] In N reference clock cycles, count the number of occurrences of several different TDC code values closest to the current time digital converter convergence position, and obtain corresponding several count values, where N is a positive integer;
[0009] If the corresponding count values are all greater than the threshold value, the current time-to-digital converter convergence position is used as the final time-to-digital converter convergence position; otherwise,
[0010] Increment the current time digitizer convergence position by one, and re-count the number of occurrences of several different TDC code values closest to the current time digitizer convergence position to obtain updated corresponding several count values;
[0011] If the updated corresponding count values are not all greater than the threshold value, the current time-to-digital converter convergence position continues to be incremented by one until the updated corresponding count values are all greater than the threshold value.
[0012] Furthermore, the number of occurrences of several different TDC code values closest to the current time digitizer convergence position is counted through several different counters.
[0013] Further, the several different TDC code values are four different TDC code values.
[0014] Furthermore, the corresponding plurality of count values total four count values.
[0015] Furthermore, the number of occurrences of several different TDC code values closest to the current time digitizer convergence position is counted, which is determined based on the relationship between the TDC code value and the current time digitizer convergence position.
[0016] Further, if N reference clock cycles are reached, the following judgment is performed: whether the corresponding count values are all greater than a threshold value.
[0017] Furthermore, before counting the number of occurrences of several different TDC code values closest to the current time digitizer convergence position, the following steps are performed:
[0018] When the all-digital phase-locked loop is locked, the current time-to-digital converter convergence position is initialized; wherein the time-to-digital converter is located in the all-digital phase-locked loop and is used to measure the phase difference.
[0019] A fully digital phase-locked loop, the fully digital phase-locked loop comprising a time-to-digital converter, the time-to-digital converter being used to measure a phase difference;
[0020] The time-to-digital converter is further configured to execute any one of the aforementioned methods for determining a convergence position of a time-to-digital converter.
[0021] The technical solution of the present invention has one or more of the following beneficial technical effects:
[0022] (1) The bubbles in the TDC can be automatically skipped through digital circuits to improve the performance of the output clock.
[0023] (2) Can work in the background without interrupting the clock output.
[0024] (3) The solution is implemented with extremely low chip area resources and extremely low power consumption. In one example, the present invention occupies less than 1% of the chip area resources of a full digital phase-locked loop.
[0025] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 This is a schematic diagram of the waveform of the thermometer code signal with jumps;
[0027] Figure 2 is a flow chart of a method for determining a convergence position of a time-to-digital converter of the present invention;
[0028] Figure 3 It is a flow chart of a specific embodiment of the present invention. DETAILED DESCRIPTION
[0029] 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.
[0030] 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.
[0031] Figure 2 The method for determining the convergence position of the time digital converter of the present invention is presented, which is specifically implemented by the following steps:
[0032] Within N reference clock cycles, the number of occurrences of several different TDC code values closest to the current time digitizer convergence position is counted to obtain corresponding count values, wherein N is a positive integer; if the corresponding count values are all greater than a threshold value, the current time digitizer convergence position is used as the final time digitizer convergence position; otherwise, the current time digitizer convergence position is incremented by one, and the number of occurrences of several different TDC code values closest to the current time digitizer convergence position is re-counted to obtain updated corresponding count values; if the updated corresponding count values are not all greater than the threshold value, the current time digitizer convergence position is continuously incremented by one until the updated corresponding count values are all greater than the threshold value.
[0033] Furthermore, the above-mentioned method for determining the convergence position of the time-to-digital converter comprises the following steps:
[0034] First, the chip is powered on and initialized, and then the phase-locked loop is waited for to complete locking. These steps are well known to those skilled in the art and will not be described in detail here.
[0035] Furthermore, the phase-locked loop is a fully digital phase-locked loop.
[0036] At the beginning, the current time digitizer convergence position is set to the initial value, which is a position obtained by automatic scanning. In other words, the current time digitizer convergence position is a position obtained by automatic scanning. The current time digitizer convergence position is a temporary variable used to search for the final time digitizer convergence position, and may change in the subsequent process. The current time digitizer convergence position and the final time digitizer convergence position are both allowed to be expressed as decimals. For example, if the thermometer code is "10100", the current time digitizer convergence position is allowed to be 2.5.
[0037] In the present invention, the final time digital converter convergence position is the final goal of the time digital converter convergence position determination method of the present invention. Due to the aforementioned bubble problem, the time digital converter presents various non-ideal characteristics, so finding the final time digital converter convergence position can obtain a basis for reliable measurement of duration. Generally, the final time digital converter convergence position can be more than one.
[0038] For example, if a time interval is selected as a scanning interval, except for the end point of the interval and a certain range near the end point, it is generally not suitable to be used as the initial value, because a certain margin needs to be left to allow a certain number of other TDC code values closest to the current time digitizer convergence position to be counted. For example, if the initialization value of the current time digitizer convergence position is 2.5, then the four TDC code values closest to the current time digitizer convergence position are 1, 2, 3 and 4 respectively.
[0039] The TDC code value described in the present invention refers to the number of "1"s that appear before the first "0" appears in the thermometer code sampled by the time digital converter. For example, if the thermometer code is "1111111101000", the corresponding TDC code value is 8; if the thermometer code is "1111111111010", the corresponding TDC code value is 10. Therefore, the TDC code value as an integer value can be compared with the current time digital converter convergence position.
[0040] Then, the number of occurrences of the four TDC code values closest to the current time digitizer convergence position is counted. The four TDC code values closest to the current time digitizer convergence position are: a second TDC code value that is smaller than the current time digitizer convergence position and the largest, a third TDC code value that is larger than the current time digitizer convergence position and the smallest, a first TDC code value that is 1 smaller than the second TDC code value, and a fourth TDC code value that is 1 larger than the third TDC code value.
[0041] The above example in which the current time digital converter convergence position is 2.5 is still used: the corresponding first TDC code value is 1, the second TDC code value is 2, the third TDC code value is 3, and the fourth TDC code value is 4.
[0042] The above example only counts the number of occurrences of the last four TDC code values at the current time digitizer convergence position, which is only a preferred embodiment of the present invention, but in actual applications, other numbers may be used, such as the last two TDC code values or the last six TDC code values. The present invention is not limited to this and is not intended to be limited thereto.
[0043] Further, it is determined whether bubbles appear near the current time digitizer convergence position, and whether to switch the current time digitizer convergence position.
[0044] Specifically, switching the current time digitizer convergence position refers to moving the current time digitizer convergence position by one position, that is, the current time digitizer convergence position is incremented by 1.
[0045] Furthermore, whether bubbles appear near the current time digitizer convergence position is determined based on whether the number of times that four TDC code values closest to the current time digitizer convergence position appear is greater than a threshold value.
[0046] If no bubbles appear near the current time digitizer convergence position, it is confirmed that the current time digitizer convergence position has been found to be the final time digitizer convergence position, and the time digitizer convergence position determination method ends; otherwise, the current time digitizer convergence position is switched.
[0047] The above time-to-digital converter convergence position determination method can be implemented by digital circuits and used as a part of the time-to-digital converter. After the present invention discloses these technical means, those skilled in the art can convert these technical means into digital circuit logic implementation to obtain the above technical effects.
[0048] From outside, the present invention also provides a specific embodiment, Figure 3 It should be noted that the specific numerical values and quantities involved in this specific embodiment are generally examples and do not constitute an absolute limitation on the technical means adopted by the present invention.
[0049] Figure 3 The meanings of the English symbols involved are as follows: TDC_mid is the current time digitizer convergence position; mid_start is a position obtained by automatic scanning; CNT is the count value of the clock counter, which is a count of how many reference clock cycles it takes to confirm whether the current time digitizer convergence position is the final time digitizer convergence position; the first count value TDC_n0 is the number of occurrences of the first TDC code value; the second count value TDC_n1 is the number of occurrences of the second TDC code value; the third count value TDC_n2 is the number of occurrences of the third TDC code value; the fourth count value TDC_n3 is the number of occurrences of the fourth TDC code value; TDC_code refers to the TDC code value; N is a set number of times, and N is a positive integer greater than 1.
[0050] First, power on the chip and initialize it. Then wait for the fully digital phase-locked loop to lock. Then, initialize the current time digital converter convergence position to a position obtained by automatic scanning, reset the count value of the clock counter to zero, and reset the count values of TDC_n0, TDC_n1, TDC_n2, and TDC_n3 to zero.
[0051] Then, for each reference clock cycle, for example, check in turn whether the TDC code value is equal to TDC_mid-1.5, TDC_mid-0.5, TDC_mid+0.5 or TDC_mid+1.5, which correspond to the count values: TDC_n0, TDC_n1, TDC_n2 and TDC_n3 respectively. If it is judged to be equal in a certain time, the corresponding count value is immediately increased by 1 to complete the counting, and then there is no need to check whether the remaining values are equal to the TDC code value.
[0052] Using the example of the current time digitizer convergence position of 2.5, TDC_mid-1.5=1, TDC_mid-0.5=2, TDC_mid+0.5=3, and TDC_mid+1.5=4, they represent the nearest several different TDC code values of the current time digitizer convergence position. In the present invention, TDC_mid can be a decimal, and TDC_code is an integer, so TDC_mid must be subtracted or added with a suitable decimal to obtain an integer to represent the nearest several different TDC code values. For example, if TDC_mid=2.4, the corresponding matching decimal values and addition or subtraction should be: subtract 1.4, subtract 0.4, add 0.6, and add 1.6.
[0053] Then, the count value CNT of the clock counter is incremented by 1 to complete a reference clock cycle count, that is, a TDC code value check is completed within the reference clock cycle. Then, it is determined whether the count value CNT of the clock counter is greater than or equal to a set number of times N. If not, the TDC code value is re-checked in sequence to see whether it is equal to TDC_mid-1.5, TDC_mid-0.5, TDC_mid+0.5, TDC_mid+1.5, until CNT≥N or CNT>N is established. For example, N is an empirical value, such as N=1024.
[0054] Those skilled in the art can understand that the minimum time unit for adjusting the convergence position of the current time digitizer is recorded as 1, for example, the aforementioned current time digitizer convergence position is incremented by 1.
[0055] If TDC_n0, TDC_n1, TDC_n2 and TDC_n3 are all greater than the threshold value, it indicates that there are no bubbles near the current time-to-digital converter convergence position, that is, the final time-to-digital converter convergence position has been found.
[0056] If TDC_n0, TDC_n1, TDC_n2 and TDC_n3 are not all greater than the threshold value, TDC_n0, TDC_n1, TDC_n2, TDC_n3 and CNT need to be reset to zero, and TDC_mid needs to be incremented by 1.
[0057] Then, check in turn whether the TDC code value is equal to TDC_mid-1.5, TDC_mid-0.5, TDC_mid+0.5 and TDC_mid+1.5, and repeat the above steps until the final time-to-digital converter convergence position is found such that TDC_n0, TDC_n1, TDC_n2 and TDC_n3 are all greater than the threshold value, thus ending the entire process of the time-to-digital converter convergence position determination method.
[0058] Furthermore, the threshold value can be a value or an array. That is, a threshold value is designed for TDC_n0, TDC_n1, TDC_n2 and TDC_n3 respectively. For the size of the threshold value, taking N=1024 as an example, the threshold value can be set to 20, and the threshold value can be an integer near N / (4×10), where 4 is the number of TDC code values closest to the current time digital converter convergence position, and 10 is an empirical value.
[0059] 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.
[0060] 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 determining a convergence position of a time-to-digital converter, characterized in that: The steps include: In N reference clock cycles, count the number of occurrences of several different TDC code values closest to the current time digital converter convergence position, and obtain corresponding several count values, where N is a positive integer; If the corresponding count values are all greater than the threshold value, the current time-to-digital converter convergence position is used as the final time-to-digital converter convergence position; otherwise, Increment the current time digitizer convergence position by one, and re-count the number of occurrences of several different TDC code values closest to the current time digitizer convergence position to obtain updated corresponding several count values; If the updated corresponding count values are not all greater than the threshold value, the current time-to-digital converter convergence position continues to be incremented by one until the updated corresponding count values are all greater than the threshold value.
2. The method for determining the convergence position of a time-to-digital converter according to claim 1, characterized in that: The number of occurrences of several different TDC code values closest to the current time digitizer convergence position is counted by using several different counters.
3. The method for determining the convergence position of a time-to-digital converter according to claim 2, characterized in that: The number of different TDC code values are four different TDC code values.
4. The method for determining the convergence position of a time-to-digital converter according to claim 3, characterized in that: The corresponding count values total four count values.
5. The method for determining the convergence position of a time-to-digital converter according to claim 4, characterized in that: The number of occurrences of several different TDC code values closest to the current time digitizer convergence position is counted, and is determined based on the relationship between the TDC code value and the current time digitizer convergence position.
6. The method for determining the convergence position of a time-to-digital converter according to claim 5, characterized in that: If N reference clock cycles are reached, the following judgment is performed: whether the corresponding count values are all greater than the threshold value.
7. The method for determining the convergence position of a time-to-digital converter according to claim 6, characterized in that: Before counting the number of occurrences of several different TDC code values closest to the current time digitizer convergence position, the following steps are performed: When the all-digital phase-locked loop is locked, the current time-to-digital converter convergence position is initialized; wherein the time-to-digital converter is located in the all-digital phase-locked loop and is used to measure the phase difference.
8. A fully digital phase-locked loop, characterized in that: The all-digital phase-locked loop includes a time-to-digital converter, and the time-to-digital converter is used to measure the phase difference; The time-to-digital converter is further configured to execute the time-to-digital converter convergence position determination method according to any one of claims 1-7.
Citation Information
Patent Citations
Method, system and equipment for updating conversion coefficient of time-to-digital converter
CN115967398A
Method and device for correcting TDC delay stepping based on stepping LDO
CN116015285A
