Impedance Calibration Circuit
The impedance calibration circuit addresses the challenge of timely calibration completion by using multiple stop signals to manage the calibration process effectively, ensuring compliance with design specifications and reducing power consumption.
Patent Information
- Application Number
- JP2022572751
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-07-27
- Filing Date
- 2022-08-16
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing impedance calibration circuits in semiconductor devices fail to complete calibration within the required time frame, leading to potential data distortion and increased power consumption due to impedance mismatch issues.
An impedance calibration circuit with a calibration module, detection module, and control module that utilizes multiple stop signals to timely stop the calibration process, ensuring compliance with design specifications and reducing power consumption.
The proposed solution allows for timely completion of impedance calibration, meeting design requirements and reducing power consumption while improving the reliability of the calibration process.
Smart Images

Figure 2024531851000001
Abstract
Description
[Technical field]
[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application filed with the China Patent Office on July 27, 2022, bearing application number 202210893495.X and entitled "Impedance Calibration Circuit," the entire contents of which are incorporated herein by reference.
[0002] This application relates to the field of integrated circuits, and more particularly to impedance calibration circuits. [Background technology]
[0003] As the operating speed of electronic devices increases, the amplitude of signals transmitted between semiconductor memories in the electronic devices decreases, minimizing the delay time required for signal transmission. However, as the signal amplitude of the transmission signal decreases, the signal transmission becomes more susceptible to external noise. If there is impedance mismatch in the interface, the external noise affects the reflection characteristics of the output signal. Impedance mismatch occurs due to external noise or changes in power supply voltage, operating temperature, and manufacturing process. Impedance mismatch can distort data in semiconductor devices, making high-speed data transmission difficult. As a result, semiconductor devices that receive distorted data may experience set / hold failures or erroneous determination of signal levels.
[0004] To mitigate these shortcomings, memory devices may include on-die termination (ODT, also referred to as "on-chip termination resistor") that can be used to provide adjustable termination impedance values. For example, impedance mismatch can be reduced by adjusting the impedance value of the on-die termination when signals (e.g., commands, data, etc.) are provided to the memory device.
[0005] In high-speed dynamic random access memories (DRAMs), impedance calibration is usually performed periodically to adjust the impedance value of the on-die termination and to facilitate real-time maintenance and calibration of impedance matching, signal integrity and data window. Although integrated circuit design specifications require that an impedance calibration circuit complete calibration within a set time, existing impedance calibration circuits may not be able to complete calibration in a timely manner and therefore cannot meet the requirements. Summary of the Invention
[0006] The embodiments of the present disclosure provide an impedance calibration circuit that can complete calibration within a set time and meet the requirements of a design specification.
[0007] In order to solve the above problems, an embodiment of the present disclosure provides an impedance calibration circuit, which includes: a calibration module that receives a first calibration clock signal, performs impedance calibration based on the first calibration clock signal, and outputs a first stop signal when the calibration is completed; a first detection module that detects a calibration time of the impedance calibration circuit, and outputs a second stop signal when the calibration time reaches a predetermined value; and a calibration control module that receives the first stop signal and the second stop signal, and outputs the first calibration clock signal, and the calibration control module stops outputting the first calibration clock signal when it receives the first stop signal or the second stop signal.
[0008] In one embodiment, the calibration control module includes a first logic gate circuit, which receives the first stop signal and the second stop signal, performs logical operation processing, and outputs a first control signal, and the calibration control module stops outputting the first calibration clock signal based on the first control signal.
[0009] In one embodiment, the first logic gate circuit includes an OR gate.
[0010] In one embodiment, the calibration module includes a first calibration unit, which performs impedance calibration on the first calibration unit when it receives the first calibration clock signal, and the first calibration unit includes: a first resistor unit having a first terminal connected to a first power supply terminal, a reference resistor having a first terminal connected to a second terminal of the first resistor unit and a second terminal connected to a second power supply terminal, a first comparison unit that compares a second terminal voltage of the first resistor unit with a first reference voltage and outputs a first comparison signal, and a first detection unit that uses the first comparison signal as an input signal, records a change in the first comparison signal, and outputs the first stop signal when the change in the first comparison signal meets a predetermined condition.
[0011] In one embodiment, the first detection unit includes an odd number of flip-flops in a cascade and a second logic gate circuit, a first output terminal of an odd-numbered flip-flop is connected to an input terminal of the second logic gate circuit, and a second output terminal of an even-numbered flip-flop is connected to an input terminal of the second logic gate circuit, and outputs the first stop signal after logical processing by the second logic gate circuit.
[0012] In one embodiment, the first detection unit includes an odd number of flip-flops cascade and a second logic gate circuit, where second output terminals of odd-numbered flip-flops are connected to input terminals of the second logic gate circuit and first output terminals of even-numbered flip-flops are connected to input terminals of the second logic gate circuit, and outputs the first stop signal after logical processing by the second logic gate circuit.
[0013] In one embodiment, the first calibration unit further includes a first calibration code generating unit for updating a first calibration code based on the first comparison signal, and the first calibration code is used to control an equivalent resistance value of the first resistance unit.
[0014] In one embodiment, the first detection module detects a calibration time of the first calibration unit, and outputs the second stop signal when the calibration time of the first calibration unit reaches a predetermined value.
[0015] In one embodiment, the calibration control module further outputs a second calibration clock signal, and the calibration module further receives the second calibration clock signal, and upon receiving the first stop signal or the second stop signal, the calibration control module stops outputting the first calibration clock signal and starts outputting the second calibration clock signal.
[0016] In one embodiment, the calibration module further includes a second calibration unit, which performs impedance calibration on the second calibration unit when receiving the second calibration clock signal, the second calibration unit including a second resistor unit having a second terminal connected to a second power supply terminal and a third resistor unit having a first terminal connected to the first power supply terminal and a second terminal connected to a first terminal of the second resistor unit, the first calibration code further including a third resistor unit used to control an equivalent resistance value of the third resistor unit, a second comparison unit comparing a first terminal voltage of the second resistor unit with a second reference voltage and outputting a second comparison signal, and a second detection unit taking the second comparison signal as an input signal, recording a change in the second comparison signal, and outputting a third stop signal when the change in the second comparison signal meets a predetermined condition, and the calibration control module stops outputting the second calibration clock signal when receiving the third stop signal or the second stop signal.
[0017] In one embodiment, the first detection module further detects a calibration time of the second calibration unit, and outputs the second stop signal when the calibration time of the second calibration unit reaches a predetermined value.
[0018] In one embodiment, the impedance calibration circuit further includes a clock signal generation module that outputs an initial clock signal, and when the calibration control module receives the initial clock signal, it outputs the first calibration clock signal and the second calibration clock signal, and when the calibration module performs impedance calibration on the second calibration unit, when the calibration control module receives the third stop signal or the second stop signal, it outputs a stop signal to the clock signal generation module, causing the clock signal generation module to stop outputting the initial clock signal.
[0019] In one embodiment, the first detection module includes a counting module, and when the calibration module performs impedance calibration on the first calibration unit and / or when the calibration module performs impedance calibration on the second calibration unit, the counting module counts the initial clock signal and outputs the second stop signal when the count value reaches a predetermined value.
[0020] In one embodiment, the predetermined value is less than or equal to 40 clock periods.
[0021] In one embodiment, the second calibration unit further includes a second calibration code generating unit for updating a second calibration code based on the second comparison signal, and the second calibration code is used to control an equivalent resistance value of the second resistance unit.
[0022] The impedance calibration circuit provided by the embodiment of the present disclosure provides a second stop signal, and the calibration control module, in addition to stopping the output of the first calibration clock signal based on the first stop signal, also stops the output of the first calibration clock signal based on the second stop signal. The second stop signal is generated when the calibration time reaches a predetermined value, and when the calibration time of the impedance calibration circuit reaches the predetermined value, if the first stop signal is still an invalid signal, the impedance calibration circuit stops the output of the first calibration clock signal based on the second stop signal, and when the calibration time of the impedance calibration circuit reaches the predetermined value or before it reaches the predetermined value, if the first stop signal is an valid signal, the impedance calibration circuit stops the output of the first calibration clock signal based on the first stop signal, thereby timely stopping the calibration of the impedance calibration circuit, making the calibration time of the impedance calibration circuit meet the design requirement, effectively reducing the power consumption, and improving the reliability of the impedance calibration circuit. [Brief description of the drawings]
[0023] [Figure 1] FIG. 2 is a schematic diagram of an impedance calibration circuit according to one embodiment of the present disclosure. [Diagram 2] FIG. 2 is a schematic diagram of an impedance calibration circuit according to another embodiment of the present disclosure. [Diagram 3] FIG. 4 is a schematic diagram of a first comparison unit according to another embodiment of the present disclosure. [Figure 4A] FIG. 2 is a schematic diagram of a first detection unit according to another embodiment of the present disclosure. [Figure 4B] FIG. 13 is a schematic diagram of a first detection unit according to yet another embodiment of the present disclosure. [Diagram 5] FIG. 13 is a schematic diagram of an impedance calibration circuit according to yet another embodiment of the present disclosure. [Figure 6] FIG. 13 is a schematic diagram of an impedance calibration circuit according to yet another embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0024] Hereinafter, specific embodiments of the impedance calibration circuit provided by the embodiments of the present disclosure will be described in detail with reference to the drawings.
[0025] FIG. 1 is a schematic diagram of an impedance calibration circuit according to an embodiment of the present disclosure. Referring to FIG. 1, the impedance calibration circuit includes a calibration module 10, a first detection module 20, and a calibration control module 30. The calibration module 10 receives a first calibration clock signal Pclk, performs impedance calibration based on the first calibration clock signal Pclk, and outputs a first stop signal Stop1 when the calibration is completed. The first detection module 20 detects the calibration time of the impedance calibration circuit, and outputs a second stop signal Stop2 when the calibration time reaches a predetermined value. The calibration control module 30 receives the first stop signal Stop1 and the second stop signal Stop2, and outputs the first calibration clock signal Pclk. When the calibration control module 30 receives the first stop signal Stop1 or the second stop signal Stop2, it stops outputting the first calibration clock signal Pclk.
[0026] There are cases where the calibration module 10 cannot output a valid first stop signal Stop1 in a timely manner, so that the impedance calibration circuit cannot stop the output of the first calibration clock signal Pclk in a timely manner, i.e., the calibration cannot be stopped in a timely manner, and the calibration time of the impedance calibration circuit exceeds the design requirement, cannot meet the demand, and consumes a lot of power. Therefore, the impedance calibration circuit provided by the embodiment of the present disclosure further provides a second stop signal Stop2, and the calibration control module 30, in addition to stopping the output of the first calibration clock signal Pclk according to the first stop signal Stop1, also stops the output of the first calibration clock signal Pclk according to the second stop signal Stop2. The second stop signal Stop2 is generated when the calibration time reaches a predetermined value. When the calibration time of the impedance calibration circuit reaches the predetermined value, if the first stop signal Stop1 is still an invalid signal, the impedance calibration circuit stops the output of the first calibration clock signal Pclk based on the second stop signal Stop2; when the calibration time of the impedance calibration circuit reaches the predetermined value or before it reaches the predetermined value, if the first stop signal Stop1 is a valid signal, the impedance calibration circuit stops the output of the first calibration clock signal Pclk based on the first stop signal Stop1, thereby stopping the calibration of the impedance calibration circuit in a timely manner, allowing the calibration time of the impedance calibration circuit to meet the design requirements, effectively reducing the power consumption and improving the reliability of the impedance calibration circuit.
[0027] FIG. 2 is a schematic diagram of an impedance calibration circuit according to another embodiment of the present disclosure. Referring to FIG. 2, in this embodiment, the first detection module 20 includes a counting module 21, which counts the first calibration clock signal Pclk, and outputs a second stop signal Stop2 when the count value reaches a predetermined value. That is, in this embodiment, the first detection module 20 obtains the calibration time of the impedance calibration circuit by counting the first calibration clock signal Pclk, and the count value is the number of periods of the first calibration clock signal Pclk. In another embodiment, for example, referring to FIG. 6, the first detection module 20 obtains the calibration time of the impedance calibration circuit by counting the initial clock signal CLK-0 of the clock signal generating module 40, and outputs a second stop signal Stop2 when the count value reaches a predetermined value, where the count value is the number of periods of the initial clock signal CLK-0.
[0028] The predetermined value can be determined according to design requirements, for example, in one embodiment, if the calibration time of the impedance calibration circuit is required to not exceed 40 clock periods, the predetermined value is less than or equal to 40 clock periods of the first calibration clock signal Pclk. For example, in this embodiment, when the predetermined value is 40 clock periods of the first calibration clock signal Pclk, the counting module 21 counts the clock periods of the first calibration clock signal Pclk, and outputs the second stop signal Stop2 when the counting value is 40, that is, when the counting value is 40, the logic level of the output signal of the counting module 21 becomes high level, that is, the logic level of the second stop signal Stop2 becomes high level, the second stop signal Stop2 is a valid signal, and the calibration control module 30 can stop the output of the first calibration clock signal Pclk based on the second stop signal Stop2; in other cases, the logic level of the second stop signal Stop2 output by the counting module 21 is low level and is an invalid signal, and the calibration control module 30 cannot stop the output of the first calibration clock signal Pclk based on the second stop signal Stop2.
[0029] As can be appreciated, in some other embodiments, the predetermined value may be other numerical values less than design requirements, for example, the predetermined value may be less than 40 clock periods, to ensure that the impedance calibration circuit can stop outputting the calibration clock signal in a timely manner.
[0030] In some embodiments, the calibration control module 30 can achieve the purpose of stopping the output of the first calibration clock signal Pclk through logic operation upon receiving the first stop signal Stop1 or the second stop signal Stop2. Specifically, the calibration control module 30 includes a first logic gate circuit 31, which receives the first stop signal Stop1 and the second stop signal Stop2, performs logic operation processing, and outputs a first control signal Ctr1, and the calibration control module 30 stops the output of the first calibration clock signal Pclk according to the first control signal Ctr1.
[0031] For example, in this embodiment, the first logic gate circuit 31 includes an OR gate, the first stop signal Stop1 and the second stop signal Stop2 are input signals of the OR gate, the OR gate outputs a first control signal Ctr1, and the calibration control module 30 stops the output of the first calibration clock signal Pclk according to the first control signal Ctr1. When the logic level of the first stop signal Stop1 or the second stop signal Stop2 is high (i.e., the first stop signal Stop1 is valid or the second stop signal Stop2 is valid), the logic level of the first control signal Ctr1 is high, and the calibration control module 30 stops the output of the first calibration clock signal Pclk, and when the logic levels of the first stop signal Stop1 and the second stop signal Stop2 are both low (i.e., the first stop signal Stop1 and the second stop signal Stop2 are both invalid), the calibration control module continues to output the first calibration clock signal Pclk.
[0032] In this embodiment, the calibration module 10 includes a first calibration unit 11, and the calibration module 10 performs impedance calibration on the first calibration unit 11 when it receives the first calibration clock signal Pclk. The first detection module 20 further detects the calibration time of the first calibration unit 11, and outputs a second stop signal Stop2 when the calibration time of the first calibration unit 11 reaches a predetermined value. Specifically, the counting module 21 counts the first calibration clock signal Pclk, and outputs a second stop signal Stop2 when the count value reaches a predetermined value.
[0033] The first calibration unit 11 includes a first resistor unit 111 , a reference resistor R 1 , a first comparison unit 112 , and a first detection unit 113 .
[0034] The first terminal of the first resistor unit 111 is connected to the first power supply terminal VDD, the first terminal of the reference resistor R1 is connected to the second terminal of the first resistor unit 111, and the second terminal of the reference resistor R1 is connected to the second power supply terminal VSS. The first comparison unit 112 compares the second terminal voltage Vp1 of the first resistor unit 111 with the first reference voltage Vref1 and outputs a first comparison signal Comp1. The first detection unit 113 takes the first comparison signal Comp1 as an input signal, records the change of the first comparison signal Comp1, and outputs a first stop signal Stop1 when the change of the first comparison signal Comp1 meets a predetermined condition. The change of the first comparison signal Comp1 refers to the change of the logic level of the first comparison signal Comp1. The predetermined condition may include whether the logic level of the first comparison signal Comp1 continues to change from the second value to the first value after changing from the first value to the second value. In some embodiments, the first value may represent a logic high level, and its true value may be "1", the second value may represent a logic low level, and its true value may be "0", and in some other embodiments, the first value may represent a logic low level, and its true value may be "0", and the second value may represent a logic high level, and its true value may be "1". If the logic level of the first comparison signal Comp1 changes from the first value to the second value and then continues to change from the second value to the first value, that is, if the logic level of the first comparison signal Comp1 jitters between a high level and a low level, the change situation of the first comparison signal Comp1 meets a predetermined condition, and at this time, the first detection unit 113 outputs a first stop signal Stop1.
[0035] Here, in this embodiment, the first resistor unit 111 may include a plurality of MOS (Metal-Oxide-Semiconductor) transistors connected in parallel, and the MOS transistors include, but are not limited to, PMOS (positive channel MOS) transistors. <n:0>3, the MOS transistor is adjusted to be conductive or off, and the equivalent resistance value of the first resistor unit 111 is controlled, and the second terminal voltage Vp1 of the first resistor unit 111 is changed according to the change in the equivalent resistance value of the first resistor unit 111. The reference resistor R1 is a resistor with a precise fixed resistance value, for example, 240 ohms, and the equivalent resistance value of the first resistor unit 111 can be calibrated based on the reference resistor R1. In this embodiment, the first reference voltage Vref1 can be set to VDD / 2, and in other examples, the first reference voltage Vref1 can be set to other values.
[0036] In this embodiment, the first comparison unit 112 may be a comparator. Referring to FIG. 3, the first comparison unit 112 is a comparator, the positive input terminal of the comparator receives the first reference voltage Vref1, and the negative input terminal is connected to the first resistor unit 111 and receives the second terminal voltage Vp1 of the first resistor unit 111. The comparator outputs a first comparison signal Comp1 in response to the second terminal voltage Vp1 of the first resistor unit 111 and the first reference voltage Vref1. When the second terminal voltage Vp1 of the first resistor unit 111 is smaller than the first reference voltage Vref1, the logic level of the first comparison signal Comp1 output from the output terminal of the comparator is high level, and when the second terminal voltage Vp1 of the first resistor unit 111 is larger than the first reference voltage Vref1, the logic level of the first comparison signal Comp1 output from the output terminal of the comparator is low level.
[0037] The first detection unit 113 takes the first comparison signal Comp1 as an input signal and outputs the first stop signal Stop1. That is, the first stop signal Stop1 is generated based on the first comparison signal Comp1. When the sensitivity of the first comparison unit 112 is low, the first comparison unit 112 may be unable to output the first comparison signal Comp1 or may output an incorrect first comparison signal (the second terminal voltage Vp1 of the first resistor unit 111 approaches the first reference voltage Vref1, and the first comparison unit 112 may be unable to distinguish between the magnitudes of the two and unable to output a valid first comparison signal Comp1). As a result, the impedance calibration circuit may be unable to generate the first stop signal Stop1 in a timely manner, and the impedance calibration circuit may be unable to stop the calibration in a timely manner. As described above, in addition to stopping the impedance calibration process based on the first stop signal Stop1, the calibration control module 30 also stops the impedance calibration process based on the second stop signal Stop2, thereby stopping the calibration of the impedance calibration circuit in a timely manner, ensuring that the calibration time of the impedance calibration circuit meets the design requirements, effectively reducing the power consumption, and improving the reliability of the impedance calibration circuit.
[0038] As an example, the embodiment of the present disclosure provides a configuration of the first detection unit 113. The first detection unit 113 includes an odd number of flip-flops cascade and a second logic gate circuit, where the first output terminals of the odd-numbered flip-flops are connected to the input terminals of the second logic gate circuit, and the second input terminals of the even-numbered flip-flops are connected to the input terminals of the second logic gate circuit, and outputs a first stop signal after logic processing by the second logic gate circuit.
[0039] Specifically, refer to FIG. 4A, which is a schematic diagram of a first detection unit 113 according to an embodiment of the present disclosure, in this embodiment, the first detection unit 113 includes a flip-flop D11, a flip-flop D12, a flip-flop D13, and a second logic gate circuit 113A, and the flip-flop D11, the flip-flop D12, and the flip-flop D13 are cascaded. The first output terminal Q11 of the flip-flop D11 and the first output terminal Q13 of the flip-flop D13 are connected to the input terminal of the second logic gate circuit 113A, and the second output terminal Qn12 of the flip-flop D12 is connected to the input terminal of the second logic gate circuit 113A, and after the logic processing of the second logic gate circuit 113A, a first stop signal Stop1 is output. In this embodiment, the second logic gate circuit 113A includes a logical AND gate AND-1. The output signal of the first output terminal Q11 of the flip-flop D11, the output signal of the first output terminal Q13 of the flip-flop D13, and the output signal of the second output terminal Qn12 of the flip-flop D12 are subjected to an AND logic operation by the second logic gate circuit 113A and then output as the first stop signal Stop1. That is, when the logic levels of the output signal of the first output terminal Q11 of the flip-flop D11, the output signal of the first output terminal Q13 of the flip-flop D13, and the output signal of the second output terminal Qn12 of the flip-flop D12 are all high, the logic level of the first stop signal Stop1 output by the first detection unit 113 is a high-level valid signal, and the calibration control module 30 can stop the output of the first calibration clock signal Pclk based on the first stop signal Stop1; otherwise, the logic level of the first stop signal Stop1 output by the first detection unit 113 is a low-level invalid signal, and the calibration control module 30 cannot stop the output of the first calibration clock signal Pclk based on the first stop signal Stop1.
[0040] The embodiment of the present disclosure further provides another configuration of the first detection unit 113. The first detection unit 113 includes an odd number of flip-flops cascade and a second logic gate circuit, the second output terminals of the odd-numbered flip-flops are connected to the input terminals of the second logic gate circuit, and the first input terminals of the even-numbered flip-flops are connected to the input terminals of the second logic gate circuit, and outputs a first stop signal after logic processing by the second logic gate circuit.
[0041] Specifically, refer to FIG. 4B, which is a schematic diagram of a first detection unit 113 according to another embodiment of the present disclosure, in this embodiment, the first detection unit 113 includes a flip-flop D11, a flip-flop D12, a flip-flop D13, and a second logic gate circuit 113A, and the flip-flop D11, the flip-flop D12, and the flip-flop D13 are cascaded. The second output terminal Qn11 of the flip-flop D11 and the second output terminal Qn13 of the flip-flop D13 are connected to the input terminal of the second logic gate circuit 113A, and the first output terminal Q12 of the flip-flop D12 is connected to the input terminal of the second logic gate circuit 113A, and after the logic processing of the second logic gate circuit 113A, a first stop signal Stop1 is output. In this embodiment, the second logic gate circuit 113A includes a logical AND gate AND-1. The output signal of the second output terminal Qn11 of the flip-flop D11, the output signal of the second output terminal Qn13 of the flip-flop D13, and the output signal of the first output terminal Q12 of the flip-flop D12 are subjected to an AND logic operation by the second logic gate circuit 113A and then output as the first stop signal Stop1. That is, when the logic levels of the output signal of the second output terminal Qn11 of the flip-flop D11, the output signal of the second output terminal Qn13 of the flip-flop D13, and the output signal of the first output terminal Q12 of the flip-flop D12 are all high, the logic level of the first stop signal Stop1 output by the first detection unit 113 is a high-level valid signal, and the calibration control module 30 can stop the output of the first calibration clock signal Pclk based on the first stop signal Stop1; otherwise, the logic level of the first stop signal Stop1 output by the first detection unit 113 is a low-level invalid signal, and the calibration control module 30 cannot stop the output of the first calibration clock signal Pclk based on the first stop signal Stop1.
[0042] In the above example, the first detection unit 113 includes a three flip-flop cascade, but in other embodiments, the first detection unit 113 may further include a five flip-flop cascade or other odd number of flip-flop cascades, all of which are within the disclosure scope of the embodiments of the present disclosure.
[0043] In some embodiments, the first calibration unit further includes a first calibration code generating unit that updates the first calibration code based on the first comparison signal, and the first calibration code is used to control an equivalent resistance value of the first resistance unit.
[0044] Specifically, still referring to FIG. 2, the first calibration unit 11 further includes a first calibration code generating unit 114, which generates a first calibration code Pcode based on the first comparison signal Comp1. <n:0>Update the first calibration code Pcode <n:0>is used to control the equivalent resistance value of the first resistor unit 111. In some embodiments, the first calibration code generation unit 114 may be a counter.
[0045] According to the difference in the magnitude relationship between the second terminal voltage Vp1 of the first resistor unit 111 and the first reference voltage Vref1, the first comparison signal Comp1 can be an upward signal or a downward signal. For example, when the second terminal voltage Vp1 of the first resistor unit 111 is smaller than the first reference voltage Vref1, the first comparison signal Comp1 is a downward signal, and when the second terminal voltage Vp1 of the first resistor unit 111 is larger than the first reference voltage Vref1, the first comparison signal Comp1 is an upward signal. When the first comparison signal Comp1 is an upward signal, the count value of the first calibration code generation unit 114 is incremented by 1 to generate the first calibration code Pcode. <n:0>and outputs the first calibration code Pcode <n:0>and then reduce the equivalent resistance of the first resistor unit 111 based on the first reference voltage Vref1, and further reduce the second terminal voltage Vp1 of the first resistor unit 111 until the second terminal voltage Vp1 of the first resistor unit 111 is equal to the first reference voltage Vref1. When the first comparison signal Comp1 is a down signal, subtract 1 from the count value of the first calibration code generation unit 114, and generate the first calibration code Pcode <n:0>and outputs the first calibration code Pcode <n:0>and further increasing the second terminal voltage Vp1 of the first resistor unit 111 until the second terminal voltage Vp1 of the first resistor unit 111 is equal to the first reference voltage Vref1.
[0046] The impedance calibration circuit calibration control module 30 provided by the embodiment of the present disclosure not only stops the output of the first calibration clock signal Pclk based on the first stop signal Stop1, but also stops the output of the first calibration clock signal Pclk based on the second stop signal Stop2, thereby stopping the calibration of the impedance calibration circuit in a timely manner, ensuring that the calibration time of the impedance calibration circuit meets the design requirements, effectively reducing the power consumption, and improving the reliability of the impedance calibration circuit.
[0047] In the above, the calibration module 10 only includes one calibration unit (first calibration unit 11) as an example, and when the calibration module 10 includes multiple calibration units, the multiple calibration units can perform calibration individually, for example, after one calibration unit completes calibration, the other calibration units can start calibration. Each calibration unit corresponds to one stop signal, so that after the calibration of the calibration unit is completed, the calibration control module 30 stops outputting the calibration clock signal corresponding to the calibration unit based on the stop signal.
[0048] Specifically, refer to FIG. 5, which is a schematic diagram of an impedance calibration circuit according to yet another embodiment of the present disclosure, in which the calibration control module 30 further outputs a second calibration clock signal Nclk. When the calibration control module 30 receives the first stop signal Stop1 or the second stop signal Stop2, it stops outputting the first calibration clock signal Pclk and starts outputting the second calibration clock signal Nclk, and when the calibration module 10 receives the second calibration clock signal Nclk, it performs impedance calibration on the second calibration unit 11. The calibration module 10 includes a first calibration unit 11 and a second calibration unit 12. After the first calibration unit 11 completes the calibration, the calibration control module 30 stops the output of the first calibration clock signal Pclk corresponding to the first calibration unit 11 based on the first stop signal Stop1 or the second stop signal Stop2, and after a certain time has elapsed, the calibration control module 30 starts the output of the second calibration clock signal Nclk corresponding to the second calibration unit 12, and the second calibration unit 12 can start impedance calibration. In some embodiments, after the first calibration unit 11 completes the calibration, the calibration control module 30 can immediately start the output of the second calibration clock signal Nclk corresponding to the second calibration unit 12 without waiting for a certain time.
[0049] When the second calibration unit 12 performs an impedance calibration process, the first detection module 20 starts to detect the calibration time of the second calibration unit 12, and outputs the second stop signal Stop2 when the calibration time reaches a predetermined value. That is, when the second calibration unit 12 starts the calibration process, the count module 21 of the first detection module 20 counts the second calibration clock signal Nclk, and outputs the second stop signal Stop2 when the count value reaches a predetermined value, the count value is the number of periods of the first calibration clock signal Pclk, and the predetermined value is less than or equal to 40 clock periods of the second calibration clock signal Nclk. In another embodiment, for example, referring to FIG. 6, the counting module 21 of the first detection module 20 obtains the calibration time of the impedance calibration circuit by counting the initial clock signal CLK-0 of the clock signal generating module 40, and outputs a second stop signal Stop2 when the counting value reaches a predetermined value, where the counting value is the number of periods of the initial clock signal CLK-0, and the predetermined value is less than or equal to 40 clock periods of the initial clock signal CLK-0.
[0050] The second calibration unit 12 can output a third stop signal Stop3, and the calibration control module 30 stops the output of the second calibration clock signal Nclk corresponding to the second calibration unit 12 according to the third stop signal Stop3 or the second stop signal Stop2.
[0051] 5, the calibration control module 30 includes a third logic gate circuit 32, which receives the second stop signal Stop2 and the third stop signal Stop3, performs logic operation processing, and outputs a second control signal Ctr2, and the calibration control module 30 stops the output of the second calibration clock signal Nclk according to the second control signal Ctr2. The configuration and operation principle of the third logic gate circuit 32 are the same as those of the first logic gate circuit 31, and therefore will not be described again.
[0052] Continuing to refer to FIG. 5, in this embodiment, the second calibration unit 12 includes a second resistance unit 121, a third resistance unit 125, a second comparison unit 122, and a second detection unit 123.
[0053] The second terminal of the second resistor unit 121 is connected to the first power supply terminal VDD, the first terminal of the third resistor unit 125 is connected to the first power supply terminal VDD, the second terminal of the third resistor unit 125 is connected to the first terminal of the second resistor unit 121, and the first calibration code Pcode <n:0>is further used to control the equivalent resistance value of the third resistor unit 125, the second comparing unit 122 compares the first terminal voltage Vp2 of the second resistor unit 121 with the second reference voltage Vref2 and outputs a second comparing signal Comp2, the second detecting unit 123 takes the second comparing signal Comp2 as an input signal, records the change of the second comparing signal Comp2, and outputs a third stop signal Stop3 when the change of the second comparing signal Comp2 meets a predetermined condition. The change of the second comparing signal Comp2 and the predetermined condition are the same as those of the first comparing signal Comp1, and the repeated description will be omitted here.
[0054] In this embodiment, the second resistor unit 121 may include a plurality of MOS transistors connected in parallel, and the MOS transistors include but are not limited to NMOS transistors. <n:0>The third resistor unit 125 has the same configuration as the first resistor unit 111 and is connected to a first calibration code Pcode <n:0>can be adopted to control the equivalent resistance value of the third resistor unit 125, and the second resistor unit 121 can be calibrated by the third resistor unit 125.
[0055] In this embodiment, the second comparison unit 122 may be a comparator, the configuration of which is the same as that of the first comparison unit 112, the positive input terminal of the comparator receives the second reference voltage Vref2, the negative input terminal of the comparator is connected to the second resistor unit 121 and receives the first terminal voltage Vp2 of the second resistor unit 121, and the comparator outputs a second comparison signal Comp2 in response to the first terminal voltage Vp2 of the second resistor unit 121 and the second reference voltage Vref2. When the first terminal voltage Vp2 of the second resistor unit 121 is smaller than the second reference voltage Vref2, the logic level of the second comparison signal Comp2 output by the output terminal of the comparator is high level, and when the first terminal voltage Vp2 of the second resistor unit 121 is larger than the second reference voltage Vref2, the logic level of the second comparison signal Comp2 output by the output terminal of the comparator is low level.
[0056] The second detection unit 123 takes the second comparison signal Comp2 as an input signal and outputs the third stop signal Stop3. That is, the third stop signal Stop3 is generated based on the second comparison signal Comp2. When the sensitivity of the second comparison unit 122 is low, the second comparison unit 122 may be unable to output the second comparison signal Comp2 or may output an incorrect second comparison signal (the first terminal voltage Vp2 of the second resistor unit 121 approaches the second reference voltage Vref2, and the second comparison unit 122 may be unable to distinguish between the magnitudes of the two and may be unable to output a valid second comparison signal Comp2). As a result, the impedance calibration circuit may be unable to generate the third stop signal Stop3 in a timely manner, and the impedance calibration circuit may be unable to stop the calibration in a timely manner. As described above, in addition to stopping the impedance calibration process based on the third stop signal Stop3, the calibration control module 30 also stops the impedance calibration process based on the second stop signal Stop2, thereby stopping the calibration of the impedance calibration circuit in a timely manner, ensuring that the calibration time of the impedance calibration circuit meets the design requirements, effectively reducing the power consumption, and improving the reliability of the impedance calibration circuit.
[0057] In one embodiment, referring to FIG. 4A and FIG. 4B, the configuration of the second detection unit 123 is the same as that of the first detection unit 113, and the repeated description is omitted here.
[0058] In this embodiment, the second calibration unit 12 further includes a second calibration code generating unit 124, which generates a second calibration code Ncode based on the second comparison signal Comp. <n:0>Update the second calibration code Ncode <n:0>is used to control the equivalent resistance value of the second resistor unit 121. In some embodiments, the second calibration code generation unit 124 may be a counter.
[0059] According to the difference in the magnitude relationship between the first terminal voltage Vp2 of the second resistor unit 121 and the second reference voltage Vref2, the second comparison signal Comp2 may be an upward signal or a downward signal (when the first terminal voltage Vp2 of the second resistor unit 121 is smaller than the second reference voltage Vref2, a downward signal is output; when the first terminal voltage Vp2 of the second resistor unit 121 is larger than the second reference voltage Vref2, an upward signal is output). When the second comparison signal Comp2 is an upward signal, the second calibration code generation unit 124 adds 1 to the count value, and generates the second calibration code Ncode <n:0>and outputs the second calibration code Ncode <n:0>and then reduce the equivalent resistance value of the second resistor unit 121 based on the second reference voltage Vref2, and further reduce the first terminal voltage Vp2 of the second resistor unit 121 until the first terminal voltage Vp2 of the second resistor unit 121 is equal to the second reference voltage Vref2. When the second comparison signal Comp2 is a down signal, subtract 1 from the count value of the second calibration code generation unit 124, and generate the second calibration code Ncode <n:0>to increase the resistance value of the second resistor unit 121, and further increase the first terminal voltage Vp2 of the second resistor unit 121 until the first terminal voltage Vp2 of the second resistor unit 121 is equal to the second reference voltage Vref2. The calibration control module 30 of the impedance calibration circuit provided by the embodiment of the present disclosure stops the impedance calibration process according to the first stop signal Stop1 and the third stop signal Stop3 respectively, and also stops the impedance calibration process according to the second stop signal Stop2, thereby timely stopping the calibration of the impedance calibration circuit, making the calibration time of the impedance calibration circuit meet the design requirement, effectively reducing the power consumption, and improving the reliability of the impedance calibration circuit.
[0060] In one embodiment, the impedance calibration circuit further includes a clock signal generation module, and reference is made to Fig. 6, which is a schematic diagram of an impedance calibration circuit according to yet another embodiment of the present disclosure. In this embodiment, the impedance calibration circuit includes a clock signal generation module 40.
[0061] The clock signal generating module 40 outputs the initial clock signal CLK-0. When the calibration control module 30 receives the initial clock signal CLK-0, it outputs the first calibration clock signal Pclk and the second calibration clock signal Nclk. When the calibration module 10 performs impedance calibration on the second calibration unit 12, when the calibration control module 30 receives the third stop signal Stop3 or the second stop signal Stop2, it outputs a stop signal Stop4 to the clock signal generating module 40 to make the clock signal generating module 40 stop outputting the initial clock signal CLK-0. In some embodiments, the clock signal generating module 40 may be a ring oscillator.
[0062] In this embodiment, the first detection module 20 generates a second stop signal Stop2 based on the initial clock signal CLK-0. The first detection module 20 includes a counting module 21, which counts the initial clock signal CLK-0 when the calibration module 10 performs impedance calibration on the first calibration unit 11 and / or when the calibration module 10 performs impedance calibration on the second calibration unit 12, and outputs the second stop signal Stop2 when the counting value reaches a predetermined value, where the counting value is the number of periods of the initial clock signal CLK-0, and the predetermined value is less than or equal to 40 clock periods of the initial clock signal CLK-0.
[0063] Specifically, when the calibration module 10 performs impedance calibration on the first calibration unit 11, the counting module 21 counts the initial clock signal CLK-0, and when the count value reaches a predetermined value, it outputs the second stop signal Stop2. When the calibration control module 30 receives the first stop signal Stop1 or the second stop signal Stop2, it stops outputting the first calibration clock signal Pclk. When the calibration module 10 completes the calibration on the first calibration unit 11, the counting module 21 becomes zero, and the calibration module When the calibration module 10 performs impedance calibration on the second calibration unit 12, the counting module 21 counts the initial clock signal CLK-0, and when the count value reaches a predetermined value, outputs the second stop signal Stop2. When the calibration control module 30 receives the third stop signal Stop3 or the second stop signal Stop2, it stops outputting the second calibration clock signal Nclk and outputs a stop signal Stop4 to the clock signal generation module 40, causing the clock signal generation module 40 to stop outputting the initial clock signal CLK-0.
[0064] The above description is only the preferred embodiments of the present invention, and it should be explained that those skilled in the art can also make some improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should fall within the protection scope of the present invention.
Claims
1. 1. An impedance calibration circuit comprising: a calibration module that receives a first calibration clock signal, performs impedance calibration based on the first calibration clock signal, and outputs a first stop signal when the calibration is completed; a first detection module for detecting a calibration time of the impedance calibration circuit, and outputting a second stop signal when the calibration time reaches a predetermined value; an impedance calibration circuit including a calibration control module that receives the first stop signal and the second stop signal and outputs the first calibration clock signal, wherein the calibration control module stops outputting the first calibration clock signal when it receives the first stop signal or the second stop signal.
2. the calibration control module includes a first logic gate circuit, the first logic gate circuit receives the first stop signal and the second stop signal, performs a logic operation to output a first control signal, and the calibration control module stops outputting the first calibration clock signal based on the first control signal; 2. The impedance calibration circuit of claim 1.
3. the first logic gate circuit includes an OR gate; 3. The impedance calibration circuit of claim 2.
4. The calibration module includes a first calibration unit, and the calibration module performs an impedance calibration on the first calibration unit upon receiving the first calibration clock signal; The first calibration unit comprises: a first resistor unit having a first terminal connected to a first power supply terminal; a reference resistor having a first terminal connected to the second terminal of the first resistor unit and a second terminal connected to a second power supply terminal; a first comparison unit for comparing a second terminal voltage of the first resistor unit with a first reference voltage and outputting a first comparison signal; a first detection unit that receives the first comparison signal as an input signal, records a change in the first comparison signal, and outputs the first stop signal when the change in the first comparison signal meets a predetermined condition.
2. The impedance calibration circuit of claim 1.
5. the first detection unit includes an odd number of flip-flop cascades and a second logic gate circuit, a first output terminal of an odd number of flip-flops is connected to an input terminal of the second logic gate circuit, a second output terminal of an even number of flip-flops is connected to an input terminal of the second logic gate circuit, and outputs the first stop signal after logic processing by the second logic gate circuit; 5. An impedance calibration circuit as claimed in claim 4.
6. the first detection unit includes an odd number of flip-flop cascades and a second logic gate circuit, the second output terminals of the odd-numbered flip-flops are connected to the input terminals of the second logic gate circuit, and the first output terminals of the even-numbered flip-flops are connected to the input terminals of the second logic gate circuit, and output the first stop signal after logic processing by the second logic gate circuit; 5. An impedance calibration circuit as claimed in claim 4.
7. the first calibration unit further includes a first calibration code generating unit for updating a first calibration code based on the first comparison signal, the first calibration code being used to control an equivalent resistance value of the first resistor unit; 5. An impedance calibration circuit as claimed in claim 4.
8. The first detection module detects a calibration time of the first calibration unit, and outputs the second stop signal when the calibration time of the first calibration unit reaches a predetermined value.
8. An impedance calibration circuit as claimed in claim 7.
9. the calibration control module further outputs a second calibration clock signal, the calibration module further receives the second calibration clock signal, and the calibration control module stops outputting the first calibration clock signal and starts outputting the second calibration clock signal upon receiving the first stop signal or the second stop signal.
9. An impedance calibration circuit as claimed in claim 8.
10. The calibration module further includes a second calibration unit, and the calibration module performs an impedance calibration on the second calibration unit upon receiving the second calibration clock signal; The second calibration unit includes: a second resistor unit having a second terminal connected to a second power supply terminal; a third resistor unit, a first terminal of which is connected to a first power supply terminal and a second terminal of which is connected to a first terminal of the second resistor unit, the first calibration code being further used to control an equivalent resistance value of the third resistor unit; a second comparison unit for comparing a first terminal voltage of the second resistor unit with a second reference voltage and outputting a second comparison signal; a second detection unit that receives the second comparison signal as an input signal, records a change in the second comparison signal, and outputs a third stop signal when the change in the second comparison signal meets a predetermined condition; the calibration control module stops outputting the second calibration clock signal when receiving the third stop signal or the second stop signal; 10. An impedance calibration circuit as claimed in claim 9.
11. The first detection module further detects a calibration time of the second calibration unit, and outputs the second stop signal when the calibration time of the second calibration unit reaches a predetermined value.
11. An impedance calibration circuit as claimed in claim 10.
12. the impedance calibration circuit further includes a clock signal generating module that outputs an initial clock signal, the calibration control module outputs the first calibration clock signal and the second calibration clock signal when receiving the initial clock signal, and when the calibration module performs impedance calibration on the second calibration unit, the calibration control module outputs a stop signal to the clock signal generating module when receiving the third stop signal or the second stop signal, causing the clock signal generating module to stop outputting the initial clock signal; 11. An impedance calibration circuit as claimed in claim 10.
13. the first detection module includes a counting module, and when the calibration module performs impedance calibration on the first calibration unit and / or when the calibration module performs impedance calibration on the second calibration unit, the counting module counts the initial clock signal, and outputs the second stop signal when a count value reaches a predetermined value; 13. An impedance calibration circuit as claimed in claim 12.
14. said predetermined value is less than or equal to 40 clock periods; 2. The impedance calibration circuit of claim 1.
15. the second calibration unit further includes a second calibration code generating unit for updating a second calibration code based on the second comparison signal, the second calibration code being used to control an equivalent resistance value of the second resistor unit; 11. An impedance calibration circuit as claimed in claim 10.
Citation Information
Patent Citations
Semiconductor device
JP2010171793A
Impedance adjustment circuit and semiconductor device including the same
JP2010193291A
Semiconductor device and circuit board with the same mounted thereon
JP2011182378A
Semiconductor device
JP2013081079A
Method for providing on-die termination in semiconductor device
JP2015043620A
