Resistor calibration circuit, resistor calibration method, and memory
By introducing the short calibration mode into the DRAM memory, combined with the full calibration mode, the resistance calibration process is optimized, solving the problem of ZQ calibration consuming too many resources in the existing technology, achieving more efficient resistance calibration, and reducing power consumption and clock cycle.
Patent Information
- Application Number
- PCT/CN2023/098105
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-03
- Filing Date
- 2023-06-02
- Publication Date
- 2024-09-12
AI Technical Summary
The ZQ calibration process of existing DRAM memory takes up excessive power consumption and system time, reducing the performance of the memory.
A resistance calibration circuit is designed, which combines the short calibration mode and the full calibration mode. Through the register circuit, comparison circuit, logic circuit and calibration circuit, the short calibration mode is used to quickly calibrate when the environmental parameters change little, reducing power consumption and clock cycles. .
It effectively reduces the energy consumption and resource occupation of resistance calibration and ensures the accuracy of calibration. Especially when the environmental parameters change little, it significantly reduces the ZQ calibration time and power consumption.
Smart Images

Figure CN2023098105_12092024_PF_FP_ABST
Abstract
Description
Resistance calibration circuit, resistance calibration method and memory
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to a Chinese patent application filed with the Patent Office of China on March 3, 2023, with application number 202310197194.8 and application name “A Resistance Calibration Circuit, Resistance Calibration Method and Memory,” the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0003] The present disclosure relates to, but is not limited to, a resistance calibration circuit, a resistance calibration method, and a memory. Background Art
[0004] During the operation of dynamic random access memory (DRAM), output driver circuits are required to drive or terminate signals. Since the equivalent resistance of the output driver circuit changes with environmental parameters (such as temperature and voltage), the memory requires calibration of the relevant equivalent resistance, referred to as ZQ calibration. However, current ZQ calibration consumes excessive power and system time, reducing memory performance.
[0005] Summary of the Invention
[0006] The present disclosure provides a resistance calibration circuit, a resistance calibration method, and a memory.
[0007] The technical solution of the present disclosure is achieved as follows:
[0008] In a first aspect, an embodiment of the present disclosure provides a resistance calibration circuit, the resistance calibration circuit comprising:
[0009] A register circuit is configured to store and output a short calibration enable signal; a comparison circuit is configured to receive a last locked value and an initial default value of a resistance control code, perform a consistency comparison between the last locked value and the initial default value of the resistance control code, and output a comparison result signal; a logic circuit is configured to receive the short calibration enable signal and the comparison result signal, perform a logic operation on the short calibration enable signal and the comparison result signal, and output a mode selection signal; a calibration circuit is configured to, upon receiving a calibration start signal, calibrate the resistance control code using one of a short calibration mode and a full calibration mode based on the mode selection signal, and lock the resistance control code after the calibration process is completed; wherein the register circuit and the comparison circuit are both connected to the logic circuit, and the logic circuit is connected to the calibration circuit.
[0010] In some embodiments, the comparison circuit is specifically configured to output the comparison result signal in a first state when the previous locked value of the resistance control code and the initial default value are different; or to output the comparison result signal in a second state when the previous locked value of the resistance control code and the initial default value are the same, and the logic potentials of the first state and the second state are different.
[0011] In some embodiments, the logic circuit is specifically configured to output the mode selection signal in the fifth state when the short calibration enable signal is in the fourth state; or, output the mode selection signal in the sixth state when the short calibration enable signal is in the third state and the comparison result signal is in the first state; or, output the mode selection signal in the fifth state when the short calibration enable signal is in the third state and the comparison result signal is in the second state; wherein the logic potentials of the third state and the fourth state are different, the short calibration enable signal in the third state indicates that the short calibration mode is enabled, and the short calibration enable signal in the fourth state indicates that the short calibration mode is not enabled, and the logic potentials of the fifth state and the sixth state are different.
[0012] In some embodiments, the calibration circuit is specifically configured to, upon receiving a calibration start signal, calibrate the resistance control code using the full calibration mode if the mode selection signal is in the fifth state; or calibrate the resistance control code using the short calibration mode if the mode selection signal is in the sixth state; after the calibration process is completed, output a new locked value of the resistance control code, a change record signal, and a calibration end signal; wherein the change record signal indicates whether the locked value of the resistance control code has changed.
[0013] In some embodiments, the resistance control code includes a pull-up control code and a pull-down control code, the initial default value includes a pull-up default value and a pull-down default value, and the calibration process includes a pull-up calibration process and a pull-down calibration process; in the short calibration mode, the starting point of the pull-up calibration process is the last locked value of the pull-up control code, and the starting point of the pull-down calibration process is the last locked value of the pull-down control code; in the full calibration mode, the starting point of the pull-up calibration process is the pull-up default value, and the starting point of the pull-down calibration process is the pull-down default value.
[0014] In some embodiments, the calibration circuit includes: a control code generation module, configured to generate the pull-up control code and the pull-down control code based on the mode selection signal; a resistance module, including a resistance unit, configured to control the resistance of the resistance unit according to the pull-up control code and the pull-down control code, and generate and output a resistance comparison signal; wherein the resistance comparison signal indicates the size relationship between the resistance of the resistance unit and the standard resistance; a control module, configured to determine whether the pull-up calibration process or the pull-down calibration process is completed based on the resistance comparison signal; and after the pull-up calibration process and the pull-down calibration process are completed, output the calibration end signal and the change record signal; the control code generation module is further configured to latch the resistance control code upon receiving a latch command signal, and generate a new locked value of the resistance control code; wherein the latch command signal is generated after the pull-up calibration process and the pull-down calibration process are completed; wherein the control code generation module is connected to the resistance module, and the resistance module is connected to the control module.
[0015] In some embodiments, the control code generating module includes: a selection module, configured to receive the mode selection signal, the pull-up default value, the pull-down default value, the last locked value of the pull-up control code and the last locked value of the pull-down control code; if the mode selection signal is in the fifth state, the pull-up default value is output as the pull-up initial value, and the pull-down default value is output as the pull-down initial value; or, if the mode selection signal is in the sixth state, the last locked value of the pull-up control code is output as the pull-up initial value, and the last locked value of the pull-down control code is output as the pull-down initial value; an adjustment module, connected to the selection module, configured to generate the pull-up control code and the pull-down control code based on the pull-up initial value and the pull-down initial value; and, in the process of the pull-down calibration process, adjust the pull-down control code; in the process of the pull-up calibration process, adjust the pull-up control code.
[0016] In some embodiments, the control module is further configured to receive the calibration start signal, and output a pull-down enable signal and a pull-up enable signal based on the calibration start signal; wherein, the valid pull-down enable signal indicates the execution of pull-down calibration processing, and the valid pull-up enable signal indicates the execution of pull-up calibration processing, and at most only one of the pull-down enable signal and the pull-up enable signal is valid; the resistance module also includes a reference unit and a comparator; the resistance unit is configured to receive the pull-up control code and the pull-down control code, and output a first voltage signal; the reference unit is connected to the control module, and configured to output a reference voltage signal based on the pull-down enable signal and the pull-up enable signal; the comparator is connected to the resistance unit and the reference unit, and configured to receive the first voltage signal and the reference voltage signal, and if the first voltage signal is greater than the reference voltage signal, output the resistance comparison signal in the seventh state; or, if the first voltage signal is not greater than the reference voltage signal, output the resistance comparison signal in the eighth state; the logical potentials of the seventh state and the eighth state are different.
[0017] In some embodiments, the calibration circuit further includes a clock module; the clock module is configured to output a calibration clock signal based on the calibration start signal; the adjustment module is further configured to receive the calibration clock signal and the resistance comparison signal; in the process of the pull-up calibration process, the pull-up control code is added or subtracted based on the resistance comparison signal in each clock cycle of the calibration clock signal; in the process of the pull-down calibration process, the pull-down control code is added or subtracted based on the resistance comparison signal in each clock cycle of the calibration clock signal; the control module is further configured to record the change of the resistance comparison signal in each clock cycle of the calibration clock signal; in the process of the pull-down calibration process, if the change of the resistance comparison signal meets the target end condition, the pull-down calibration is confirmed to be completed; in the process of the pull-up calibration process, if the change of the resistance comparison signal meets the target end condition, the pull-up calibration is confirmed to be completed; wherein, the control code generation module and the control module are both connected to the clock module, and the control code generation module is also connected to the resistance module.
[0018] In some embodiments, the control module is further configured to output an internal end signal after the pull-up calibration process and the pull-down calibration process are completed; the clock module is further configured to receive the internal end signal and stop outputting the calibration clock signal based on the internal end signal.
[0019] In some embodiments, the control module is specifically configured to receive the mode selection signal; and determine one of a preset full calibration end condition and a preset short calibration end condition as the target end condition based on the mode selection signal.
[0020] In some embodiments, in the short calibration mode, the pull-down calibration process takes 2 clock cycles; accordingly, when the mode selection signal is in the sixth state: the adjustment module is specifically configured to, in the first clock cycle of the pull-down calibration process, if the resistance comparison signal is in the seventh state, then subtract one from the internal bit of the pull-down control code; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal is still in the seventh state, then continue to subtract one from the internal bit of the pull-down control code; or, in the first clock cycle of the pull-down calibration process, if the resistance comparison signal is in the seventh state, then subtract one from the internal bit of the pull-down control code; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal is in the eighth state, then subtract one from the internal bit of the pull-down control code. or, in the first clock cycle of the pull-down calibration process, if the resistance comparison signal is in the eighth state, then the internal bit of the pull-down control code is added by one; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal is still in the eighth state, then the internal bit of the pull-down control code is continued to be added by one; or, in the first clock cycle of the pull-down calibration process, if the resistance comparison signal is in the eighth state, then the internal bit of the pull-down control code is added by one; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal is in the seventh state, then the internal bit of the pull-down control code is subtracted by one; wherein the internal bit of the pull-down control code refers to the smallest bit of the pull-down control code, and the internal bit of the pull-down control code is not open to the user.
[0021] In some embodiments, in the short calibration mode, the pull-up calibration process takes 2 clock cycles; accordingly, when the mode selection signal is in the sixth state: the adjustment module is specifically configured to, in the first clock cycle of the pull-up calibration process, if the resistance comparison signal is in the seventh state, then subtract one from the internal bit of the pull-up control code; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal is still in the seventh state, then continue to subtract one from the internal bit of the pull-up control code; or, in the first clock cycle of the pull-up calibration process, if the resistance comparison signal is in the seventh state, then subtract one from the internal bit of the pull-up control code; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal is in the eighth state, then subtract one from the internal bit of the pull-up control code. or, in the first clock cycle of the pull-up calibration process, if the resistance comparison signal is in the eighth state, then the internal bit of the pull-up control code is added by one; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal is still in the eighth state, then the internal bit of the pull-up control code is continued to be added by one; or, in the first clock cycle of the pull-up calibration process, if the resistance comparison signal is in the eighth state, then the internal bit of the pull-up control code is added by one; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal is in the seventh state, then the internal bit of the pull-up control code is subtracted by one; wherein the internal bit of the pull-up control code refers to the smallest bit of the pull-up control code, and the internal bit of the pull-up control code is not open to the user.
[0022] In some embodiments, the first state, the third state, the fifth state, and the seventh state refer to high-level states, and the second state, the fourth state, the sixth state, and the eighth state refer to low-level states; the logic circuit includes a NAND gate, and the two input ends of the NAND gate respectively receive the short calibration enable signal and the comparison result signal.
[0023] In a second aspect, an embodiment of the present disclosure provides a resistance calibration method, the method comprising:
[0024] When the short calibration mode is not enabled, the resistance control code is calibrated using the full calibration mode; or, when the short calibration mode is enabled, if the last locked value of the resistance control code is different from the initial default value, the resistance control code is calibrated using the short calibration mode; or, when the short calibration mode is enabled, if the last locked value of the resistance control code is the same as the initial default value, the resistance control code is calibrated using the full calibration mode; after the calibration process is completed, the resistance control code is locked; wherein, the resistance control code is used to adjust the resistance of the resistance unit.
[0025] In some embodiments, the resistance control code includes a pull-down control code, and the pull-down control code is used to adjust the pull-down resistance of the resistor unit; the calibration process includes a pull-down calibration process, and the pull-down calibration process occupies 2 clock cycles; the use of the short calibration mode to calibrate the resistance control code includes: in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is greater than the standard resistance, then the internal bit of the pull-down control code is subtracted by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is still greater than the standard resistance, then the internal bit of the pull-down control code is continued to be subtracted by one; or, in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is greater than the standard resistance, then the internal bit of the pull-down control code is subtracted by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is still greater than the standard resistance, then the internal bit of the pull-down control code is continued to be subtracted by one If the pull-down resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-down control code is incremented by one; or, in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is still less than the standard resistance, the internal bit of the pull-down control code continues to be incremented by one; or, in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-down control code is subtracted by one; wherein, the internal bit of the pull-down control code refers to the smallest bit of the pull-down control code, and the internal bit of the pull-down control code is not open to the user.
[0026] In some embodiments, the resistance control code further includes a pull-up control code, and the pull-up control code is used to adjust the pull-up resistance of the resistor unit; the calibration process further includes a pull-up calibration process, and the pull-up calibration process occupies two clock cycles; the calibrating process of the resistance control code using the short calibration mode further includes: in the first clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is less than the standard resistance, then subtracting one from the internal bit of the pull-up control code; in the second clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is still less than the standard resistance, then continuing to subtract one from the internal bit of the pull-up control code;
[0027] Alternatively, in the first clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-up control code is subtracted by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-up control code is added by one; or, in the first clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-up control code is added by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-up control code is added by one. If the pull-up resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-up control code is continued to be incremented; or, in the first clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-up control code is incremented; in the second clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-up control code is subtracted; wherein, the internal bit of the pull-up control code refers to the smallest bit of the pull-up control code, and the internal bit of the pull-up control code is not open to the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] FIG1 is a schematic diagram of a circuit structure of a pull-up calibration process;
[0029] FIG2 is a schematic diagram of a circuit structure of a pull-down calibration process;
[0030] FIG3 is a schematic structural diagram of a resistance calibration circuit provided by an embodiment of the present disclosure;
[0031] FIG4 is a schematic structural diagram of another resistance calibration circuit provided by an embodiment of the present disclosure;
[0032] FIG5 is a schematic diagram of steps of a calibration process provided by an embodiment of the present disclosure;
[0033] FIG6 is a schematic diagram of a specific structure of a calibration circuit provided in an embodiment of the present disclosure;
[0034] FIG7 is a schematic diagram of a signal waveform provided by an embodiment of the present disclosure;
[0035] FIG8 is a schematic diagram of a specific flow chart of a calibration process provided by an embodiment of the present disclosure;
[0036] FIG9 is a second schematic diagram of a specific flow chart of a calibration process provided by an embodiment of the present disclosure;
[0037] FIG10 is a schematic diagram of a flow chart of a resistance calibration method provided in an embodiment of the present disclosure;
[0038] FIG11 is a schematic diagram of the structure of a memory provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0039] The following will be combined with the accompanying drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. It should be understood that the specific embodiments described herein are only used to explain the relevant applications and are not intended to limit the relevant applications. It should also be noted that for ease of description, only the portions relevant to the relevant applications are shown in the drawings.
[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art in the art of the present disclosure. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0041] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0042] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present disclosure are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present disclosure described here can be implemented in an order other than that illustrated or described here.
[0043] The following are the nouns and abbreviations involved in the embodiments of the present disclosure.
[0044] Dynamic Random Access Memory (DRAM);
[0045] Synchronous Dynamic Random Access Memory (SDRAM);
[0046] Double Data Rate SDRAM (DDR);
[0047] Low Power DDR (LPDDR);
[0048] Fifth-generation LPDDR (5th LPDDR, LPDDR5).
[0049] The memory contains an output driver circuit for output driving and signal termination. Its equivalent resistor value needs to be calibrated to match the actual application scenario. Specifically, during the calibration process, the equivalent resistor value of the output driver circuit needs to be changed by adjusting the size of the resistance control code until the equivalent resistor value meets the requirements. This process is called ZQ calibration.
[0050] ZQ calibration includes calibration of the pull-down resistor (also called pull-down calibration process) and calibration of the pull-up resistor (also called pull-up calibration process). The ZQ control code is specifically divided into a pull-up control code Zqpu and a pull-down control code Zqpd.
[0051] For pull-up calibration, please refer to Figure 1. For the pull-up resistor, the output driver circuit's resistance is controlled by six adjustable signals (Zqpu0-Zqpu5), namely the pull-up control code Zqpu[5:0]. However, internal bit Zqpu0 is not accessible to the user, resulting in only five locked pull-up control bits, specifically Zqpu[5:1]. Furthermore, VDDQ in Figure 1 refers to the power supply signal, and PuSwitch refers to the pull-up switch signal. During the pull-up calibration process, PuSwitch turns on the controlled switch. Furthermore, the sizes of the different switches in Figure 1 can vary; illustratively, the sizes of the individual switches can be designed according to the following ratio: switch MN0: switch MN1: switch MN2: switch MN3: switch MN4: switch MN5: switch MN6: switch MN7: switch MN8: switch MN9 = 1:1:2:2:4:4:4:8:16:16.
[0052] For pull-down calibration, refer to Figure 2. For the pull-down resistor, the output driver circuit's resistance is also controlled by six adjustable signals (Zqpd0-Zqpd5), namely the pull-down control code Zqpd[5:0]. However, internal bit Zqpd0 is not accessible to the user. Furthermore, VSS in Figure 2 refers to ground, and PdSwitch refers to the pull-down switch signal. During pull-down calibration, PdSwitch turns on the controlled switch. Similarly, the sizes of the different switches (MN10-MN19) in Figure 2 can vary.
[0053] LPDDR5 offers two ZQ calibration modes: command calibration mode and background calibration mode. In background calibration mode, a timer within the DRAM is used to re-calibrate the ZQ at fixed intervals. Currently, ZQ calibration in background calibration mode uses the full calibration mode based on the binary search method.
[0054] Taking the pull-up calibration process as an example, the full calibration mode (Full Calibration) uses the pull-up control code Zqpu[5:0]=000000 as the calibration starting point, which mainly includes the following steps:
[0055] Step 1: Set Zqpu[5] = 1 to determine whether the pull-up equivalent resistance of the output driver circuit is greater than the standard resistance;
[0056] Step 2: If the pull-up equivalent resistance of the output drive circuit is greater than the standard resistance, confirm that Zqpu[5]=1 and set Zqpu[4]=1; if the pull-up equivalent resistance of the output drive circuit is less than the standard resistance, confirm that Zqpu[5]=0 and set Zqpu[4]=1; again determine whether the pull-up equivalent resistance of the output drive circuit is greater than the standard resistance.
[0057] Steps 3 to 7 are similar to step 2.
[0058] In other words, step 2 can determine the value of Zqpu[5], step 3 can determine the value of Zqpu[4], step 4 can determine the value of Zqpu[3], step 5 can determine the value of Zqpu[2], step 6 can determine the value of Zqpu[1], and step 7 can determine the value of Zqpu[0]. Each of the above steps takes one clock cycle, so a total of seven clock cycles are required; similarly, the pull-down calibration process also takes seven clock cycles, resulting in higher power consumption and more clock cycles for ZQ calibration.
[0059] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0060] In one embodiment of the present disclosure, referring to FIG3 , a schematic diagram of the structure of a resistance calibration circuit 10 provided in an embodiment of the present disclosure is shown. As shown in FIG3 , the resistance calibration circuit 10 includes:
[0061] a register circuit 11 configured to store and output a short calibration enable signal;
[0062] The comparison circuit 12 is configured to receive the last locked value and the initial default value of the resistance control code, perform consistency comparison on the last locked value and the initial default value of the resistance control code, and output a comparison result signal;
[0063] a logic circuit 13 configured to receive a short calibration enable signal and a comparison result signal, perform a logic operation on the short calibration enable signal and the comparison result signal, and output a mode selection signal;
[0064] The calibration circuit 14 is configured to calibrate the resistance control code using one of the short calibration mode and the full calibration mode based on the mode selection signal when receiving the calibration start signal, and lock the resistance control code after the calibration process is completed;
[0065] The register circuit 11 and the comparison circuit 12 are both connected to the logic circuit 13 , and the logic circuit 13 is connected to the calibration circuit 14 .
[0066] It should be noted that, as mentioned above, the equivalent resistance of the output drive circuit may be offset due to changes in environmental parameters (such as voltage / temperature), so the resistance control code needs to be calibrated regularly, but the full calibration mode will cause the power consumption of the resistance calibration process to be higher and occupy more clock cycles. In response to this problem, the embodiment of the present disclosure provides a resistance calibration circuit 10 to calibrate the resistance of the output drive circuit, because the resistance calibration circuit 10 also introduces a short calibration mode (Short Calibration) on the basis of the full calibration mode. In particular, the energy consumption of the short calibration mode is less than that of the full calibration mode, and / or the clock cycle occupied by the short calibration mode is less than the clock cycle occupied by the full calibration mode. In this way, in some scenarios, the calibration process is performed by replacing the full calibration mode with the short calibration mode, which can reduce power consumption and reduce resource occupation.
[0067] It should also be noted that in the embodiment of the present disclosure, by configuring the level value of the short calibration enable signal, it is possible to control which mode the resistance calibration circuit 10 is calibrated in. However, it should be noted that the short calibration mode is essentially an incomplete calibration, and the first calibration after the memory is powered on (or initialized) must be performed in the full calibration mode. Therefore, as shown in Figure 3, if the comparison result signal indicates that the last locked value of the resistance control code is consistent with the initial default value, it means that this calibration is the first calibration after the memory is powered on (or initialized), and the full calibration mode must be used for calibration; if the comparison result signal indicates that the last locked value of the resistance control code is inconsistent with the initial default value, then one of the short calibration mode and the full calibration mode is selected for calibration according to the short calibration enable signal.
[0068] In this way, the resistance calibration circuit 10 provided by the embodiment of the present disclosure can perform the first calibration process after the memory is powered on (or initialized) through the full calibration mode, and subsequently select one of the short calibration mode and the full calibration mode according to the short calibration enable signal to perform the calibration process, which can reduce the energy consumption of the resistance calibration while ensuring the correctness of the calibration.
[0069] It should be noted that the register circuit 11 can specifically be a mode register (Mode Register), and the short calibration enable signal occupies one of the parameter bits therein; the comparison circuit 12 can be composed of an XOR gate, an XNOR gate, etc.; the logic circuit 13 can include but is not limited to the following devices: a NAND gate, a NOR gate, an AND gate, an OR gate, and a NOT gate; the specific composition of the calibration circuit 14 can be found in the subsequent description.
[0070] As shown in FIG4 , the last locked value of the resistance control code can be represented as last ZqCode, the initial default value can be represented as Defalt ZqCode, the comparison result signal can be represented as CodeMch, the short calibration enable signal can be represented as ShortEn, the mode selection signal can be represented as CalMode, and the calibration start signal can be represented as ZqCalStart.
[0071] In some embodiments, as shown in FIG3 and FIG4 , the comparison circuit 12 is specifically configured to output a comparison result signal CodeMch in a first state when the last locked value last ZqCode of the resistance control code is different from the initial default value Defalt ZqCode; or to output a comparison result signal CodeMch in a second state when the last locked value last ZqCode of the resistance control code is the same as the initial default value Defalt ZqCode. The logic potentials of the first state and the second state are different, which can be specifically determined according to actual application scenarios.
[0072] Accordingly, as shown in Figures 3 and 4, the logic circuit 13 is specifically configured to output the mode selection signal CalMode in the fifth state when the short calibration enable signal ShortEn is in the fourth state; or, when the short calibration enable signal ShortEn is in the third state and the comparison result signal CodeMch is in the first state, output the mode selection signal CalMode in the sixth state; or, when the short calibration enable signal ShortEn is in the third state and the comparison result signal CodeMch is in the second state, output the mode selection signal CalMode in the fifth state.
[0073] Here, the logic potentials of the third state and the fourth state are different. The short calibration enable signal ShortEn in the third state indicates that the short calibration mode is enabled, and the short calibration enable signal ShortEn in the fourth state indicates that the short calibration mode is not enabled. The logic potentials of the fifth state and the sixth state are different, which can be determined according to the actual application scenario.
[0074] It should be noted that, in one case, the level value of the short calibration enable signal ShortEn can be set by the user, and in another case, the level value of the short calibration enable signal ShortEn can also be determined by other mechanisms in the circuit. For example, since the equivalent resistance of the output drive circuit is mainly affected by environmental parameters (voltage / temperature), if the environmental parameters change slightly, the short calibration enable signal ShortEn can be controlled to be in the third state; if the environmental parameters change significantly, the short calibration enable signal ShortEn can be controlled to be in the fourth state. In addition, if the environmental parameters change significantly, an initialization operation can also be performed to make the resistance control code a default initial value, so that the resistance calibration circuit 10 can still be calibrated in the full calibration mode, ensuring the correctness of the calibration.
[0075] In other words, if there are no sudden changes in voltage or temperature, there is no need to calibrate in full calibration mode. However, the present disclosure proposes a calibration mechanism based on short calibration mode for situations where full calibration mode is not necessary, which can reduce ZQ calibration time and calibration power consumption.
[0076] Accordingly, as shown in FIG3 and FIG4 , the calibration circuit 14 is specifically configured to, upon receiving the calibration start signal ZqCalStart, calibrate the resistance control code using the full calibration mode if the mode selection signal CalMode is in the fifth state; or calibrate the resistance control code using the short calibration mode if the mode selection signal CalMode is in the sixth state;
[0077] The calibration circuit 14 is further configured to output a new latched value LatchedCode of the resistance control code, a change record signal ZQUF and a calibration end signal ZqCalDone after the calibration process is completed; wherein the change record signal ZQUF indicates whether the latched value of the resistance control code has changed.
[0078] Here, if the new locking value LatchedCode of the resistance control code changes relative to the previous locking value last ZqCode, the change recording signal ZQUF is in the ninth level state; if the new locking value LatchedCode of the resistance control code does not change relative to the previous locking value last ZqCode, the change recording signal ZQUF is in the tenth level state, and the ninth level state and the tenth level state have different logic potentials.
[0079] It should be noted that in the first optional scenario, the first, third, and fifth states are high-level states "1," and the second, fourth, and sixth states are low-level states "0." The logic circuit 13 is primarily a NAND gate, with its two inputs receiving the short calibration enable signal ShortEn and the comparison result signal CodeMch, respectively, and its output outputting the mode selection signal CalMode. At this point, the signals undergo the following variations:
[0080] (1) The short calibration enable signal ShortEn is set to 1, and the comparison result signal CodeMch=1 (the last locked value last ZqCode of the resistance control code is inconsistent with the initial default value Defalt ZqCode). At this time, the mode selection signal CalMode=0, and the calibration circuit 14 performs calibration processing in the short calibration mode;
[0081] (2) The short calibration enable signal ShortEn is set to 1, and the comparison result signal CodeMch=0 (the last locked value last ZqCode of the resistance control code is consistent with the initial default value Defalt ZqCode). At this time, the mode selection signal CalMode=1, and the calibration circuit 14 performs calibration processing in the full calibration mode;
[0082] (3) The short calibration enable signal ShortEn is set to 0. Regardless of the state of the comparison result signal CodeMch, the mode selection signal CalMode=1. At this time, the calibration circuit 14 performs calibration processing in the full calibration mode.
[0083] In the second optional scenario, the first state, the third state, and the fifth state are the low level state "0", and the second state, the fourth state, and the sixth state are the high level state "1". The logic circuit 13 is mainly an NOR gate, and the two input ends of the NOR gate respectively receive the short calibration enable signal ShortEn and the comparison result signal CodeMch, and the output end of the NOR gate outputs the mode selection signal CalMode.
[0084] In addition to the first optional scenario and the second optional scenario, there are more possibilities in the embodiment of the present disclosure. In the subsequent embodiments, the first optional scenario is used as an example for explanation, and other scenarios can be understood adaptively.
[0085] As can be seen from the above, the resistance calibration circuit 10 can implement the control logic shown in FIG5 , which specifically includes:
[0086] S201: Triggering the calibration of the resistance control code.
[0087] S202: Determine whether the short calibration mode is enabled?
[0088] Here, for step S202, if the judgment result is yes, step S203 is executed; if the judgment result is no, step S204 is executed.
[0089] It should be noted that “short calibration mode enabled” is reflected in the circuit as “short calibration enable signal ShortEn is in the third state”, and “short calibration mode disabled” is reflected in the circuit as “short calibration enable signal ShortEn is in the fourth state”.
[0090] S203: Determine whether the last locked value of the resistance control code is the same as the initial default value.
[0091] Here, for step S203, if the judgment result is yes, step S204 is executed; if the judgment result is no, step S205 is executed.
[0092] S204: Perform calibration in full calibration mode.
[0093] S205: Perform calibration using the short calibration mode.
[0094] As can be seen from the above, register circuit 11 (i.e., MR register) is configured to indicate the enabling and disabling of the short calibration mode. When the short calibration mode is enabled, it is also necessary to consider whether the last locked value of the resistance control code, last ZqCode, and the initial default value, Defalt ZqCode, are the same. Specifically, if the last locked value of the resistance control code, last ZqCode, and the initial default value, Defalt ZqCode, are the same, then the mode selection signal CalMode is at a logic level indicating the full calibration mode. If the last locked value of the resistance control code, last ZqCode, and the initial default value, Defalt ZqCode, are different, then the mode selection signal CalMode is at a logic level indicating the short calibration mode. In other words, during the first calibration after power-on, the last locked value, last ZqCode, of the resistance control code is the same as the initial default value, Defalt ZqCode. Therefore, the first calibration adopts the full calibration mode by default. Also, after the reset / initialization process, the last locked value, last ZqCode, of the resistance control code is the same as the initial default value, Defalt ZqCode. Therefore, the first calibration adopts the full calibration mode by default, thereby ensuring calibration accuracy. During subsequent calibrations, if the short calibration enable signal is configured as a logic level indicating the short calibration mode, the short calibration mode is adopted, thereby saving power consumption.
[0095] In a specific embodiment, whether in short calibration mode or full calibration mode, the calibration process includes pull-up calibration and pull-down calibration. The initial default value Defalt ZqCode includes a pull-up default value and a pull-down default value. The resistance control code can be represented as Zqcode, specifically including a pull-up control code Zqpu[5:0] and a pull-down control code Zqpd[5:0]. Here, the pull-up calibration process refers to calibrating the pull-up control code Zqpu[5:0], and the pull-down calibration process refers to calibrating the pull-down control code Zqpd[5:0]. The pull-up calibration process and the pull-down calibration process are performed separately. In particular, the locked values of the resistance control code refer to Zqpu[5:1] and Zqpd[5:1]. The internal bits Zqpu[0] and Zqpd[0] are only used for the calibration process and are not locked, or in other words, not open to the user.
[0096] In different application scenarios, the aforementioned “the last locked value last ZqCode of the resistance control code is the same as the initial default value Defalt ZqCode” can mean one of the following: (1) the last locked value of the pull-up control code is the same as the pull-up default value; (2) the last locked value of the pull-down control code is the same as the pull-down default value; (3) the last locked value of the pull-up control code is the same as the pull-up default value and the last locked value of the pull-down control code is the same as the pull-down default value.
[0097] It should be noted that there are many possibilities for the specific calibration logic of the short calibration mode, and the structure of the calibration circuit 14 needs to be designed according to the calibration logic of the short calibration mode. The following only provides an optional example.
[0098] In a specific embodiment, for the short calibration mode, the starting point of the pull-up calibration process is the previous locked value Zqpu[5:1] of the pull-up control code, and the starting point of the pull-down calibration process is the previous locked value Zqpd[5:1] of the pull-down control code; in the full calibration mode, the starting point of the pull-up calibration process is the pull-up default value, and the starting point of the pull-down calibration process is the pull-down default value.
[0099] In this way, when different calibration modes are adopted, the initial values of the pull-up control code and the pull-down control code are different, so that the clock cycle and power consumption of the short calibration mode are smaller.
[0100] Accordingly, as shown in FIG6 , the calibration circuit 14 includes:
[0101] The control code generating module 141 is configured to generate a pull-up control code and a pull-down control code based on the mode selection signal CalMode; in FIG6 , the pull-up control code and the pull-down control code are collectively represented as Zqcode;
[0102] The resistance module 142 includes a resistance unit 1421 and is configured to control the resistance of the resistance unit 1421 according to the pull-up control code and the pull-down control code, and generate and output a resistance comparison signal CmpRslt; wherein the resistance comparison signal CmpRslt indicates the magnitude relationship between the resistance of the resistance unit 1421 and the standard resistance;
[0103] The control module 143 is configured to determine whether the pull-up calibration process or the pull-down calibration process is completed based on the resistance comparison signal CmpRslt; and output a calibration end signal ZqCalDone and a change record signal ZQUF after the pull-up calibration process and the pull-down calibration process are completed;
[0104] The control code generating module 141 is further configured to latch the resistance control code upon receiving the latch command signal, and generate a new latched value LatchedCode of the resistance control code;
[0105] As shown in FIG6 , the control code generation module 141 is connected to the resistance module 142 , and the resistance module 142 is connected to the control module 143 .
[0106] It should be noted that the structure of the resistor unit 1421 in Figure 6 is the same as that of the output driver circuit described above. As described above, the pull-up calibration process specifically refers to calibrating Zqpu[5:0], the pull-down calibration process specifically refers to calibrating Zqpd[5:0], and the "latching process of the resistance control code" refers to latching Zqpu[5:1] and Zqpd[5:1].
[0107] It should be noted that the latch command signal is generated after both the pull-up calibration and the pull-down calibration are complete. In one scenario, the calibration start signal ZqCalStart and the latch command signal can be understood as being sent by the memory controller to the DRAM, with the interval between the calibration start signal ZqCalStart and the latch command signal being significantly longer than the time required for the pull-up calibration and the pull-down calibration, allowing the calibrated resistance control code to be latched. In another scenario, the calibration start signal ZqCalStart is generated by the memory controller, and the latch command signal is generated based on the calibration end signal ZqCalDone.
[0108] It should be noted that since the calibration starting point of the pull-up control code and the pull-down control code is affected by the adopted calibration mode, the control code generation module 141 needs to operate according to the mode selection signal CalMode. Specifically, as shown in FIG6 , the control code generation module 141 includes:
[0109] The selection module 1411 is configured to receive a mode selection signal CalMode, a pull-up default value, a pull-down default value, a last locked value of the pull-up control code, and a last locked value of the pull-down control code; if the mode selection signal CalMode is in a fifth state, the pull-up default value is output as the pull-up initial value Zqpu0[5:1], and the pull-down default value is output as the pull-down initial value Zqpd0[5:1]; or, if the mode selection signal CalMode is in a sixth state, the last locked value of the pull-up control code is output as the pull-up initial value Zqpu0[5:1], and the last locked value of the pull-down control code is output as the pull-down initial value Zqpd0[5:1];
[0110] The adjustment module 1412 is connected to the selection module 1411 and is configured to generate a pull-up control code Zqpu[5:0] and a pull-down control code Zqpd[5:0] based on the pull-up initial value Zqpu0[5:1] and the pull-down initial value Zqpd0[5:1]; and, in the process of the pull-down calibration processing, adjust the pull-down control code Zqpd[5:0]; in the process of the pull-up calibration processing, adjust the pull-up control code Zqpu[5:0].
[0111] In FIG6 , the pull-up default value and the pull-down default value are collectively represented as Defalt ZqCode, the last locked value of the pull-up control code and the last locked value of the pull-down control code are collectively represented as last ZqCode, and the pull-up initial value Zqpu0[5:1] and the pull-down initial value Zqpd0[5:1] are collectively represented as InitCode.
[0112] As mentioned above, when the pull-up initial value Zqpu0[5:1] is used to generate the pull-up control code Zqpu[5:0], the adjustment module 1412 will default the internal bit Zqpu0=0. When the pull-down initial value Zqpd0[5:1] is used to generate the pull-down control code Zqpd[5:0], the adjustment module 1412 will default the internal bit Zqpd0=0 to achieve bit padding processing.
[0113] In some embodiments, as shown in FIG6 , the control module 143 is further configured to receive a calibration start signal ZqCalStart and output a pull-down enable signal pdEn and a pull-up enable signal PuEn based on the calibration start signal ZqCalStart; wherein a valid pull-down enable signal pdEn indicates that a pull-down calibration process is to be performed, and a valid pull-up enable signal PuEn indicates that a pull-up calibration process is to be performed, and at most only one of the pull-down enable signal pdEn and the pull-up enable signal PuEn is valid;
[0114] The resistance module 142 further includes a reference unit 1422 and a comparator 1423;
[0115] The resistor unit 1421 is configured to receive a pull-up control code Zqpu[5:0] and a pull-down control code Zqpd[5:0] and output a first voltage signal;
[0116] The reference unit 1422 is connected to the control module 143 and configured to output a reference voltage signal based on the pull-down enable signal PdEn and the pull-up enable signal PuEn;
[0117] The comparator 1423 is connected to the resistance unit 1421 and the reference unit 1422, and is configured to receive a first voltage signal and a reference voltage signal. If the first voltage signal is greater than the reference voltage signal, the comparator 1423 outputs a resistance comparison signal CmpRslt in a seventh state; if the first voltage signal is not greater than the reference voltage signal, the comparator outputs a resistance comparison signal CmpRslt in an eighth state.
[0118] In one possibility, the resistance unit 1421 can first use a standard resistor externally connected to the ground to calibrate the pull-up resistance part, and then use the calibrated pull-up resistance part to calibrate the pull-down resistance part, that is, pull-up calibration is performed first and then pull-down calibration is performed; in another possibility, the resistance unit 1421 can first use a standard resistor externally connected to the power supply to calibrate the pull-down resistance part, and then use the calibrated pull-down resistance part to calibrate the pull-up resistance part, that is, pull-down calibration is performed first and then pull-up calibration is performed.
[0119] In this way, the level state of the resistance comparison signal CmpRslt can indicate the relationship between the pull-up equivalent resistance of the resistance unit 1421 after being controlled by the pull-up control code and the standard resistance value, thereby judging whether the current pull-up control code Zqpu[5:0] is appropriate; or, the level state of the resistance comparison signal CmpRslt can indicate the relationship between the pull-down equivalent resistance of the resistance unit 1421 after being controlled by the pull-down control code and the standard resistance value, thereby judging whether the current pull-down control code Zqpd[5:0] is appropriate.
[0120] In some embodiments, as shown in FIG6 , the calibration circuit 14 further includes a clock module 144 ; wherein,
[0121] The clock module 144 is configured to output a calibration clock signal ZqClk based on the calibration start signal ZqCalStart;
[0122] The adjustment module 1412 is further configured to receive the calibration clock signal ZqClk and the resistance comparison signal CmpRslt; during the pull-up calibration process, the pull-up control code is added or subtracted based on the resistance comparison signal CmpRslt at each clock cycle of the calibration clock signal ZqClk; during the pull-down calibration process, the pull-down control code Zqpd[5:0] is added or subtracted based on the resistance comparison signal CmpRslt at each clock cycle of the calibration clock signal ZqClk;
[0123] The control module 143 is further configured to record changes in the resistance comparison signal CmpRslt during each clock cycle of the calibration clock signal ZqClk; during the pull-down calibration process, if the change in the resistance comparison signal CmpRslt meets the target end condition, the pull-down calibration is confirmed to be completed; during the pull-up calibration process, if the change in the resistance comparison signal CmpRslt meets the target end condition, the pull-up calibration is confirmed to be completed; wherein, the control code generation module 141 and the control module 143 are both connected to the clock module 144, and the control code generation module 141 is also connected to the resistance module 142.
[0124] It should be noted that “confirmation of pull-down calibration completion” and “confirmation of pull-up calibration completion” can be reflected in the circuit as outputting corresponding signals, so that other modules can obtain this information.
[0125] In some embodiments, the control module 143 is further configured to output an internal end signal Done after both the pull-up calibration process and the pull-down calibration process are completed; the clock module 144 is further configured to receive the internal end signal Done and stop outputting the calibration clock signal ZqClk based on the internal end signal Done.
[0126] In this way, the calibration clock signal ZqClk output by the clock module 144 controls the entire calibration process. Taking the pull-down process first and then the pull-up process as an example, as shown in FIG7 , upon receiving the calibration start signal ZqCalStart (in FIG7 , the calibration start signal ZqCalStart generates one pulse), the clock module 144 starts to output the calibration clock signal ZqClk, and the pull-down enable signal PdEn becomes a high level state (i.e., valid). At this time, in each clock cycle of the calibration clock signal ZqClk, the adjustment module 1412 adds or subtracts the pull-down control code Zqpd[5:0] according to the resistance comparison signal CmpRslt until the pull-down is complete. The control code Zqpd[5:0] is adjusted, and the lower calibration process is completed. Then, the pull-up enable signal PuEn becomes high (i.e., valid). At this time, at each clock cycle of the calibration clock signal ZqClk, the adjustment module 1412 adjusts the pull-up control code Zqpu[5:0] according to the resistance comparison signal CmpRslt until the pull-up control code Zqpu[5:0] is adjusted. At this time, the upper calibration process is completed, and the control module 143 outputs the calibration end signal ZqCalDone and the change record signal ZQUF. Finally, after a certain period of time, the adjustment module 1412 also receives the latch command signal, thereby latching the pull-up control code Zqpu[5:1] and the pull-down control code Zqpd[5:1].
[0127] As mentioned above, if the new locked value of the resistance control code changes relative to the previous locked value (at least one of Zqpu[5:1] and Zqpd[5:1] changes), the change record signal ZQUF is in the ninth state; if the new locked value of the resistance control code does not change relative to the previous locked value (neither Zqpu[5:1] nor Zqpd[5:1] changes), the change record signal ZQUF is in the tenth state.
[0128] For the scenario where pull-up processing is performed first and then pull-down processing is performed, taking the seventh state and the ninth state as the high level state H, and the eighth state and the tenth state as the low level L as an example, as shown in Figures 8 and 9, the following provides a specific step description of a short calibration mode.
[0129] As shown in Figure 8, the short calibration mode process includes:
[0130] S300: Short calibration mode starts.
[0131] S301: Determine the last locked value of the pull-down control code as the pull-down initial value Zqpd0[5:1], and determine the last locked value of the pull-up control code as the pull-up initial value Zqpu0[5:1].
[0132] S302: Padded the pull-down initial value Zqpd0[5:1] and the pull-up initial value Zqpu0[5:1] to form a pull-down control code Zqpd[5:0] and a pull-up control code Zqpu[5:0].
[0133] For example, the pull-down initial value Zqpd0[5:1]=10010, and the pull-down control code Zqpd[5:0] formed by the padding is=10010_0; the pull-up initial value Zqpu0[5:1]=10010, and the pull-up control code Zqpu[5:0] formed by the padding is=10010_0.
[0134] S303: Pull-up calibration processing starts; comparing the first voltage signal output by the resistance unit with the reference voltage signal output by the reference unit.
[0135] S304: Is the first voltage signal greater than the reference voltage signal?
[0136] Here, for step S304, if the judgment result is yes, step S305 is executed, and if the judgment result is no, step S311 is executed.
[0137] S305: Resistance comparison signal CmpRslt=H.
[0138] Here, since the first voltage signal is greater than the reference voltage signal, the obtained resistance comparison signal CmpRslt is in a high level state “H”.
[0139] S306: Subtract half a bit from the pull-up control code Zqpu[5:0].
[0140] For example, Zqpu[5:0]=10010_0-00000_1=10001_1. In particular, since the internal bit Zqpu0 does not participate in the locking process, the bit weight of Zqpu0 is equivalent to the "half bit" of Zqpu[5:1], that is, the internal bit Zqpu0 is subtracted by one.
[0141] S307: Compare the first voltage signal output by the resistance unit with the reference voltage signal output by the reference unit.
[0142] S308: Is the first voltage signal greater than the reference voltage signal?
[0143] Here, for step S308, if the judgment result is yes, step S309 is executed, and if the judgment result is no, step S317 is executed.
[0144] S309: Resistance comparison signal CmpRslt=H.
[0145] S310: continue to subtract half a bit from the pull-up control code Zqpu[5:0], and execute step S320.
[0146] At this time, Zqpu[5:0]=10001_1-00000_1=10001_0, that is, the internal bit Zqpu0 is further subtracted by one. At this time, Zqpu[5:1] is reduced by one bit compared to the previous locked value, and the pull-up calibration process is completed.
[0147] In this case, when the subsequent latch command signal arrives, the lock value Zqpu[5:1]=10001 of the pull-up control code is changed compared to the previous lock value.
[0148] S311: Resistance comparison signal CmpRslt=L.
[0149] Here, since the first voltage signal is less than the reference voltage signal, the obtained resistance comparison signal CmpRslt is in a low level state “L”.
[0150] S312: Add half a bit to the pull-up control code Zqpu[5:0].
[0151] At this time, Zqpu[5:0]=10010_0+00000_1=10010_1, that is, an addition operation is performed on the internal bit Zqpu0.
[0152] S313: Compare the first voltage signal output by the resistance unit with the reference voltage signal output by the reference unit.
[0153] S314: Is the first voltage signal greater than the reference voltage signal?
[0154] Here, for step S314, if the judgment result is yes, step S318 is executed, and if the judgment result is no, step S315 is executed.
[0155] S315: Resistance comparison signal CmpRslt=L.
[0156] S316: add another half bit to the pull-up control code Zqpu[5:0] and execute step S320.
[0157] At this time, Zqpu[5:0]=10010_1+00000_1=10011_0, that is, the internal bit Zqpu0 is incremented by 1. In this way, Zqpu[5:1] is incremented by one bit compared to the previous locked value, and the pull-up calibration process is terminated.
[0158] In this case, when the subsequent latch command signal arrives, the lock value Zqpu[5:1]=10011 of the pull-up control code is changed compared to the previous lock value.
[0159] S317: The resistance comparison signal CmpRslt=L, and step S319 is executed.
[0160] S318: The resistance comparison signal CmpRslt=H, and step S319 is executed.
[0161] S319: Restore the pull-up control code Zqpu[5:1] to the last locked value.
[0162] Specifically, if S319 is executed after S317, the specific operation of S319 is: add half a bit to the pull-up control code, that is, Zqpu[5:0]=10001_1+00000_1=10010_0; if S319 is executed after S318, the specific operation of S319 is: subtract half a bit from the pull-up control code, that is, Zqpu[5:0]=10010_1-00000_1=10010_0, and end the pull-up calibration process.
[0163] In this case, when the subsequent latch command signal arrives, the pull-up control code Zqpu[5:1]=10010, which is unchanged compared to the previous locked value.
[0164] S320: The pull-up calibration process ends.
[0165] In this way, the pull-up calibration process takes a fixed 2 clock cycles.
[0166] As shown in FIG9 , after step S320 , steps S401 to S420 are continued to complete the pull-down calibration process. The pull-down calibration process specifically includes:
[0167] S401: Pull-down calibration processing starts; a first voltage signal output by a resistance unit is compared with a reference voltage signal output by a reference unit.
[0168] S402: Is the first voltage signal greater than the reference voltage signal?
[0169] Here, for step S402, if the judgment result is yes, step S403 is executed, and if the judgment result is no, step S409 is executed.
[0170] S403: Resistance comparison signal CmpRslt=H.
[0171] S404: Subtract half a bit from the pull-down control code Zqpd[5:0].
[0172] At this time, Zqpd[5:0]=10010_0-00000_1=10001_1, that is, a subtraction operation is performed on the internal bit Zqpd0.
[0173] S405: Compare the first voltage signal output by the resistance unit with the reference voltage signal output by the reference unit.
[0174] S406: Is the first voltage signal greater than the reference voltage signal?
[0175] Here, for step S406, if the judgment result is yes, step S407 is executed, and if the judgment result is no, step S415 is executed.
[0176] S407: Resistance comparison signal CmpRslt=H.
[0177] S408: Continue to subtract half a bit from the pull-down control code Zqpd[5:0], and execute step S418.
[0178] At this time, Zqpd[5:0]=10001_1-00000_1=10001_0, that is, the internal bit Zqpu0 is subtracted by 1. In this way, Zqpd[5:1] is reduced by a total of one bit compared to the previous locked value.
[0179] In this case, when the subsequent lock command signal arrives, the lock value Zqpd[5:1]=10001 of the current pull-down control code is changed compared to the previous lock value.
[0180] S409: Resistance comparison signal CmpRslt=L.
[0181] S410: Add half a bit to the pull-down control code Zqpd[5:0].
[0182] At this time, Zqpd[5:0]=10010_0+00000_1=10010_1, that is, an addition operation is performed on the internal bit Zqpu0.
[0183] S411: Compare the first voltage signal output by the resistance unit and the reference voltage signal output by the reference unit.
[0184] S412: Is the first voltage signal greater than the reference voltage signal?
[0185] Here, for step S412, if the judgment result is yes, step S416 is executed, and if the judgment result is no, step S413 is executed.
[0186] S413: Resistance comparison signal CmpRslt=L.
[0187] S414: Continue adding half a bit to the pull-down control code Zqpd[5:0] and execute step S418.
[0188] At this time, Zqpd[5:0]=10010_1+00000_1=10011_0, that is, the internal bit Zqpu0 is incremented by 1. In this way, Zqpd[5:1] increases by a total of one bit compared to the previous locked value.
[0189] In this case, when the subsequent latch command signal arrives, the lock value Zqpd[5:1]=10011 of the pull-down control code is changed compared to the previous lock value.
[0190] S415: The resistance comparison signal CmpRslt=L, and step S417 is executed.
[0191] S416: The resistance comparison signal CmpRslt=H, and step S417 is executed.
[0192] S417: Restore the pull-down control code Zqpd[5:1] to the last locked value.
[0193] Specifically, if S417 is executed after S415, the specific operation of S417 is: add half a bit to the pull-down control code, that is, Zqpd[5:0]=10001_1+00000_1=10010_0; if S417 is executed after S416, the specific operation of S417 is: subtract half a bit from the pull-down control code, that is, Zqpd[5:0]=10010_1-00000_1=10010_0.
[0194] In this case, when the subsequent latch command signal arrives, the pull-down control code Zqpd[5:1]=10010, which is unchanged compared to the previous locked value.
[0195] S418: The pull-down calibration process ends, and step S419 or step S420 is executed.
[0196] S419: If the new lock value of the pull-up control code and the new lock value of the pull-down control code are unchanged, then the change record signal ZQUF=L is determined.
[0197] S420: If at least one of the new lock value of the pull-up control code and the new lock value of the pull-down control code changes, then the change record signal ZQUF=H is determined.
[0198] Please note that as shown in FIG1 , the pull-up resistor portion of the resistor unit is composed of an N-type field-effect transistor (NMOS); however, the pull-down resistor portion of the resistor unit needs to be composed of a P-type field-effect transistor to comply with the calibration logic described above. Alternatively, in other embodiments, as shown in FIG2 , the pull-down resistor portion of the resistor unit can also be composed of an N-type field-effect transistor. In this case, step S404 should be adjusted to "add half a bit to the pull-down control code Zqpd[5:0]," step S408 should be adjusted to "continue adding half a bit to the pull-down control code Zqpd[5:0]," and step S410 should be adjusted to "subtract half a bit from the pull-down control code Zqpd[5:0]," and step S414 should be adjusted to "continue subtracting half a bit from the pull-down control code Zqpd[5:0]." Alternatively, the above steps may be left unchanged and the above logic may be implemented by introducing an inverter into the circuit.
[0199] As can be seen above, the calibration processes in full and short calibration modes differ. Full calibration mode takes at least (7 × 2) clock cycles, while short calibration mode takes at least (2 × 2) clock cycles. Therefore, each calibration process in short calibration mode saves at least (5 × 2) clock cycles. Since an electronic device may contain many memories, the time and power consumption of ZQ calibration for each memory can be significantly reduced.
[0200] Furthermore, the conditions for marking calibration completion (including pull-up calibration completion and pull-down calibration completion) in full calibration mode and short calibration mode are also different. Therefore, as shown in FIG6 , the control module 143 is specifically configured to receive a mode selection signal CalMode and, based on the mode selection signal CalMode, determine one of a preset full calibration end condition and a preset short calibration end condition as a target end condition.
[0201] Exemplarily, in the short calibration mode, the pull-up calibration process and the pull-down calibration process each take up two clock cycles, and the preset short calibration end conditions include the following conditions: (1) the resistance comparison signal CmpRslt is in the seventh level state in both clock cycles; (2) the resistance comparison signal CmpRslt is in the seventh level state in the first clock cycle and the resistance comparison signal CmpRslt is in the eighth level state in the second clock cycle; (3) the resistance comparison signal CmpRslt is in the eighth level state in both clock cycles; (4) the resistance comparison signal CmpRslt is in the eighth level state in the first clock cycle and the resistance comparison signal CmpRslt is in the seventh level state in the second clock cycle. The above conditions are "OR" logic, that is, for the pull-up calibration process, as long as any of the above conditions is met, the pull-up calibration can be considered completed; for the pull-down calibration process, as long as any of the above conditions is met, the pull-down calibration can be considered completed. In other words, within two clock cycles, regardless of how the resistance comparison signal CmpRslt changes, the pull-up / pull-down calibration process is considered complete. It should be understood that if the temperature voltage changes slightly, or if the time interval between calibrations is short, the resistance will generally not shift significantly. Therefore, the pull-up / pull-down control code generally does not need to be changed significantly; only fine-tuning is required to achieve accuracy.
[0202] Additionally, in the full calibration mode, the pull-up calibration process and the pull-down calibration process each take 7 clock cycles, and the preset full calibration end condition can be formulated accordingly.
[0203] In the foregoing description, the determination of calibration completion is based on the change in resistance comparison signal CmpRslt. Therefore, the target end condition is essentially a change specification for resistance comparison signal CmpRslt. In other embodiments, since the full calibration mode takes (7×2) clock cycles and the short calibration mode takes (2×2) clock cycles, the target end condition can also be determined based on the number of clock cycles. That is, in the full calibration mode, the pull-down calibration process ends after 7 clock cycles have passed since the pull-down calibration process began; the pull-up calibration process ends after 7 clock cycles have passed since the pull-up calibration process began. In the short calibration mode, the pull-down calibration process ends after 2 clock cycles have passed since the pull-down calibration process began; the pull-up calibration process ends after 2 clock cycles have passed since the pull-up calibration process began.
[0204] To implement the calibration steps shown in FIG9 , when the mode selection signal is in the sixth state, the adjustment module 1412 is specifically configured to: (1) in the first clock cycle of the pull-down calibration process, if the resistance comparison signal CmpRslt is in the seventh state, then subtract one from the internal bit of the pull-down control code; and in the second clock cycle of the pull-down calibration process, if the resistance comparison signal CmpRslt is still in the seventh state, then continue to subtract one from the internal bit of the pull-down control code. Alternatively, (2) in the first clock cycle of the pull-down calibration process, if the resistance comparison signal CmpRslt is in the seventh state, then subtract one from the internal bit of the pull-down control code; and in the second clock cycle of the pull-down calibration process, if the resistance comparison signal CmpRslt is in the eighth state, then add one to the internal bit of the pull-down control code. Alternatively, (3) in the first clock cycle of the pull-down calibration process, if the resistance comparison signal CmpRslt is in the eighth state, the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal CmpRslt is still in the eighth state, the internal bit of the pull-down control code is further incremented by one. Alternatively, (4) in the first clock cycle of the pull-down calibration process, if the resistance comparison signal CmpRslt is in the eighth state, the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal CmpRslt is in the seventh state, the internal bit of the pull-down control code is decremented by one.
[0205] Here, the internal bit of the pull-down control code refers to the smallest bit of the pull-down control code, and the internal bit of the pull-down control code is not accessible to the user. In other words, "adding one to the internal bit" is equivalent to the aforementioned "half-bit addition operation," and "subtracting one from the internal bit" is equivalent to the aforementioned "half-bit subtraction operation."
[0206] To implement the calibration steps shown in FIG8 , when the mode selection signal is in the sixth state, the adjustment module 1412 is specifically configured to: (1) in the first clock cycle of the pull-up calibration process, if the resistance comparison signal CmpRslt is in the seventh state, perform a subtraction operation on the internal bit of the pull-up control code; and in the second clock cycle of the pull-up calibration process, if the resistance comparison signal CmpRslt is still in the seventh state, continue to perform a subtraction operation on the internal bit of the pull-up control code. Alternatively, (2) in the first clock cycle of the pull-up calibration process, if the resistance comparison signal CmpRslt is in the seventh state, perform a subtraction operation on the internal bit of the pull-up control code; and in the second clock cycle of the pull-up calibration process, if the resistance comparison signal CmpRslt is in the eighth state, perform an addition operation on the internal bit of the pull-up control code. Alternatively, (3) in the first clock cycle of the pull-up calibration process, if the resistance comparison signal CmpRslt is in the eighth state, the internal bit of the pull-up control code is incremented by one; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal CmpRslt is still in the eighth state, the internal bit of the pull-up control code is further incremented by one. Alternatively, (4) in the first clock cycle of the pull-up calibration process, if the resistance comparison signal CmpRslt is in the eighth state, the internal bit of the pull-up control code is incremented by one; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal CmpRslt is in the seventh state, the internal bit of the pull-up control code is decremented by one.
[0207] Here, the internal bit of the pull-up control code refers to the smallest bit of the pull-up control code, and the internal bit of the pull-up control code is not accessible to the user. The above calibration details are merely examples. Depending on the actual circuit design, the calibration details may be adjusted accordingly, such as changing the addition process to a subtraction process, or changing the subtraction process to an addition process.
[0208] In summary, when there is no sudden change in voltage and temperature, there is no need to perform ZQ calibration through the full calibration mode (Full Calibration). For this situation, the present disclosure proposes an optimized ZQ calibration logic based on the short calibration mode (Short Calibration), which can reduce the ZQ calibration time and calibration power consumption. Specifically, the short calibration mode can be enabled in the background calibration mode (that is, the short calibration enable signal is configured to the third state), thereby saving a lot of calibration time and power consumption. In addition, the short calibration mode can also be applied in the command calibration mode.
[0209] In another embodiment of the present disclosure, referring to FIG10 , a resistance calibration method provided by an embodiment of the present disclosure is shown. As shown in FIG10 , the method includes:
[0210] S601: When the short calibration mode is not enabled, the resistance control code is calibrated using the full calibration mode.
[0211] S602: When the short calibration mode is enabled, if the last locked value of the resistance control code is different from the initial default value, calibrate the resistance control code using the short calibration mode.
[0212] S603: When the short calibration mode is enabled, if the last locked value of the resistance control code is the same as the initial default value, calibrate the resistance control code using the full calibration mode.
[0213] It should be noted that steps S601 , S602 and S603 are “OR logic”.
[0214] S604: After the calibration process is completed, the resistance control code is locked; wherein the resistance control code is used to adjust the resistance of the resistance unit.
[0215] Here, the resistance unit may refer to an output driver circuit in a DRAM.
[0216] It should be noted that the resistance control code includes a pull-down control code, and the pull-down control code is used to adjust the pull-down resistance of the resistor unit; the calibration process includes a pull-down calibration process, and the pull-down calibration process takes two clock cycles. In a specific embodiment, the resistance control code is calibrated using the short calibration mode, including:
[0217] (1) in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-down control code is subtracted by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is still greater than the standard resistance, the internal bit of the pull-down control code is further subtracted by one; or, (2) in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-down control code is subtracted by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-down control code is added by one; or (3) in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is less than the standard resistance, then the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is still less than the standard resistance, then the internal bit of the pull-down control code is further incremented by one; or (4) in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is less than the standard resistance, then the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is greater than the standard resistance, then the internal bit of the pull-down control code is decremented by one;
[0218] The internal bit of the pull-down control code refers to the smallest bit of the pull-down control code, and the internal bit of the pull-down control code is not open to the user.
[0219] It should be understood that the above embodiments apply to scenarios where the pull-down resistor is composed of a P-type field-effect transistor. In other embodiments, if the pull-down resistor is composed of an N-type field-effect transistor, when the pull-down resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-down control code is incremented by one; when the pull-down resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-down control code is decremented by one.
[0220] It should also be noted that the resistance control code also includes a pull-up control code, and the pull-up control code is used to adjust the pull-up resistance of the resistor unit; the calibration process also includes a pull-up calibration process, and the pull-up calibration process takes two clock cycles; in a specific embodiment, the resistance control code is calibrated using the short calibration mode, and further includes:
[0221] (1) In the first clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-up control code is subtracted by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is still less than the standard resistance, the internal bit of the pull-up control code is further subtracted by one; or, (2) In the first clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-up control code is subtracted by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-up control code is added by one; or, (3) In the first clock cycle of the pull-up calibration process, (4) in the first clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is greater than the standard resistance value, the internal bit of the pull-up control code is added by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is greater than the standard resistance value, the internal bit of the pull-up control code is continued to be added by one; or, (5) in the first clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is greater than the standard resistance value, the internal bit of the pull-up control code is added by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is less than the standard resistance value, the internal bit of the pull-up control code is subtracted by one; wherein the internal bit of the pull-up control code refers to the smallest bit of the pull-up control code, and the internal bit of the pull-up control code is not open to the user.
[0222] It should be understood that the above embodiments are applicable to the scenario where the pull-up resistor is composed of an N-type field effect transistor. In other embodiments, if the pull-up resistor is composed of a P-type field effect transistor, the calibration details need to be adjusted with reference to the above content.
[0223] In summary, the embodiment of the present disclosure introduces a short calibration mode (Short Calibration) on the basis of the full calibration mode. In some scenarios, the short calibration mode is used instead of the full calibration mode for calibration processing, which can reduce power consumption and resource occupation.
[0224] In yet another embodiment of the present disclosure, referring to Figure 11 , a schematic diagram of the structure of a memory 40 provided in an embodiment of the present disclosure is shown. As shown in Figure 11 , the memory 40 includes the aforementioned resistance calibration circuit 10 .
[0225] The above are only preferred embodiments of the present disclosure and are not intended to limit the scope of protection of the present disclosure. It should be noted that in the present disclosure, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. The above serial numbers of the embodiments of the present disclosure are for description only and do not represent the advantages and disadvantages of the embodiments. The methods disclosed in the several method embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments. The features disclosed in the several product embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new product embodiments. The features disclosed in the several method or device embodiments provided in the present disclosure can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments. The above are only specific implementation methods of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this disclosure, and they should all be covered by the protection scope of the present disclosure.
Claims
1. A resistance calibration circuit, the resistance calibration circuit (10) comprising: A register circuit (11) configured to store and output a short calibration enable signal; A comparison circuit (12) is configured to receive a last locked value and an initial default value of the resistance control code, perform consistency comparison on the last locked value and the initial default value of the resistance control code, and output a comparison result signal; A logic circuit (13) configured to receive the short calibration enable signal and the comparison result signal, perform a logic operation on the short calibration enable signal and the comparison result signal, and output a mode selection signal; The calibration circuit (14) is configured to perform calibration processing on the resistance control code using one of a short calibration mode and a full calibration mode based on the mode selection signal when receiving the calibration start signal, and to lock the resistance control code after the calibration processing is completed; The register circuit (11) and the comparison circuit (12) are both connected to the logic circuit (13), and the logic circuit (13) is connected to the calibration circuit (14).
2. The resistance calibration circuit according to claim 1, wherein: The comparison circuit (12) is specifically configured to output the comparison result signal in a first state when the last locked value of the resistance control code is different from the initial default value; Alternatively, when the last locked value of the resistance control code is the same as the initial default value, the comparison result signal in the second state is output, and the logic potentials of the first state and the second state are different.
3. The resistance calibration circuit according to claim 1 or 2, wherein: The logic circuit (13) is specifically configured to output the mode selection signal in a fifth state when the short calibration enable signal is in a fourth state; or, when the short calibration enable signal is in a third state and the comparison result signal is in a first state, output the mode selection signal in a sixth state; or, when the short calibration enable signal is in a third state and the comparison result signal is in a second state, output the mode selection signal in a fifth state; Among them, the logic potentials of the third state and the fourth state are different, the short calibration enable signal in the third state indicates that the short calibration mode is enabled, the short calibration enable signal in the fourth state indicates that the short calibration mode is not enabled, and the logic potentials of the fifth state and the sixth state are different.
4. The resistance calibration circuit according to any one of claims 1 to 3, wherein: The calibration circuit (14) is specifically configured to, upon receiving a calibration start signal, calibrate the resistance control code using the full calibration mode if the mode selection signal is in a fifth state; or calibrate the resistance control code using the short calibration mode if the mode selection signal is in a sixth state; After the calibration process is completed, a new lock value of the resistance control code, a change record signal and a calibration end signal are output; wherein the change record signal indicates whether the lock value of the resistance control code is changed.
5. The resistance calibration circuit according to claim 4, wherein: The resistance control code includes a pull-up control code and a pull-down control code, the initial default value includes a pull-up default value and a pull-down default value, and the calibration process includes a pull-up calibration process and a pull-down calibration process; In the short calibration mode, the starting point of the pull-up calibration process is the last locked value of the pull-up control code, and the starting point of the pull-down calibration process is the last locked value of the pull-down control code; In the full calibration mode, the starting point of the pull-up calibration process is the pull-up default value, and the starting point of the pull-down calibration process is the pull-down default value.
6. The resistance calibration circuit according to claim 5, wherein: The calibration circuit (14) comprises: A control code generating module (141), configured to generate the pull-up control code and the pull-down control code based on the mode selection signal; A resistance module (142), comprising a resistance unit (1421), configured to control the resistance value of the resistance unit (1421) according to the pull-up control code and the pull-down control code, and generate and output a resistance comparison signal; wherein the resistance comparison signal indicates the magnitude relationship between the resistance value of the resistance unit (1421) and a standard resistance value; A control module (143) is configured to determine whether the pull-up calibration process or the pull-down calibration process is completed based on the resistance comparison signal; and output the calibration end signal and the change record signal after the pull-up calibration process and the pull-down calibration process are completed; The control code generating module (141) is further configured to latch the resistance control code and generate a new locked value of the resistance control code when receiving a latch command signal; wherein the latch command signal is generated after both the pull-up calibration process and the pull-down calibration process are completed; The control code generating module (141) is connected to the resistance module (142), and the resistance module (142) is connected to the control module (143).
7. The resistance calibration circuit according to claim 6, wherein: The control code generating module (141) comprises: A selection module (1411) is configured to receive the mode selection signal, the pull-up default value, the pull-down default value, the last locked value of the pull-up control code, and the last locked value of the pull-down control code; if the mode selection signal is in the fifth state, the pull-up default value is output as the pull-up initial value, and the pull-down default value is output as the pull-down initial value; or, if the mode selection signal is in the sixth state, the last locked value of the pull-up control code is output as the pull-up initial value, and the last locked value of the pull-down control code is output as the pull-down initial value; The adjustment module (1412) is connected to the selection module (1411) and is configured to generate the pull-up control code and the pull-down control code based on the pull-up initial value and the pull-down initial value; and, in the process of the pull-down calibration processing, adjust the pull-down control code; in the process of the pull-up calibration processing, adjust the pull-up control code.
8. The resistance calibration circuit according to claim 7, wherein: The control module (143) is further configured to receive the calibration start signal, and output a pull-down enable signal and a pull-up enable signal based on the calibration start signal; wherein a valid pull-down enable signal indicates that a pull-down calibration process is to be performed, and a valid pull-up enable signal indicates that a pull-up calibration process is to be performed, and at most only one of the pull-down enable signal and the pull-up enable signal is valid; The resistance module (142) further includes a reference unit and a comparator (1423); The resistance unit (1421) is configured to receive the pull-up control code and the pull-down control code, and output a first voltage signal; The reference unit is connected to the control module (143) and is configured to output a reference voltage signal based on the pull-down enable signal and the pull-up enable signal; The comparator (1423) is connected to the resistance unit (1421) and the reference unit, and is configured to receive the first voltage signal and the reference voltage signal, and output the resistance comparison signal in the seventh state if the first voltage signal is greater than the reference voltage signal; or output the resistance comparison signal in the eighth state if the first voltage signal is not greater than the reference voltage signal; the seventh state and the eighth state have different logical potentials.
9. The resistance calibration circuit according to claim 7 or 8, wherein: The calibration circuit (14) further includes a clock module (144); The clock module (144) is configured to output a calibration clock signal based on the calibration start signal; The adjustment module (1412) is further configured to receive the calibration clock signal and the resistance comparison signal; In the process of the pull-up calibration process, the pull-up control code is added or subtracted based on the resistance comparison signal in each clock cycle of the calibration clock signal; in the process of the pull-down calibration process, the pull-down control code is added or subtracted based on the resistance comparison signal in each clock cycle of the calibration clock signal; The control module (143) is further configured to record the change of the resistance comparison signal in each clock cycle of the calibration clock signal; in the process of the pull-down calibration processing, if the change of the resistance comparison signal meets the target end condition, then the pull-down calibration is confirmed to be completed; in the process of the pull-up calibration processing, if the change of the resistance comparison signal meets the target end condition, then the pull-up calibration is confirmed to be completed; The control code generating module (141) and the control module (143) are both connected to the clock module (144), and the control code generating module (141) is also connected to the resistance module (142).
10. The resistance calibration circuit according to claim 9, wherein: The control module (143) is further configured to output an internal end signal after both the pull-up calibration process and the pull-down calibration process are completed; The clock module (144) is further configured to receive the internal end signal, and based on the internal end signal, stop outputting the calibration clock signal.
11. The resistance calibration circuit according to claim 9 or 10, wherein: The control module (143) is specifically configured to receive the mode selection signal; and determine one of a preset full calibration end condition and a preset short calibration end condition as the target end condition based on the mode selection signal.
12. The resistance calibration circuit according to any one of claims 8 to 11, wherein: In the short calibration mode, the pull-down calibration process takes 2 clock cycles; accordingly, when the mode selection signal is in the sixth state: The adjustment module (1412) is specifically configured to, in the first clock cycle of the pull-down calibration process, if the resistance comparison signal is in the seventh state, perform a subtraction operation on the internal bit of the pull-down control code; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal is still in the seventh state, continue to perform a subtraction operation on the internal bit of the pull-down control code; Alternatively, in the first clock cycle of the pull-down calibration process, if the resistance comparison signal is in the seventh state, a subtraction operation is performed on the internal bit of the pull-down control code; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal is in the eighth state, a plus operation is performed on the internal bit of the pull-down control code; Alternatively, in the first clock cycle of the pull-down calibration process, if the resistance comparison signal is in the eighth state, the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal is still in the eighth state, the internal bit of the pull-down control code is continuously incremented by one; Alternatively, in the first clock cycle of the pull-down calibration process, if the resistance comparison signal is in the eighth state, the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the resistance comparison signal is in the seventh state, the internal bit of the pull-down control code is decremented by one; The internal bit of the pull-down control code refers to the minimum bit of the pull-down control code, and the internal bit of the pull-down control code is not used by the user. The account is open.
13. The resistance calibration circuit according to any one of claims 8 to 12, wherein: In the short calibration mode, the pull-up calibration process takes 2 clock cycles; accordingly, when the mode selection signal is in the sixth state: The adjustment module (1412) is specifically configured to, in the first clock cycle of the pull-up calibration process, if the resistance comparison signal is in the seventh state, perform a subtraction operation on the internal bit of the pull-up control code; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal is still in the seventh state, continue to perform a subtraction operation on the internal bit of the pull-up control code; Alternatively, in the first clock cycle of the pull-up calibration process, if the resistance comparison signal is in the seventh state, a subtraction operation is performed on the internal bit of the pull-up control code; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal is in the eighth state, a plus operation is performed on the internal bit of the pull-up control code; Alternatively, in the first clock cycle of the pull-up calibration process, if the resistance comparison signal is in the eighth state, then the internal bit of the pull-up control code is incremented by one; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal is still in the eighth state, then the internal bit of the pull-up control code is continuously incremented by one; Alternatively, in the first clock cycle of the pull-up calibration process, if the resistance comparison signal is in the eighth state, then the internal bit of the pull-up control code is incremented by one; in the second clock cycle of the pull-up calibration process, if the resistance comparison signal is in the seventh state, then the internal bit of the pull-up control code is decremented by one; The internal bit of the pull-up control code refers to the smallest bit of the pull-up control code, and the internal bit of the pull-up control code is not open to the user.
14. The resistance calibration circuit according to any one of claims 1 to 13, wherein: The first state, the third state, the fifth state, and the seventh state refer to high level states, and the second state, the fourth state, the sixth state, and the eighth state refer to low level states; The logic circuit (13) comprises a NAND gate, and two input ends of the NAND gate receive the short calibration enable signal and the comparison result signal respectively.
15. A resistance calibration method, the method comprising: When the short calibration mode is not enabled, the resistance control code is calibrated using the full calibration mode; Alternatively, when the short calibration mode is enabled, if the last locked value of the resistance control code is different from the initial default value, the resistance control code is calibrated using the short calibration mode; or, when the short calibration mode is enabled, if the last locked value of the resistance control code is the same as the initial default value, the resistance control code is calibrated using the full calibration mode; After the calibration process is completed, the resistance control code is locked; wherein the resistance control code is used to adjust the resistance of the resistance unit.
16. The resistance calibration method according to claim 15, wherein: The resistance control code includes a pull-down control code, and the pull-down control code is used to adjust the pull-down resistance of the resistor unit; the calibration process includes a pull-down calibration process, and the pull-down calibration process occupies 2 clock cycles; The method of calibrating the resistance control code using the short calibration mode includes: In the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is greater than the standard resistance, the internal bit of the pull-down control code is subtracted by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is still greater than the standard resistance, If the standard resistance value is reached, the internal bit of the pull-down control code is further subtracted by one; Alternatively, in the first clock cycle of the pull-down calibration process, if the pull-down resistance value of the resistor unit is greater than the standard resistance value, a subtraction operation is performed on the internal bit of the pull-down control code; in the second clock cycle of the pull-down calibration process, if the pull-down resistance value of the resistor unit is less than the standard resistance value, an addition operation is performed on the internal bit of the pull-down control code; Alternatively, in the first clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is less than the standard resistance, the internal bit of the pull-down control code is incremented by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance of the resistor unit is still less than the standard resistance, the internal bit of the pull-down control code is continuously incremented by one; Alternatively, in the first clock cycle of the pull-down calibration process, if the pull-down resistance value of the resistor unit is less than the standard resistance value, the internal bit of the pull-down control code is increased by one; in the second clock cycle of the pull-down calibration process, if the pull-down resistance value of the resistor unit is greater than the standard resistance value, the internal bit of the pull-down control code is decreased by one; The internal bit of the pull-down control code refers to the smallest bit of the pull-down control code, and the internal bit of the pull-down control code is not open to the user.
17. The resistance calibration method according to claim 15 or 16, wherein: The resistance control code further includes a pull-up control code, and the pull-up control code is used to adjust the pull-up resistance of the resistor unit; the calibration process further includes a pull-up calibration process, and the pull-up calibration process occupies 2 clock cycles; The calibrating the resistance control code using the short calibration mode also includes: In the first clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is less than the standard resistance value, the internal bit of the pull-up control code is subtracted by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is still less than the standard resistance value, the internal bit of the pull-up control code is further subtracted by one; Alternatively, in the first clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is less than the standard resistance value, a subtraction operation is performed on the internal bit of the pull-up control code; in the second clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is greater than the standard resistance value, a plus operation is performed on the internal bit of the pull-up control code; Alternatively, in the first clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is greater than the standard resistance value, the internal bit of the pull-up control code is added by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is greater than the standard resistance value, the internal bit of the pull-up control code is continued to be added by one; Alternatively, in the first clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is greater than the standard resistance value, the internal bit of the pull-up control code is increased by one; in the second clock cycle of the pull-up calibration process, if the pull-up resistance value of the resistor unit is less than the standard resistance value, the internal bit of the pull-up control code is decreased by one; The internal bit of the pull-up control code refers to the smallest bit of the pull-up control code, and the internal bit of the pull-up control code is not open to the user.
18. A memory, comprising the resistance calibration circuit (10) according to any one of claims 1 to 14.
Citation Information
Patent Citations
Semiconductor memory device with ZQ calibration circuit
CN101127235A
Impedance calibration circuit of semiconductor memory device, semiconductor memory device and method of operating the same
CN107393576A
ZQ calibration circuit and method for multi-particle packaged DRAM chip
CN110993010A
Semiconductor device, operating method thereof, and semiconductor system
CN114627913A
Resistance calibration circuit, resistance calibration method and memory
CN115910142A
