High frequency clock duty cycle calibration circuit, calibration method and memory
By using the signal adjustment circuit, duty cycle detection unit and mode register in the high-frequency clock duty cycle calibration circuit, and using the adjustable capacitor and decoding circuit to adjust the capacitance value, the clock duty cycle calibration time at high frequency is too long. And the problem of quality degradation is achieved, fast and accurate calibration is achieved, and the accuracy of data reading from the memory is ensured.
Patent Information
- Application Number
- CN201811326927.9
- 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
At high frequencies, the calibration time of the existing clock duty cycle calibration circuit is too long, and the calibration quality is degraded, which affects the accuracy of memory data reading.
A high-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 is adjusted by an adjustable capacitor and a decoding circuit to quickly and accurately adjust the duty cycle of the clock signal. Use the mode register to reflect the clock frequency adjustment capacitor to ensure calibration speed and accuracy.
It achieves fast and accurate clock duty cycle calibration at high frequencies, ensures clock signal quality, reduces calibration time and cost, and improves the accuracy of data reading.
Smart Images

Figure CN111161771B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a high-frequency clock duty cycle calibration circuit and a memory, and also to a high-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 compares the charge and discharge time and power of the capacitor. Since the memory may work at a higher operating frequency, the capacitor is fixed during design. When the clock frequency changes, the higher clock frequency will have a shorter charge and discharge time. The shorter discharge time will increase the entire duty cycle detection time due to the capacitor redundancy connected to the clock duty cycle detection circuit, affecting the overall clock duty cycle calibration cycle.
[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 high-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 high-frequency clock duty cycle calibration circuit and a memory to solve the problems of long calibration time and reduced calibration quality at high frequencies.
[0006] Another object of the present invention is to provide a method for calibrating the duty cycle of a high-frequency clock.
[0007] According to one aspect of the present invention, there is provided a high-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 high 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 MR2 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 MR2 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 MR2 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 adopts a multiple-input multiple-output selector in a setting circuit of the mode register of the memory MR2.
[0025] According to another aspect of the present invention, a memory is provided, comprising the high-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 high-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 high-frequency operation of the memory in the setting circuit of the MR2 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 high-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 high-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 settings for CWL in DDR4;
[0042] Figure 3 The high-frequency clock duty cycle calibration circuit diagram of the present invention;
[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 This is a first flow chart of the high-frequency clock duty cycle calibration method of the present invention;
[0047] Figure 8 This is a second flow chart of the high-frequency clock duty cycle calibration method of the present invention.
[0048] In the figure, 1. delay chain; 2. clock generator; 3. duty cycle detection circuit; 4. counter; 5. decoding circuit; 6. MR2 mode register. DETAILED DESCRIPTION
[0049] 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.
[0050] 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.
[0051] 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.
[0052] Since the operating frequency of the DDR memory will change, it is common for the frequency to be increased to a high frequency range (the high frequency referred to in the present invention refers to a transmission rate greater than 2400Mb / s). When the clock frequency becomes higher, the delay chain of the low-frequency circuit and the charge stored in the capacitor in the duty cycle detection circuit need 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.
[0053] Therefore, a high-frequency clock duty cycle calibration circuit is provided in an embodiment of the present invention, which can quickly and accurately calibrate the clock duty cycle of a memory operating in a high-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.
[0054] The high-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 high-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.
[0055] 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 within the unit cycle becomes shorter. 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 reduced accordingly. Once the amount of charge is redundant, the detection time will be longer, and then the calibration time will be extended. Therefore, if the clock frequency is known in advance, the cycle can be known, and the amount of charge required for identifying the clock duty cycle in the detection circuit can be determined, so as to determine the size of the capacitance value in the access circuit, and the amount of stored charge in the circuit can be reduced in time, so as to ensure 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 the frequency information in time at the initial stage of frequency conversion, so as to adjust the capacitor 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.
[0056] The high frequency clock duty cycle calibration circuit according to the embodiment of the present invention is described in detail below:
[0057] In this exemplary embodiment, the mode register is an MR2 mode register. The data contained in the setting circuit of 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 is set to a number of cycles that meets the standard requirements according to the needs of CWL (CAS Write Latency) at different clock frequencies, such as Figure 2 As shown, the capacitance value in the access detection circuit can be determined from different CWL setting codes to accelerate the calibration quality of the clock duty cycle.
[0058] 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 reduced to the charge required for identifying the clock duty cycle as soon as possible, so as to accurately calibrate the duty cycle when working at high 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, 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.
[0059] 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.
[0060] 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 high-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.
[0061] 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.
[0062] 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.
[0063] 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.
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] In this exemplary embodiment, the decoding circuit 5 may include a first decoding circuit, which is connected to the MR2 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.
[0069] In this exemplary embodiment, the decoding circuit 5 may further include a second decoding circuit, which is connected to the MR2 mode register 6 setting circuit and the delay chain 1, and is used to convert the setting code into an 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 the CWL, the initial setting value of the delay chain can be adjusted, which can reduce the cumbersome adjustment process and further reduce the calibration time.
[0070] 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 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.
[0071] The embodiment of the present invention also provides a memory, comprising any one of the above high-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.
[0072] The embodiment of the present invention also provides a high-frequency clock duty cycle calibration method, referring to Figure 7 ,include:
[0073] 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;
[0074] Step S210, using the decoding circuit 5 to convert the setting code reflecting the high-frequency working frequency of the memory in the setting circuit of 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;
[0075] Step S310, detecting the duty cycle of the second clock signal using the duty cycle detection circuit after adjusting the capacitance;
[0076] Step S410: the signal adjustment circuit adjusts the first clock signal according to the duty cycle detection result.
[0077] Through the above steps, a setting code that can directly reflect the current high-frequency operating frequency of the memory is obtained from the data of the MR2 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] refer to Figure 8 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.
[0082] 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.
[0083] Therefore, in addition to improving the delay accuracy by reducing 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.
[0084] Furthermore, both the first decoding circuit and the second decoding circuit adopt the multi-input multi-output selector circuit in the existing MR2 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.
[0085] The circuit structures involved in this implementation are all referred to the relevant description in the calibration circuit, and will not be repeated here.
[0086] 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 is increased to a high 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.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] 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 high-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 operating at a high frequency, wherein the mode register is an MR2 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, receiving 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 high-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 high-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 high-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 high-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 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 on and off of each switch element in the adjustable capacitor.
6. The high-frequency clock duty cycle calibration circuit according to claim 1, characterized in that: The decoding circuit also includes: The second decoding circuit is connected to the setting circuit of the MR2 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 high-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 MR2 mode register.
8. A memory, characterized in that: A high-frequency clock duty cycle calibration circuit comprising any one of claims 1 to 7.
9. A high-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 high-frequency operation of the memory in the setting circuit of the MR2 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 comprises 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 MR2 mode register setting circuit.
Citation Information
Patent Citations
High-frequency clock duty ratio calibration circuit and memory
CN209087409U
Semiconductor memory device
KR1020090121469A
Duty cycle correction circuit and delay locked loop circuit including the same
KR1020100052079A
Duty-cycle and phase error correction circuit device and method for thereof
KR1020100066236A
Integrated circuit including current-controllable buffer
KR1020110130068A
