Low frequency clock duty cycle calibration circuit, calibration method and memory

By introducing an adjustable capacitor and a decoding circuit into the clock duty cycle calibration circuit, the clock duty cycle can be quickly adjusted, solving the problems of long calibration time and low quality at low clock frequencies, and achieving an efficient clock duty cycle. calibration.

CN111161773BActive Publication Date: 2024-10-01CHANGXIN MEMORY TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811326930.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-11-08
Publication Date
2024-10-01
Estimated Expiration
2038-11-08

AI Technical Summary

Technical Problem

The existing clock duty cycle calibration circuit takes too long to calibrate at low clock frequencies, resulting in a decline in clock quality and low calibration quality.

Method used

A low-frequency clock duty cycle calibration circuit is designed, including a signal adjustment circuit, a duty cycle detection unit and a mode register. The capacitance value and delay chain are adjusted through an adjustable capacitor and a decoding circuit to quickly and accurately adjust the clock duty cycle. .

Benefits of technology

It achieves fast and accurate calibration of the clock duty cycle at low clock frequencies, ensures clock quality, simplifies the circuit structure, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111161773B_ABST
    Figure CN111161773B_ABST
Patent Text Reader

Abstract

The present invention provides a low-frequency clock duty cycle calibration circuit, calibration method and memory. A decoding circuit is used to convert the setting code reflecting the low-frequency working frequency of the memory in the mode register setting circuit of the memory into an output signal, and the capacitance value of the duty cycle detection circuit is adjusted by the output signal to meet the detection requirements, thereby improving the calibration quality of the clock duty cycle. The present invention can calibrate the clock duty cycle in time according to the current clock frequency when working at a low frequency, and the calibration is accurate and fast, ensuring the quality of the memory clock; and the memory mode comes with a circuit, which has a simple structure and low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of integrated circuits, and in particular to a low-frequency clock duty cycle calibration circuit and a memory, and also to a low-frequency 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 lower operating frequency, the capacitor is fixed during design. When the clock frequency changes, the lower clock frequency will have a longer charge and discharge time. The longer the charge and discharge time, the less capacitor connected to the duty cycle detection circuit will cause the clock quality to deteriorate. In addition, the delay chain at low frequency needs to be connected to a longer stage to match the longer period, so that the entire calibration time increases due to the increase in clock frequency.

[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 low-frequency 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 low-frequency clock duty cycle calibration circuit and a memory to solve the problems of long calibration time and reduced calibration quality at low frequencies.

[0006] Another object of the present invention is to provide a method for calibrating the duty cycle of a low-frequency clock.

[0007] According to one aspect of the present invention, there is provided a low-frequency 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 of the memory operating at a low frequency;

[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 is an MR6 mode register.

[0013] In an exemplary embodiment of the present invention, the signal adjustment circuit includes a delay chain and a clock generator, wherein the delay chain is used to receive the first clock signal and delay it to generate an adjustment clock signal, and the clock generator is used to receive the first clock signal and the 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 counter, and the counter is connected to the delay chain; 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 receives a detection enable signal to control the charging and discharging of the main circuit capacitor element;

[0018] The latch circuit is connected to the counter 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 counter to transfer the counting result to the delay chain.

[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, connected to the setting circuit of the MR6 mode register and the adjustable capacitor of the duty cycle detection circuit, for converting 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 further includes: a second decoding circuit connected to the setting circuit of the MR6 mode register and the delay chain, for converting the setting code into an output signal to adjust an initial setting value of the delay chain.

[0024] In an exemplary embodiment of the present invention, the first decoding circuit or the second decoding circuit both use a multiple-input multiple-output selector in a setting circuit of the memory MR6 mode register.

[0025] According to another aspect of the present invention, a memory is provided, comprising the low-frequency clock duty cycle calibration circuit as described in any one of the above items.

[0026] According to another aspect of the present invention, a low-frequency 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 decoding circuit is used to convert the setting code of the clock frequency reflecting the low-frequency operation of the memory in the setting circuit of the MR6 mode register of the memory into an output signal, 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 delay chain and a clock generator, and the first clock signal is delayed by the delay chain to generate an adjustment clock signal; the first clock signal and the adjustment clock signal are received by the clock generator 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 further includes a second decoding circuit; the calibration method further includes: converting the setting code into an output signal through the second decoding circuit to adjust the initial setting value of the delay chain 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 adopts the multiple-input multiple-output selector circuit in the memory mode register setting circuit.

[0037] The low-frequency 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 low-frequency 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 circuit provided by the memory mode 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 2Encode the setting of tCCD_L in DDR4;

[0042] Figure 3 The present invention is a low-frequency clock duty cycle calibration circuit diagram;

[0043] Figure 4 is a duty cycle detection circuit diagram of the present invention;

[0044] Figure 5 is a timing diagram of a duty cycle detection circuit of the present invention;

[0045] Figure 6 for Figure 4 The structural diagram of the adjustable capacitor in the middle part A;

[0046] Figure 7 A truth table of a decoding circuit of the low-frequency clock duty cycle calibration circuit of the present invention;

[0047] Figure 8 This is a first flow chart of the low-frequency clock duty cycle calibration method of the present invention;

[0048] Fig. 9 This is a second flow chart of the low-frequency clock duty cycle calibration method of the present invention.

[0049] In the figure, 1. delay chain; 2. clock generator; 3. duty cycle detection circuit; 4. counter; 5. decoding circuit; 6. 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 1As 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] Since the operating frequency of the DDR memory will change, it is common for the frequency to drop 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). When the clock frequency becomes lower, the amount of charge stored in the delay chain of the high-frequency circuit and the capacitor in 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 increase 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.

[0054] Therefore, a low-frequency 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 a memory operating in a low-frequency range, and is suitable for calibrating the duty cycle of a DDR memory when the clock frequency becomes low. The DDR memory can be DDR4, DDR3 or DDR2.

[0055] The low-frequency 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 low-frequency 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.

[0056] The principle of the calibration circuit of the present invention is: 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 known 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 cycle can be known, and the minimum amount of charge required for identifying the clock duty cycle in the detection circuit can be determined, thereby determining the size of the capacitance value in the access circuit, and the amount of stored charge in the circuit can be increased in time, thereby ensuring that the clock calibration circuit is calibrated in time to ensure the clock quality. In the 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 initial stage of frequency conversion, thereby adjusting the capacitor in the duty cycle detection circuit in time to change the total capacitance of the detection circuit, and ensuring that the duty cycle of the detection result is adjusted to 50%±1% as soon as possible.

[0057] The low-frequency clock duty cycle calibration circuit according to the embodiment of the present invention is described in detail below:

[0058] In this exemplary embodiment, the mode register is an MR6 mode register. The data contained in the setting circuit of the MR6 mode register can directly reflect the frequency range of the memory operation. For example, in the DDR4 JEDEC standard (DDR4 JEDEC SPEC), the MR6 mode register has a number of cycles that are set to meet the standard requirements according to the needs of tCCD_L at different clock frequencies, such as Figure 2 As shown, the capacitance value in the access detection circuit can be determined from the setting codes of different tCCD_L to accelerate the calibration quality of the clock duty cycle.

[0059] 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 reach the charge required for identifying the clock duty cycle as soon as possible, meet the accurate calibration of the duty cycle when working at low frequency, 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. By directly adjusting the capacitor in the duty cycle detection circuit according to it, a more accurate calibration result can be obtained, and there is no need to add additional circuit modules, and the accuracy and speed of calibration are improved.

[0060] In this exemplary embodiment, Figure 3 As shown, the signal adjustment circuit may include a delay chain 1 and a clock generator 2. The delay chain 1 receives a first clock signal and delays it to obtain an adjusted clock signal. The signal input end of the clock generator 2 receives the first clock signal and the adjusted clock signal to generate a second clock signal.

[0061] 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 4 , 5 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 signal MCLK and / MCLK to be detected, which is 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 low-frequency working 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.

[0062] 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.

[0063] 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.

[0064] 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.

[0065] For example, in Figure 6 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.

[0066] This embodiment adds three adjustable capacitor circuits, and in other example embodiments, more adjustable capacitor circuits can be added, or only one or two adjustable capacitor circuits can be added, and each adjustable capacitor circuit includes a capacitor element and a switch element connected in series therewith. Multiple adjustable capacitor circuits can adjust the capacitance of the detection circuit in a larger range to adapt to a lower 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.

[0067] 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.

[0068] 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.

[0069] In this exemplary embodiment, the decoding circuit 5 may include a first decoding circuit, which is connected to the MR6 mode register 6 setting circuit and the adjustable capacitor of the duty cycle detection circuit 3. The setting code is obtained through the first decoding circuit, and its binary code is converted into an output signal to adjust the conduction and cutoff of each switching element in the adjustable capacitor.

[0070] In this exemplary embodiment, the decoding circuit 5 may further include a second decoding circuit, which is connected to the MR6 mode register 6 setting circuit and the delay chain 1, and is used to convert the setting code into a pulse output signal to adjust the initial setting value of the delay chain. Since the working cycle of the memory can be obtained from the setting code of tCCD_L, the initial setting value of the delay chain can be adjusted, which can reduce the cumbersome adjustment process and further reduce the calibration time.

[0071] 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 setting circuit of the memory, and the selector is used to simultaneously generate the switch element adjustment signal and the delay chain adjustment signal. Figure 7 is a truth table of the decoding circuit used in this example. Of course, those skilled in the art know that other decoding circuits can also be used to decode the setting code.

[0072] The embodiment of the present invention further provides a memory, comprising any one of the above low-frequency 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.

[0073] The embodiment of the present invention also provides a low-frequency clock duty cycle calibration method, referring to Figure 8 ,include:

[0074] 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;

[0075] Step S210, using the decoding circuit 5 to convert the setting code reflecting the low-frequency operating frequency of the memory in the setting circuit of the MR6 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;

[0076] Step S310, detecting the duty cycle of the second clock signal using the duty cycle detection circuit after adjusting the capacitance;

[0077] Step S410: the signal adjustment circuit adjusts the first clock signal according to the duty cycle detection result.

[0078] Through the above steps, the setting code that can directly reflect the current low-frequency operating frequency of the memory is obtained from the data of the MR6 mode register setting circuit of the memory, so that the capacitance in the duty cycle detection circuit is timely adjusted according to the setting code to increase the total capacitance of the detection circuit, ensure that the detection needs are met, and adjust the duty cycle to 50%±1% as soon as possible.

[0079] In step S110 of this exemplary embodiment, the signal adjustment circuit may include a delay chain 1 and a clock generator 2, wherein the first clock signal is delayed by the delay chain 1 to generate an adjusted clock signal; and the first clock signal and the adjusted clock signal are received by the clock generator 2 to generate a second clock signal.

[0080] 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.

[0081] 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.

[0082] refer to Fig. 9 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.

[0083] 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 value of the delay chain 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 delay chain avoids the problem that the delay chain needs to be increased step by step, which makes the entire calibration cycle longer, and can shorten the adjustment time, and adjust the duty cycle to about 50% as soon as possible. Of course, the initial value can also be a value close to T / 2.

[0084] Therefore, in addition to improving the delay accuracy by 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.

[0085] Furthermore, both the first decoding circuit and the second decoding circuit adopt the multi-input multi-output selector circuit in the existing MR6 mode register setting circuit of the memory, and utilize the selector circuit to simultaneously generate the switch element adjustment signal and the delay chain initial value adjustment signal.

[0086] The circuit structures involved in this implementation are all referred to the relevant description in the calibration circuit, and will not be repeated here.

[0087] 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. Therefore, the entire duty cycle calibration is a continuous cycle process. Correspondingly, the decoding circuit also works continuously. Once the memory operating frequency drops 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 stable.

[0088] 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.

[0089] 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.

[0090] 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.

[0091] 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 low-frequency 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 of the memory at a low frequency, wherein the mode register is an MR6 mode register; 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 signal adjustment circuit includes a delay chain and a clock generator, wherein the delay chain is used to receive the first clock signal and delay it to generate an adjustment clock signal, and the clock generator is used to receive the first clock signal and the adjustment clock signal to generate a second clock signal; The duty cycle detection unit further includes a counter, and the counter is connected to the delay chain; The duty cycle detection circuit is a mirror setting circuit, comprising: A clock signal receiving end, connected to the signal output end of the clock generator, and used for receiving 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 receives a detection enable signal to control the charging and discharging of the main circuit capacitor element; The latch circuit is connected to the counter, 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 a pulse signal to the counter to pass the counting result to the delay chain.

2. The low-frequency 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.

3. The low-frequency clock duty cycle calibration circuit according to claim 2, characterized in that: The capacitor element is a MOS tube, and the gate of each MOS tube is connected to the switch element.

4. The low-frequency clock duty cycle calibration circuit according to claim 3, 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.

5. The low-frequency clock duty cycle calibration circuit according to claim 1, characterized in that: The decoding circuit comprises: The first decoding circuit is connected to the setting circuit of the MR6 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 switch element in the adjustable capacitor.

6. The low-frequency clock duty cycle calibration circuit according to claim 1, characterized in that: The decoding circuit comprises: The second decoding circuit is connected to the setting circuit of the MR6 mode register and the delay chain, and is used to convert the setting code into an output signal to adjust the initial setting value of the delay chain.

7. The low-frequency clock duty cycle calibration circuit according to claim 5 or 6, 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.

8. A memory, characterized in that: The invention comprises the low-frequency clock duty cycle calibration circuit according to any one of claims 1 to 7.

9. A low-frequency 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 code of the clock frequency reflecting the low-frequency operation of the memory in the setting circuit of the MR6 mode register of the memory into an output signal, and adjusting the capacitance value of the duty cycle detection circuit through the output signal; 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 delay chain and a clock generator, and the first clock signal is delayed by the delay chain to generate an adjustment clock signal; receiving the first clock signal and adjusting the clock signal by the clock generator to generate the second clock signal; 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 value of the delay chain to half of the current cycle value of the clock.

10. The clock duty cycle calibration method according to claim 9, characterized in that: 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.

11. The clock duty cycle calibration method according to claim 10, characterized in that: 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.

12. The clock duty cycle calibration method according to claim 11, characterized in that: The decoding circuit also 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.

13. The clock duty cycle calibration method according to claim 12, characterized in that: The first decoding circuit or the second decoding circuit both adopts the multi-input multi-output selector circuit in the memory MR6 mode register setting circuit.