Chip internal clock period jitter measuring device and method and chip
By setting a reference signal generation unit and a time digital conversion unit inside the chip, and using a delayed phase-locked loop to measure clock cycle jitter, the problem of inaccurate measurement of external oscilloscopes is solved, and higher accuracy and reliability are achieved.
Patent Information
- Application Number
- CN202411054740.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-22
AI Technical Summary
When the prior art measures the internal clock cycle jitter of the chip, the power quality problem of the external oscilloscope leads to inaccurate measurement results, and it is impossible to accurately measure the clock cycle jitter of the internal circuit.
The reference signal generation unit and the time digital conversion unit are arranged inside the chip, and the reference signal is generated through the reference signal generation unit, and the phase difference is calculated with the clock signal to be measured inside the chip, and the calibration control of the delayed phase lock loop and the time digital conversion unit is used. Accurately measure clock cycle jitter to reduce external environmental impact.
It improves the accuracy of internal clock cycle jitter measurements of chips, reduces the impact of the external environment on the measurement results, and provides more reliable clock signal stability and accuracy data support.
Smart Images

Figure CN119001413A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of semiconductor technology, and in particular to a device, method and chip for measuring clock period jitter inside a chip. Background Art
[0002] In digital circuit design, clock jitter is an important performance indicator that characterizes the stability and accuracy of the clock signal. Clock jitter directly affects the rate of high-speed interfaces and also has an adverse effect on the timing of digital circuits in the System on Chip (SOC). Currently, the jitter size is measured by an off-chip oscilloscope, and the clock quality is improved by optimizing the design, but this measurement method has the problem of inaccurate measurement.
[0003] For example, in the SOC digital timing sign-off process, especially in the setup timing check, the length of the clock cycle directly affects the timing satisfaction, and the length of the clock cycle is closely related to the clock cycle jitter. However, the current measurement method is generally to connect the internal clock of the chip to an oscilloscope outside the chip through the output port for testing. However, in the clock transmission path, if the power supply quality is not good, it will lead to the deterioration of the clock measurement results, and the actual clock cycle jitter of the internal circuit cannot be accurately measured. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a device, method and chip for measuring the period jitter of a clock within a chip, so as to improve the accuracy of measuring the period jitter of a clock within a chip.
[0005] In a first aspect, an embodiment of the present invention provides a device for measuring the clock period jitter inside a chip, the device comprising: a reference signal generating unit and a time-to-digital conversion unit arranged inside the chip; wherein the reference signal generating unit is used to generate a clock reference signal as a reference signal; the time-to-digital conversion unit is used to receive a clock signal to be measured generated inside the chip, receive the clock reference signal, and calculate a phase difference between the clock signal to be measured and the clock reference signal; wherein the phase difference is used to characterize the period jitter condition of the clock signal to be measured.
[0006] According to an embodiment of the present invention, the device further comprises: a time-to-digital conversion calibration control unit, configured to calibrate the step accuracy of the time-to-digital conversion unit.
[0007] According to an embodiment of the present invention, the time-to-digital conversion unit includes: a plurality of first delay units connected in series, and further configured to receive and transmit a first clock signal and a second clock signal with a predetermined phase difference; The time-to-digital conversion calibration control unit is specifically used to adjust the circuit parameters of the multi-stage first delay unit according to the expected step length accuracy, and monitor whether the output value of the time-to-digital conversion unit reaches the expected output value; wherein the ratio of the predetermined phase difference to the expected output value is equal to the expected step length accuracy; When the output value of the monitoring time digital conversion unit reaches the expected output value, it is determined that the step accuracy of the current time digital conversion unit is calibrated to the expected step accuracy.
[0008] According to an embodiment of the present invention, the device further comprises: a delay locked loop, configured to process an input clock signal and output a first clock signal and a second clock signal having the predetermined phase difference.
[0009] According to an embodiment of the present invention, the delay locked loop includes: a single-ended to differential module, used to convert an input clock signal into a differential clock signal; A second delay unit connected in multiple stages, used to adjust and control the delay amount of the differential clock signal; A phase comparator, used for calculating the phase difference of the differential clock signal after passing through the plurality of stages of the second delay units; The phase-locked loop state controller determines the differential clock signal as the first clock signal and the second clock signal for calibrating the TDC step accuracy when confirming, according to the phase difference calculation result, that the phase difference of the differential clock signal reaches the expected phase difference.
[0010] According to one embodiment of the present invention, the phase-locked loop state controller is also used to adjust the circuit parameters of the second delay unit of each stage according to the calculation result of the phase comparator to change the delay amount of the second delay unit when it is confirmed that the phase difference of the differential clock signal does not reach the expected phase difference, until the phase difference of the differential clock signal reaches the expected phase difference.
[0011] According to an embodiment of the present invention, the device further comprises: a measurement value reading unit located inside the chip, for reading a plurality of phase difference measurement values output by the time-to-digital conversion unit; A plurality of parameter values for characterizing the period jitter of the clock signal to be measured are calculated based on the plurality of phase difference measurement values, and the parameter values include at least one of: a maximum phase difference value, a minimum phase difference value, an average phase difference value, a maximum period jitter, a minimum period jitter and a peak-to-peak period jitter.
[0012] In a second aspect, the present invention also provides a method for measuring the internal clock period jitter of a chip, comprising: using a time-to-digital conversion unit to receive a clock signal to be measured generated inside the chip, and receiving a clock reference signal used as a reference signal; A phase difference between the clock signal to be measured and the clock reference signal is calculated, and the phase difference is used to characterize a period jitter condition of the clock signal to be measured.
[0013] In a third aspect, the present invention also provides a chip according to an embodiment, comprising: a chip internal clock period jitter measurement device as described in any one of the first aspects.
[0014] The chip internal clock period jitter measurement device, method and chip provided by the embodiment of the present invention, by setting a reference signal generation unit and a time digital conversion unit inside the chip, using the reference signal generation unit to generate a clock reference signal as a reference signal to the time digital conversion unit, the time digital conversion unit receives the clock signal to be measured generated inside the chip and the clock reference signal, and calculates the phase difference, thereby characterizing the period jitter condition of the clock signal to be measured, and can directly realize the measurement of clock period jitter inside the chip, reducing the influence of the external environment on the measurement result, thereby facilitating improving the accuracy of the chip clock period jitter measurement. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0016] Figure 1 This is a schematic block diagram of the structure of an embodiment of a device for measuring internal clock period jitter of a chip according to the present invention; Figure 2 A schematic block diagram of a circuit structure of a reference signal generating unit according to an embodiment of the present invention; Figure 3 It is a schematic block diagram of the structure of another embodiment of the device for measuring the internal clock period jitter of a chip according to the present invention; Figure 4 A timing diagram of an embodiment of the transmission of the first clock signal and the second clock signal input into the TDC unit of the present invention; Figure 5 1 is a schematic block diagram of a circuit structure of a TDC calibration control unit according to an embodiment of the present invention; Figure 6 A schematic diagram of the structure principle of a delay-locked loop circuit according to an embodiment of the present invention; Figure 7 It is a schematic block diagram of the structure of another embodiment of the chip internal clock period jitter measurement device of the present invention; Figure 8 The figure is a flow chart of an embodiment of a method for measuring the period jitter of a clock within a chip according to the present invention. DETAILED DESCRIPTION
[0017] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0018] It should be clear that the described embodiments are only some embodiments of the present invention, not all 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.
[0019] The embodiment of the present invention provides a chip internal clock period jitter measurement device, which is suitable for clock quality testing and evaluation scenarios in integrated circuits. For example, in the process of chip design and optimization, the device can be used to more accurately measure and evaluate the jitter of the chip internal clock signal, and provide data basis for reserving reasonable redundancy for digital circuit timing sign-off, thereby reducing chip design costs and power consumption, and improving clock stability and reliability.
[0020] See also Figure 1 As shown, the chip internal clock period jitter measurement device provided by the embodiment of the present invention includes: a reference signal generating unit 110 and a time-to-digital conversion unit 120 arranged inside the chip.
[0021] The reference signal generating unit 110 is used to generate a clock reference signal as a reference signal. The reference signal generating unit 110 can use a high-stability oscillator or a reference clock source to generate a clock reference signal, which has low jitter and high accuracy and can be used as a reference signal for measurement.
[0022] In some embodiments, the reference signal generating unit 110 may use a phase-locked loop (PLL) or a delay-locked loop (DLL) circuit structure to generate a stable clock output signal and maintain a specific phase relationship between the output signal and the input reference signal.
[0023] See also Figure 2 As shown, PLL is usually composed of a frequency divider, a phase frequency detector / charge pump, a loop filter, an oscillator and a feedback circuit. By continuously adjusting the frequency and phase of the oscillator, a stable and reliable clock reference signal can be achieved, which is used as a reference signal.
[0024] The reference clock needs to meet the following requirements: the frequency is equal to the frequency of the clock to be measured, and the reference clock period jitter is as small as possible.
[0025] For using a conventional PLL to generate a clock reference signal, in some embodiments, the PLL can be designed to align the output clock with the input clock phase to avoid the need for a time-to-digital conversion unit with a larger measurement range to measure the phase difference, thereby reducing design complexity and more effectively managing the phase relationship of the clock signal. In order to reduce the reference clock period jitter, an on-chip regulator can be used to power the PLL, such as Figure 2 As shown, it is used to stably provide a constant voltage to other circuit modules, thereby effectively improving the stability of the reference clock signal.
[0026] The delay-locked loop can maintain a constant time delay between the input signal and the output signal by controlling the delay of the signal, and output a stable and reliable clock reference signal.
[0027] The time-to-digital converter unit 120, hereinafter referred to as the TDC (Time-to-Digital Converter) unit 120, is used to receive the clock signal to be measured generated inside the chip, receive the clock reference signal, and calculate the phase difference between the clock signal to be measured and the clock reference signal, wherein the phase difference is used to characterize the period jitter condition of the clock signal to be measured.
[0028] The chip internal clock period jitter measurement device provided by the embodiment of the present invention generates a clock reference signal as a reference signal to the TDC unit through a reference signal generation unit. The TDC unit receives the clock signal to be measured generated inside the chip and the clock reference signal, and calculates the phase difference, thereby characterizing the period jitter condition of the clock signal to be measured, including the jitter amplitude and the jitter period. The clock period jitter measurement can be directly completed inside the chip, reducing the influence of the external environment on the measurement result, thereby facilitating improving the accuracy of the chip clock period jitter measurement.
[0029] For example, assume that the clock signal to be measured is the main frequency clock signal inside the chip. A clock period jitter measurement solution can use an external instrument, such as an oscilloscope or spectrum analyzer, to measure the period jitter of the chip's main frequency clock signal. During the measurement, the clock signal to be measured and the stable reference signal need to be led out of the chip and connected to the external instrument for measurement and analysis. Since the measurement process may be affected by external interference, transmission delay and other factors, the accuracy of the measurement result is affected.
[0030] The measuring device provided by the embodiment of the present invention can be placed inside the chip, and a reference signal generating unit is used to generate a stable clock signal of a predetermined frequency as a clock reference signal. The TDC unit receives the main frequency clock signal and the clock reference signal, and calculates the phase difference between them. The periodic jitter of the main frequency clock signal, such as the jitter amplitude and the jitter period, can be characterized according to the change of the phase difference.
[0031] In contrast, the on-chip measurement solution provided by the present invention uses a TDC unit to directly receive the clock signal to be measured and the clock reference signal inside the chip and perform phase difference measurement. Since the measurement process is completely performed inside the chip, the influence of external interference and transmission delay is avoided, the accuracy and reliability of the measurement are improved, and reliable data support can be provided for subsequent clock optimization and stability improvement.
[0032] In some embodiments, one implementation of the TDC unit calculating the phase difference between the clock signal to be measured and the clock reference signal can be: the TDC unit 120 can include two counters: the first counter records the time point when each rising edge or falling edge of the clock signal to be measured occurs, and the second counter records the time point when each rising edge or falling edge of the clock reference signal occurs. When a rising edge or falling edge of the clock signal to be measured arrives, the TDC unit 120 captures and records the counter value at this time, which reflects the time interval from the most recent rising edge or falling edge of the clock reference signal to the current rising edge or falling edge of the clock signal to be measured. This time interval is the phase difference, which is used to characterize the time offset of the clock signal to be measured relative to the clock reference signal.
[0033] It is understandable that TDC accuracy (step accuracy or resolution) is related to chip process, voltage, temperature, etc. In the process of measuring chip clock period jitter, accurate TDC step accuracy is crucial to ensure the accuracy of the measurement result. Therefore, referring to Figure 3, in some embodiments, the device further includes: a TDC calibration control unit 130, which is used to calibrate the step accuracy of the TDC unit 120, for example, the step accuracy of the TDC unit 120 can be calibrated before the measurement starts. Among them, the TDC calibration control unit 130 can dynamically adjust the step accuracy of the TDC unit 120 through an internal algorithm or an external input calibration signal to adapt to the upcoming test environment.
[0034] In the embodiment of the present invention, by introducing a TDC calibration control unit, the step accuracy of the TDC unit 120 is calibrated to adapt to the subsequent test environment, thereby facilitating improving the accuracy of the measurement.
[0035] When the step accuracy of the TDC unit 120 is calibrated by the TDC calibration control unit 130, the TDC unit 120 includes: a plurality of first delay units connected in series, which are used to receive a first clock signal and a second clock signal with a predetermined phase difference and transmit them step by step before the measurement starts. The predetermined phase difference between the first clock signal and the second clock signal is known.
[0036] The TDC calibration control unit 130 is specifically used to adjust the circuit parameters of the multi-stage first delay unit according to the expected step length accuracy, and monitor whether the output value of the TDC unit 120 reaches the expected output value (which can also be understood as a calibration reference point); wherein the ratio of the predetermined phase difference to the expected output value is equal to the expected step length accuracy; wherein the circuit parameter can be a capacitor, a resistor or an inductor, etc. When the output value of the monitored TDC unit 120 reaches the expected output value, it is determined that the step length accuracy of the current TDC unit 120 is calibrated to the expected step length accuracy. Thus, the calibration of the step length accuracy of the TDC unit 120 is achieved, ensuring the accuracy and reliability of the subsequent chip clock period jitter measurement.
[0037] See also Figure 4 and 5 To help understand the embodiments of the present invention, a specific example is provided as follows: The TDC step adjustment can be achieved by adjusting the load capacitance of the first delay unit of the TDC unit 120. Assuming that the predetermined phase difference between the first clock signal and the second clock signal is 20 ps (picoseconds), the expected step accuracy of the TDC unit 120 is 2 ps; the TDC calibration control unit 130 controls the load capacitance of the first delay unit of the TDC unit 120 (here it is achieved by adjusting the capacitance, and it can also be achieved by adjusting the resistance and / or inductance, which is just an example here) to change its step until the output value tdc_code<6:0> of the TDC unit 120 is 10, at which time the step accuracy of the TDC unit 120 after calibration is controlled at 20 ps / 10=2 ps. Of course, this is just an example, and according to the different expected step accuracy and the predetermined phase difference, other expected step accuracy calibrations can also be implemented based on this technical concept. For example, the step accuracy of the TDC unit 120 can be calibrated to 1 ps to improve the jitter measurement accuracy, which of course requires a high chip manufacturing process.
[0038] In this embodiment, a closed-loop feedback mechanism is used to correct the step accuracy according to the output value of the TDC unit 120, so as to continuously optimize the step accuracy of the TDC unit 120 until the desired step accuracy is reached, thereby realizing the step accuracy calibration of the TDC unit 120.
[0039] See also Figure 3 and Figure 5In some embodiments, the device further includes: a delay locked loop (DLL) 140, configured to process the input clock signal and output a first clock signal and a second clock signal having the predetermined phase difference.
[0040] The delay locked loop 140 is a clock signal processing technology that can delay the input clock signal and output a first clock signal and a second clock signal with a predetermined phase difference. By adjusting the parameters of the delay locked loop, the phase difference of the output clock signal can be accurately controlled to meet the requirements of the subsequent step accuracy calibration of the TDC unit 120.
[0041] See also Figure 6 , In some embodiments, the delay locked loop 140 includes: a single-ended to differential module 141, for converting an input clock signal into a differential clock signal; The multi-stage connected second delay unit 142 is used to adjust and control the delay amount of the differential clock signal; through the combination of multi-stage delay units, finer-grained delay adjustment can be achieved, thereby meeting the TDC unit 120 calibration scenario with higher timing accuracy requirements.
[0042] A phase comparator 143, used for calculating the phase difference of the differential clock signal after passing through the multi-stage second delay unit 142; The phase-locked loop state controller (DLL FSM) 144 determines the differential clock signal as the first clock signal and the second clock signal for calibrating the step accuracy of the TDC unit 120 when confirming that the phase difference of the differential clock signal reaches the expected phase difference according to the phase difference calculation result.
[0043] In this embodiment, when confirming that the phase difference of the differential clock signal reaches the expected phase difference, the phase-locked loop state controller 144 determines the differential clock signal as the first clock signal and the second clock signal for calibrating the step accuracy of the TDC unit 120. This ensures that the calibration of the TDC unit 120 is always based on an accurate clock signal, which is beneficial to improving the accuracy of subsequent measurements.
[0044] by Figure 6The DLL shown outputs a clock signal with a predetermined phase difference of 20ps as an example for explanation as follows: In this example, the DLL includes main modules: a single-ended to differential module (single to differential: S2D) 141, a 50-stage delay cell (delay cell) 142, a phase comparator (phase detector, PD) 143, and a phase-locked loop state controller (DLLFSM) 144. For example, S2D converts a 1GHZ input clock into a differential clock, and the differential clock is sent to a 50-stage differential delay cell. The delay amount can be adjusted by changing the capacitance of the delay cell. When the DLL FSM confirms that the phase difference of the differential clock signal reaches the expected phase difference of 20ps based on the phase difference calculation result, that is, the clock sequence ckp <49> and ckp <0> Phase alignment, that is, CKP after DLL locks <49> and ckp <0> The phase difference is 1 cycle. At this time, Ckp <1> and ckp <0> The phase difference is 1 / 50 of the clock period, that is, 20 ps. The differential clock signal is determined as the first clock signal and the second clock signal for calibrating the step accuracy of the TDC unit 120.
[0045] In other embodiments, the phase-locked loop state controller 144 is also used to adjust the circuit parameters of the second delay unit of each stage according to the calculation result of the phase comparator to change the delay amount of the second delay unit when it is confirmed that the phase difference of the differential clock signal does not reach the expected phase difference, until the phase difference of the differential clock signal reaches the expected phase difference.
[0046] Still Figure 5 Taking the example shown in the figure as an example, when the DLL FSM confirms according to the phase difference calculation result that the phase difference of the differential clock signal reaches the expected phase difference but does not reach 20ps, that is, the clock sequence ckp <49> and ckp <0> Phase misalignment, that is, CKP after DLL lock <49> and ckp <0> The phase difference does not reach 1 cycle. At this time, a control signal is sent to the second delay unit to adjust the capacitance parameters of each delay unit until ckp is determined. <49> and ckp <0> Phase alignment, that is, CKP after DLL locks <49> and ckp <0> The phase difference is 1 cycle. <1> and ckp <0> The phase difference is 1 / 50 of the clock period, i.e. 20ps, and the calibration is completed.
[0047] See also Figure 3In some embodiments, in order to facilitate the switching of the precision calibration and measurement tasks of the TDC unit 120, a multiplexer (Mux) 105 is provided before the TDC unit 120. When the TDC unit 120 needs to be calibrated, the switch signal tdc_cal_en=1, that is, it is set to 1 in the corresponding figure. When the jitter period measurement is required, the switch signal tdc_cal_en=0, that is, it is set to 0 in the corresponding figure, and the input clock of the TDC unit 120 is switched to the clock to be measured ck and the reference clock ck_golden. The output value code (tdc_code<5:0>) of the TDC unit 120 represents the real-time phase difference between the input clock to be measured and the reference clock (i.e., the clock reference signal), and is used to represent the period jitter of the clock to be measured ck. Among them, tdc_code<5:0> is the output value code of the sign bit, and the highest bit tdc_code <5> Is the sign bit, including: 0: positive number, indicating that the phase of the clock under test leads the phase of the reference clock; 1: negative number, indicating that the phase of the clock under test lags behind the reference clock phase; The measurement range of Tdc_code<5:0> is -32~31. If the step length of the TDC unit 120 is 2ps after calibration, its measurement range is -64ps to 62ps.
[0048] For example, assuming that in a certain system on chip, the clock to be measured (ck) and the reference clock (ck_golden) represent two different clock signal sources in the system, wherein the reference clock is a clock reference signal generated by the reference signal generating unit 110 as a reference signal, and the period jitter of the clock to be measured (ck) needs to be measured. When the switch signal tdc_cal_en is set to 0, the TDC unit 120 switches to the measurement mode and starts to measure the phase difference between the two clock signals.
[0049] Assume that at a certain moment, the tdccode<5:0> output by the TDC unit 120 is 010110, where the highest bit tdccode <5> If it is 0, it means that the phase difference is positive, which means that the clock to be measured (ck) is ahead of the reference clock (ckgolden) by a certain phase angle at this moment.
[0050] According to the sign bit code and the step accuracy of 2ps, assuming that the step accuracy of the TDC unit 120 after calibration is 2ps, the measurement range of tdccode<5:0> is -64ps to 62ps. In this example, the phase difference corresponding to 010110 may be 10 × 2ps = 20ps, indicating that the clock to be measured is 20ps ahead of the reference clock at this moment. According to the calculated real-time phase difference of the clock signal to be measured relative to the reference clock signal, the period jitter of the clock signal to be measured can be evaluated.
[0051] See also Figure 3 or Figure 7 , specifically, the device further includes: a measurement value reading unit 150 located inside the chip, for reading a plurality of phase difference measurement values output by the TDC unit 120; A plurality of parameter values for characterizing the period jitter of the clock signal to be measured are calculated based on the plurality of phase difference measurement values, and the parameter values include at least one of: a maximum phase difference value, a minimum phase difference value, an average phase difference value, a maximum period jitter, a minimum period jitter and a peak-to-peak period jitter.
[0052] Among them, the average phase value (AVG_phase_error): Because the reference clock may not be able to achieve complete phase alignment with the clock to be measured, the average phase value represents the average phase difference between the two clocks.
[0053] Maximum phase error (Max_phase_error): The maximum phase error between ck (when testing, ck1 corresponds to the clock to be tested) and ck_golden (when testing, ck2 corresponds to the reference clock), which is a positive value.
[0054] Minimum value (Min_phase_error): The minimum phase difference between ck and ck_golden, which is a negative value.
[0055] Max Period Jitter: Max_phase_error-Avg_phase_error.
[0056] Min Period Jitter: AVG_phase_error- Min_phase_error.
[0057] Peak2peak Period Jitter: Max_phase_error - Min_phase_error.
[0058] The maximum phase difference, minimum phase difference, and average phase difference are calculated based on multiple phase difference measurements. These parameters can help understand the phase variation range and average of the clock signal. Next, the maximum period jitter, minimum period jitter, and at least one of the peak-to-peak period jitter are calculated. These parameters can reveal the amplitude of the periodic changes in the clock signal and help evaluate the stability and accuracy of the clock signal.
[0059] In the embodiment of the present invention, through the reading of the measured value reading unit 150 and the parameter calculation, the period jitter of the clock signal to be measured can be fully understood, providing reliable data support for subsequent optimization and improvement. Embodiment 2
[0060] Figure 8 FIG. 1 is a flow chart of an embodiment of a method for measuring the internal clock period jitter of a chip according to the present invention; Figure 8 The present invention also provides a method for measuring the internal clock period jitter of a chip, including: S210, using the TDC unit to receive a clock signal to be tested generated inside the chip, and receiving a clock reference signal used as a reference signal; S220: Calculate a phase difference between the clock signal to be measured and the clock reference signal, where the phase difference is used to characterize a period jitter condition of the clock signal to be measured.
[0061] In this embodiment, by utilizing a TDC unit, a phase comparison is performed between the clock signal to be measured and the clock reference signal to realize on-chip clock period jitter measurement. The clock period jitter measurement can be directly completed inside the chip, reducing the influence of the external environment on the measurement result, thereby facilitating improving the accuracy of the chip clock period jitter measurement.
[0062] In some embodiments, the method further comprises: before the measurement starts, calibrating the step accuracy of the TDC unit.
[0063] In some embodiments, before the measurement starts, the step accuracy of the TDC unit is calibrated, including: receiving and transmitting a first clock signal and a second clock signal with a predetermined phase difference; adjusting the circuit parameters of the TDC unit according to the expected step accuracy, and monitoring whether the output value of the TDC unit reaches the expected output value; wherein the ratio of the predetermined phase difference to the expected output value is equal to the expected step accuracy; when the output value of the monitored TDC unit 120 reaches the expected output value, it is determined that the step accuracy of the current TDC unit 120 is calibrated to the expected step accuracy.
[0064] In some embodiments, before receiving and transmitting the first clock signal and the second clock signal with a predetermined phase difference, the method further includes: processing the input clock signal and outputting the first clock signal and the second clock signal with the predetermined phase difference.
[0065] In some embodiments, processing the input clock signal to output the first clock signal and the second clock signal having the predetermined phase difference includes: converting the input clock signal into a differential clock signal; The delay amount of the differential clock signal is adjusted and controlled; the phase difference of the delayed differential clock signal is calculated; when it is confirmed according to the phase difference calculation result that the phase difference of the differential clock signal reaches the expected phase difference, the differential clock signal is determined as the first clock signal and the second clock signal for calibrating the TDC step accuracy.
[0066] In some embodiments, after calculating the phase difference of the delayed differential clock signal, the method further includes: when it is confirmed that the phase difference of the differential clock signal does not reach the expected phase difference, adjusting the circuit parameters of the second delay unit of each stage according to the calculation result of the phase comparator to change the delay amount of the second delay unit until the phase difference of the differential clock signal reaches the expected phase difference.
[0067] In some embodiments, after calculating the phase difference between the clock signal to be measured and the clock reference signal, the method further includes: repeatedly measuring the clock signal to be measured for multiple times, and reading multiple phase difference measurement values output by the TDC unit; and calculating multiple parameter values for characterizing the period jitter of the clock signal to be measured based on the multiple phase difference measurement values, and the parameter values include: at least one of the maximum phase difference value, the minimum phase difference value, the average phase difference value, the maximum period jitter, the minimum period jitter and the peak-to-peak period jitter.
[0068] It should be noted that the scheme of this embodiment has corresponding specific technical features as the first embodiment, and its specific technical scheme and technical effects are similar to those of the first embodiment. The difference is that the measurement method of the embodiment of the present invention can be implemented by all the hardware provided including but not limited to the first embodiment.
[0069] For each embodiment provided by the present invention, the technical solutions and technical effects are basically the same, and the relevant parts can be referenced to each other.
[0070] On the basis of the measurement device provided above, the present invention also provides a chip in an embodiment, including: the chip internal clock period jitter measurement device described in any one of Embodiment 1. Since the clock period jitter measurement device is integrated internally, when a clock period jitter test is required, the internal clock period jitter measurement can be completed directly in the chip, and the internal period jitter value of the chip can be measured more accurately, providing an accurate reference for the timing sign-off of the logic circuit, reducing the pressure of the timing sign-off, and reducing the chip testing and design costs.
[0071] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0072] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0073] For the convenience of description, the above chip internal clock period jitter measurement device is described as being divided into various functional units / circuits / modules by function. Of course, when implementing the present invention, the functions of each unit / module can be implemented in the same or multiple software and / or hardware.
[0074] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. A device for measuring the internal clock period jitter of a chip, It is characterized in that The device comprises: a reference signal generating unit and a time-to-digital conversion unit arranged inside a chip; wherein, The reference signal generating unit is used to generate a clock reference signal as a reference signal; The time-to-digital conversion unit is used to receive the clock signal to be measured generated inside the chip, receive the clock reference signal, and calculate the phase difference between the clock signal to be measured and the clock reference signal; wherein the phase difference is used to characterize the periodic jitter condition of the clock signal to be measured.
2. The chip internal clock period jitter measurement device according to claim 1, It is characterized in that Also includes: The time-to-digital conversion calibration control unit is used to calibrate the step accuracy of the time-to-digital conversion unit.
3. The chip internal clock period jitter measurement device according to claim 2, It is characterized in that The time-to-digital conversion unit comprises: a plurality of first delay units connected in series, for receiving a first clock signal and a second clock signal with a predetermined phase difference; The time-to-digital conversion calibration control unit is specifically used to adjust the circuit parameters of the multi-stage first delay unit according to the expected step length accuracy, and monitor whether the output value of the time-to-digital conversion unit reaches the expected output value; wherein the ratio of the predetermined phase difference to the expected output value is equal to the expected step length accuracy; When the output value of the monitoring time digital conversion unit reaches the expected output value, it is determined that the step accuracy of the current time digital conversion unit is calibrated to the expected step accuracy.
4. The chip internal clock period jitter measurement device according to claim 3, It is characterized in that Also includes: The delay locked loop is used to process the input clock signal and output the first clock signal and the second clock signal with the predetermined phase difference.
5. The chip internal clock period jitter measurement device according to claim 4, It is characterized in that The delay locked loop comprises: a single-ended to differential module, used for converting an input clock signal into a differential clock signal; A second delay unit connected in multiple stages, used to adjust and control the delay amount of the differential clock signal; A phase comparator, used for calculating the phase difference of the differential clock signal after passing through the plurality of stages of the second delay units; The phase-locked loop state controller determines the differential clock signal as the first clock signal and the second clock signal for calibrating the step accuracy of time-to-digital conversion when it is confirmed according to the phase difference calculation result that the phase difference of the differential clock signal reaches the expected phase difference.
6. The chip internal clock period jitter measurement device according to claim 5, It is characterized in that The phase-locked loop state controller is also used to adjust the circuit parameters of the second delay unit of each stage according to the calculation result of the phase comparator when it is confirmed that the phase difference of the differential clock signal does not reach the expected phase difference, so as to change the delay amount of the second delay unit until the phase difference of the differential clock signal reaches the expected phase difference.
7. The chip internal clock period jitter measurement device according to claim 1, It is characterized in that The device further comprises: a measurement value reading unit located inside the chip, for reading a plurality of phase difference measurement values output by the time-to-digital conversion unit; A plurality of parameter values for characterizing the period jitter of the clock signal to be measured are calculated based on the plurality of phase difference measurement values, and the parameter values include at least one of: a maximum phase difference value, a minimum phase difference value, an average phase difference value, a maximum period jitter, a minimum period jitter and a peak-to-peak period jitter.
8. A method for measuring the internal clock period jitter of a chip. It is characterized in that include: Using a time-to-digital conversion unit to receive a clock signal to be measured generated inside the chip, and to receive a clock reference signal used as a reference signal; A phase difference between the clock signal to be measured and the clock reference signal is calculated, and the phase difference is used to characterize a period jitter condition of the clock signal to be measured.
9. The chip internal clock period jitter measurement method according to claim 8, It is characterized in that The method further comprises: before the measurement starts, calibrating the step accuracy of the time-to-digital conversion unit.
10. The chip internal clock period jitter measurement method according to claim 9, It is characterized in that Before the measurement begins, the step accuracy of the time-to-digital conversion unit is calibrated, including: Receive and transmit a first clock signal and a second clock signal having a predetermined phase difference; Adjusting the circuit parameters of the time-to-digital conversion unit according to the expected step length precision, and monitoring whether the output value of the time-to-digital conversion unit reaches the expected output value; wherein the ratio of the predetermined phase difference to the expected output value is equal to the expected step length precision; When the output value of the monitoring time digital conversion unit reaches the expected output value, it is determined that the step accuracy of the current time digital conversion unit is calibrated to the expected step accuracy.
11. The chip internal clock period jitter measurement method according to claim 10, It is characterized in that Before receiving and transmitting the first clock signal and the second clock signal with a predetermined phase difference, the method further includes: The input clock signal is processed to output a first clock signal and a second clock signal having the predetermined phase difference.
12. The chip internal clock period jitter measurement method according to claim 11, It is characterized in that Processing the input clock signal and outputting the first clock signal and the second clock signal having the predetermined phase difference includes: converting the input clock signal into a differential clock signal; Adjusting and controlling the delay amount of the differential clock signal; For the delayed differential clock signal, the phase difference is calculated; When it is confirmed according to the phase difference calculation result that the phase difference of the differential clock signal reaches the expected phase difference, the differential clock signal is determined as the first clock signal and the second clock signal for calibrating the step accuracy of the time-to-digital conversion unit.
13. The chip internal clock period jitter measurement method according to claim 12, It is characterized in that After calculating the phase difference of the delayed differential clock signal, the method further includes: when it is confirmed that the phase difference of the differential clock signal does not reach the expected phase difference, adjusting the circuit parameters of the second delay unit of each stage according to the calculation result of the phase comparator to change the delay amount of the second delay unit until the phase difference of the differential clock signal reaches the expected phase difference.
14. The chip internal clock period jitter measurement method according to claim 8, It is characterized in that After calculating the phase difference between the clock signal to be measured and the clock reference signal, the method further includes: Repeating multiple measurements of the clock signal to be measured, and reading multiple phase difference measurement values output by the time-to-digital conversion unit; A plurality of parameter values for characterizing the period jitter of the clock signal to be measured are calculated based on the plurality of phase difference measurement values, and the parameter values include at least one of: a maximum phase difference value, a minimum phase difference value, an average phase difference value, a maximum period jitter, a minimum period jitter and a peak-to-peak period jitter.
15. A chip, It is characterized in that include: The chip internal clock period jitter measurement device as claimed in any one of claims 1 to 7.
Citation Information
Cited By
Digital clock jitter measuring circuit and measuring method
CN120722174A
