Full-band clock duty cycle calibration circuit, calibration method and memory
Through the full-band clock duty cycle calibration circuit, adjustable capacitors and decoding circuits to adjust the capacitance value according to the memory frequency, the problem of excessive long clock duty cycle calibration time and quality degradation under frequency changes is solved, and fast and accurate calibration is achieved Effect.
Patent Information
- Application Number
- CN201811327624.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-11-08
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2038-11-08
AI Technical Summary
When the frequency changes, the calibration time is too long or the mass is degraded, making it difficult to quickly and accurately adjust the duty cycle of the clock signal at high and low frequencies.
A full-band clock duty cycle calibration circuit is designed, including a signal adjustment circuit, duty cycle detection unit and mode register. The capacitance value is adjusted through an adjustable capacitor and a decoding circuit, and the duty cycle is adjusted according to the clock frequency of the memory. Detection circuit to ensure calibration speed and quality.
Fast and accurate clock duty cycle calibration at high and low frequencies is achieved, ensuring clock signal quality, and reducing the complexity and cost of calibration circuits.
Smart Images

Figure CN111161784B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a full-band clock duty cycle calibration circuit and a memory, and also to a full-band clock duty cycle calibration method. Background Art
[0002] In dynamic random access memory, a duty cycle of 50% can maximize the utilization efficiency of the clock level, thereby ensuring the normal operation of the system and the best performance. However, in actual work, the duty cycle of the clock circuit often deviates from 50%. The clock duty cycle calibration circuit is a type of circuit designed to solve this problem.
[0003] The existing clock duty cycle calibration circuit uses a comparison of the charge and discharge time and power of the capacitor. Since the memory may work at a higher or lower operating frequency, the capacitor is fixed during design. When the clock frequency changes, a higher clock frequency will have a shorter charge and discharge time. If the discharge time is shortened, the entire duty cycle detection time will be longer due to the capacitor redundancy connected to the clock duty cycle detection circuit; a lower clock frequency will have a longer charge and discharge time. If the discharge time is longer, the clock quality will be reduced due to insufficient capacitors connected to the clock duty cycle detection circuit.
[0004] Ideally, regardless of the memory clock frequency, the memory needs to adjust the duty cycle of its internal clock signal as quickly as possible to ensure the accuracy of data read by the entire memory. Therefore, it is necessary to improve the full-band clock duty cycle calibration circuit to ensure that the clock signal duty cycle can be accurately adjusted as quickly as possible. Summary of the invention
[0005] The object of the present invention is to provide a full-band clock duty cycle calibration circuit and memory to solve the problems of long calibration time and reduced calibration quality under full-band rate.
[0006] Another object of the present invention is to provide a full-band clock duty cycle calibration method.
[0007] According to one aspect of the present invention, there is provided a full-band clock duty cycle calibration circuit, comprising:
[0008] A signal adjustment circuit, configured to receive and adjust a first clock signal of the memory to generate a second clock signal;
[0009] a duty cycle detection unit connected to the signal adjustment circuit, configured to detect the duty cycle of the second clock signal and feed back the detection result to the signal adjustment circuit, wherein the duty cycle detection unit comprises a duty cycle detection circuit having an adjustable capacitor;
[0010] A mode register including a setting code reflecting a clock frequency for full-band operation of the memory;
[0011] A decoding circuit is connected to the duty cycle detection circuit and the mode register setting circuit to adjust the capacitance value of the adjustable capacitor in the duty cycle detection circuit according to the setting code.
[0012] In an exemplary embodiment of the present invention, the mode register includes an MR6 mode register and an MR2 mode register.
[0013] In an exemplary embodiment of the present invention, the signal adjustment circuit includes a first delay chain, a second delay chain, a third delay chain and a clock generator, wherein the first delay chain is used to receive the first clock signal and delay it to generate a first adjustment clock signal, the second delay chain is used to receive the first adjustment clock signal and delay it to generate a second adjustment clock signal; the third delay chain is used to receive the second adjustment clock signal and delay it to generate a third adjustment clock signal, or act as a bypass; the clock generator is used to receive the first clock signal and the third adjustment clock signal to generate a second clock signal.
[0014] In an exemplary embodiment of the present invention, the duty cycle detection unit further includes a first counter, a second counter and a third counter, and the three counters and the three delay chains are connected in a one-to-one correspondence; the duty cycle detection circuit includes:
[0015] A clock signal receiving end, connected to the signal adjustment circuit, and configured to receive the second clock signal;
[0016] a main circuit, comprising the adjustable capacitor, for detecting the duty cycle of the second clock signal by charging and discharging the adjustable capacitor;
[0017] A detection signal receiving end, receiving a detection enable signal to control the charging and discharging of the main circuit capacitor element;
[0018] The latch circuit is connected to the three counters, and is used to receive addition and subtraction instructions formed by the number of times the clock signal in the main circuit is enabled, and output to the three counters to transfer the counting results to the corresponding delay chains.
[0019] In an exemplary embodiment of the present invention, the adjustable capacitor includes a plurality of adjustable capacitance circuits connected in parallel, each of the adjustable capacitance circuits includes a capacitance element and a switch element connected in series with the capacitance element.
[0020] In an exemplary embodiment of the present invention, the capacitor element is a MOS transistor, and a gate of each of the MOS transistors is connected to the switch element.
[0021] In an exemplary embodiment of the present invention, the switch element includes a PMOS tube and an NMOS tube connected in parallel, the control signal received by the PMOS tube is complementary to the control signal received by the NMOS tube, and the on and off signals of the switch element come from the decoding circuit.
[0022] In an exemplary embodiment of the present invention, the decoding circuit includes: a first decoding circuit, which is respectively connected to the setting circuit of the MR6 mode register, the setting circuit of the MR2 mode register and the adjustable capacitor of the duty cycle detection circuit, and is used to convert the setting code into an output signal to adjust the conduction and cutoff of each switching element in the adjustable capacitor.
[0023] In an exemplary embodiment of the present invention, the decoding circuit also includes: a second decoding circuit, which is respectively connected to the setting circuit of the MR6 mode register, the setting circuit of the MR2 mode register, the first delay chain, the second delay chain, and the third delay chain, and is used to convert the setting code into an output signal to adjust the initial setting values of the three delay chains.
[0024] In an exemplary embodiment of the present invention, the first decoding circuit or the second decoding circuit both use the multi-input multi-output selector in the setting circuit of the memory MR6 mode register and the MR2 mode register.
[0025] According to another aspect of the present invention, a memory is provided, comprising the full-band clock duty cycle calibration circuit as described in any one of the above items.
[0026] According to another aspect of the present invention, a full-band clock duty cycle calibration method is provided, comprising:
[0027] Using a signal adjustment circuit to receive a first clock signal of the memory and adjust it to generate a second clock signal;
[0028] The setting code of the clock frequency reflecting the full-band low-frequency or high-frequency operation of the memory in the setting circuit of the MR6 mode register or the MR2 mode register of the memory is converted into an output signal by using a decoding circuit, and the output signal adjusts the capacitance value of the duty cycle detection circuit;
[0029] Detecting the duty cycle of the second clock signal using the duty cycle detection circuit after adjusting the capacitance;
[0030] The signal adjustment circuit adjusts the first clock signal according to the duty cycle detection result.
[0031] In an exemplary embodiment of the present invention, the signal adjustment circuit includes a first delay chain, a second delay chain, a third delay chain and a clock generator, wherein the first delay chain is used to delay the first clock signal to generate a first adjustment clock signal; the second delay chain is used to receive the first adjustment clock signal and delay it to generate a second adjustment clock signal; the third delay chain is used to receive the second adjustment clock signal and delay it to generate a third adjustment clock signal, or serve as a bypass; the clock generator receives the first clock signal and the third adjustment clock signal to generate the second clock signal.
[0032] In an exemplary embodiment of the present invention, the capacitance value of the duty cycle detection circuit is adjusted by controlling the number of capacitance elements connected in parallel to the duty cycle detection circuit.
[0033] In an exemplary embodiment of the present invention, the number of capacitor elements of the duty cycle detection circuit is controlled by switch elements connected in series with the capacitor elements, and the on and off signals of the switch elements come from the decoding circuit.
[0034] In an exemplary embodiment of the present invention, the decoding circuit includes a first decoding circuit, and the setting code is converted into an output signal by the first decoding circuit to control the on and off of the switch element.
[0035] In an exemplary embodiment of the present invention, the decoding circuit also includes a second decoding circuit; the calibration method also includes: converting the setting code into an output signal through the second decoding circuit to adjust the initial setting value of the three delay chains to half of the current cycle value of the clock.
[0036] In an exemplary embodiment of the present invention, the first decoding circuit or the second decoding circuit both use the multiple-input multiple-output selector circuit in the memory MR6 mode register and MR2 mode register setting circuit.
[0037] The full-band clock duty cycle calibration circuit of the present invention determines the capacitance required by the duty cycle detection circuit according to the setting code of the full-band clock frequency setting circuit reflected by the mode register, and improves the calibration speed by adjusting the capacitance value of the duty cycle detection circuit. On the one hand, the charge amount of the duty cycle detection circuit can be adjusted as needed, so that it can reach the charge amount required for identifying the clock duty cycle in time, and the clock duty cycle can be accurately calibrated to ensure the clock quality; on the other hand, the capacitance in the duty cycle detection circuit is directly adjusted through the setting code of the clock frequency reflected by the memory mode register, and the current clock frequency can be calibrated, and the calibration accuracy is higher and the speed is faster; and the memory mode circuit is used, so the structure is simple and the cost is low.
[0038] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present invention, and together with the specification are used to explain the principles of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0040] Figure 1 This is a circuit diagram for calibrating the duty cycle of a conventional clock;
[0041] Figure 2 Encode the settings for CWL in DDR4;
[0042] Figure 3 Encode the setting of tCCD_L in DDR4;
[0043] Figure 4 The full-band clock duty cycle calibration circuit diagram of the present invention;
[0044] Figure 5 is a duty cycle detection circuit diagram of the present invention;
[0045] Figure 6 is a timing diagram of a duty cycle detection circuit of the present invention;
[0046] Figure 7 for Figure 5 The structural diagram of the adjustable capacitor in the middle part A;
[0047] Figure 8 This is a first flow chart of the full-band clock duty cycle calibration method of the present invention;
[0048] Fig. 9 This is a second flow chart of the full-band clock duty cycle calibration method of the present invention.
[0049] In the figure, 1-1, the first delay chain; 1-2, the second delay chain; 1-3, the third delay chain; 2, the clock generator; 3, the duty cycle detection circuit; 4-1, the first counter; 4-2, the second counter; 4-3, the third counter; 5, the decoding circuit; 6, the MR2 mode register; 7, the MR6 mode register. DETAILED DESCRIPTION
[0050] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that the present invention will be comprehensive and complete and fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar structures, and thus their detailed description will be omitted.
[0051] In the related art, a traditional clock duty cycle calibration circuit includes: a signal adjustment circuit and a duty cycle detection unit. The signal adjustment circuit is used to receive a first clock signal of a memory and adjust it to a second clock signal so that the duty cycle is maintained within an ideal range; the duty cycle detection unit is used to detect the duty cycle of the second clock signal and transmit the detection result to the signal adjustment circuit to assist it in adjusting the first clock signal to ensure that the duty cycle achieves an ideal adjustment result.
[0052] like Figure 1 As shown, the signal adjustment circuit includes a delay chain 1 and a clock generator 2. The delay chain 1 is used to delay the first clock signal of the memory to generate a delayed adjustment clock signal; the clock generator 2 is used to receive the first clock signal and the adjustment clock signal and generate a second clock signal. The duty cycle detection unit includes a duty cycle detection circuit 3 and a counter 4. The duty cycle detection circuit 3 is connected to the signal output end of the clock generator 2, receives the second clock signal and detects its duty cycle, and then uses the counter 4 to count, and transmits the counting result to the delay chain 1, so that the delay chain 1 can delay the first clock signal.
[0053] When the operating frequency of the DDR memory is increased to a high frequency range (the high frequency referred to in the present invention refers to a transmission rate greater than 2400Mb / s), the amount of charge stored in the delay chain of the low frequency circuit and the capacitor in the duty cycle detection circuit needs to be adjusted accordingly. For example, in the high frequency range, when the clock transmission rate changes from 1600Mb / s to 3200Mb / s, in order to achieve a final duty cycle of 50%±1%, when the delay time of the delay chain is 6.25p, the clock cycle changes from 1.25ns to 625ps. The shortening of the cycle means that the number of delay chains should be reduced from the original 100 to about 50. At this time, the delay chains connected to the circuit are obviously much less than before, so that the entire calibration time is inaccurate due to the change in the number of delay chains.
[0054] When the operating frequency of the DDR memory is reduced to a low frequency range (the low frequency referred to in the present invention refers to a transmission rate lower than or equal to 2400Mb / s), the amount of charge stored in the capacitors in the delay chain of the high frequency circuit and the duty cycle detection circuit needs to be adjusted accordingly. For example, when the clock transmission rate changes from 3200Mb / s to lower than 1333Mb / s, when the delay time of the delay chain is 6.25ps, the clock cycle changes from 625ps to greater than or equal to 1.5ns. The lengthening of the cycle means that the number of delay chains must be increased from the original 50 to at least 120. At this time, the delay chains connected to the circuit are obviously much more than before, so that the entire calibration time becomes longer due to the increase in the number of delay chains.
[0055] Therefore, a full-band clock duty cycle calibration circuit is provided in the embodiment of the present invention, which can quickly and accurately calibrate the clock duty cycle of the memory working in the high frequency and low frequency range, and is suitable for the duty cycle calibration of the DDR memory when the clock frequency becomes higher or lower. The DDR memory can be DDR4 or DDR3 or DDR2.
[0056] The full-band clock duty cycle calibration circuit of this embodiment includes: a signal adjustment circuit, a duty cycle detection unit, a setting circuit in a mode register, and a decoding circuit. Among them, the signal adjustment circuit is used to receive and adjust the first clock signal of the memory to generate a second clock signal; the duty cycle detection unit is connected to the signal adjustment circuit, and is used to detect the duty cycle of the second clock signal and feed back the detection result to the signal adjustment circuit, and the duty cycle detection unit includes a duty cycle detection circuit with an adjustable capacitor; the mode register setting circuit includes a setting code that reflects the full-band operating frequency of the memory; the decoding circuit connects the duty cycle detection circuit and the setting circuit in the mode register to adjust the capacitance value of the adjustable capacitor in the duty cycle detection circuit according to the setting code.
[0057] The principle of the calibration circuit of the present invention is: when the clock works at a high frequency, the cycle becomes shorter, and the discharge time in the unit cycle becomes shorter. It can be seen from Q=I×T=C×U that the amount of charge that can be stored in the capacitor in the duty cycle detection circuit needs to be reduced accordingly. Once the amount of charge is redundant, the detection time will be longer, which will in turn lead to an extension of the calibration time. Therefore, if the clock frequency is known in advance, the cycle can be known, and the amount of charge required to identify the clock duty cycle in the detection circuit can be determined, thereby determining the size of the capacitor value in the access circuit, and the amount of stored charge in the circuit can be reduced in time, thereby ensuring that the clock calibration circuit is calibrated in time to ensure the clock quality. Similarly, when the clock works at a low frequency, the cycle becomes longer, and the discharge time in the unit cycle becomes longer. It can be seen from Q=I×T=C×U that the amount of charge that can be stored in the capacitor in the duty cycle detection circuit needs to be increased accordingly, and the calibration time will be extended. Therefore, if the clock frequency is known in advance, the period can be known, and the minimum charge required to identify the clock duty cycle in the detection circuit can be determined, thereby determining the value of the capacitor in the access circuit, and increasing the amount of stored charge in the circuit in time, thereby ensuring that the clock calibration circuit is calibrated in time to ensure the clock quality. In DDR memory, the data in the setting circuit of the mode register can directly reflect the frequency range of the memory operation, which makes it possible to obtain frequency information in time at the beginning of the frequency conversion, so as to adjust the capacitance in the duty cycle detection circuit in time to change the total capacitance of the detection circuit and ensure that the duty cycle of the detection result is adjusted to 50%±1% as soon as possible.
[0058] The full-band clock duty cycle calibration circuit according to the embodiment of the present invention is described in detail below:
[0059] In this exemplary embodiment, the mode register includes an MR6 mode register that reflects the low-frequency operating clock frequency and an MR2 mode register that reflects the high-frequency operating clock frequency. The data contained in the setting circuits of the MR6 mode register and the MR2 mode register can directly reflect the frequency range of the memory operation. For example, in the DDR4 JEDEC standard (DDR4 JEDEC SPEC), the MR2 mode register has a number of cycles that are set to meet the standard requirements according to the needs of CWL (CAS Write Latency) at different clock frequencies, such as Figure 2 As shown in the figure. The MR6 mode register is set to the number of cycles that meet the standard requirements according to the needs of tCCD_L at different clock frequencies, such as Figure 3 As shown. Obviously, combining the information of tCCD_L and CWL for combined encoding can cover all effective operating frequencies of DRAM. In this way, the selection of the capacitor value used to store charge in the duty cycle detection circuit can reduce its iteration time, thereby achieving fast and accurate clock duty cycle adjustment.
[0060] Therefore, the charge of the duty cycle detection circuit can be adjusted in time according to the change of the operating frequency, so that it can be increased or decreased as soon as possible to the charge required to identify the clock duty cycle, so as to accurately calibrate the duty cycle when working in the full band and ensure the clock quality. At the same time, the setting code of the response clock frequency provided by the memory mode register can accurately reflect the current frequency, and the capacitance in the duty cycle detection circuit can be adjusted directly according to it, so as to obtain more accurate calibration results, and there is no need to add additional circuit modules, and the accuracy and speed of calibration are improved.
[0061] In this exemplary embodiment, Figure 4 As shown, the signal adjustment circuit may include a first delay chain 1-1, a second delay chain 1-2, a third delay chain 1-3 and a clock generator 2. The first delay chain 1-1 receives the first clock signal and delays it to obtain a first adjustment clock signal. The second delay chain 1-2 is used to receive the first adjustment clock signal and delay it to generate a second adjustment clock signal. The third delay chain 1-3 is used to receive the second adjustment clock signal and delay it to generate a third adjustment clock signal or to serve as a bypass. The signal input end of the clock generator 2 receives the first clock signal and the third adjustment clock signal to generate a second clock signal. The three delay chains all receive the detection results from the duty cycle detection circuit, and gradually adjust the clock signal with different amplitudes and precisions according to the detection results. As shown in the figure, the detection results of the detection circuit are transmitted to three delay chains through three counters respectively. Specifically, the first counter 4-1 transmits the duty cycle detection result to the first delay chain 1-1, the second counter 4-2 transmits the duty cycle detection result to the second delay chain 1-2, and the third counter 4-3 transmits the duty cycle detection result to the third delay chain 1-3. The delay length of the first delay chain 1-1 of the present invention is 200-3200ps, the delay length of the second delay chain 1-2 is 0-200ps, and the delay length of the third delay chain 1-3 is 0-16ps. Therefore, the clock signal can be delayed by a large amplitude first, and then by a small amplitude, so as to achieve the purpose of accurately adjusting the clock signal. In addition, the three delay chains can be used to adjust clock signals of different frequencies. When the clock signal operating frequency is lower than or equal to 1600Mb / s, only the first delay chain and the second delay chain can be used, and the third delay chain can be used as a bypass function; when the clock signal operating frequency is higher than 1600Mb / s, three delay chains can be used together. The corresponding relationship between the delay length and accuracy of the delay chain, as well as the delay chains that are enabled at different operating frequencies, refer to Tables 1 and 2.
[0062] Table 1 Delay length and accuracy of delay chain
[0063] Delay chain number Delay chain delay length Delay Chain 1 200~3200 187.5p 2 0~200 12.5 3 0~16 1
[0064] Table 2 Delay chains corresponding to different operating frequencies
[0065]
[0066] The clock duty cycle detection circuit 3 of the present invention can have various forms. For example, in this exemplary embodiment, the duty cycle detection circuit diagram and timing diagram are as follows: Figure 5 , 6 As shown, the circuit as a whole is a mirror-image circuit. In this exemplary embodiment, as Figure 4 As shown, the duty cycle detection circuit 3 includes a clock signal receiving end, a main circuit, a detection signal receiving end and a latch circuit, which is a mirror setting circuit. Among them, the clock signal receiving end is connected to the signal output end of the clock generator, and is used to receive the complementary signals MCLK and / MCLK to be detected, which are converted from the second clock signal generated by the clock generator. The main circuit is used to detect the duty cycle of the second clock signal by charging and discharging the capacitor. The capacitor of the main circuit is an adjustable capacitor, and the capacitance value can be adjusted according to the setting code of the full-band operating frequency of the reaction memory in the setting circuit. The detection signal receiving end receives the detection enable signal EN to control the charging and discharging of the main circuit capacitor element. The latch circuit is connected to the counter, receives the addition and subtraction instructions INC and DEC formed by the number of enable times of the MCLK and / MCLK signals in the main circuit, and outputs UP and DN signals to the counter. The duty cycle calibration circuit also includes a counter, and the UP and DN signals output by the latch circuit counter are sent to the counter, and the counter counts it and sends the counting result to the delay chain, so that the delay chain can determine the number of delay units connected to the circuit.
[0067] Each signal of the above detection circuit can be transmitted through the MOS tube. When the working level changes, the corresponding signal can connect or disconnect the circuit. Figure 4 As shown, the clock signal receiving end includes an NMOS tube, which is used to conduct the clock signals MCLK and / MCLK to the main circuit when the level is high, and the detection signal receiving end includes a PMOS tube, which is used to conduct the detection enable signal EN to the main circuit when the level is high.
[0068] In this exemplary embodiment, the adjustable capacitor may include a plurality of adjustable capacitance circuits connected in parallel, each of which includes a capacitance element and a switch element connected in series with the capacitance element. The number of capacitance elements connected to the detection circuit is controlled by controlling the on and off of the switch element, thereby adjusting the capacitance value of the detection circuit.
[0069] The adjustable capacitor can include an unadjustable capacitance circuit and a plurality of the above-mentioned adjustable capacitance circuits at the same time, and reduce the circuit complexity and adjustment cost under the premise of meeting the adjustment demand. It can also only include a plurality of the above-mentioned adjustable capacitance circuits, and the adjustment range is larger. By adjusting the capacitance value through the implementation structure, a plurality of capacitance elements can be directly designed at the beginning of the test circuit design, and the number of the circuits incorporated can be adjusted according to the change of the operating frequency, which can realize the adjustment of the capacitance value and meet the adjustment demand of a larger range or more accurate. Even if the capacitance element fails, other capacitance elements can be used as substitutes, without replacing the entire circuit structure, and reducing costs.
[0070] For example, in Figure 7 In the embodiment, the main circuit of the detection circuit includes a fixed capacitor M0 and three capacitive elements M1, M2 and M3 connected in parallel with the fixed capacitor ( Figure 4 A and B correspond to Figure 6 A and B in FIG. 1 ), M1, M2 and M3 are each connected in series with a switch element. The fixed capacitor M0 provides a basic capacitance value, and the three capacitor elements M1, M2 and M3 are used for adjustment. The four capacitors are combined to achieve the adjustment of the total capacitance value.
[0071] This embodiment adds three adjustable capacitor circuits, and in other example embodiments, more adjustable capacitor circuits can be added, or there can be only one or two adjustable capacitor circuits, each of which includes a capacitor element and a switch element connected in series. Multiple adjustable capacitor circuits can adjust the capacitance of the detection circuit in a larger range to adapt to a higher clock frequency. Each capacitor element is independently controlled by its own switch element, and different capacitance requirements can be achieved to calibrate the duty cycle more accurately. The capacitance values of each capacitor element can be the same or different, and those skilled in the art can make multiple combinations according to the requirements of adjustment accuracy and range, and the present invention does not specifically limit this. The present invention does not limit the size and number of capacitor elements.
[0072] In this exemplary embodiment, each capacitor element can be a MOS tube, which can be a PMOS tube or an NMOS tube. The gate of each MOS tube is connected to a switch element, and the access of the MOS tube is controlled by the switch element. The MOS tube connected to the detection circuit is charged or discharged at the gate voltage to realize duty cycle detection. In this exemplary embodiment, the MOS tube can be a PMOS tube or an NMOS tube, as long as it matches the circuit polarity. As shown in the figure, in the detection circuit of this embodiment, the fixed capacitor and the adjustable capacitor element are both PMOS tubes, and the source and drain of each capacitor are connected to the power supply terminal, and the gate is connected to the main circuit. Of course, the capacitor element can also be an ordinary capacitor.
[0073] In this exemplary embodiment, the switch element of the adjustable capacitor is formed by a PMOS tube and an NMOS tube connected in parallel, and the two control ends of the PMOS tube and the NMOS tube receive complementary switch control signals Ctl1 and / Ctl1 respectively, and one end of the parallel connection of the PMOS tube and the NMOS tube is connected to the adjustable capacitor element, and the other end is connected to the main circuit to realize the charging or discharging of the capacitor element when different level signals are turned on. The Ctl1 and / Ctl1 signals come from the clock frequency detection unit, and the clock frequency detection unit generates control signals Ctl1 and / Ctl1 through the setting code obtained by it to control the conduction and disconnection of the switch element, and change the capacitance value connected to the detection circuit.
[0074] In this exemplary embodiment, the decoding circuit 5 may include a first decoding circuit, which is respectively connected to the setting circuit of the MR6 mode register 7, the setting circuit of the MR2 mode register 6, and the adjustable capacitor of the duty cycle detection circuit 3, and the setting code is obtained by the first decoding circuit, and its binary code is converted into an output signal to adjust the conduction and cutoff of each switch element in the adjustable capacitor. The MR2 and MR6 mode registers may share a decoding circuit, or each may use a decoding circuit, which is not specifically limited in this application.
[0075] In this exemplary embodiment, the decoding circuit 5 may further include a second decoding circuit, which is respectively connected to the setting circuit of the MR6 mode register 7, the setting circuit of the MR2 mode register 6, and the first delay chain 1-1, the second delay chain 1-2, and the third delay chain 1-3, and is used to convert the setting code into an output signal to adjust the initial setting values of the three delay chains. Since the working cycle of the memory can be obtained from the setting code of CWL and tCCD_L, the initial setting values of the three delay chains can be adjusted, which can reduce the cumbersome adjustment process and further reduce the calibration time.
[0076] Considering the simplicity of the structure, the first decoding circuit and the second decoding circuit of this embodiment are both derived from the multi-input multi-output selector (3-8 decoder) in the existing MR6 mode register and MR2 mode register setting circuit of the memory, and the selector is used to simultaneously generate the switch element adjustment signal and the delay chain adjustment signal.
[0077] The embodiment of the present invention also provides a memory, comprising any one of the above full-band clock duty cycle calibration circuits. The clock of the memory can always ensure that the duty cycle is 50%±1%, so the accuracy of the read data is higher.
[0078] The embodiment of the present invention also provides a full-band clock duty cycle calibration method, referring to Figure 8 ,include:
[0079] Step S110, using a signal adjustment circuit to receive a first clock signal of the memory and adjust it to generate a second clock signal;
[0080] Step S210, using the decoding circuit 5 to convert the setting code reflecting the high frequency or low frequency working frequency of the memory in the setting circuit of the MR6 mode register 7 or the MR2 mode register 6 of the memory into an output signal, and adjusting the capacitance value of the duty cycle detection circuit through the output signal;
[0081] Step S310, detecting the duty cycle of the second clock signal using the duty cycle detection circuit after adjusting the capacitance;
[0082] Step S410: the signal adjustment circuit adjusts the first clock signal according to the duty cycle detection result.
[0083] Through the above steps, the setting code that can directly reflect the current full-band operating frequency of the memory is obtained from the data of the MR6 mode register 7 and the MR2 mode register setting circuit of the memory, so as to timely adjust the capacitance in the duty cycle detection circuit according to the setting code to increase or reduce the total capacitance of the detection circuit to ensure that the detection needs are met. When the operating frequency is at a high frequency, the decoding circuit adjusts the capacitance value according to the setting circuit of the MR2 mode register, and when the operating frequency is at a low frequency, the decoding circuit adjusts the capacitance value according to the setting circuit of the MR7 mode register, thereby ensuring that the duty cycle can be adjusted to 50%±1% as soon as possible regardless of low frequency or high frequency.
[0084] In step S110 of this exemplary embodiment, the signal adjustment circuit may include a first delay chain 1-1, a second delay chain 1-2, a third delay chain 1-3 and a clock generator 2. The first delay chain 1 is used to delay the first clock signal to generate a first adjustment clock signal; the second delay chain 1-2 is used to receive the first adjustment clock signal and delay it to generate a second adjustment clock signal; the third delay chain 1-3 is used to receive the second adjustment clock signal and delay it to generate a third adjustment clock signal, or serve as a bypass; the first clock signal and the third adjustment clock signal are received by the clock generator 2 to generate a second clock signal.
[0085] In step S210 of this exemplary embodiment, the capacitance value of the duty cycle detection circuit 3 is adjustable. The duty cycle detection circuit 3 may have various forms, and its capacitance value may be adjusted by controlling the number of capacitance elements connected in parallel to the duty cycle detection circuit.
[0086] Furthermore, whether the capacitor elements are connected in parallel to the duty cycle detection circuit is controlled by a switch element connected in series with each capacitor element, and the on and off signals of the switch element come from the clock frequency detection unit.
[0087] In step S210 of this exemplary embodiment, the clock frequency detection unit includes a first decoding circuit, and the setting code is converted into an output signal by the first decoding circuit to control the on and off of the switch element.
[0088] refer to Fig. 9 This exemplary embodiment also includes step S510, converting the setting code into an output signal through a second decoding circuit to adjust the initial setting values of the three delay chains to half of the current cycle value of the clock (T / 2). The second decoding circuit belongs to the clock frequency detection unit. Using T / 2 as the initial value of the three delay chains avoids the problem that the three delay chains need to be increased step by step, which makes the entire calibration cycle longer. The adjustment time can be shortened and the duty cycle can be adjusted to about 50% as soon as possible. Of course, the initial value can also be a value close to T / 2.
[0089] Therefore, in addition to improving the delay accuracy by reducing or increasing the capacitance value of the detection circuit, the delay speed is also improved, thereby improving the calibration quality of the calibration circuit from two aspects.
[0090] Furthermore, both the first decoding circuit and the second decoding circuit can use the multi-input multi-output selector circuit in the existing MR6 mode register and MR2 mode register setting circuit of the memory, and use the selector circuit to simultaneously generate the switch element adjustment signal and the delay chain initial value adjustment signal.
[0091] The circuit structures involved in this implementation are all referred to the relevant description in the calibration circuit, and will not be repeated here.
[0092] In the method of the present invention, the first clock signal is adjusted by the signal adjustment circuit, or the duty cycle is detected by the duty cycle detection circuit, which is continuously performed, so the entire duty cycle calibration is a continuous cycle process. Correspondingly, the operation of the decoding circuit is also continuously performed. Once the operating frequency of the memory is increased to a high frequency or decreased to a low frequency, the decoding circuit will adjust the capacitance value of the duty cycle detection circuit according to the set code, or adjust the initial value of the delay chain at the same time, thereby achieving a high quality of the entire cyclic calibration process, so that the memory clock quality is always kept stable.
[0093] It is understood by those skilled in the art that, since the calibration process is performed in a cycle and some of the steps therein may be performed in any order, the description of the above steps is only for the convenience of description and is not the only limitation on the implementation process of the method of the present invention. For example, in addition to the above step implementation, the signal adjustment circuit adjusts the clock signal and the decoding circuit adjusts the capacitance value at the same time, or in a different order. The first decoding circuit adjusts the capacitance value and the second decoding circuit adjusts the initial value of the delay chain at the same time, or in a different order.
[0094] Although relative terms such as "upper" and "lower" are used in this specification to describe the relative relationship of one component of the illustration to another component, these terms are used in this specification only for convenience, such as according to the orientation of the examples described in the drawings. It is understood that if the device of the illustration is turned upside down, the component described as "upper" will become the component "lower". When a structure is "on" other structures, it may mean that the structure is formed integrally on the other structure, or that the structure is "directly" disposed on the other structure, or that the structure is "indirectly" disposed on the other structure through another structure.
[0095] The terms "a", "an", "the", "said" and "at least one" are used to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusive meaning and mean that additional elements / components / etc. may be present in addition to the listed elements / components / etc.
[0096] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present invention are indicated by the appended claims.
Claims
1. A full-band clock duty cycle calibration circuit, characterized in that: include: A signal adjustment circuit, configured to receive and adjust a first clock signal of the memory to generate a second clock signal; a duty cycle detection unit connected to the signal adjustment circuit, configured to detect the duty cycle of the second clock signal and feed back the detection result to the signal adjustment circuit, wherein the duty cycle detection unit comprises a duty cycle detection circuit having an adjustable capacitor; A mode register including a setting code reflecting a clock frequency for full-band operation of the memory; a decoding circuit connected to the duty cycle detection circuit and the mode register to adjust the capacitance value of the adjustable capacitor in the duty cycle detection circuit according to the setting code; The duty cycle detection unit further includes a first counter, a second counter and a third counter, and the three counters are connected to the three delay chains in a one-to-one correspondence; the duty cycle detection circuit includes: A clock signal receiving end, connected to the signal adjustment circuit, and configured to receive the second clock signal; a main circuit, comprising the adjustable capacitor, for detecting the duty cycle of the second clock signal by charging and discharging the adjustable capacitor; A detection signal receiving end, receiving a detection enable signal to control the charging and discharging of the main circuit capacitor element; The latch circuit is connected to the three counters, and is used to receive addition and subtraction instructions formed by the number of times the clock signal in the main circuit is enabled, and output pulse signals to the three counters to pass the counting results to the corresponding delay chains.
2. The full-band clock duty cycle calibration circuit according to claim 1, characterized in that: The mode registers include an MR6 mode register and an MR2 mode register.
3. The full-band clock duty cycle calibration circuit according to claim 2, characterized in that: The signal adjustment circuit includes a first delay chain, a second delay chain, a third delay chain and a clock generator, wherein: The first delay chain is used to receive the first clock signal and delay it to generate a first adjusted clock signal; The second delay chain is used to receive the first adjustment clock signal and delay it to generate a second adjustment clock signal; The third delay chain is used to receive the second adjustment clock signal and delay it to generate a third adjustment clock signal, or to serve as a bypass; The clock generator is used for receiving the first clock signal and the third adjusted clock signal to generate a second clock signal.
4. The full-band clock duty cycle calibration circuit according to claim 1, characterized in that: The adjustable capacitor includes a plurality of adjustable capacitance circuits connected in parallel, and each of the adjustable capacitance circuits includes a capacitance element and a switch element connected in series with the capacitance element.
5. The full-band clock duty cycle calibration circuit according to claim 4, characterized in that: The capacitor element is a MOS tube, and the gate of each MOS tube is connected to the switch element.
6. The full-band clock duty cycle calibration circuit according to claim 5, characterized in that: The switch element comprises a PMOS tube and an NMOS tube connected in parallel, the control signal received by the PMOS tube is complementary to the control signal received by the NMOS tube, and the on and off signals of the switch element come from the decoding circuit.
7. The full-band clock duty cycle calibration circuit according to claim 3, characterized in that: The decoding circuit comprises: The first decoding circuit is respectively connected to the setting circuit of the MR6 mode register, the setting circuit of the MR2 mode register, and the adjustable capacitor of the duty cycle detection circuit, and is used to convert the setting code into an output signal to adjust the conduction and cutoff of each switching element in the adjustable capacitor.
8. The full-band clock duty cycle calibration circuit according to claim 7, characterized in that: The decoding circuit also includes: The second decoding circuit is respectively connected to the setting circuit of the MR6 mode register, the setting circuit of the MR2 mode register, the first delay chain, the second delay chain, and the third delay chain, and is used to convert the setting code into an output signal to adjust the initial setting values of the three delay chains.
9. The full-band clock duty cycle calibration circuit according to claim 7 or 8, characterized in that: The first decoding circuit or the second decoding circuit both adopts the multi-input multi-output selector circuit in the setting circuit of the MR6 mode register and the MR2 mode register.
10. A memory, characterized in that: The invention comprises the full-band clock duty cycle calibration circuit according to any one of claims 1 to 9.
11. A full-band clock duty cycle calibration method, characterized in that: include: Using a signal adjustment circuit to receive a first clock signal of the memory and adjust it to generate a second clock signal; Using a decoding circuit to convert the setting codes of the clock frequencies of the memory high-frequency and low-frequency operations in the setting circuits of the MR6 mode register and the MR2 mode register of the memory into output signals, and adjusting the capacitance value of the duty cycle detection circuit through the output signals; Detecting the duty cycle of the second clock signal using the duty cycle detection circuit after adjusting the capacitance; The signal adjustment circuit performs the adjustment on the first clock signal according to the duty cycle detection result; The signal adjustment circuit includes a first delay chain, a second delay chain, a third delay chain and a clock generator, wherein the first delay chain is used to delay the first clock signal to generate a first adjustment clock signal; the second delay chain is used to receive the first adjustment clock signal and delay it to generate a second adjustment clock signal; the third delay chain is used to receive the second adjustment clock signal and delay it to generate a third adjustment clock signal, or to serve as a bypass; receiving the first clock signal and the third adjusted clock signal by the clock generator to generate the second clock signal; The capacitance value of the duty cycle detection circuit is adjusted by controlling the number of capacitance elements connected in parallel to the duty cycle detection circuit; The number of the capacitor elements connected in parallel to the duty cycle detection circuit is controlled by a switch element connected in series with the capacitor element, and the on and off signals of the switch element come from the decoding circuit; The decoding circuit includes a first decoding circuit, through which the setting code is converted into an output signal to control the on and off of the switch element; The decoding circuit also includes a second decoding circuit; The calibration method further comprises: The setting code is converted into an output signal by the second decoding circuit to adjust the initial setting values of the three delay chains to be half of the current cycle value of the clock.
12. The clock duty cycle calibration method according to claim 11, characterized in that: The first decoding circuit or the second decoding circuit both adopt the multi-input multi-output selector circuit in the memory MR6 mode register and the MR2 mode register setting circuit.
