Clock signal calibration circuit, calibration method and memory
By directly calibrating the output voltage of the current mode logic module in the clock signal calibration circuit, the problem of low clock duty cycle calibration accuracy is solved, and efficient and accurate clock signal calibration is achieved. Improved integration and calibration efficiency.
Patent Information
- Application Number
- CN202411054687.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-11-26
AI Technical Summary
The existing clock signal calibration circuit is affected by process manufacturing deviations, resulting in a reduced clock duty cycle calibration accuracy, making it difficult to meet the clock quality requirements of high-speed chips.
Design a clock signal calibration circuit including a current mode logic module, a comparator and a calibration module. By receiving the test voltage, generate an output voltage, compare the output voltage and generate a calibration signal, adjust the duty cycle of the current mode logic module to achieve the correctness of the Direct calibration of differential clock signals reduces additional conversion circuits, improves integration and calibration efficiency.
High-precision calibration of clock signals is achieved, calibration time and circuit area is reduced, calibration efficiency is improved, and additional differential clock signal conversion circuit is not required, which enhances the integration and accuracy of calibration results.
Smart Images

Figure CN119030507A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of integrated circuits, and in particular to a calibration circuit, a calibration method and a memory for a clock signal. Background Art
[0002] As the chip operating speed and data throughput continue to increase, higher requirements are placed on the quality of the clock, and the clock duty cycle is one of the important performance indicators. It will be affected by the deviation of the process manufacturing, thereby reducing the calibration accuracy of the clock duty cycle calibration circuit. Summary of the invention
[0003] In view of this, embodiments of the present disclosure provide a calibration circuit, a calibration method, and a memory for a clock signal to improve the calibration efficiency of the clock signal.
[0004] The present disclosure provides a calibration circuit for a clock signal, comprising: a current mode logic module, a comparator and a calibration module; wherein the current mode logic module is configured to receive a test voltage, and generate a first output voltage and a second output voltage based on the test voltage; wherein the first output voltage and the second output voltage are both used to characterize the duty cycle adjustment amplitude of the current mode logic module; the comparator is connected to the current mode logic module, configured to receive the first output voltage and the second output voltage, and compare the first output voltage and the second output voltage to generate a first comparison result; the calibration module is respectively connected to the current mode logic module and the comparator, configured to receive the first comparison result, generate a first calibration signal based on the first comparison result, and adjust the duty cycle adjustment amplitude of the current mode logic module based on the first calibration signal.
[0005] In the above scheme, the comparator is also configured to generate a second comparison result when the non-inverting input terminal and the inverting input terminal of the comparator are short-circuited; the calibration module is also configured to receive the second comparison result, generate a second calibration signal based on the second comparison result, and calibrate the comparator based on the second calibration signal.
[0006] In the above solution, the calibration module is arranged in the data interface; the calibration module is further configured to calibrate the data receiver in the data interface.
[0007] In the above scheme, the calibration module is also configured to respond to the jump of the first comparison result, start adjusting from the highest bit of the first calibration signal, gradually reduce the duty cycle adjustment amplitude corresponding to the first calibration signal until the last bit of the first calibration signal, and store the first calibration signal after the adjustment.
[0008] In the above scheme, the clock signal includes: a first differential clock signal and a second differential clock signal; wherein, the current mode logic module is also configured to receive the first differential clock signal, the second differential clock signal and the first calibration signal that has been adjusted, and adjust the duty cycle of the first differential clock signal and the second differential clock signal based on the first calibration signal that has been adjusted.
[0009] In the above scheme, the current mode logic module includes: a first current mode logic sub-module and a second current mode logic sub-module; wherein, the first current mode logic sub-module and the second current mode logic sub-module both include a plurality of first calibration switches and a plurality of transistors of different sizes; wherein, each of the first calibration switches is connected to the corresponding transistor; the duty cycle adjustment amplitudes corresponding to the plurality of transistors of different sizes are different; the first current mode logic sub-module and the second current mode logic sub-module are both configured to receive a first calibration signal, and close or open the corresponding first calibration switch based on the change of the logic value encoded in each bit in the first calibration signal.
[0010] In the above scheme, the calibration circuit also includes: a duty cycle adjustment module; wherein the duty cycle adjustment module is respectively connected to the calibration module and the current mode logic module, and is also configured to receive the first calibration signal and convert the first calibration signal into a duty cycle adjustment signal; the first current mode logic sub-module and the second current mode logic sub-module are also configured to close or open the corresponding first calibration switch based on the change of the logic value encoded in each bit in the duty cycle adjustment signal.
[0011] The present disclosure also provides a clock signal calibration method, including: receiving a test voltage, and generating a first output voltage and a second output voltage based on the test voltage; wherein the first output voltage and the second output voltage are both used to characterize the duty cycle adjustment amplitude of the current mode logic module; comparing the first output voltage and the second output voltage to generate a first comparison result; generating a first calibration signal based on the first comparison result, and adjusting the duty cycle adjustment amplitude of the current mode logic module based on the first calibration signal.
[0012] In the above scheme, before comparing the first output voltage and the second output voltage to generate the first comparison result, the calibration method also includes: short-circuiting the non-inverting input terminal and the inverting input terminal of the comparator to generate a second comparison result; generating a second calibration signal based on the second comparison result, and calibrating the comparator based on the second calibration signal.
[0013] The present disclosure also provides a memory, which includes the calibration circuit described in any of the above solutions.
[0014] The present disclosure provides a calibration circuit for a clock signal, comprising: a current mode logic module, a comparator and a calibration module; wherein the current mode logic module is configured to receive a test voltage and generate a first output voltage and a second output voltage based on the test voltage; wherein the first output voltage and the second output voltage are both used to characterize the duty cycle adjustment amplitude of the current mode logic module; the comparator is connected to the current mode logic module and configured to receive the first output voltage and the second output voltage, and compare the first output voltage and the second output voltage to generate a first comparison result; the calibration module is respectively connected to the current mode logic module and the comparator, and is configured to receive the first comparison result, generate a first calibration signal based on the first comparison result, and adjust the duty cycle adjustment amplitude of the current mode logic module based on the first calibration signal. In this way, the first output voltage and the second output voltage in the embodiment of the present disclosure can characterize the adjustment amplitude of the duty cycle of the current mode logic module, and the embodiment of the present disclosure can calibrate the duty cycle adjustment of the current mode logic module by calibrating the first output voltage and the second output voltage. Therefore, the embodiment of the present disclosure does not need to additionally set a circuit for converting a differential clock signal, which can reduce the area of the calibration circuit and improve the integration. At the same time, the embodiment of the present disclosure is calibrated directly according to the first output voltage V1 and the second output voltage of the current mode logic module, so there is no need to convert the differential clock signal, thereby reducing the calibration time and improving the calibration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of the structure of the calibration circuit provided in the embodiment of the present disclosure Figure 1 ;
[0016] Figure 2 A schematic diagram of the structure of the calibration circuit provided in the embodiment of the present disclosure Figure 2 ;
[0017] Figure 3 A schematic diagram of the structure of the current mode logic module provided in the embodiment of the present disclosure Figure 1 ;
[0018] Figure 4 A schematic diagram of the structure of the current mode logic module provided in the embodiment of the present disclosure Figure 2 ;
[0019] Figure 5 A schematic diagram of the structure of the current mode logic module provided in the embodiment of the present disclosure Figure 3 ;
[0020] Figure 6 A schematic diagram of the structure of the calibration circuit provided in the embodiment of the present disclosure Figure 3 ;
[0021] Figure 7 A schematic diagram of the structure of a comparator provided in an embodiment of the present disclosure;
[0022] Figure 8 A schematic diagram of the structure of the calibration circuit provided in the embodiment of the present disclosure Figure 4 ;
[0023] Fig. 9 A schematic diagram of the structure of a calibration module provided in an embodiment of the present disclosure;
[0024] Fig.10 A waveform diagram of a calibration module provided in an embodiment of the present disclosure;
[0025] Fig.11 Schematic diagram of the calibration method provided in the embodiment of the present disclosure Figure 1 ;
[0026] Fig.12 Schematic diagram of the calibration method provided in the embodiment of the present disclosure Figure 2 ;
[0027] Fig.13 Schematic diagram of the calibration method provided in the embodiment of the present disclosure Figure 3 ;
[0028] Fig.14 A schematic diagram of the structure of a memory provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present disclosure clearer, the technical solutions of the present disclosure are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present disclosure. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.
[0030] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0031] If similar descriptions of "first / second" appear in the application documents, the following description is added. In the following description, the terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first / second / third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein.
[0032] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0033] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0034] Figure 1 is a schematic diagram of an optional calibration circuit 100 provided in an embodiment of the present disclosure, with reference to Figure 1 The calibration circuit 100 includes a current mode logic module (CML) 10 , a comparator (Slicer) 20 and a calibration module 30 .
[0035] Figure 2 is a schematic diagram of a circuit structure of an optional calibration circuit 100 provided in an embodiment of the present disclosure. It should be noted that, referring to Figure 2 The current mode logic module 10 may include a first current mode logic submodule 11 and a second current mode logic submodule 12. The first current mode logic submodule 11 and the second current mode logic submodule 12 are both used to adjust the duty cycle of the differential clock signals Clk_c and Clk_t received by the current mode logic module 10.
[0036] The circuit structures of the first current mode logic submodule 11 and the second current mode logic submodule 12 can be as follows: Figure 3As shown: the first current mode logic submodule 11 may include a first regulating unit 110 and a second regulating unit 111. The second current mode logic submodule 12 may include a third regulating unit 120 and a fourth regulating unit 121. The first regulating unit 110 and the third regulating unit 120 are both differential input and differential output operational amplifiers, the non-inverting input terminal of the first regulating unit 110 and the inverting input terminal of the third regulating unit 120 both receive the first differential clock signal Clk_t, and the inverting input terminal of the first regulating unit 110 and the inverting input terminal of the third regulating unit 120 both receive the second differential clock signal Clk_c. The second regulating unit 111 and the fourth regulating unit 121 are both differential input and single-ended output operational amplifiers. The non-inverting output terminal of the first regulating unit 110 and the inverting output terminal of the third regulating unit 120 are connected to each other, and are both connected to the non-inverting input terminal of the third regulating unit 111 and the inverting input terminal of the fourth regulating unit 121. The inverting output terminal of the first regulating unit 110 and the non-inverting output terminal of the third regulating unit 120 are connected to each other, and are both connected to the inverting input terminal of the third regulating unit 111 and the non-inverting input terminal of the fourth regulating unit 121 .
[0037] The circuit structures of the first regulating unit 110 and the third regulating unit 120 can be as follows: Figure 4 As shown, the circuit structures of the second regulating unit 111 and the fourth regulating unit 121 can be as follows Figure 5 As shown:
[0038] The first current mode logic submodule 11 and the second current mode logic submodule 12 may each include a plurality of transistors for adjusting the duty cycle ( Figure 4 M3~M6 and / or Figure 5 M13 to M16 in the figure), each transistor for adjusting the duty cycle has a corresponding first calibration switch ( Figure 4 S11 to S14 and / or Figure 5In this way, the current mode logic module 10 can select whether to connect the corresponding transistors M3 to M6 (and / or M13 to M16) through the first calibration switches S11 to S14 (and / or S15 to S18), and then the first current mode logic submodule 11 and the second current mode logic submodule 12 can control the output current of the first current mode logic submodule 11 and the second current mode logic submodule 12 through the connected transistors M3 to M6 (and / or M13 to M16). In the process of the first differential clock signal Clk_t and the second differential clock signal Clk_c jumping (high level jumping to low level and low level jumping to high level), if the difference between the two time points at which the output currents of the first current mode logic submodule 11 and the second current mode logic submodule 12 are equal increases, the duty cycle of the output signal of the first current mode logic submodule 11 and the second current mode logic submodule 12 increases; conversely, if the difference between the two time points at which the output currents of the first current mode logic submodule 11 and the second current mode logic submodule 12 are equal decreases, the duty cycle of the output signal of the first current mode logic submodule 11 and the second current mode logic submodule 12 decreases. In this way, if the number and size of transistors connected to the first current mode logic submodule 11 and the second current mode logic submodule 12 are different, the output currents of the first current mode logic submodule 11 and the second current mode logic submodule 12 are different, and correspondingly, the duty cycle adjustment amplitudes of the first current mode logic submodule 11 and the second current mode logic submodule 12 are different.
[0039] It should also be noted that Figure 4 The transistor M7 and Figure 5 The gates of the transistors M17 in FIG. 1 and FIG. 2 receive a bias voltage V_bias to control whether to access the power supply. Figure 4 and Figure 5 CkN1 in the figure is the inverting terminal output current of the first regulating unit 110 (or the third regulating unit 120), Figure 4 and Figure 5 CkP1 in FIG. 1 is the output current of the common-phase terminal of the first regulating unit 110 (or the third regulating unit 120 ).
[0040] In the embodiments of the present disclosure, reference Figure 1 , the current mode logic module 10 can receive the test voltage Vref and generate a first output voltage V1 and a second output voltage V2 based on the test voltage Vref. Figure 3 As shown, the first current mode logic submodule 11 in the current mode logic module 10 outputs a first output voltage V1, and the second current mode logic submodule 12 in the current mode logic module 10 outputs a second output voltage V2. Figure 4 The gates of the transistors M1 to M6 shown can all receive the test voltage Vref. The number and size of the transistors connected to the first current mode logic submodule 11 (or the second current mode logic submodule 12) are different, and the output voltage of the first current mode logic submodule 11 (or the second current mode logic submodule 12) is different. In other words, the number and size of the transistors connected to the current mode logic module 10 are different, and the duty cycle adjustment range of the current mode logic module 10 is different. At the same time, the first output voltage V1 and the second output voltage V2 output by the current mode logic module 10 will change accordingly, that is: the first output voltage V1 and the second output voltage V2 can represent the duty cycle adjustment range of the current mode logic module 10.
[0041] In the embodiments of the present disclosure, it should be noted that, generally, reference Figure 1 , the calibration process of the current mode logic module 10 is to adjust the duty cycle of the differential clock signals Clk_c and Clk_t, and then filter the differential signal that has completed the duty cycle adjustment through a circuit such as a low-pass filter (LPF), and finally, compare the filtered voltages through a comparator. The comparator 10 in the disclosed embodiment receives the first output voltage V1 and the second output voltage V2. The comparator 20 can directly compare the voltage magnitudes of the first output voltage V1 and the second output voltage V2 output by the current mode logic module 10. For example, if the first comparison result output by the comparator 20 is a high level, it indicates that the first output voltage V1 is greater than the second output voltage V2, and the duty cycle adjustment amplitude of the first current mode logic submodule 11 is greater than the second current mode logic submodule 12; conversely, if the first comparison result output by the comparator 20 is a low level, it indicates that the first output voltage V1 is less than the second output voltage V2, and the duty cycle adjustment amplitude of the first current mode logic submodule 11 is less than the second current mode logic submodule 12. In this way, the embodiment of the present disclosure can confirm whether the voltage magnitude relationship between the first output voltage V1 and the second output voltage V2 has changed according to whether a jump occurs in the first comparison result, that is, the embodiment of the present disclosure can confirm the magnitude relationship between the adjustment amplitudes of the duty cycles of the first current mode logic submodule 11 and the second current mode logic submodule 12.
[0042] In the embodiments of the present disclosure, reference Figure 1 The calibration module 30 can also generate a first calibration signal based on the first comparison result, and adjust the duty cycle adjustment amplitude of the current mode logic module 10 based on the first calibration signal. Figure 3 and Figure 4 The calibration module 30 can be configured to adjust the transistors M3 to M6 (and / or Figure 5The transistors M13 to M16 in the transistors corresponding to the maximum duty cycle adjustment range start to adjust until the transistors M3 to M6 (and / or Figure 5 The transistor M13 to M16 in the embodiment corresponds to the transistor with the minimum duty cycle adjustment amplitude.
[0043] It should be noted that, combined with Figure 3 and Figure 4 , since the voltages of the first output voltage V1 and the second output voltage V2 cannot be completely equal, therefore, if the transistors M3 to M6 (and / or Figure 5 If the minimum duty cycle adjustment amplitude corresponding to the transistors M13~M16 in the current mode logic module 10 is smaller than the design requirement of the current mode logic module 10 for duty cycle adjustment of the differential clock signal, it can be considered that the duty cycle adjustment amplitudes of the first current mode logic submodule 11 and the second current mode logic submodule 12 are infinitely close, and the calibration module 30 completes the adjustment of the duty cycle adjustment amplitude of the current mode logic module 10.
[0044] It can be understood that the first output voltage V1 and the second output voltage V2 in the embodiment of the present disclosure can represent the adjustment amplitude of the duty cycle of the current mode logic module 10. In this way, the embodiment of the present disclosure can calibrate the duty cycle adjustment of the current mode logic module 10 by calibrating the first output voltage V1 and the second output voltage V2. Therefore, the embodiment of the present disclosure does not need to set up an additional circuit for converting the differential clock signal, which can reduce the area of the calibration circuit 100 and improve the integration. At the same time, the embodiment of the present disclosure is calibrated directly according to the first output voltage V1 and the second output voltage V2 of the current mode logic module 10, so there is no need to convert the differential clock signal, thereby reducing the calibration time and improving the calibration efficiency.
[0045] In some embodiments of the present disclosure, reference Figure 2 , the current mode logic module 10 includes a first current mode logic submodule 11 and a second current mode logic submodule 12. The first current mode logic submodule 11 and the second current mode logic submodule 12 each include a plurality of first calibration switches and a plurality of transistors of different sizes. Each first calibration switch is connected to a corresponding transistor. The duty cycle adjustment amplitudes corresponding to the plurality of transistors of different sizes are different. The first current mode logic submodule 11 and the second current mode logic submodule 12 are both configured to receive a first calibration signal, and close or open the corresponding first calibration switch based on the change in the logic value of each bit encoded in the first calibration signal.
[0046] In the embodiments of the present disclosure, reference Figure 2The first current mode logic submodule 11 and the second current mode logic submodule 12 each include a plurality of first calibration switches and a plurality of transistors of different sizes. Figure 4 As shown, the first current mode logic submodule 11 and the second current mode logic submodule 12 both include first calibration switches S11-S14. Each first calibration switch S11-S14 is respectively connected to a corresponding transistor M3-M6. Among them, transistor M3 is mirror-symmetrical with transistor M5, and transistor M4 is mirror-symmetrical with transistor M6. The duty cycle adjustment amplitudes corresponding to multiple transistors of different sizes are different. For example, the sizes of transistors M3 and M4 can be reduced in sequence, and the current value changes connected to transistors M3 to M4 are reduced in sequence. Correspondingly, the duty cycle adjustment amplitudes of transistors M3 and M4 are gradually reduced.
[0047] In the embodiments of the present disclosure, reference Figure 2 The first current mode logic submodule 11 and the second current mode logic submodule 12 both close or open the corresponding first calibration switch based on the change of the logic value of each bit encoded in the first calibration signal. The following takes the adjustment process of the first adjustment unit 110 and the third adjustment unit 120 as an example to illustrate the process of adjusting the duty cycle of the first current mode logic submodule 11 and the second current mode logic submodule 12 after receiving the first calibration signal:
[0048] The transistors M3 and M4 included in the first regulating unit 110 (or the third regulating unit 120) are used to adjust the output current of the inverting output terminal of the first regulating unit 110 (or the third regulating unit 120), and the transistors M5 and M6 included in the first regulating unit 110 (or the third regulating unit 120) are used to adjust the output current of the inverting output terminal of the first regulating unit 110 (or the third regulating unit 120). The first calibration signal may include a 3-bit code, such as "ABC", wherein "A" is the highest bit, which is used to indicate the adjustment of the output current of the inverting output terminal or the output current of the inverting output terminal, "B" and "C" are the second and third bits, respectively, and the duty cycle adjustment amplitude corresponding to "B" is greater than that of "C". If the logic value of "A" in the first calibration signal is 0, the output current of the inverting output terminal of the first adjustment unit 110 and the output current of the non-inverting output terminal of the third adjustment unit 120 are adjusted. Conversely, if the logic value of "A" in the first calibration signal is 1, the current of the non-inverting output terminal of the first adjustment unit 110 and the current of the inverting output terminal of the third adjustment unit 120 are adjusted. Then, if the logic value of "B" in the first calibration signal is 0 and the logic value of "C" is 1, the first current mode logic submodule 11 only closes S11 of the first calibration switches S11 to S14 and connects to the transistor M4, and the second current mode logic submodule 11 only closes S14 of the first calibration switches S11 to S14 and connects to the transistor M6. Thus, the calibration module 30 can adjust the duty cycle adjustment amplitude of the first current mode logic submodule 11 and the second current mode logic submodule 12 by adjusting the logic value of each bit encoding of the first calibration signal.
[0049] In some embodiments of the present disclosure, reference Figure 2 The calibration module 30 is also configured to respond to the first comparison result, start adjusting from the highest bit of the first calibration signal, gradually reduce the duty cycle adjustment amplitude corresponding to the first calibration signal until the last bit of the first calibration signal, and register the adjusted first calibration signal.
[0050] In the embodiments of the present disclosure, reference Figure 2 The calibration module 30 is further configured to, in response to the first comparison result, start adjusting from the highest bit of the first calibration signal and gradually reduce the duty cycle adjustment amplitude corresponding to the first calibration signal until the last bit of the first calibration signal. Figure 4The sizes of the transistors M3 and M4 shown can be reduced in sequence, and the current value changes of the transistors M3 to M4 can be reduced in sequence. Correspondingly, the duty cycle adjustment amplitude of the transistors M3 and M4 gradually decreases. The first calibration signal can include a 3-bit code, such as "ABC"; wherein, taking the inverting output terminal of the first adjustment unit 110 as an example: the duty cycle adjustment amplitude corresponding to "B" is greater than "C", "B" is the second bit, used to control the first calibration switch S12 to select whether to connect M3, and "C" is the third bit, used to control the first calibration switch S11 to select whether to connect transistor M4.
[0051] Specifically, refer to Figure 2 , the calibration module 30 can adjust the encoding of the first calibration signal by a binary search algorithm or a successive approximation method. The following takes the binary search algorithm as an example to illustrate the process of the calibration module 30 adjusting the first calibration signal:
[0052] The first calibration signal includes an initial logic value of 3-bit code "ABC" which is 0, and the initial states of the first calibration switches S11 to S14 are all in the disconnected state. When the calibration module 30 does not start to adjust the first calibration signal, the comparator 20 will output the initial first comparison result to the calibration module 30. If the level of the initial first comparison result is a high level, it means that the first output voltage V2 output by the first current mode logic submodule 11 is greater than the second output voltage V2 output by the second current mode logic submodule 12. At this time, the calibration module 30 adjusts the logic value of the highest bit code "A" of the first calibration signal to 0, indicating that the first calibration signal adjusts the current of the inverting output terminal of the first adjustment unit 110 and the non-inverting output terminal of the third adjustment unit 120. On the contrary, it indicates that the first calibration signal adjusts the current of the non-inverting output terminal of the first adjustment unit 110 and the inverting output terminal of the third adjustment unit 120.
[0053] Then, the calibration module 30 adjusts the logic value of the second bit code "B" of the first calibration signal to 1, and the first calibration signal closes the first calibration switch S12 in the first current mode logic submodule 11, and closes the first calibration switch S13 in the second current mode logic submodule 12, so as to increase the duty cycle adjustment amplitude of the second current mode logic submodule 12. Then, if the first comparison result output by the comparator 20 is a high level (no jump occurs), the calibration module 30 adjusts the logic values of the second bit code "B" and the third bit code "C" of the first calibration signal to 1, and the first calibration signal continues to close the first calibration switch S11 in the first current mode logic submodule 11, and closes the first calibration switch S14 in the second current mode logic submodule 12, so as to continue to increase the duty cycle adjustment amplitude of the second current mode logic submodule 12. On the contrary, if the first comparison result output by the comparator 20 jumps from a high level to a low level (a jump occurs), the calibration module 30 adjusts the logic value of the second bit code "B" of the first calibration signal to 0, and the logic value of the third bit code "C" to 1, and the first calibration signal will open the first calibration switch S12 in the first current mode logic submodule 11, open the first calibration switch S13 in the second current mode logic submodule 12, close the first calibration switch S14 in the first current mode logic submodule 11, and close the first calibration switch S11 in the second current mode logic submodule 12, so as to increase the duty cycle adjustment amplitude of the first current mode logic submodule 11. Finally, the calibration module 30 confirms the logic value of the third bit code "C" again according to whether the first comparison result output by the comparator 20 jumps. If the first comparison result jumps from a high level to a low level (a jump occurs), the logic value of the third-bit code "C" is determined to be 0. Otherwise, if the first comparison result does not jump, the logic value of the third-bit code "C" is determined to be 1. Similarly, the adjustment of all bits of the first calibration signal is completed to generate a first calibration signal with the adjustment completed.
[0054] It should be noted that the first calibration signal adjusted by the calibration module 30 in the above example is only used to adjust the first adjustment unit 110 and the third adjustment unit 120. The process in which the calibration module 30 adjusts the first calibration signal to control the first calibration switch S13 to S18 to adjust the second adjustment unit 111 and the fourth adjustment unit 121 can be understood by referring to the above content and will not be repeated here.
[0055] In the embodiments of the present disclosure, reference Figure 2 The calibration module 30 is further configured to register the first calibration signal that has completed the adjustment. Thus, when the calibration circuit 100 subsequently adjusts the duty cycle of the differential clock signals Clk_c and Clk_t, the current mode logic module 10 can call the registered first calibration signal that has completed the adjustment to adjust the duty cycle of the differential clock signals Clk_c and Clk_t.
[0056] In some embodiments of the present disclosure, reference Figure 2 The clock signal includes a first differential clock signal Clk_c and a second differential clock signal Clk_t. The current mode logic module 10 is further configured to receive the first differential clock signal Clk_c, the second differential clock signal Clk_t and the first calibration signal after adjustment, and adjust the duty cycle of the first differential clock signal Clk_c and the second differential clock signal Clk_t based on the first calibration signal after adjustment.
[0057] In the embodiments of the present disclosure, reference Figure 2 , the current mode logic module 10 is further configured to receive the first differential clock signal Clk_c, the second differential clock signal Clk_t and the first calibration signal that has been adjusted, and adjust the duty cycle of the first differential clock signal Clk_c and the second differential clock signal Clk_t based on the first calibration signal that has been adjusted. That is, after the calibration module 30 completes the calibration of the current mode logic module 10, the first current mode logic submodule 11 and the second current mode logic submodule 12 in the current mode logic module 10 receive the first calibration signal that has been adjusted, and adjust the duty cycle of the first differential clock signal Clk_c and the second differential clock signal Clk_t according to the first calibration signal that has been adjusted.
[0058] In the embodiments of the present disclosure, reference Figure 2 , the first current mode logic submodule 11 and the second current mode logic submodule 12 are both connected to a buffer structure (Buffer) 60. The buffer structure 60 can enhance the driving capability of the differential clock signal, that is, the steepness of the upper / lower edges.
[0059] Figure 6 It is a schematic structural diagram of another optional calibration circuit 100 provided in an embodiment of the present disclosure.
[0060] In some embodiments of the present disclosure, reference Figure 6 The comparator 20 is further configured to generate a second comparison result when the non-inverting input terminal and the inverting input terminal of the comparator 20 are short-circuited. The calibration module 30 is further configured to receive the second comparison result, generate a second calibration signal based on the second comparison result, and calibrate the comparator 20 based on the second calibration signal.
[0061] In the embodiments of the present disclosure, reference Figure 6, the comparator 20 is further configured to generate a second comparison result when the non-inverting input terminal and the inverting input terminal of the comparator 20 are short-circuited. For example, in the embodiment of the present disclosure, the first control switch S1, the first control switch S2, and the third control switch S3 can be closed, and the non-inverting input terminal and the inverting input terminal of the comparator 20 are short-circuited. At this time, the voltages received by the non-inverting input terminal and the inverting input terminal of the comparator 20 are the same. In this way, the second comparison result output by the comparator 20 can reflect the voltage imbalance of the comparator 20.
[0062] In the embodiments of the present disclosure, reference Figure 6 The calibration module 30 may also generate a second calibration signal based on the second comparison result, and calibrate the comparator 20 based on the second calibration signal. For example, the comparator 20 may be a dynamic latch comparator. The circuit structure of the comparator 20 may be as follows: Figure 7 The comparator 20 may include a plurality of transistors ( Figure 7 M23 to M26 in the figure), each transistor used to calibrate the comparator 20 has a corresponding second calibration switch ( Figure 7 In this way, after the in-phase input terminal InN and the inverting input terminal InP of the comparator 20 are short-circuited by the first control switch S1, the second calibration signal output by the calibration module 30 can be selected by controlling the second calibration switches S21-S24 to select whether to connect to the corresponding transistors M23-M26, and then, the transistors M23-M26 can change the input voltages of the in-phase input terminal InN and the inverting input terminal InP, that is, the transistors M23-M26 can compensate for the offset voltage of the comparator 20.
[0063] It can be understood that the calibration module 30 in the embodiment of the present disclosure can calibrate the comparator 20, that is, the calibration module 30 is reused. In this way, the embodiment of the present disclosure does not need to set up an additional circuit for calibrating the comparator 20, thereby reducing the area of the calibration circuit 100 and improving the integration. At the same time, the first output voltage V1 and the second output voltage V2 are compared using the calibrated comparator 20, thereby avoiding the error of the comparator 20 from affecting the calibration result of the current mode logic module 10, and further improving the accuracy of the calibration result.
[0064] Figure 8 It is a schematic structural diagram of another optional calibration circuit 100 provided in an embodiment of the present disclosure.
[0065] In some embodiments of the present disclosure, reference Figure 8The calibration module 30 is disposed in the data interface (DQ I / O) 40. The calibration module 30 is further configured to calibrate a data receiver (DQ receiver) 41 in the data interface 40.
[0066] In the embodiments of the present disclosure, reference Figure 8 The calibration module 30 is also configured to calibrate the data receiver (DQ receiver) 41 in the data interface 40. For example, the first control switch S1, the second control switch S2 and the third control switch S3 are disconnected, and the fourth control switch S4 is closed, and the calibration module 30 can calibrate the data receiver 41. In other words, the calibration module 30 can calibrate the current mode logic module 10, the comparator 20 and the data receiver 41.
[0067] The calibration process of the calibration module 30 is described below by taking the calibration module 30 calibrating the comparator 20 as an example:
[0068] Fig. 9 is a schematic diagram of the structure of an optional calibration module 30 provided in an embodiment of the present disclosure, Fig.10 This is a waveform diagram of an optional calibration module 30 provided in an embodiment of the present disclosure. It should be noted that n is a natural number. Fig.10 The waveform diagram in the example shows Fig. 9 Calibration signal calculator clock Clk code <n>The waveforms of the clock signal and address signal received by each device in the calibration module 30 when the value is 2. Figure 7 The calibration clock in can be Fig. 9 The internal clock signal Clk of the data interface 40 is shown.
[0069] In the embodiments of the present disclosure, reference Fig. 9 The calibration module 30 may include a pulse shifter 31. The internal clock signal Clk of the data interface 40 is transmitted to the pulse shifter 31, and the pulse shifter 31 may generate an address signal, a voter clock Clk voter and a calibration signal calculator clock Clk code <n>The address signal is used to indicate the device to be calibrated by the calibration module 30. The voter clock Clk voter and the calibration signal calculator clock Clk code <n>Used to synchronize the operations of the voter 32 , the calibration signal calculator 33 and the latch 34 .
[0070] In the embodiments of the present disclosure, reference Fig. 9 The calibration module 30 may further include a voter 32. The voter 32 may sample the second comparison result of the comparator 20 and output a decision result of the second comparison result. For example, the voter 32 may sample the comparator 20 three times in a row. If two of the three samples are high level, the decision result output by the voter 32 is a high level. In this way, the embodiment of the present disclosure can prevent interference factors such as thermal noise from interfering with the decision result of the voter 32.
[0071] In the embodiments of the present disclosure, reference Fig. 9 The calibration module 30 may further include a calibration signal calculator (OC code calculator) 33 and a latch (Latch) 34. The calibration module 30 may adjust the second calibration signal ( Fig. 9 OC code in <n>), n is the number of coding bits of the second calibration signal. For example, the logic value of each bit of the second calibration signal is 0 by default. The calibration signal calculator 33 can receive the decision result output by the voter 32, and, starting from the highest bit of the second calibration signal, sequentially determine the logic value of each bit of the second calibration signal according to whether the level of the decision result jumps, and transmit the second calibration signal to the comparator 20. The comparator 20 can receive the second calibration signal, and close the corresponding second calibration switch based on the second calibration signal to perform offset voltage compensation.
[0072] It should be noted that the reference Figure 8 The calibration process of the calibration module 30 for the current mode logic module 10 and the data receiver 41 can refer to the calibration process for the comparator 20, which will not be repeated here.
[0073] It is understandable that the embodiment of the present disclosure can reuse the calibration module 30 to calibrate the current mode logic module 10, the comparator 20 and the data receiver 41. Thus, the area of the calibration circuit can be further reduced and the integration level can be improved.
[0074] In some embodiments of the present disclosure, reference Figure 8 The calibration circuit 100 also includes a duty cycle adjustment module (DutyCycle Adjust, DCA) 50. The duty cycle adjustment module 50 is respectively connected to the calibration module 30 and the current mode logic module 10, and is also configured to receive a first calibration signal and convert the first calibration signal into a duty cycle adjustment signal. The first current mode logic submodule 11 and the second current mode logic submodule 12 are also configured to close or open the corresponding first calibration switch based on the change of the logic value of each bit encoded in the duty cycle adjustment signal.
[0075] In the embodiments of the present disclosure, reference Figure 8 Since the calibration module 30 calibrates the current mode logic module 10, the comparator 20 and the data receiver 41, there is a situation where the number of encoding bits of the first calibration signal does not correspond to the number of first calibration switches in the current mode logic module 10. In the case where the number of encoding bits of the first calibration signal does not correspond to the number of first calibration switches in the current mode logic module 10, the duty cycle adjustment module 50 can receive the first calibration signal, decode the first calibration signal, and generate a first duty cycle adjustment signal and a second duty cycle adjustment signal. The first duty cycle adjustment signal is used to control the first calibration switch in the first current mode logic submodule 11, and the second duty cycle adjustment signal is used to control the second calibration switch in the first current mode logic submodule 11.
[0076] For example, if the first calibration signal is "001", the first duty cycle adjustment signal is "1000", each bit corresponds to the first calibration switches S11 to S14 in the first current mode logic submodule 11, and the second duty cycle adjustment signal is "0001", each bit corresponds to the first calibration switches S11 to S14 in the first current mode logic submodule 12. If the first calibration signal is "110", the first duty cycle adjustment signal is "0010", each bit corresponds to the first calibration switches S11 to S14 in the first current mode logic submodule 11, and the second duty cycle adjustment signal is "0100", each bit corresponds to the first calibration switches S11 to S14 in the second current mode logic submodule 12.
[0077] Fig.11 is a flow chart of an optional calibration method provided in the embodiment of the present disclosure, which is combined with Fig.11 The steps shown are used to illustrate that the calibration method can be used to operate the calibration circuit 100 described above.
[0078] S101, receiving a test voltage, and generating a first output voltage and a second output voltage based on the test voltage; wherein the first output voltage and the second output voltage are both used to characterize a duty cycle adjustment amplitude of a current mode logic module.
[0079] In the embodiments of the present disclosure, reference Figure 1 , the first output voltage V1 and the second output voltage V2 can represent the adjustment amplitude of the duty cycle of the current mode logic module 10. In this way, the embodiment of the present disclosure can calibrate the duty cycle adjustment of the current mode logic module 10 by calibrating the first output voltage V1 and the second output voltage V2.
[0080] S102 : Compare the first output voltage and the second output voltage to generate a first comparison result.
[0081] S103 , generating a first calibration signal based on the first comparison result, and adjusting a duty cycle adjustment amplitude of the current mode logic module based on the first calibration signal.
[0082] In the embodiments of the present disclosure, reference Figure 1 The calibration module 30 can directly calibrate the current mode logic module 10 according to the first comparison result of the first output voltage V1 and the second output voltage V2 of the current mode logic module 10. In this way, the calibration circuit 100 does not need to convert the differential clock signal, which can reduce the calibration time and improve the calibration efficiency.
[0083] In some embodiments of the present disclosure, in implementing Fig.11 Before S101 shown, the calibration method can also be implemented through S201 and S202, which will be further described in conjunction with each step.
[0084] S201 , short-circuiting the non-inverting input terminal and the inverting input terminal of the comparator to generate a second comparison result.
[0085] In the embodiments of the present disclosure, reference Figure 8 , the calibration circuit 100 can be Fig.12 The steps S301 to S311 are shown to implement S201.
[0086] S301, calibration starts.
[0087] S302. Close S1, S2 and S3.
[0088] S303, calibrate the comparator.
[0089] In the embodiments of the present disclosure, reference Figure 8 , the calibration circuit 100 closes the first control switch S1, and the non-inverting input terminal and the inverting input terminal of the comparator 20 are short-circuited. At this time, the non-inverting input terminal and the inverting input terminal of the comparator 20 receive the same voltage. In this way, the calibration module 20 can calibrate the comparator 20.
[0090] S304, disconnect S1.
[0091] S305, calibrate the duty cycle adjustment amplitude.
[0092] In the embodiments of the present disclosure, reference Figure 8 , the calibration circuit 100 turns off the first control switch S1, and the current mode logic module 10 outputs the first output voltage V1 and the second output voltage V2. The calibration module 30 can use the calibrated comparator 20 to compare the first output voltage V1 and the second output voltage V2, thereby preventing the error of the comparator 20 from affecting the calibration result of the current mode logic module 10.
[0093] In the embodiments of the present disclosure, reference Figure 8 The calibration module 30 can directly generate a first calibration signal according to the voltage relationship between the first output voltage V1 and the second output voltage V2 of the current mode logic module 10, and use the first calibration signal to calibrate the duty cycle adjustment amplitude of the current mode logic module 10.
[0094] S305, calibration is completed, and the result is latched or burned.
[0095] In the embodiments of the present disclosure, reference Figure 8 After the calibration is completed, the calibration module 30 can register the first calibration signal, so that when the subsequent calibration circuit 100 adjusts the duty cycle of the differential clock signals Clk_c and Clk_t, the current mode logic module 10 can call the registered first calibration signal that has completed the adjustment to adjust the duty cycle of the differential clock signals Clk_c and Clk_t.
[0096] S202 : Generate a second calibration signal based on the second comparison result, and calibrate the comparator based on the second calibration signal.
[0097] In the embodiments of the present disclosure, reference Figure 8 , the calibration circuit 100 can be Fig.13 The steps S401 to S412 shown are to implement S202.
[0098] S401: Calibration starts.
[0099] S402, short-circuit the positive and negative input terminals of the comparator.
[0100] S403, the comparator outputs k consecutive results and sends them to the voting device, and the voting device outputs the judgment result.
[0101] In the embodiments of the present disclosure, reference Fig. 9 After the calibration starts, the positive and negative input terminals of the comparator 20 are short-circuited, that is, the first control switch S1 is closed, and the non-inverting input terminal and the inverting input terminal of the comparator 20 are short-circuited. The voter 32 can sample the second comparison result of the comparator 20 and output the initial decision result Rn of the second comparison result.
[0102] S404, the voting device outputs the result Rn and determines the highest bit of the OC code.
[0103] S405, OC code Set (i < n) high and send it to the comparator.
[0104] In the embodiments of the present disclosure, referring to Fig. 9 , the calibration signal calculator 33 can receive the initial judgment result Rn output by the voter 32 to determine the logical value of the highest bit encoding of the second calibration signal. For example, if the judgment result Rn is high level, the calibration module 30 then OC code Set (i < n) high, that is: the calibration module 30 adjusts the logical value encoded by the most significant bit of the second calibration signal to 1, and the second calibration signal is disconnected Figure 7 The second calibration switch S21 in Figure 7 The second calibration switch S23 in Figure 7 to compensate for the misalignment voltage of the in-phase terminal InN in
[0105] S406. Send the output results of the comparator to the voter continuously for k times, and the voter outputs the judgment result.
[0106] S407. Whether the output result Ri of the voter is inverted with respect to Rn.
[0107] S408. Retain the current Oc Code .
[0108] S409, the current Oc Code Set low.
[0109] In the embodiments of the present disclosure, reference Fig. 9 , the calibration signal calculator 33 can start from the highest bit code of the second calibration signal, and determine the logic value of each bit code of the second calibration signal in turn according to whether the level of the subsequent judgment result Ri jumps. For example, if the second comparison result Ri output by the comparator 20 is a high level (no jump occurs), the calibration module 30 adjusts the logic value of the second bit code of the second calibration signal to 1, and continues to compensate Figure 7 On the contrary, if the first comparison result output by the comparator 20 jumps from a high level to a low level (jump occurs), the calibration module 30 adjusts the logic value of the second bit code of the first calibration signal to 0 to compensate Figure 7 The misalignment voltage at the inverting terminal InP.
[0110] S410: Determine whether i is 0.
[0111] S411, i=i-1.
[0112] S412, calibration is completed, and the result is latched or burned.
[0113] In the embodiments of the present disclosure, reference Fig. 9 , the calibration signal calculator 33 can start from the highest bit code of the second calibration signal, and determine the logic value of each bit code of the second calibration signal in turn according to whether the level of the subsequent judgment result Ri changes. If i of the judgment result Ri is 0, it means that the logic value of each bit code of the second calibration signal has been adjusted. At this time, the register 34 can store the code corresponding to the second calibration signal to calibrate the comparator 20.
[0114] Fig.14 is a schematic diagram of the structure of an optional memory 200 provided in an embodiment of the present disclosure, with reference to Figure 2 , the memory 200 includes the calibration circuit 100 in any of the above embodiments.
[0115] In the embodiments of the present disclosure, reference Fig.14 The memory 200 may be a static random access memory (SRAM), a flash memory (Flash Memory) or a dynamic random access memory (DRAM).
[0116] The serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments. The methods disclosed in the several method embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments. The features disclosed in the several product embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments. The features disclosed in the several method or device embodiments provided by the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0117] The above description is only a specific implementation mode of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. < / n> < / n> < / n> < / n>
Claims
1. A clock signal calibration circuit, It is characterized in that include: Current mode logic module, comparator and calibration module; among them, The current mode logic module is configured to receive a test voltage and generate a first output voltage and a second output voltage based on the test voltage; wherein the first output voltage and the second output voltage are both used to characterize a duty cycle adjustment amplitude of the current mode logic module; The comparator is connected to the current mode logic module and is configured to receive a first output voltage and a second output voltage, and compare the first output voltage and the second output voltage to generate a first comparison result; The calibration module is connected to the current mode logic module and the comparator respectively, and is configured to receive the first comparison result, generate a first calibration signal based on the first comparison result, and adjust the duty cycle adjustment amplitude of the current mode logic module based on the first calibration signal.
2. The calibration circuit according to claim 1, It is characterized in that The comparator is further configured to generate a second comparison result when the non-inverting input terminal and the inverting input terminal of the comparator are short-circuited; The calibration module is further configured to receive the second comparison result, generate a second calibration signal based on the second comparison result, and calibrate the comparator based on the second calibration signal.
3. The calibration circuit according to claim 1 or 2, It is characterized in that The calibration module is arranged in the data interface; the calibration module is further configured to calibrate the data receiver in the data interface.
4. The calibration circuit according to claim 1, It is characterized in that The calibration module is also configured to, in response to a jump in the first comparison result, start adjusting from the highest bit of the first calibration signal, gradually reduce the duty cycle adjustment amplitude corresponding to the first calibration signal until the last bit of the first calibration signal, and register the first calibration signal after the adjustment.
5. The calibration circuit according to claim 4, It is characterized in that The clock signal includes: a first differential clock signal and a second differential clock signal; wherein, The current mode logic module is also configured to receive the first differential clock signal, the second differential clock signal and the adjusted first calibration signal, and adjust the duty cycle of the first differential clock signal and the second differential clock signal based on the adjusted first calibration signal.
6. The calibration circuit according to claim 1 or 4, It is characterized in that The current mode logic module includes: a first current mode logic submodule and a second current mode logic submodule; wherein, The first current mode logic submodule and the second current mode logic submodule each include a plurality of first calibration switches and a plurality of transistors of different sizes; wherein, Each of the first calibration switches is connected to the corresponding transistor; the duty cycle adjustment amplitudes corresponding to the transistors of different sizes are different; The first current mode logic submodule and the second current mode logic submodule are both configured to receive a first calibration signal, and close or open the corresponding first calibration switch based on a change in a logic value of each bit encoded in the first calibration signal.
7. The calibration circuit according to claim 6, It is characterized in that The calibration circuit also includes: a duty cycle adjustment module; wherein, The duty cycle adjustment module is connected to the calibration module and the current mode logic module respectively, and is further configured to receive the first calibration signal and convert the first calibration signal into a duty cycle adjustment signal; The first current mode logic submodule and the second current mode logic submodule are further configured to close or open the corresponding first calibration switch based on a change in a logic value of each bit encoded in the duty cycle adjustment signal.
8. A method for calibrating a clock signal, It is characterized in that include: Receiving a test voltage, and generating a first output voltage and a second output voltage based on the test voltage; wherein the first output voltage and the second output voltage are both used to characterize a duty cycle adjustment amplitude of a current mode logic module; comparing the first output voltage and the second output voltage to generate a first comparison result; A first calibration signal is generated based on the first comparison result, and the duty cycle adjustment amplitude of the current mode logic module is adjusted based on the first calibration signal.
9. The calibration method according to claim 8, It is characterized in that Before comparing the first output voltage and the second output voltage to generate the first comparison result, the calibration method further includes: Short-circuit the non-inverting input terminal and the inverting input terminal of the comparator to generate a second comparison result; A second calibration signal is generated based on the second comparison result, and the comparator is calibrated based on the second calibration signal.
10. A memory, It is characterized in that The memory comprises the calibration circuit of any one of claims 1 to 7.
