Clock jitter measurement method and clock chip
By implementing the clock jitter measurement module and parameter adjustment module in the clock chip, and using the time-to-digital converter to calculate the clock jitter value, the problem of real-time monitoring of the clock signal jitter on the chip is solved, and the rapid screening of unqualified chips and the output of high-quality clock signals are achieved effect.
Patent Information
- Application Number
- CN202411160502.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-22
AI Technical Summary
The existing technology is difficult to monitor and feedback the jitter value of the clock signal on the chip in real time, cannot quickly screen out unqualified chips, and relies on large-scale instrument measurement to have limitations.
By implementing the clock jitter measurement module in the clock chip, using the gain value and code value of the time-to-digital converter to calculate the phase error, accumulating and outputting the clock jitter value, and combining the parameter adjustment module to adjust the circuit parameters, the clock jitter measurement in the digital circuit is realized and feedback.
It enables direct and rapid measurement of clock jitter values on the chip, reduces silicon costs, improves the convenience of chip testing and debugging, outputs higher-quality clock signals, and avoids dependence on large instruments.
Smart Images

Figure CN118672109B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of clock chips, and in particular to a clock jitter measurement method and a clock chip. Background Art
[0002] Clock jitter is one of the most challenging problems in clock chips. Clock jitter refers to the deviation between the edge of the produced clock signal and the edge of the ideal clock signal in the time domain. It represents the random change of the clock period value and is an important parameter for evaluating the quality of the clock signal from the time domain.
[0003] The common way to obtain the clock jitter value is to calculate the jitter mean of the clock signal through statistical methods, generally by obtaining the mean square error jitter integral value within the specified filter bandwidth. Specifically, the clock signal is output to an oscilloscope or phase noise meter, and the integral is converted to the phase noise spectrum through the internal algorithm of the phase noise meter, or the data of each clock cycle is sampled by the oscilloscope and sent to the analysis software to analyze the clock signal quality.
[0004] In the prior art, it is difficult to monitor the clock jitter value of the clock signal output by the clock chip in real time without an instrument. However, there are many limitations when using large instruments to measure clock signal jitter. They are generally limited to experimental analysis purposes and cannot monitor clock jitter on the chip in real time and feed it back to the chip to achieve jitter monitoring and feedback control based on the clock signal.
[0005] Based on this, how to directly monitor the clock jitter value on the chip to achieve purposes such as quickly screening out unqualified chips 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 clock jitter measurement method is provided, which comprises obtaining a gain value of a time digital converter and a code value of the time digital converter in a current reference clock cycle, calculating a current phase error, wherein the current phase error is equal to the product of the code value of the time digital converter and the gain value of the time digital converter; accumulating the square of the current phase error to a cumulative value related to the phase error within N reference clock cycles, wherein N is a positive integer; and outputting a clock jitter value, wherein the clock jitter value is equal to the cumulative value related to the phase error divided by N.
[0008] Further, after the gain value of the time-to-digital converter converges, the gain value of the time-to-digital converter is obtained.
[0009] Furthermore, within N reference clock cycles, the number of reference clock cycles is counted by using the reference clock cycle count value.
[0010] Furthermore, the TDC code value of the current reference clock cycle is the number of consecutive 1s that appear before the first appearance of 0 in the thermometer code of the TDC.
[0011] Furthermore, the clock jitter measurement method is implemented in a clock chip through a digital circuit.
[0012] Further, the power is turned on, and initialization is completed, and then the gain value of the time-to-digital converter is waited to converge.
[0013] Furthermore, when the reference clock cycle count value reaches N, the clock jitter value is output.
[0014] A clock chip comprises a clock jitter measurement module; the clock jitter measurement module receives a time-to-digital converter code value and a gain value of the time-to-digital converter of a current reference clock cycle; the clock jitter measurement module is configured to execute the clock jitter measurement method as described in any one of the preceding items.
[0015] Furthermore, the clock chip also includes a parameter adjustment module; the clock jitter measurement module outputs the clock jitter value to the parameter adjustment module, and is used to adjust circuit parameters.
[0016] Furthermore, the parameter adjustment module includes a state machine.
[0017] The technical solution of the present invention has one or more of the following beneficial technical effects:
[0018] (1) The clock jitter can be directly calculated through digital circuits without the need for additional measuring instruments, making it easy to measure clock jitter on-chip.
[0019] (2) Extremely low silicon cost.
[0020] (3) Greatly improve the convenience of chip testing, debugging, and application, such as quickly screening out unqualified chips after chip tape-out.
[0021] (4) It is conducive to outputting higher quality clock signals.
[0022] In addition, other beneficial effects of the present invention will be mentioned in the specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of the structure of the clock chip of the present invention;
[0024] Figure 2 This is the method for obtaining the clock jitter value of the present invention. DETAILED DESCRIPTION
[0025] 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.
[0026] 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.
[0027] Figure 1 The schematic diagram of the structure of the clock chip of the present invention is shown. In a fully digital phase-locked loop, a time-digital converter (TDC) is usually used. The time-digital converter is a circuit module that quantizes time into a digital signal. The clock chip of the present invention includes a clock jitter measurement module. The clock jitter measurement module at least receives the time-digital converter code value TDC_CODE and the time-digital converter gain value K TDC as input.
[0028] Further optionally, the clock chip further includes a parameter adjustment module which receives the clock jitter value output by the clock jitter measurement module and is used to adjust circuit parameters so that the clock chip outputs a higher quality clock signal having a lower clock jitter value.
[0029] For example, the parameter adjustment module may include a state machine, and the state machine is used to timely adjust the circuit parameters to improve the quality of the output clock signal.
[0030] In the present invention, by obtaining the clock jitter value of the clock signal inside the clock chip, the convenience of testing, debugging, and application can be greatly improved, and the benefit of obtaining a precise clock signal for improving the performance of the entire system can be achieved.
[0031] Figure 2 The method for obtaining the clock jitter value is shown. In the aforementioned clock jitter measurement module, the method for obtaining the clock jitter value can be implemented by a digital circuit, and the digital circuit is located in the clock chip.
[0032] First, turn on the power and complete the initialization. Then wait for the gain value K of the time-to-digital converter to TDC Convergence. If the gain value K of the time-to-digital converter TDC After convergence, another PDsum =0, CNT=0. Among them, PD sum is the accumulated value related to the phase error, and CNT is the reference clock cycle count value.
[0033] Then, the time digital converter code value TDC_CODE of the current reference clock cycle is obtained, and the time digital converter code value TDC_CODE is the number of consecutive 1s before the first appearance of 0 in the thermometer code of the time digital converter. For example, if the thermometer code of the time digital converter is "11111010000", the corresponding number of consecutive 1s before the first appearance of 0 is 5; if the thermometer code of the time digital converter is "111111110000", the corresponding number of consecutive 1s before the first appearance of 0 is 8.
[0034] Get the current phase error PD, where PD = TDC_CODE × K TDC Then the square of the current phase error PD is added to the cumulative value PD related to the phase error sum , namely PD sum =PD sum +PD 2 .
[0035] After N reference clock cycles, the reference clock cycle count value CNT reaches N, where N is a positive integer. At this time, the clock jitter measurement module outputs the clock jitter value to complete the measurement of the clock jitter value. The clock jitter value is equal to PD sum / N.
[0036] Generally, if the value of N is larger, the clock jitter value is more accurate, but the measurement delay is longer. Therefore, in practical applications, a compromise value is selected.
[0037] Thus, the clock jitter value measurement scheme disclosed in the present invention can be applied to chips, avoiding the limitation that the traditional scheme can only be measured by large precision measuring instruments. In addition, the scheme can guide the adjustment of on-chip circuit parameters and improve the quality of clock signals.
[0038] 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.
[0039] 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 clock jitter measurement method, characterized in that: Turn on the power supply and complete the initialization, then wait for the gain value of the time digital converter to converge; if the gain value of the time digital converter converges, set the accumulated value related to the phase error to 0 and the reference clock cycle count value to 0; Obtaining a gain value of the time digital converter and a code value of the time digital converter in a current reference clock cycle, and calculating a current phase error, wherein the current phase error is equal to the product of the code value of the time digital converter in the current reference clock cycle and the gain value of the time digital converter, wherein the code value of the time digital converter is the number of consecutive 1s before the first appearance of 0 in a thermometer code of the time digital converter; In N reference clock cycles, the square of the current phase error is accumulated to the cumulative value related to the phase error, where N is a positive integer; A clock jitter value is output, where the clock jitter value is equal to the accumulated value related to the phase error divided by N.
2. The clock jitter measurement method according to claim 1, characterized in that: In N reference clock cycles, the number of reference clock cycles is counted by using the reference clock cycle count value.
3. The clock jitter measurement method according to claim 2, characterized in that: The clock jitter measurement method is implemented in a clock chip through a digital circuit.
4. The clock jitter measurement method according to claim 3, characterized in that: When the reference clock cycle count value reaches N, the clock jitter value is output.
5. A clock chip, characterized in that : Includes clock jitter measurement module; The clock jitter measurement module receives a time-to-digital converter code value and a gain value of the time-to-digital converter of a current reference clock cycle; The clock jitter measurement module is configured to execute the clock jitter measurement method according to any one of claims 1 to 4.
6. The clock chip according to claim 5, characterized in that: The clock chip also includes a parameter adjustment module; The clock jitter measurement module outputs the clock jitter value to the parameter adjustment module, and is used to adjust the circuit parameters.
7. The clock chip according to claim 6, characterized in that: The parameter adjustment module includes a state machine.
