Duty cycle calibration circuit, method and apparatus
By performing differential-mode and common-mode calibration on the differential clock signal in the integrated circuit, the problem of clock signal duty cycle being affected by process, voltage and temperature is solved, achieving higher precision duty cycle calibration and improving the accuracy of signal transmission and circuit performance.
Patent Information
- Application Number
- CN202310743295.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-21
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-06-21
AI Technical Summary
In integrated circuits, the duty cycle calibration of clock signals is easily affected by process, voltage, and temperature, leading to signal transmission errors.
The differential clock signal is calibrated sequentially using a duty cycle calibration circuit. The rising and falling edges of the differential clock signal are adjusted by the first and second delay units, respectively. Accurate calibration is then performed using a capacitor-resistor filter, comparator, and digital-to-analog converter module.
The accuracy of duty cycle calibration has been improved, ensuring that the duty cycle of the clock signal is calibrated to 50.1%, thereby improving the accuracy of signal transmission and reducing the bit error rate.
Smart Images

Figure CN116760389B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic circuit technology, and in particular to a duty cycle calibration circuit, method and apparatus. Background Technology
[0002] With advancements in integrated circuit manufacturing processes, the upper frequency limit for integrated circuit operation has increased, necessitating a wider operating frequency range for circuit systems. In circuit systems with a wider frequency range, to ensure accurate signal transmission, the clock signal's duty cycle needs to be calibrated to 50% during sampling. However, because circuit systems are susceptible to effects from process, voltage, and temperature (PVT), the clock signal's duty cycle calibration can fluctuate during signal transmission, causing a significant deviation from the 50% duty cycle calibration during sampling, ultimately leading to signal transmission errors.
[0003] Therefore, how to accurately calibrate the duty cycle of the clock signal has become a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] The main objective of this application is to provide a duty cycle calibration circuit, method, and apparatus. The aim is to improve the calibration accuracy of the duty cycle by sequentially performing differential-mode calibration and common-mode calibration on the differential clock signal using the duty cycle calibration circuit.
[0005] To achieve the above objectives, a first aspect of this application provides a duty cycle calibration circuit, comprising: a first delay unit, a second delay unit, a capacitor-resistor filter, a comparator, a digital control module, and a digital-to-analog converter module;
[0006] The first terminal of the first delay unit is used to receive a differential clock signal. The second terminal of the first delay unit is connected to the first terminal of the second delay unit. The second terminal of the second delay unit is connected to the first terminal of the capacitor-resistor filter. The second terminal of the capacitor-resistor filter is connected to the first terminal of the comparator. The second terminal of the comparator is connected to the first terminal of the digital control module. The second terminal of the digital control module is connected to the first terminal of the digital-to-analog converter module. The second terminal of the digital-to-analog converter module is connected to the third terminal of the first delay unit and the third terminal of the second delay unit, respectively.
[0007] The first delay unit is used to perform differential mode adjustment on the differential clock signal according to the first current adjusted by the digital-to-analog converter module;
[0008] The second delay unit is used to perform common-mode adjustment on the differential clock signal according to the second current adjusted by the digital-to-analog converter module after the differential-mode calibration is completed;
[0009] The capacitor-resistor filter is used for:
[0010] The first differential clock signal output after differential mode regulation is processed by DC voltage equivalent processing to obtain the first voltage.
[0011] The second differential clock signal output after common-mode regulation is subjected to DC voltage equivalent processing to obtain the second voltage.
[0012] The comparator is used for:
[0013] The first voltage is compared with a reference voltage, and a first comparison result is output. The reference voltage is the voltage corresponding to a duty cycle of 50%.
[0014] The second voltage is compared with the reference voltage, and a second comparison result is output.
[0015] The digital control module is used for:
[0016] Based on the first comparison result, a certain amount of coding is increased or decreased on the basis of the first current coding value, and the coding value after the increase or decrease of the certain amount of coding is updated to the first current coding value, wherein the certain amount of coding is 1 / 2 of the coding amount of the previous increase or decrease;
[0017] Based on the second comparison result, the coding amount is increased or decreased according to the second current coding value, and the coding value after the increase or decrease of the coding amount is updated to the second current coding value.
[0018] The digital-to-analog converter module is used for:
[0019] The first current input to the first delay unit is adjusted according to the first current encoding value, so that the first delay unit performs differential mode calibration on the differential clock signal according to the first current;
[0020] After differential calibration is completed, the second current input to the second delay unit is adjusted according to the second current encoding value, so that the second delay unit performs common-mode calibration on the differential clock signal according to the second current.
[0021] In one embodiment of this application, the first delay unit is used to perform differential-mode adjustment on the differential clock signal according to the first current adjusted by the digital-to-analog converter module, including:
[0022] The start time of the rising edge and the end time of the falling edge of the differential clock signal are adjusted according to the first current after adjustment by the digital-to-analog converter module.
[0023] The rise steepness and fall steepness of the differential clock signal are adjusted by regulating the start time of the rising edge and the end time of the falling edge.
[0024] In one embodiment of this application, the second delay unit is used to perform common-mode adjustment on the differential clock signal according to the second current adjusted by the digital-to-analog converter module after differential-mode calibration is completed, including:
[0025] After differential calibration is completed, the end time of the rising edge and the start time of the falling edge of the differential clock signal are adjusted according to the second current adjusted by the digital-to-analog converter module.
[0026] The amplitude of the differential clock signal is adjusted by regulating the end time of the rising edge and the start time of the falling edge.
[0027] In one embodiment of this application, the comparator is used to compare the first voltage with a reference voltage and output a first comparison result, including:
[0028] The first voltage is compared with a reference voltage, which is the voltage corresponding to a duty cycle of 50%.
[0029] When the first voltage is greater than the reference voltage, the first comparison result output by the comparator is a high level;
[0030] When the first voltage is less than the reference voltage, the first comparison result output by the comparator is low.
[0031] In one embodiment of this application, the digital control module is configured to increase or decrease the encoding amount based on the first comparison result and the first current encoding value, and update the encoding value after the increase or decrease of the encoding amount to the first current encoding value, including:
[0032] When the first comparison result is high, a certain amount of coding is increased based on the first current coding value, and the coding value after the increase of the certain amount of coding is updated to the first current coding value;
[0033] When the first comparison result is low, a certain amount of coding is reduced based on the first current coding value, and the coding value after the certain amount of coding reduction is updated to the first current coding value.
[0034] A second aspect of this application provides a duty cycle calibration method, executed using the duty cycle calibration circuit described in any embodiment of this application, comprising:
[0035] The differential clock signal is differentially adjusted by the first delay unit based on the first current adjusted by the digital-to-analog converter module.
[0036] The first differential clock signal output after differential mode adjustment is processed by a capacitor-resistor filter to perform DC voltage equivalent processing, thereby obtaining the first voltage.
[0037] The first voltage is compared with a reference voltage by a comparator, and a first comparison result is output. The reference voltage is the voltage corresponding to a duty cycle of 50%.
[0038] The digital control module increases or decreases the encoding amount based on the first comparison result and the first current encoding value according to a certain amount, and updates the encoding value after the increase or decrease of the certain amount of encoding to the first current encoding value. The certain amount of encoding is 1 / 2 of the encoding amount of the previous increase or decrease.
[0039] The digital-to-analog converter module adjusts the first current input to the first delay unit according to the first current encoding value, so that the first delay unit performs differential mode calibration on the differential clock signal according to the first current.
[0040] After differential-mode calibration is completed, the differential clock signal is subjected to common-mode adjustment by the second delay unit according to the second current adjusted by the digital-to-analog converter module.
[0041] The second voltage is obtained by performing DC voltage equivalent processing on the second differential clock signal output after common-mode regulation through the capacitor-resistor filter.
[0042] The comparator compares the second voltage with the reference voltage and outputs a second comparison result.
[0043] The digital control module increases or decreases the coding amount based on the second comparison result and the second current coding value, and updates the coding value after the increase or decrease of the coding amount to the second current coding value.
[0044] The digital-to-analog converter module adjusts the second current input to the second delay unit according to the second current encoding value, so that the second delay unit performs common-mode calibration on the differential clock signal according to the second current.
[0045] In one embodiment of this application, before the digital control module performs the increase or decrease of the certain coding amount based on the first comparison result, the method includes:
[0046] Obtain the default encoding value, and use the default encoding value as the first current encoding value.
[0047] In one embodiment of this application, after the digital control module performs seven increases or decreases in the specified encoding amount based on the first comparison result, the method includes:
[0048] Obtain the first high-low level change curve corresponding to the seven first comparison results output by the comparator;
[0049] The first current encoding value corresponding to the last level transition point in the first high-low level change curve is obtained as the differential mode calibration encoding value.
[0050] The differential calibration code value is output to the digital-to-analog converter module, so that the digital-to-analog converter module adjusts the first current input to the first delay unit according to the differential calibration code value to complete the differential calibration of the differential clock signal.
[0051] In one embodiment of this application, after the digital control module has performed seven increases or decreases in the certain encoding amount based on the second comparison result, the method includes:
[0052] Obtain the second high-low level change curve corresponding to the seven second comparison results output by the comparator;
[0053] The second current encoding value corresponding to the last level transition point in the second high-low level change curve is obtained as the common-mode calibration encoding value.
[0054] The common-mode calibration code value is output to the digital-to-analog converter module, so that the digital-to-analog converter module adjusts the second current input to the second delay unit according to the common-mode calibration code value to complete the common-mode calibration of the differential clock signal.
[0055] A third aspect of this application provides a duty cycle calibration device, including the duty cycle calibration circuit described in any embodiment of this application.
[0056] This application proposes a duty cycle calibration circuit, method, and apparatus. The duty cycle calibration circuit includes a first delay unit, a second delay unit, a capacitor-resistor filter, a comparator, a digital control module, and a digital-to-analog converter (DAC) module. The first delay unit adjusts the differential clock signal using a first current regulated by the DAC module. After differential-mode calibration, the second delay unit adjusts the differential clock signal using a second current regulated by the DAC module, thereby achieving both differential-mode and common-mode calibration of the differential clock signal. Since the DAC module adjusts the currents of the first and second delay units based on the encoded values transmitted by the digital control module, the duty cycle can be calibrated using the encoded values and the comparison result of the adjusted comparator output, effectively improving the calibration accuracy of the duty cycle. Attached Figure Description
[0057] Figure 1 This is a schematic block diagram of the duty cycle calibration circuit provided in the embodiments of this application;
[0058] Figure 2 This is a schematic diagram of the structure of the first delay unit and the second delay unit provided in the embodiments of this application;
[0059] Figure 3 This is another structural schematic diagram of the first delay unit and the second delay unit provided in the embodiments of this application;
[0060] Figure 4 This is a comparative schematic diagram of the differential clock signal before and after passing through the first delay unit, provided in an embodiment of this application.
[0061] Figure 5 This is an example diagram of differential mode calibration of the duty cycle calibration circuit provided in the embodiments of this application;
[0062] Figure 6 This is a comparative schematic diagram of the differential clock signal before and after passing through the second delay unit, provided in an embodiment of this application.
[0063] Figure 7 This is an example diagram of common-mode calibration of the duty cycle calibration circuit provided in the embodiments of this application;
[0064] Figure 8 This is a flowchart of the duty cycle calibration method provided in the embodiments of this application;
[0065] Figure 9 This is a flowchart of the steps performed by the digital control module after it performs seven increases or decreases of a certain amount of code based on the first comparison result, as provided in the embodiments of this application.
[0066] Figure 10This is a flowchart of the steps performed by the digital control module after it performs seven increases or decreases of a certain amount of code based on the second comparison result, as provided in the embodiments of this application. Detailed Implementation
[0067] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0068] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0069] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0070] For many integrated circuit systems, clock signals are often indispensable. However, as clock signal frequencies increase, the clock signal duty cycle becomes particularly susceptible to the effects of temperature, voltage, and manufacturing process. In high-precision mixed-signal systems, such as DDR SDRAM (Double Data Rate SDRAM) and dual-edge sampling A / D converters, both the rising and falling edges of the clock are used to sample the input signal, requiring a 50% clock duty cycle. To ensure that the clock duty cycle is not degraded during transmission, besides minimizing interference factors that affect the clock signal duty cycle, another approach is to correct the clock signal duty cycle to meet the system's requirements.
[0071] For high-speed circuit systems, the quality of the clock signal directly affects the performance of the entire system. This is especially true when clock speeds reach the GHz (gigahertz) level, where clock signal quality becomes a crucial factor influencing system performance. For the parallel-to-serial conversion module data sampler in a SerDes (serializer) transmitter, a significant difference between the clock signal and the standard clock signal will lead to sampling errors, severely increasing the bit error rate of the entire SerDes transmitter and causing it to fail to meet performance standards. Particularly for high-speed data links, where data propagation paths are typically long, it's necessary to add inverter chains as clock signal drivers. However, inverter chains are easily affected by factors such as environmental noise, ambient temperature, and circuit mismatches, resulting in substandard clock signal duty cycle quality and impacting overall circuit performance. Therefore, accurately calibrating the clock signal duty cycle has become a critical technical problem that needs to be solved by those skilled in the art.
[0072] Based on this, this application proposes a duty cycle calibration circuit that can perform differential mode calibration and common mode calibration on the differential clock signal sequentially, thereby improving the calibration accuracy of the duty cycle.
[0073] Reference Figure 1 , Figure 1 This is a schematic block diagram of the duty cycle calibration circuit provided in an embodiment of this application. Figure 1 As shown, the duty cycle calibration circuit includes a first delay unit 110, a second delay unit 120, a capacitor-resistor filter 130, a comparator 140, a digital control module 150, and a digital-to-analog converter module 160. The first terminal of the first delay unit 110 receives a differential clock signal. The second terminal of the first delay unit 110 is connected to the first terminal of the second delay unit 120. The second terminal of the second delay unit 120 is connected to the first terminal of the capacitor-resistor filter 130. The second terminal of the capacitor-resistor filter 130 is connected to the first terminal of the comparator 140. The second terminal of the comparator 140 is connected to the first terminal of the digital control module 150. The second terminal of the digital control module 150 is connected to the first terminal of the digital-to-analog converter module 160. The second terminal of the digital-to-analog converter module 160 is connected to the third terminal of both the first delay unit 110 and the second delay unit 120.
[0074] In this embodiment, the first delay unit 110 is used to perform differential-mode modulation on the differential clock signal according to the first current adjusted by the digital-to-analog converter module 160. The second delay unit 120 is used to perform common-mode modulation on the differential clock signal according to the second current adjusted by the digital-to-analog converter module 160 after differential-mode calibration. The capacitor-resistor filter 130 is used to perform DC voltage equivalent processing on the first differential clock signal output after differential-mode modulation to obtain a first voltage; and to perform DC voltage equivalent processing on the second differential clock signal output after common-mode modulation to obtain a second voltage. The comparator 140 is used to compare the first voltage with a reference voltage and output a first comparison result; and to compare the second voltage with a reference voltage and output a second comparison result. The reference voltage is the voltage corresponding to a duty cycle of 50%. The digital control module 150 is used to increase or decrease the encoding amount by a certain amount based on the first comparison result and update the encoded value after the increase or decrease to the first current encoded value. The digital-to-analog converter module 160 is used to increase or decrease the encoding amount based on the second current encoding value according to the second comparison result, and update the encoding value after the increase or decrease of the encoding amount to the second current encoding value. The certain encoding amount is half of the encoding amount increased or decreased in the previous operation. The digital-to-analog converter module 160 is used to adjust the first current input to the first delay unit 110 according to the first current encoding value, so that the first delay unit 110 performs differential-mode calibration on the differential clock signal according to the first current; and after the differential-mode calibration is completed, it is used to adjust the second current input to the second delay unit 120 according to the second current encoding value, so that the second delay unit 120 performs common-mode calibration on the differential clock signal according to the second current.
[0075] In this embodiment, the second terminal of the digital control module 150 is connected to the first terminal of the digital-to-analog converter module 160. Therefore, the digital control module 150 can transmit the encoded value obtained by increasing or decreasing the encoding amount based on the comparison result output by the comparator 140 to the digital-to-analog converter module 160. Since the second terminal of the digital-to-analog converter module 160 is connected to the third terminal of the first delay unit 110 and the third terminal of the second delay unit 120 respectively, the digital-to-analog converter module 160 can adjust the first current input to the first delay unit 110 and the second current input to the second delay unit 120 according to the different encoded values obtained. By adjusting the input current in the first delay unit 110, differential mode adjustment can be performed on the input differential clock signal for differential mode calibration. After differential mode calibration is completed, common mode adjustment can be performed on the input differential clock signal by adjusting the input current in the second delay unit 120 for common mode calibration. The digital control module 150 increases or decreases the corresponding encoded value based on the output of the comparator 140, and transmits the increased or decreased encoded value to the digital-to-analog converter module 160. This allows the digital-to-analog converter module 160 to adjust the first current input to the first delay unit based on the acquired encoded value, thereby completing the differential-mode calibration of the differential clock signal. After differential-mode calibration is completed, the second current input to the second delay unit is adjusted in the same way to complete common-mode calibration.
[0076] The duty cycle calibration circuit proposed in this application improves the accuracy of duty cycle calibration by sequentially performing differential-mode calibration and common-mode calibration on the input differential clock signal. Specifically, in related technologies, the calibration accuracy after duty cycle calibration is 50.5%, meaning that calibration is considered complete when the duty cycle reaches 50.5%. However, the duty cycle calibration circuit proposed in this application achieves a calibration accuracy of 50.1%, meaning that calibration is considered complete only when the duty cycle reaches 50.1%.
[0077] In one embodiment of this application, reference is made to Figure 2 and Figure 3 , Figure 2 This is a schematic diagram of the structure of the first delay unit and the second delay unit provided in the embodiments of this application. Figure 3 This is another structural schematic diagram of the first delay unit and the second delay unit provided in the embodiments of this application. The first delay unit 110 and the second delay unit 120 are connected in series, and the first delay unit 110 and the second delay unit 120 have the same structure. This embodiment of the application takes the first delay unit 110 as an example for description. The amount of charge input into the first delay unit 110 is constant, so by changing the magnitude of the current input into the first delay unit 110, the rise time and fall time of the input differential clock signal can be changed accordingly.
[0078] In one embodiment of this application, the first delay unit is used to perform differential mode adjustment on the differential clock signal according to the first current adjusted by the digital-to-analog converter module, including:
[0079] Based on the first current adjusted by the digital-to-analog converter module, the start time of the rising edge and the end time of the falling edge of the differential clock signal are adjusted.
[0080] The steepness of the rising and falling edges of the differential clock signal can be adjusted by regulating the start time of the rising edge and the end time of the falling edge.
[0081] In this embodiment, the first delay unit 110, based on the first current adjusted by the digital-to-analog converter module 160, can adjust the start time of the rising edge and the end time of the falling edge of the differential clock signal. This adjustment includes delaying the start time of the rising edge or delaying the end time of the falling edge. By adjusting the start time of the rising edge and the end time of the falling edge of the differential clock signal, the steepness of the rising and falling edges of the differential clock signal can be adjusted.
[0082] For example, refer to Figure 4 , Figure 4 This is a comparative schematic diagram showing the differential clock signal before and after passing through the first delay unit, as provided in an embodiment of this application. Figure 4 As shown, after the differential clock signal passes through the first delay unit 110, the end time of the rising edge remains unchanged, while the start time of the rising edge is delayed; simultaneously, the start time of the falling edge remains unchanged, while the end time of the falling edge is delayed. This results in both the rising and falling edge steepness of the differential clock signal after passing through the first delay unit 110 becoming steeper. In this way, differential mode adjustment can be performed on the differential clock signal to complete differential mode calibration.
[0083] In one embodiment of this application, the comparator is used to compare a first voltage with a reference voltage and output a first comparison result, including:
[0084] The first voltage is compared with the reference voltage, which is the voltage corresponding to a duty cycle of 50%.
[0085] When the first voltage is greater than the reference voltage, the first comparison result output by the comparator is high.
[0086] When the first voltage is less than the reference voltage, the first comparison result output by the comparator is low.
[0087] In this embodiment, the differential clock signal, after passing through the first delay unit 110, is output to the capacitor-resistor filter 130. The capacitor-resistor filter 130 performs DC voltage equivalent processing on the first differential clock signal output after differential mode adjustment to obtain a first voltage. The obtained first voltage is then input to the comparator 140, allowing the comparator 140 to compare the first voltage with a reference voltage. The reference voltage is a pre-modulated voltage corresponding to a 50% duty cycle. When the first voltage is greater than the reference voltage, the comparator 140 outputs a high level. When the first voltage is less than the reference voltage, the comparator outputs a low level.
[0088] It should be noted that the output of comparator 140 can be represented using a binary search method. That is, when comparator 140 outputs 1, it indicates that the current first voltage is greater than the reference voltage, and when the comparator outputs 0, it indicates that the current first voltage is less than the reference voltage.
[0089] In this embodiment of the application, the magnitudes of the first voltage and the reference voltage after differential mode adjustment can be accurately obtained through the output of comparator 140.
[0090] In one embodiment of this application, the digital control module is configured to increase or decrease the encoding amount based on a first comparison result and a first current encoding value, and update the encoding value after the increase or decrease to the first current encoding value, including:
[0091] When the first comparison result is high, a certain amount of coding is increased based on the first current coding value, and the coding value after the increase is updated to the first current coding value;
[0092] When the first comparison result is low, a certain amount of coding is reduced based on the first current coding value, and the coding value after the reduction is updated to the first current coding value.
[0093] In this embodiment, the digital control module 150 can obtain the output of the comparator 140. When the comparator output is 1, it indicates that the first voltage is higher than the reference voltage. At this time, it is necessary to increase the encoding by a certain amount based on the first current encoding value, and update the encoded value after the increase to the first current encoding value. When the comparator output is 0, it indicates that the first voltage is lower than the reference voltage. At this time, it is necessary to decrease the encoding by a certain amount based on the first current encoding value, and update the encoded value after the decrease to the first current encoding value.
[0094] For example, the digital control module 150 can first obtain the default encoding value as the initial first current encoding value. For example, if the default encoding value is 128, and the output of the comparator 140 is 1, it indicates that a certain amount of encoding needs to be increased, where the certain amount of encoding is half of 128, which is 64. Then, adding 64 to the first current encoding value of 128 yields the encoding value of 192, i.e., 128 + 64 = 192. The encoding value 192 is then updated to the first current encoding value and input to the digital-to-analog converter module 160, causing the digital-to-analog converter module 160 to adjust the first current input to the first delay unit 110 according to the obtained encoding value 192, completing the first adjustment. After adjustment, the comparator 140 will output another result, for example, an output of 1, indicating that a certain amount of encoding needs to be increased, where the certain amount of encoding is half of 64, which is 32. Then, adding 32 to the first current encoding value of 192 yields the encoding value of 224, i.e., 192 + 32 = 224. Then, the encoded value 224 is updated to the first current encoded value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the first current input to the first delay unit 110 based on the acquired encoded value 224, completing the second adjustment. After adjustment, the comparator 140 outputs another result, for example, an output of 0, indicating that a certain amount of encoding needs to be reduced. This certain amount of encoding is half of 32, which is 16. At this point, reducing the first current encoded value 224 by 16 yields an encoded value of 208, i.e., 224 - 16 = 208. Then, the encoded value 208 is updated to the first current encoded value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the first current input to the first delay unit 110 based on the acquired encoded value 208, completing the third adjustment. After adjustment, the comparator 140 outputs another result, for example, an output of 0, indicating that a certain amount of encoding needs to be reduced. This certain amount of encoding is half of 16, which is 8. At this point, the encoding value is reduced by 8 from the first current encoding value 208, resulting in an encoding value of 200, i.e., 208 - 8 = 200. Then, the encoding value 200 is updated to the first current encoding value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the first current input to the first delay unit 110 based on the acquired encoding value 200, completing the fourth adjustment. After adjustment, the comparator 140 will output another result, for example, an output of 0, indicating that a certain amount of encoding needs to be reduced, where the certain amount of encoding is 1 / 2 of 8, i.e., 4. At this point, the encoding value is reduced by 4 from the first current encoding value 200, resulting in an encoding value of 196, i.e., 200 - 4 = 196.Then, the encoded value 196 is updated to the first current encoded value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the first current input to the first delay unit 110 based on the acquired encoded value 196, completing the fifth adjustment. After adjustment, the comparator 140 outputs another result, for example, an output of 0, indicating that a certain amount of encoding needs to be reduced, where the certain amount of encoding is 1 / 2 of 4, which is 2. At this point, reducing the first current encoded value 196 by 2 yields the encoded value 194, i.e., 196 - 2 = 194. Then, the encoded value 194 is updated to the first current encoded value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the first current input to the first delay unit 110 based on the acquired encoded value 194, completing the sixth adjustment. After adjustment, the comparator 140 outputs another result, for example, an output of 1, indicating that a certain amount of encoding needs to be increased, where the certain amount of encoding is 1 / 2 of 2, which is 1. At this point, the first current encoded value 194 is increased by 1 to obtain the encoded value 195, i.e., 194 + 1 = 195. Then, the encoded value 195 is updated to the first current encoded value and input to the digital-to-analog converter module 160. This allows the digital-to-analog converter module 160 to adjust the first current input to the first delay unit 110 according to the acquired encoded value 195, completing the seventh adjustment. In this way, the digital control module 150, based on the comparator's output, can obtain a different encoded value each time it performs a certain increase or decrease in the encoded value, which is then input to the digital-to-analog converter module 160. This allows the digital-to-analog converter module 160 to adjust the first current input to the first delay unit 110 according to the different encoded values obtained, thus performing differential-mode calibration.
[0095] In this embodiment, after seven adjustments, the first high-low level change curve corresponding to the seven first comparison results output by comparator 140 is obtained, and the encoding value corresponding to the last level transition point in the first high-low level change curve is obtained as the final differential mode calibration encoding value. (Refer to...) Figure 5 , Figure 5 This is an example diagram of differential mode calibration of the duty cycle calibration circuit provided in this application embodiment. Figure 5 As shown, comparator 140 is reset before each comparison, that is, it is reset to 0 before outputting the comparison result. The increase or decrease of the encoded value is determined by the output of comparator 140. The digital control module 150 performs the corresponding increase or decrease of the encoded value 7 times based on the output of comparator 140 a total of 7 times. Figure 6In the high-low level change curve of the comparator 140's output results for a total of 7 times, the encoded value corresponding to the last level transition point is 194. Therefore, the encoded value 194 is the final differential calibration encoded value. The encoded value 194 is input to the digital-to-analog converter module 160, so that the digital-to-analog converter module 160 adjusts the first current input to the first delay unit 110 according to the acquired encoded value 194, thereby obtaining the differential clock signal that has finally completed differential calibration.
[0096] In one embodiment of this application, the second delay unit is used to perform common-mode adjustment on the differential clock signal according to the second current adjusted by the digital-to-analog converter module after differential-mode calibration is completed, including:
[0097] After differential calibration is completed, the end time of the rising edge and the start time of the falling edge of the differential clock signal are adjusted according to the second current adjusted by the digital-to-analog converter module.
[0098] The amplitude of the differential clock signal can be adjusted by regulating the end time of the rising edge and the start time of the falling edge.
[0099] In this embodiment, after differential calibration is completed, the second delay unit 120, based on the second current adjusted by the digital-to-analog converter module 160, can adjust the end time of the rising edge and the start time of the falling edge of the differential clock signal. This adjustment includes delaying the end time of the rising edge or delaying the start time of the falling edge. By adjusting the end time of the rising edge and the start time of the falling edge of the differential clock signal, the amplitude of the differential clock signal can be adjusted.
[0100] For example, refer to Figure 6 , Figure 6 This is a comparative schematic diagram showing the differential clock signal before and after passing through the second delay unit, as provided in an embodiment of this application. Figure 6 As shown, after the differential clock signal passes through the first delay unit 110, the end time of the rising edge remains unchanged, while the start time of the rising edge is delayed; simultaneously, the start time of the falling edge remains unchanged, while the end time of the falling edge is delayed, thus making the rising edge steeper and the falling edge steeper of the differential clock signal after passing through the first delay unit 110. In this way, differential-mode adjustment of the differential clock signal can be performed to complete differential-mode calibration. After differential-mode calibration, the differential clock signal is input to the second delay unit 120 for common-mode calibration. Specifically, by adjusting the second current input to the second delay unit 120, the start time of the rising edge remains unchanged, while the end time of the rising edge is delayed; simultaneously, the end time of the falling edge remains unchanged, while the start time of the falling edge is advanced. In this way, common-mode adjustment of the differential clock signal after differential-mode calibration can be performed to complete common-mode calibration.
[0101] In one embodiment of this application, the comparator is used to compare a second voltage with a reference voltage and output a second comparison result, including:
[0102] The second voltage is compared with the reference voltage, which is the voltage corresponding to a duty cycle of 50%.
[0103] When the second voltage is greater than the reference voltage, the second comparison result output by the comparator is high.
[0104] When the second voltage is less than the reference voltage, the second comparison result output by the comparator is low.
[0105] In this embodiment, the differential clock signal, after passing through the second delay unit 120, is output to the capacitor-resistor filter 130. The capacitor-resistor filter 130 performs DC voltage equivalent processing on the second differential clock signal output after common-mode regulation to obtain a second voltage. The obtained second voltage is then input to the comparator 140, allowing the comparator 140 to compare the second voltage with a reference voltage. The reference voltage is a pre-modulated voltage corresponding to a 50% duty cycle. When the second voltage is greater than the reference voltage, the comparator 140 outputs a high level. When the second voltage is less than the reference voltage, the comparator outputs a low level.
[0106] It should also be noted that the output of comparator 140 can be represented using a binary search method. That is, when comparator 140 outputs 1, it indicates that the current second voltage is greater than the reference voltage, and when the comparator outputs 0, it indicates that the current second voltage is less than the reference voltage.
[0107] In this embodiment of the application, the magnitudes of the second voltage and the reference voltage after common-mode regulation can be accurately obtained through the output of comparator 140.
[0108] In one embodiment of this application, the digital control module is configured to increase or decrease the encoding amount based on a second comparison result and a second current encoding value, and update the encoding value after the increase or decrease to the second current encoding value, including:
[0109] When the second comparison result is high, a certain amount of coding is increased based on the second current coding value, and the coding value after the increase is updated to the second current coding value.
[0110] When the second comparison result is low, a certain amount of coding is reduced based on the second current coding value, and the coding value after the reduction is updated to the second current coding value.
[0111] In this embodiment, the digital control module 150 can obtain the output of the comparator 140. When the comparator output is 1, it indicates that the second voltage is higher than the reference voltage. At this time, it is necessary to increase the encoding value by a certain amount based on the second current encoding value, and update the encoded value after the increase to the second current encoding value. When the comparator output is 0, it indicates that the second voltage is lower than the reference voltage. At this time, it is necessary to decrease the encoding value by a certain amount based on the second current encoding value, and update the encoded value after the decrease to the second current encoding value.
[0112] For example, the digital control module 150 can first obtain the default encoding value as the initial second current encoding value. For instance, if the default encoding value is 128, and the output of the comparator 140 is 1, it indicates that a certain amount of encoding needs to be increased, where the certain amount of encoding is half of 128, i.e., 64. Then, adding 64 to the second current encoding value of 128 yields the encoding value 192, i.e., 128 + 64 = 192. The encoding value 192 is then updated to the second current encoding value and input to the digital-to-analog converter module 160, causing the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 according to the obtained encoding value 192, completing the first adjustment. After adjustment, the comparator 140 will output another result, for example, an output of 1, indicating that a certain amount of encoding needs to be increased, where the certain amount of encoding is half of 64, i.e., 32. Then, adding 32 to the second current encoding value of 192 yields the encoding value 224, i.e., 192 + 32 = 224. Then, the encoded value 224 is updated to the second current encoded value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 based on the acquired encoded value 224, completing the second adjustment. After adjustment, the comparator 140 outputs another result, for example, an output of 0, indicating that a certain amount of encoding needs to be reduced. This certain amount of encoding is half of 32, which is 16. At this point, reducing the second current encoded value 224 by 16 yields an encoded value of 208, i.e., 224 - 16 = 208. Then, the encoded value 208 is updated to the second current encoded value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 based on the acquired encoded value 208, completing the third adjustment. After adjustment, the comparator 140 outputs another result, for example, an output of 0, indicating that a certain amount of encoding needs to be reduced. This certain amount of encoding is half of 16, which is 8. At this point, the encoding value is reduced by 8 from the first current encoding value 208 to obtain an encoding value of 200, i.e., 208 - 8 = 200. Then, the encoding value 200 is updated to the second current encoding value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 based on the acquired encoding value 200, completing the fourth adjustment. After adjustment, the comparator 140 will output another result, for example, an output of 1, indicating that a certain amount of encoding needs to be increased, where the certain amount of encoding is 1 / 2 of 8, i.e., 4. At this point, 4 is added to the second current encoding value 200 to obtain an encoding value of 204, i.e., 200 + 4 = 204.Then, the encoded value 204 is updated to the second current encoded value and input to the digital-to-analog converter module 160. This causes the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 based on the acquired encoded value 204, completing the fifth adjustment. After adjustment, the comparator 140 outputs another result, for example, an output of 0, indicating that a certain amount of encoding needs to be reduced, where the certain amount of encoding is 1 / 2 of 4, which is 2. At this point, subtracting 2 from the second current encoded value 204 yields the encoded value 202, i.e., 204 - 2 = 202. Then, the encoded value 202 is updated to the second current encoded value and input to the digital-to-analog converter module 160, causing the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 based on the acquired encoded value 202, completing the sixth adjustment. After adjustment, the comparator 140 outputs another result, for example, an output of 0, indicating that a certain amount of encoding needs to be reduced, where the certain amount of encoding is 1 / 2 of 2, which is 1. At this point, the second current encoded value 202 is reduced by 1 to obtain an encoded value of 201, i.e., 202-1=201. Then, the encoded value 201 is updated to the second current encoded value and input to the digital-to-analog converter module 160. This allows the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 according to the acquired encoded value 201, completing the seventh adjustment. In this way, the digital control module 150, based on the comparator's output, can obtain a different encoded value each time it performs a certain increase or decrease in the encoded value, which is then input to the digital-to-analog converter module 160. This allows the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 according to the different encoded values obtained, for common-mode calibration.
[0113] In this embodiment, after seven adjustments, the second high-low level change curve corresponding to the seven second comparison results output by comparator 140 is obtained, and the encoding value corresponding to the last level transition point in the second high-low level change curve is obtained as the final common-mode calibration encoding value. (Refer to...) Figure 7 , Figure 7 This is an example diagram of common-mode calibration of the duty cycle calibration circuit provided in this application embodiment. Figure 7 As shown, comparator 140 is reset before each comparison, that is, it is reset to 0 before outputting the comparison result. The increase or decrease of the encoded value is determined by the output of comparator 140. The digital control module 150 performs the corresponding increase or decrease of the encoded value 7 times based on the output of comparator 140 a total of 7 times. Figure 7In the high-low level change curves of the comparator 140's output results for a total of 7 iterations, the encoded value corresponding to the last level transition point is 200. Therefore, the encoded value 200 is the final common-mode calibration encoded value. The encoded value 200 is input to the digital-to-analog converter module 160, causing the digital-to-analog converter module 160 to adjust the second current input to the second delay unit 120 according to the acquired encoded value 200, thereby obtaining the differential clock signal that has finally completed common-mode calibration.
[0114] This application also provides a duty cycle calibration method, which is executed based on the duty cycle calibration circuit provided in this application embodiment, and can be achieved through... Figure 1 The duty cycle calibration circuit shown performs differential-mode calibration and common-mode calibration on the differential clock signal in sequence, which can improve the calibration accuracy of the duty cycle.
[0115] Reference Figure 8 , Figure 8 This is a flowchart of the duty cycle calibration method provided in the embodiments of this application, by... Figure 1 The duty cycle calibration circuit shown is executed, including but not limited to steps S810 to S8100.
[0116] Step S810: The differential clock signal is differentially adjusted by the first delay unit according to the first current adjusted by the digital-to-analog converter module.
[0117] Step S820: The first differential clock signal output after differential mode adjustment is processed by a capacitor-resistor filter to perform DC voltage equivalent processing to obtain the first voltage;
[0118] Step S830: The first voltage is compared with the reference voltage by the comparator, and the first comparison result is output. The reference voltage is the voltage corresponding to a duty cycle of 50%.
[0119] Step S840: The digital control module increases or decreases the encoding amount based on the first comparison result and the first current encoding value according to a certain amount, and updates the encoding value after the increase or decrease to the first current encoding value. The certain amount of encoding is 1 / 2 of the encoding amount of the previous increase or decrease.
[0120] Step S850: The digital-to-analog converter module adjusts the first current input to the first delay unit according to the first current encoding value, so that the first delay unit performs differential mode calibration on the differential clock signal according to the first current.
[0121] Step S860: After completing the differential-mode calibration, the differential clock signal is adjusted to common-mode using the second delay unit based on the second current adjusted by the digital-to-analog converter module.
[0122] Step S870: The second differential clock signal output after common-mode regulation is processed by a capacitor-resistor filter to perform DC voltage equivalent processing to obtain the second voltage;
[0123] Step S880: The second voltage is compared with the reference voltage using a comparator, and the second comparison result is output.
[0124] Step S890: The digital control module increases or decreases the encoding amount based on the second comparison result and the second current encoding value according to a certain amount of encoding, and updates the encoding value after the increase or decrease of the encoding amount to the second current encoding value.
[0125] In step S8100, the digital-to-analog converter module adjusts the second current input to the second delay unit according to the second current encoding value, so that the second delay unit performs common-mode calibration on the differential clock signal according to the second current.
[0126] In this embodiment of the application, steps S810 to S850 are using Figure 1 The duty cycle calibration circuit shown performs differential calibration steps. During differential calibration, the first delay unit 110 adjusts the differential clock signal according to the first current adjusted by the digital-to-analog converter module 160, and then inputs it to the capacitor-resistor filter 130. The capacitor-resistor filter 130 performs DC voltage equivalent processing on the first differential clock signal output after differential adjustment to obtain a first voltage, which is then input to the comparator 140. The comparator 140 compares the first voltage with the reference voltage and outputs the corresponding first comparison result. The first comparison result includes two cases: one is that the first voltage is greater than the reference voltage, and the comparator 140 outputs a high level; the other is that the first voltage is less than the reference voltage, and the comparator 140 outputs a low level. The digital control module 150 can obtain the first comparison result and, based on the first comparison result, increase or decrease the encoding amount by a certain amount based on the first current encoding value, and update the encoding value after the increase or decrease to the first current encoding value. Then, the digital control module 150 transmits the updated first current encoding value to the digital-to-analog converter module 160, so that the digital-to-analog converter module 160 can adjust the first current input to the first delay unit 110 according to the acquired first current encoding value to perform differential mode calibration.
[0127] In this embodiment, after differential-mode calibration is completed, common-mode calibration is performed through steps S860 to S8100. During common-mode calibration, the second delay unit 120 adjusts the differential clock signal according to the second current adjusted by the digital-to-analog converter module 160, and then inputs it to the capacitor-resistor filter 130. The capacitor-resistor filter 130 performs DC voltage equivalent processing on the second differential clock signal output after common-mode adjustment to obtain a second voltage, which is then input to the comparator 140. The comparator 140 compares the second voltage with the reference voltage and outputs the corresponding second comparison result. The second comparison result includes two cases: one is that the second voltage is greater than the reference voltage, and the comparator 140 outputs a high level; the other is that the second voltage is less than the reference voltage, and the comparator 140 outputs a low level. The digital control module 150 can obtain the second comparison result and, based on the second comparison result, increase or decrease the encoding amount by a certain amount based on the second current encoding value, and update the encoding value after the increase or decrease by a certain amount to the second current encoding value. Then, the digital control module 150 transmits the updated second current encoding value to the digital-to-analog converter module 160, so that the digital-to-analog converter module 160 can adjust the second current input to the second delay unit 120 according to the acquired second current encoding value to perform common-mode calibration.
[0128] In one embodiment of this application, before the digital control module performs an increase or decrease of a certain amount of encoding based on the first comparison result, the following operations are also required:
[0129] Get the default encoding value and use the default encoding value as the first current encoding value.
[0130] In this embodiment, a default encoding value needs to be pre-written into the digital control module 150 as the initial first current encoding value. For example, encoding value 128 is pre-written into the digital control module 150, and encoding value 128 is used as the initial first current encoding value. Then, a certain amount of encoding is increased or decreased based on encoding value 128 to perform differential mode calibration.
[0131] In one embodiment of this application, before the digital control module performs an increase or decrease of a certain amount of encoding based on the second comparison result, the following operations are also required:
[0132] Get the default encoding value and use the default encoding value as the second current encoding value.
[0133] In this embodiment of the application, after differential mode calibration is completed, a default encoding value needs to be pre-written into the digital control module 150 as the initial second current encoding value. For example, encoding value 128 is pre-written into the digital control module 150, and encoding value 128 is used as the initial second current encoding value. Then, based on encoding value 128, a certain amount of encoding is increased or decreased to perform common mode calibration.
[0134] In one embodiment of this application, reference is made to Figure 9 , Figure 9 This is a flowchart of the steps performed after the digital control module performs seven increases or decreases of a certain amount of code based on the first comparison result, as provided in the embodiments of this application, including but not limited to steps S910 to S930.
[0135] Step S910: Obtain the first high and low level change curves corresponding to the seven first comparison results of the comparator output;
[0136] Step S920: Obtain the first current encoding value corresponding to the last level transition point in the first high-low level change curve as the differential mode calibration encoding value;
[0137] Step S930: The differential calibration code value is output to the digital-to-analog converter module, so that the digital-to-analog converter module adjusts the first current input to the first delay unit according to the differential calibration code value to complete the differential calibration of the differential clock signal.
[0138] In this embodiment, the digital control module 150 starts with a first current code value with a default code value as the initial value and increases or decreases the code by a certain amount to perform multiple differential calibration operations on the differential clock signal. After the digital control module 150 performs seven increases or decreases of the code by a certain amount according to the first comparison result, it obtains the first high-low level change curve corresponding to the seven first comparison results output by the comparator 140. The last level transition point, i.e., the transition point from high level to low level or from low level to high level, can be found from the first high-low level change curve. Then, the first current code value corresponding to the last level transition point is used as the differential calibration code value and input to the digital-to-analog converter module 160, so that the digital-to-analog converter module 160 adjusts the first current input to the first delay unit 110 according to the differential calibration code value to complete the differential calibration of the differential clock signal.
[0139] In this embodiment, after adjusting the first current of the input first delay unit 110 seven times, the first high-low level change curve of the first comparison result output by the comparator 140 can be used to find the first current encoding value corresponding to the last level transition point in the first high-low level change curve as the differential mode calibration encoding value. Thus, differential mode calibration of the differential clock signal can be achieved through this differential mode calibration encoding value.
[0140] In one embodiment of this application, reference is made to Figure 10 , Figure 10 This is a flowchart of the steps performed after the digital control module performs seven increases or decreases of a certain amount of code based on the second comparison result, as provided in the embodiments of this application, including but not limited to steps S1010 to S1030.
[0141] Step S1010: Obtain the second high and low level change curves corresponding to the seven second comparison results of the comparator output;
[0142] Step S1020: Obtain the second current encoding value corresponding to the last level transition point in the second high-low level change curve as the common-mode calibration encoding value;
[0143] Step S1030: The common-mode calibration code value is output to the digital-to-analog converter module, so that the digital-to-analog converter module adjusts the second current input to the second delay unit according to the common-mode calibration code value to complete the common-mode calibration of the differential clock signal.
[0144] In this embodiment, after differential mode calibration is completed, the differential mode calibration code value is kept unchanged, that is, the first current input to the first delay unit 110 remains unchanged after differential mode calibration. The digital control module 150 starts by increasing or decreasing a certain amount of code with the second current code value as the initial default code value to perform multiple common mode calibration operations on the differential clock signal. After the digital control module 150 performs seven increases or decreases of a certain amount of code according to the two comparison results, by obtaining the second high-low level change curve corresponding to the seven second comparison results output by the comparator 140, the last level transition point can be found from the second high-low level change curve, that is, the transition point from high level to low level or from low level to high level. Then, the second current code value corresponding to the last level transition point is used as the common mode calibration code value and input to the digital-to-analog converter module 160, so that the digital-to-analog converter module 160 adjusts the second current input to the first delay unit 120 according to the common mode calibration code value to complete the common mode calibration of the differential clock signal.
[0145] In this embodiment, after adjusting the second current of the input second delay unit 120 seven times, the second high-low level change curve of the second comparison result output by the comparator 140 can be used to find the second current encoding value corresponding to the last level transition point in the second high-low level change curve as the common-mode calibration encoding value. Thus, common-mode calibration of the differential clock signal can be achieved using this common-mode calibration encoding value.
[0146] This application also provides a duty cycle calibration device, including the duty cycle calibration circuit provided in any embodiment of this application.
[0147] Since the duty cycle calibration device provided in this application includes the duty cycle calibration circuit provided in any embodiment of this application, the duty cycle calibration device provided in this application has the advantages of the aforementioned duty cycle calibration circuit. It can calibrate the duty cycle by using the encoded value and the comparison result of the adjusted comparator output, thus effectively improving the calibration accuracy of the duty cycle.
[0148] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0149] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0150] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0151] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0152] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0153] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0154] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0155] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0156] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0157] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0158] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. A duty cycle calibration circuit, characterized in that, include: The system comprises a first delay unit, a second delay unit, a capacitor-resistor filter, a comparator, a digital control module, and a digital-to-analog converter module. The first terminal of the first delay unit is used to receive a differential clock signal. The second terminal of the first delay unit is connected to the first terminal of the second delay unit. The second terminal of the second delay unit is connected to the first terminal of the capacitor-resistor filter. The second terminal of the capacitor-resistor filter is connected to the first terminal of the comparator. The second terminal of the comparator is connected to the first terminal of the digital control module. The second terminal of the digital control module is connected to the first terminal of the digital-to-analog converter module. The second terminal of the digital-to-analog converter module is connected to the third terminal of the first delay unit and the third terminal of the second delay unit, respectively. The first delay unit is used to perform differential mode adjustment on the differential clock signal according to the first current adjusted by the digital-to-analog converter module; The second delay unit is used to perform common-mode adjustment on the differential clock signal according to the second current adjusted by the digital-to-analog converter module after the differential-mode calibration is completed; The capacitor-resistor filter is used for: The first differential clock signal output after differential mode regulation is processed by DC voltage equivalent processing to obtain the first voltage. The second differential clock signal output after common-mode regulation is subjected to DC voltage equivalent processing to obtain the second voltage. The comparator is used for: The first voltage is compared with a reference voltage, and a first comparison result is output. The reference voltage is the voltage corresponding to a duty cycle of 50%. The second voltage is compared with the reference voltage, and a second comparison result is output. The digital control module is used for: Based on the first comparison result, a certain amount of coding is increased or decreased on the basis of the first current coding value, and the coding value after the increase or decrease of the certain amount of coding is updated to the first current coding value, wherein the certain amount of coding is 1 / 2 of the coding amount of the previous increase or decrease; Based on the second comparison result, the coding amount is increased or decreased according to the second current coding value, and the coding value after the increase or decrease of the coding amount is updated to the second current coding value. The digital-to-analog converter module is used for: The first current input to the first delay unit is adjusted according to the first current encoding value, so that the first delay unit performs differential mode calibration on the differential clock signal according to the first current; After differential calibration is completed, the second current input to the second delay unit is adjusted according to the second current encoding value, so that the second delay unit performs common-mode calibration on the differential clock signal according to the second current.
2. The circuit according to claim 1, characterized in that, The first delay unit is used to perform differential-mode adjustment on the differential clock signal according to the first current adjusted by the digital-to-analog converter module, including: The start time of the rising edge and the end time of the falling edge of the differential clock signal are adjusted according to the first current after adjustment by the digital-to-analog converter module. The rise steepness and fall steepness of the differential clock signal are adjusted by regulating the start time of the rising edge and the end time of the falling edge.
3. The circuit according to claim 1, characterized in that, The second delay unit is used to perform common-mode adjustment on the differential clock signal according to the second current adjusted by the digital-to-analog converter module after differential-mode calibration is completed, including: After differential calibration is completed, the end time of the rising edge and the start time of the falling edge of the differential clock signal are adjusted according to the second current adjusted by the digital-to-analog converter module. The amplitude of the differential clock signal is adjusted by regulating the end time of the rising edge and the start time of the falling edge.
4. The circuit according to claim 1, characterized in that, The comparator is used to compare the first voltage with a reference voltage and output a first comparison result, including: The first voltage is compared with a reference voltage, which is the voltage corresponding to a duty cycle of 50%. When the first voltage is greater than the reference voltage, the first comparison result output by the comparator is a high level; When the first voltage is less than the reference voltage, the first comparison result output by the comparator is low.
5. The circuit according to claim 1, characterized in that, The digital control module is used to increase or decrease the encoding amount based on the first comparison result and the first current encoding value, and to update the encoding value after the increase or decrease of the encoding amount to the first current encoding value, including: When the first comparison result is high, a certain amount of coding is increased based on the first current coding value, and the coding value after the increase of the certain amount of coding is updated to the first current coding value; When the first comparison result is low, a certain amount of coding is reduced based on the first current coding value, and the coding value after the certain amount of coding reduction is updated to the first current coding value.
6. A duty cycle calibration method, characterized in that, Performed using the duty cycle calibration circuit according to any one of claims 1-5, comprising: The differential clock signal is differentially adjusted by the first delay unit based on the first current adjusted by the digital-to-analog converter module. The first differential clock signal output after differential mode adjustment is processed by a capacitor-resistor filter to perform DC voltage equivalent processing, thereby obtaining the first voltage. The first voltage is compared with a reference voltage by a comparator, and a first comparison result is output. The reference voltage is the voltage corresponding to a duty cycle of 50%. The digital control module increases or decreases the encoding amount based on the first comparison result and the first current encoding value according to a certain amount, and updates the encoding value after the increase or decrease of the certain amount of encoding to the first current encoding value. The certain amount of encoding is 1 / 2 of the encoding amount of the previous increase or decrease. The digital-to-analog converter module adjusts the first current input to the first delay unit according to the first current encoding value, so that the first delay unit performs differential mode calibration on the differential clock signal according to the first current. After differential-mode calibration is completed, the differential clock signal is subjected to common-mode adjustment by the second delay unit according to the second current adjusted by the digital-to-analog converter module. The second voltage is obtained by performing DC voltage equivalent processing on the second differential clock signal output after common-mode regulation through the capacitor-resistor filter. The comparator compares the second voltage with the reference voltage and outputs a second comparison result. The digital control module increases or decreases the coding amount based on the second comparison result and the second current coding value, and updates the coding value after the increase or decrease of the coding amount to the second current coding value. The digital-to-analog converter module adjusts the second current input to the second delay unit according to the second current encoding value, so that the second delay unit performs common-mode calibration on the differential clock signal according to the second current.
7. The method according to claim 6, characterized in that, Before the digital control module performs the increase or decrease of the certain encoding amount based on the first comparison result, the method includes: Obtain the default encoding value, and use the default encoding value as the first current encoding value.
8. The method according to claim 6, characterized in that, After the digital control module performs seven increases or decreases in the specified encoding amount based on the first comparison result, the method includes: Obtain the first high-low level change curve corresponding to the seven first comparison results output by the comparator; The first current encoding value corresponding to the last level transition point in the first high-low level change curve is obtained as the differential mode calibration encoding value. The differential calibration code value is output to the digital-to-analog converter module, so that the digital-to-analog converter module adjusts the first current input to the first delay unit according to the differential calibration code value to complete the differential calibration of the differential clock signal.
9. The method according to claim 6, characterized in that, After the digital control module has performed seven increases or decreases in the specified encoding amount based on the second comparison result, the method includes: Obtain the second high-low level change curve corresponding to the seven second comparison results output by the comparator; The second current encoding value corresponding to the last level transition point in the second high-low level change curve is obtained as the common-mode calibration encoding value. The common-mode calibration code value is output to the digital-to-analog converter module, so that the digital-to-analog converter module adjusts the second current input to the second delay unit according to the common-mode calibration code value to complete the common-mode calibration of the differential clock signal.
10. A duty cycle calibration device, characterized in that, Includes the duty cycle calibration circuit as described in any one of claims 1-5.
Citation Information
Patent Citations
Clock duty cycle calibration circuit
CN113014233A
Duty ratio calibration circuit and method
CN113328733A
