# Patent

## Title
Calibration methods and circuits to calibrate drive current and termination impedance

## Abstract

Described are on-die termination (ODT) systems and methods that facilitate high-speed communication between a driver die and a receiver die interconnected via one or more signal transmission lines. An ODT control system in accordance with one embodiment calibrates and maintains termination resistances and drive currents to produce optimal output swing voltages. Comparison circuitry employed to calibrate the reference resistance is also used to calibrate the drive current. Termination elements in some embodiments are divided into two adjustable resistive portions, both of which are designed to minimize capacitive loading. One portion is optimized to produce a relatively high range of adjustment, while the other is optimized for fine-tuning and glitch-free switching.

## Background
BACKGROUND
High-speed data communication integrated circuit (IC) dies are known to include both drivers and receivers. The driver of one such IC connects to the receiver of another via one or more signal transmission lines. Both the driver and receiver circuits include termination elements that attempt to match the characteristic impedance of the transmission line to the output impedance of the driver and input impedance of the receiver, as impedance mismatches degrade signal quality and consequently reduce communication speed and reliability.
Some conventional communication systems employ control systems that calibrate the impedance of on-chip termination elements for improved impedance matching. For a detailed discussion of one such system, see U.S. Pat. No. 6,418,500 entitled “Feedback Control for Termination Adjustment,” which issued on Jul. 9, 2002, to Gai et al.
Some high-performance communication systems employ current-mode switching for improved speed performance. Such systems include current-mode drivers, which convey digital signals by modulating current between values representative of different logic levels. The levels of current used to express logic levels are carefully calibrated and controlled to obtain rapid switching and low power consumption. The following issued patents describe conventional circuits for calibrating the drive current for current-mode drivers: U.S. Pat. No. 5,254,883 entitled “Electrical Current Source Circuitry for a Bus,” which issued on Oct. 19, 1993, to Horowitz et al., and U.S. Pat. No. 6,462,591 entitled “Semiconductor Memory Device Having a Controlled Output Driver Characteristic,” which issued on Oct. 8, 2002, to Garrett et al.
The aforementioned calibration techniques for setting and maintaining appropriate termination resistances and drive currents work well in many applications. High-speed circuits are in a very competitive market, however, and must achieve ever greater performance levels to satisfy customer demand. There is therefore a need for area- and power-efficient communication circuits that exhibit improved speed performance.
SUMMARY
The present invention is directed to efficient on-die termination (ODT) systems and methods that facilitate high-speed communication between a driver die and a receiver die interconnected via one or more signal transmission lines. An ODT control system in accordance with one embodiment calibrates and maintains the termination resistances and drive currents of the driver die to produce optimal output swing voltages on the signal transmission lines. A similar ODT control system calibrates and maintains the termination resistances of the receiver die. The ODT control systems rely upon external voltage and resistance references for termination resistance and drive current calibration.
An ODT control system in accordance with one embodiment calibrates drive current by matching the drive current to a reference current drawn through a precision resistor, and calibrates termination resistance by matching on-die termination elements with the same external resistor. Comparison circuitry employed to match the reference and drive currents is also used to match the reference and ODT resistances. This sharing of resources saves power and die area. In addition, offset errors introduced by shared components impact the resistance and current calibrations in opposite ways, and thus tend to cancel one another.
Termination elements in some embodiments are divided into two adjustable resistive portions, both of which are designed to minimize capacitive loading. One portion is optimized to produce a relatively high range of adjustment, while the other is optimized for fine-tuning and glitch-free switching. Active ODT control systems can calibrate the first portion before respective drive and receive circuitry begin communicating, and can then employ the second portion to account for resistive drift that occurs due to supply-voltage and temperature fluctuations. In one embodiment, the second portion employs a serial, thermometer-coded voltage divider to provide glitch-free switching between ODT resistance levels. In another embodiment, the second portion employs an analog voltage divider. Either embodiment can be used to periodically calibrate ODT resistance without introducing undesirable resistive glitches.
This summary does not limit the invention, which is instead defined by the allowed claims.



BRIEF DESCRIPTION OF THE FIGURES
FIG. 1 is a block diagram of a data communication system 100 in accordance with one embodiment.
FIG. 2 depicts a termination resistance and drive current calibration system 200 that includes ODT control system 130, reference resistor 175, and reference source 170 of FIG. 1.
FIG. 3 depicts a process 300 employed by control system 130, as detailed in FIG. 2, to calibrate reference ODT resistor 230 and ODT current Iodt.
FIG. 4 depicts a communication system 400 in accordance with another embodiment.
FIG. 5 details an embodiment of calibration system 200 of FIG. 2.
FIG. 6 depicts an ODT termination element 600 in accordance with one embodiment.
FIG. 7 depicts a termination element 700 in accordance with another embodiment.



DETAILED DESCRIPTION
FIG. 1 is a block diagram of a data communication system 100 in accordance with one embodiment. Communication system 100 includes a first integrated circuit (IC) die 105 connected to a second IC die 110 via a number of signal transmission lines 115. Die 105 includes a plurality of identical driver circuits, 120 and an on-die-termination (ODT) control system 130. Control system 130 establishes and maintains the termination resistances and drive currents of driver circuits 120 to produce optimal output swing voltages.
Die 110 includes a plurality of identical receiver circuits 125, each of which receives signals from a corresponding one of driver circuits 120 of die 105. Die 110 includes an ODT control system 187 that establishes and maintains the termination resistance applied to incoming signals to optimize the swing voltages of those signals.
Each of dies 105 and 110 may be any of myriad types of processing chips capable of communicating electrical signals. Typical examples include IC dies that communicate via parallel or serial bus interfaces. Transmission lines 115 may be, for example, a wire, a cable, a trace on a printed-circuit board, a chip etching, a waveguide, or other medium that allows for transmission of signals.
For simplicity, die 105 and die 110 are presumed to support respective driver and receive circuitry; in other embodiments, however, die 105 additionally supports receive circuitry, and die 110 additionally supports transmit circuitry. Such embodiments can use either unidirectional or bidirectional signal lines, as is well known to those of skill in the art. Also important, the depicted embodiment is described in connection with a typical case in which two dies communicate signals via external lines, but other embodiments optimize signal line termination resistance, drive current, and signal swing to improve communication speed between circuits that exist on the same die. Driver circuits 120 are identical, as are receiver circuits 125. The following description is limited to the topmost driver/receiver pair for brevity.
Driver circuit 120 includes a driver 135 receiving an input data stream represented as a pair of complimentary input signals Din0 and Din0b, which are provided on complimentary driver input nodes having the same designations. (As with other designations herein, Din0 and Din0b refer both to signals and their corresponding nodes; whether a given designation refers to a signal or a node will be clear from the context.) Driver 135 additionally includes a pair of driver output terminals 150 and 155 that connect to signal transmission lines 115 via IC pads (not shown). Driver output terminals 150 and 155 convey complimentary output signals derived from the input data stream. (Unless otherwise defined, terminals, lines, conductors, and traces that carry a given signal fall under the umbrella term “node”; in general, the choice of a given description of a circuit node is a matter of style, and is not limiting.)
Driver circuit 120 includes a pair of termination elements 145 and a digital-to-analog converter (DAC) 140. Each of driver output terminals 150 and 155 connects to a reference voltage Vio via a respective adjustable termination element 145, and each termination element 145 receives digital ODT calibration signals from ODT control system 130 via an ODT calibration port 165. Driver circuit 120 additionally includes a current control port 160, which receives digital current-calibration signals from control system 130. DAC 140 converts these digital signals into a current-control voltage that controls the level of drive current provided by driver 135. By controlling both the termination resistance and the drive current of driver circuit 120, ODT control system 130 optimizes the swing voltages on driver output terminals 150 and 155, and consequently reduces noise and improves speed performance.
The resistance values of termination elements 145 and the drive current provided by driver 135 vary with process, voltage, and temperature. ODT control system 130 therefore relies upon precise reference components to establish appropriate termination resistances and drive currents. In the depicted embodiment, die 105 is connected to a first reference voltage Vr1 through an external voltage source 170 and an external precision resistor 175. Reference source 170 conveys a second reference voltage Vr2 to ODT control system 130. The difference between reference voltage Vr1 and Vr2 is used to establish an appropriate swing voltage. Reference resistor 175 conveys a reference-resistor voltage Vrr to ODT control system 130, acting as a reference resistance against which to compare and adjust termination elements 145. A calibration process for establishing the appropriate resistance through termination elements 145 and drive currents provided by drivers 135 is described below in connection with FIGS. 2 and 3.
Receiver circuit 125 within die 110 includes a differential amplifier 185 connected to a pair of complimentary signal transmission lines 115 via respective receiver input terminals 186 and 189. Each of input terminals 186 and 189 connects to reference voltage Vio via a respective termination element 180. Termination elements 180 are similar to elements 145 in this embodiment, and are controlled via a line ODT from an ODT control system 187 similar to system 130. Control system 187 compares the values of termination elements 180 with an off-chip, precision reference resistor 195 to account for process, voltage, and temperature variations that affect the resistance values of termination elements 180. ODT control system 187 is also capable of calibrating drive current, though no drivers are shown in FIG. 1. Where drive-current calibration is desired, control system 187 connects to an external reference voltage 190. Receiver circuit 125 receives the incoming data stream on complimentary input nodes 186 and 189 and presents a resulting data to the interior of IC die 110 via corresponding data output node Dout0.
FIG. 2 depicts a termination resistance and drive current calibration system 200 that includes ODT control system 130, reference resistor 175, and reference source 170 of FIG. 1. (In general, the first digit of a given numerical designation indicates the Figure in which the indicated element was introduced. For example, reference resistor 175 was introduced in FIG. 1.)
Reference source 170 and reference resistor 175 are external, precision elements connected to system 130 via a pair of pads 201 and 202. Control system 130 includes a comparator 215, an analog multiplexer 220, a reference ODT resistor 230, and a current source 240. Control system 130 calibrates the resistance value Rodt of resistor 230 to match the reference resistance Rref of external precision resistor 175. Control system 130 also matches the current Iodt through resistor 230 with a reference current Irr through reference resistor 175 to produce a desired voltage drop across ODT resistor 230. ODT counter 245 stores a digital value representative of the offset required to calibrate IDT resistor 230, and a current-control counter 250 stores a digital value representative of the offset required to calibrate current source 240. The digital values from counters 245 and 250 are then conveyed throughout die 105 (FIG. 1) to calibrate similar or identical termination elements and current sources within driver circuits 120.
FIG. 3 depicts a process 300 employed by control system 130, as detailed in FIG. 2, to calibrate reference ODT resistor 230 and ODT current Iodt. First, at step 305, current-calibration signal ICAL1b, an active-low signal, is asserted. Analog multiplexer 220 thus selects second reference voltage Vr2 for comparison with reference voltage Vrr from resistor 175. The inverse of signal ICAL1b, ICAL1, enables current-control counter 250 to increment and decrement in response to output signals from comparator 215.
Current source 240 pulls reference current Irr through reference resistor 175. Per Ohm's law, reference voltage Vrr equals reference voltage Vr2 when the product of reference current Irr and reference resistance Rref equals the swing voltage Vsc across voltage reference 170 (i.e., when Irr*Rref=Vsc). Comparator 215 compares voltage Vrr with voltage Vr2 (decision 310), and adjusts the contents of current-control counter 250 as necessary to render voltage Vrr equivalent to voltage Vr2 (step 315). For example, if comparator 215 determines that Vrr is lower than Vr2, comparator 215 increments counter 250 to reduce current Irr, and consequently increase the voltage Vrr. The comparison and adjustment of steps 305, 310, and 315 continue until Vrr and Vr2 are substantially equal. At this point, current counter 250 stores a count CCNT that offsets the current Irr provided by current source 240. ODT current Iodt is substantially equal to reference current Irr, so steps 305, 310, and 315 place current Iodt at or near the expected operating level.
The granularity of current-control count CCNT introduces some uncertainty as to the exact reference current Irr and corresponding Iodt. Employing more register bits and associated bus lines for CCNT reduces this uncertainty at a cost of increased overhead.
The next portion of calibration process 300 sets resistance Rodt of resistor 230 substantially equal to reference resistance Rref of precision resistor 175 (i.e., Rodt≈Rref) by adjusting the count in counter 245. The first current-calibration signal ICAL1b is deasserted (held to a logic one), causing multiplexer 220 to apply voltage Vodt from resistor 230 to the second input terminal of comparator 215. Deasserting ICALb also disables counter 250, freezing current control signal CCNT to hold Iodt and Irr constant. A termination calibration signal TCAL to counter 245 is asserted, enabling counter 245 to increment and decrement in response to output signals from comparator 215.
In step 320, comparator 215 compares Vrr and Vodt. ODT counter 245 increments or decrements in response to the output of comparator 215, altering the resistance Rodt through ODT element 230. The input voltage Vio to termination resistor 230 is connected to off-chip voltage reference Vr1, and is therefore substantially equivalent to voltage Vr1. Because the currents Irr and Iodt are substantially identical, Ohm's law provides that voltage Vodt is substantially equal to voltage Vrr if resistance Rodt of resistor 230 matches reference resistance Rref of precision resistor 175. Comparator 215 thus adjusts the contents of counter 245 (step 330) until decision 325 determines that voltages Vrr and Vodt are substantially equal. The granularity of ODT-control count ODT introduces some uncertainty as to the exact reference resistance Rodt. This uncertainty can be improved by employing more register bits within counter 245, but this improvement comes at a cost of increased overhead.
Input/output voltage Vio, being distributed on chip, may vary by some small amount from external reference voltage Vr1. The resulting uncertainty combines with other uncertainties, such as those resulting from the measurement granularities of counters 245 and 250, to produce still greater uncertainty. A second current-calibration sequence recalibrates ODT current Iodt using the calibrated ODT resistor 230 and input voltage Vio to reduce this uncertainty.
Returning to FIG. 1, each signal transmission line 115 includes an associated pair of termination elements 145 and 180 connected in parallel between Vio and respective ends of the signal transmission line. To duplicate this arrangement, current control system 130 includes a transistor 255 that shorts reference resistor 175 and ODT resistor 230 in response to a second current-calibration signal ICAL2, effectively connecting resistors 175 and 230 in parallel between node Vio (recall Vr1 is an off-chip version of Vio) and node Vodt. Because voltages Vr1 and Vio and resistances Rref and Rodt are substantially equal, the expected current between interconnected nodes Irr and Iodt is expected to be quite low.
In step 335, signal TCAL is deasserted and both current-control signals ICAL1b and ICAL2 are asserted. Counter 245, and thus resistance Rodt, is thus held constant as comparator 215 once again compares Vr1 with Vrr (step 340). Counter 250 increments or decrements in response to output signals from comparator 215 (step 350). The calibration process 300 is complete when system 130 voltages Vr2 and Vrr are substantially equal (step 345). The resulting offsets held in counters 245 and 250 are distributed on buses ODT and CCNT to drivers and receivers on the same die to establish appropriate ODT resistances and drive currents in the manner described above in connection with FIG. 1.
The current and resistance calibration steps are carried out using shared resources, including the low-offset, high-gain comparator 215. This sharing of resources saves power and die area. In addition, offset errors introduced by shared components impact the resistance and current calibrations in opposite ways, and so tend to cancel one another. For example, a comparator error that results in a slightly high ODT resistance. Rodt produces a slightly low ODT current Iodt. Rodt and Iodt are multiplied to produce the desired swing voltage, so the increase in Rodt tends to cancel the decrease in Iodt.
FIG. 4 depicts a communication system 400 in accordance with another embodiment. System 400 includes components-in common with communication system 100 of FIG. 1, like-elements being the same or similar. System 400 includes first and second bus interfaces 405 and 410, each of which is typically a portion of a respective IC die, interconnected via parallel bus 417. One driver circuit 415 of interface 405 and a corresponding receive circuit 420 of interface 410 are detailed: the remaining driver circuits 415 and receive circuits 420 are represented as simple boxes for brevity.
Driver circuit 415 includes a pair of termination elements 425 (ODT resistors) connected between reference voltage Vio and respective ones of a pair of signal transmission lines. Driver 415 additionally includes a current-controlled amplifier 418, which in turn includes a pair of input transistors 430 and a current-source transistor 435. Each of transistors 430 connects between one of termination elements 425 and a power-supply terminal GND via transistor 435. A DAC 440 within driver circuit 415 controls the current through transistor 435 by applying a control voltage CV to the gate of transistor 435, and consequently controls the maximum voltage drop across termination elements 425.
ODT control system 130 derives offsets ODT and CCNT to calibrate termination resistance and drive current in the manner described above in connection with FIGS. 2 and 3. DAC 440 derives control voltage CV from the current-control offset CCNT so that the drive current of amplifier 418 equals the ODT current Iodt calibrated in process 300. Termination elements 425 are fabricated to be identical to reference ODT resistor 230, and so respond in kind to offset signal ODT from control system 130. In short, control system 130 calibrates a reference termination element and a reference drive current by establishing appropriate ODT and CCNT counts, and these counts are applied to driver circuits 415 on the same die to establish and maintain the correct termination resistances, drive currents, and voltage swings.
Receive circuit 420 does not generate a drive current, but includes a pair of termination elements 445. Like termination elements 425 of driver circuit 415, termination elements 445 are calibrated by an offset ODT from the associated ODT control system 187. Though not shown, other embodiments include interconnected transceivers, each of which include both drive and receive circuitry. ODT control system 187 can be used to establish appropriate termination-element resistance, drive current, and swing voltage levels in such embodiments. Transmission lines can be bidirectional in systems that include interconnected transceiver pairs.
FIG. 5 details an embodiment of calibration system 200 of FIG. 2, like-numbered elements being the same or similar. In this embodiment, ODT control circuit 130 includes additional components, many of which are included to more closely match the behavior of the reference elements used for calibration with the termination elements and drivers to be calibrated. The example assumes the first reference voltage Vr1 and input/output voltage Vio are each 1.8 volts, reference resistance Rref is 50 ohms, swing calibration voltage Vsc is 350 millivolts, and reference current Irr is 7 milliamps; however, these values are illustrative and not limiting.
Terminal Vrr of comparator 215 connects to reference resistor 175 via a pass gate 505. Pass gate 505 is included to mirror the behavior of a pair of pass gates that are combined to form analog multiplexer 220. Pass gate 505 offers the same resistance as multiplexer 220, and thus cancels voltage differences on the input terminals of comparator 215 that would otherwise introduce errors. Complementary outputs from comparator 215 feed an ODT counter 506 and current counter 507 via a digital filter 509 and sampling latch 510. Sampling latch 510 periodically samples the output of filter 509. If enabled, one of counters 506 and 507 increments or decrements in response to the output from sample latch 510 to adjust the count on one of buses ODT<8:0> or CCNT<6:0>. Comparator 215, filter 509, and latch 510 are shared to save power and die area, and to reduce offset errors in the manner discussed above in connection with FIG. 2.
Current source 240 includes a resistor 515, a reference current source 520, a DAC 525, and a pair of current-source transistors 530. Resistor 515 is a replica of ODT resistor 230, but may be of a different size or value. Resistor 515 is formed using the same process sequence as resistor 230, and so varies in the same manner with process, voltage, and temperature. Current source 520 produces a reference current Iref proportional to the value of resistor 515. DAC 525 uses reference current Iref to derive a control voltage CCREF proportional to the resistance of resistor 515, and consequently proportional to Rodt. Current-control bus CCNT<6:0> then provides offset values to DAC 525 to adjust control voltage CCREF as necessary to calibrate currents Irr and Iodt. In one embodiment, current source 240 provides a range of output currents Irr and Iodt that range from about zero to about twice Iref. Current source 240 begins the calibration sequence in the middle of this range (Irr=Iodt=Iref).
Current source 240 includes an additional pair of transistors 535 and 540, which serve two purposes: first, transistors 535 and 540 can disable current source 240 to save power when ODT control system 130 is not in use; second, when ODT enable signal ODTEN is asserted, transistors 535 and 540 combined with transistors 530 emulate the behavior of transistors 430 and 435 within driver 415 of FIG. 4. Transistors 535 and 540 are the same size (W/L) as transistors 430, and transistors 530 combined are the same size as transistor 435. With current calibration signal ICAL2 asserted to forward bias a pair of transistors 545 and 550, transistors 530, 535, and 540 and reference ODT resistor 230 and reference resistor 175 together emulate the behavior of transistors 430 and 435 and termination elements 425 of driver circuit 415. The counts within counters 506 and 507 employed to establish appropriate termination resistances and drive currents within system 130 are therefore representative of the counts required to properly adjust the termination elements and drive currents depicted in FIG. 4.
FIG. 6 depicts an ODT termination element 600 in accordance with one embodiment. Termination element 600 can be used in place of ODT resistor 230 of FIGS. 2 and 5 and in place of termination elements 425 and 445 of FIG. 4.
Termination element 600 includes a number of OR gates, each of which includes one input terminal connected to a high-impedance-select terminal RHIZ. When asserted, signal RHIZ disables termination element 600, providing a high impedance between reference voltage Vio and the associated transmission line (for termination elements 425 and 445) or to multiplexer 220 (for reference ODT resistor 230). The following description assumes signal RHIZ is deasserted, so the OR gates merely pass whatever signal is provided on their respective second input terminals.
Termination element 600 includes two separate portions: a binary-weighted portion 605 and a thermometer-coded portion 610. Portion 605 includes a resistor network 635 and a collection of PMOS transistors 630, the gates of which are connected to the first six lines ODT<5:0> of control bus ODT<8:0> of FIG. 5. Each PMOS transistor 630 controls the current through a respective resistive path. These resistive paths provide binary-weighted resistances from about 50 to 1600 ohms, so portion 605 can produce a wide range of resistances by enabling selected transistors 630. (The weighted resistance values can vary widely with process, temperature, and voltage variations, however, hence the need for ODT calibration.)
Transistors 630 are relatively small to reduce the effect of capacitance on transmission lines 417, so transistors 630 provide a significant percentage of the resistance through portion 605 (e.g., as much as about 30% in one embodiment). The I-V characteristics transistors 630 are somewhat non-linear, and this non-linearity produces some non-linearity in the resistance through portion 605. The first current-calibration sequence sets ODT current Iodt close to the operating current before adjusting Rodt so the non-linear response of Rodt does not introduce significant errors in Rodt when Iodt is adjusted during the swing calibration. The first current-calibration sequence can be omitted if accuracy is less important or if the termination elements exhibit more linear I-V characteristics.
The binary-weighted scheme of portion 605 provides a relatively low capacitance, area-efficient means of producing a large number of potential resistance values, but can introduce problematic glitches when switching between values. For example, incrementing the six low-order bits ODT<5:0> from 011111 to 10000 to vary the selected resistance from about 50 ohms to about 52 ohms turns off the right-most one of transistors 630 and turns on the remaining transistors 630. Imperfect timing can produce intermediate resistance values significantly over or under the desired 52 ohms. Such a resistive glitch can cause transmission errors in systems that dynamically monitor and adjust termination values to compensate for supply-voltage and temperature variations.
Thermometer-coded portion 610 addresses the glitch problem associated with portion 610. Portion 610 facilitates fine resistance adjustments by incrementally connecting transistors 620 in parallel with resistive elements in a voltage divider 615. Thermometer coding means that transistors 620 are enabled one at a time, in series. The possible combinations of signals on lines CCNT<8:6> are 000 (lowest resistance), 100, 110, and 111 (highest resistance). Other schemes are possible, and more or fewer series resistors can be included. Transistors 620 are arranged in series to minimize the effects of capacitance.
Portion 605 is calibrated in the manner described above and the offset provided on ODT<5:0> held steady during operation. Portion 610 can likewise be held steady, or can be modified continuously or periodically to compensate for supply-voltage or temperature fluctuations. Like control bits ODT<5:0>, control bits ODT<8:6> can be derived by a common calibration circuit and distributed to a number of termination elements; alternatively, control bits ODT<8:6> can be derived separately for each signal pad. An ODT-control signal CNTODTb can be deasserted to disable portion 610, while calibrating portion 605, for example.
Thermometer-coded portion 610 is less area efficient than portion 605, but can be incremented or decremented without introducing undesirable glitches. For further discussion relating to combining thermometer and binary coding, see U.S. Pat. Nos. 6,606,004 and 6,297,759, each of which is incorporated herein by reference.
FIG. 7 depicts a termination element 700 in accordance with another embodiment. Termination element 700 is similar to termination element 600 of FIG. 6, like numbered elements being the same or similar. Termination element 700 differs from termination element 600 in that thermometer-coded portion 610 of termination element 600 is replaced with an analog resistive element 705 to facilitate fine-tuning of termination resistance.
The resistance between terminals Vio and Vodt includes the parallel contributions from portions 605 and 705. Portion 605 is tuned in the manner described above using an ODT count. An integrator composed of a comparator 710 and capacitor 712 then alters the gate voltage of a transistor 707 to alter the resistance through portion 705 such that voltages Vrr and Vodt are equal. The gate voltage on transistor 707 in a reference ODT termination element can be distributed to similar transistors 707 in termination elements associated with propagating signals. Alternatively, each analog portion 705 can be controlled locally using a dedicated off-chip reference resistor for each pin. In either case, portion 605 of termination elements associated with signal conveyance (e.g., elements 425 and 445) can be controlled by distributed ODT control signals ODT<5:0>.
While the present invention has been described in connection with specific embodiments, variations of these embodiments will be obvious to those of ordinary skill in the art. For example, (1) the external voltage and resistance references may be substituted in other embodiments with on-chip references; (2) the ODT circuits can be constructed entirely of PMOS transistors, as PMOS transistors behave like a resistor when operating in the linear region (e.g., with the gate connected to ground); (3) the thermometer portion 610 (FIG. 6) can have multiple “legs” connected in parallel; and (4) one or more of the transistors 620 within thermometer portion 610 can be replaced with a single transistor controlled by a digital-to-analog converter. Moreover, some components are shown directly connected to one another while others are shown connected via intermediate components. In each instance the method of interconnection, or “coupling,” establishes some desired electrical communication between two or more circuit nodes, or terminals. Such coupling may often be accomplished using a number of circuit configurations, as will be understood by those of skill in the art. Therefore, the spirit and scope of the appended claims should not be limited to the foregoing description.

## Claims

1. An integrated circuit comprising:
a plurality of driver circuits to transmit data; and
a calibration circuit coupled to the plurality of driver circuits, the calibration circuit to calibrate a drive current and termination resistance of the plurality of driver circuits, the calibration circuit including:
a pad that couples to an external resistor;
a first adjustable impedance coupled to the pad, to develop a first voltage at a first node by drawing a first current through the external resistor, wherein the first impedance is controlled by a first control value, and wherein the first control value is based on a comparison between the first voltage and a reference voltage;
a second adjustable impedance that is controlled based on the first control value; and
a third adjustable impedance, coupled to the second adjustable impedance, to develop a second voltage at a second node by drawing a second current through the second adjustable impedance;

wherein the third adjustable impedance is controlled based on a second control value, wherein the second control value is based on a comparison between the first voltage at the first node and the second voltage at the second node.

2. The integrated circuit of claim 1, wherein, in operation:
the first adjustable impedance is controlled such that the first voltage matches the reference voltage; and
the third adjustable impedance is controlled such that the second voltage matches the first voltage.

3. The integrated circuit of claim 1, further comprising:
a multiplexer having a first input, a second input, and an output, the first input to receive the second voltage and the second input to receive the reference voltage; and
a comparator to compare the output of the multiplexer with the first voltage, wherein:
in response to a first state of a calibration signal, the multiplexer provides the reference voltage to the comparator and the comparator performs the comparison between the first voltage and the reference voltage; and
in response to a second state of the calibration signal, the multiplexer provides the second voltage to the comparator and the comparator performs the comparison between the second voltage and the first voltage.

4. The integrated circuit of claim 3, further comprising:
a first counter, coupled to an output of the comparator, to hold the first control value, wherein the first control value is adjusted in the first counter until the first voltage matches the reference voltage; and
a second counter, coupled to the output of the comparator, to hold the second control value, wherein the second control value is adjusted in the second counter until the second voltage matches the reference voltage.

5. The integrated circuit of claim 3, further comprising:
a digital filter coupled to the output of the comparator; and
a sampling latch coupled to an output of the digital filter, the sampling latch to sample a signal generated by the comparator.

6. The integrated circuit of claim 1, further comprising a digital-to-analog converter to receive the second control value and generate an analog control value, wherein:
the first adjustable impedance includes a first current source transistor that is controlled in response to the analog control value; and
the second adjustable impedance includes a second current source transistor that is controlled in response to the analog control value.

7. The integrated circuit of claim 6, wherein:
the first current source transistor is a pull-down device that sinks the first current; and the second current source transistor is a pull-down device that sinks the second current.

8. The integrated circuit of claim 7, wherein the second control value is a digital control value that includes a first set of bits and a second set of bits, wherein, during operation, the first set of bits are held steady and the second set of bits are modified to compensate for changes in environmental fluctuations, wherein the environmental fluctuations include any of supply voltage and temperature fluctuations.

9. The integrated circuit of claim 8, wherein the third adjustable impedance is a digitally adjustable resistor that includes a plurality of transistors coupled to a common node, wherein transistors in the plurality of transistors are selectively activated in response to specific bits of the second control value.

10. The integrated circuit of claim 1, wherein the reference voltage is developed on the integrated circuit device.

11. The integrated circuit of claim 1, wherein the reference voltage is developed external to the integrated circuit device.

12. The integrated circuit of claim 1, wherein the first control value calibrates the drive current and the second control value calibrates the termination resistance of the plurality of driver circuits, and wherein each driver circuit of the plurality of driver circuits comprises a termination resistor that operates in accordance with the termination resistance.

13. An integrated circuit comprising;
a pad that couples to an external resistor;
a first adjustable impedance, coupled to the pad, to develop a first voltage by drawing a first current through the external resistor;
a first circuit, coupled to the first adjustable impedance, to provide a first value that calibrates an impedance setting of the first adjustable impedance, wherein the first value is based on a first comparison between the first voltage and a second voltage;
a second adjustable impedance that is controlled based on the first value;
a third adjustable impedance, coupled to the second adjustable impedance, to develop a third voltage by drawing a second current through the second adjustable impedance;
a second circuit, coupled to the second adjustable impedance, to provide a second value that calibrates an impedance setting of the third adjustable impedance, wherein the second value is based on a second comparison between the second voltage and the third voltage; and
a plurality of circuits to transmit data, wherein, for each circuit of the plurality of circuits, both a drive current and a termination resistance are set based on the first value and the second value.

14. The integrated circuit of claim 13, wherein:
during the first comparison, the second voltage is equal to a reference voltage and the first value adjusts both the first adjustable impedance and the second adjustable impedance such that the first voltage equals the second voltage; and
during the second comparison, the second voltage is equal to the first voltage and the second value adjusts the third adjustable impedance such that the third voltage equals the second voltage.

15. The integrated circuit of claim 14, wherein the reference voltage is developed on the integrated circuit device.

16. The integrated circuit of claim 14, wherein the reference voltage is developed external to the integrated circuit device.

17. The integrated circuit of claim 13, further comprising:
a multiplexer having a first input, a second input, and an output, the first input to receive the third voltage and the second input to receive the second voltage; and
a comparator to compare the output of the multiplexer with the first voltage, wherein:
in response to a first state of a calibration signal, the multiplexer provides the second voltage to the comparator and the comparator performs the comparison between the first voltage and the second voltage; and
in response to a second state of the calibration signal, the multiplexer provides the third voltage to the comparator and the comparator performs the comparison between the third voltage and the first voltage.

18. The integrated circuit of claim 17, further comprising:
a first counter, coupled to an output of the comparator, to hold the first value, wherein the first value is adjusted in the first counter until the first voltage matches the reference voltage; and
a second counter, coupled to the output of the comparator, to hold the second value, wherein the second value is adjusted in the second counter until the second voltage matches the reference voltage.

19. The integrated circuit of claim 17, further comprising:
a digital filter coupled to the output of the comparator; and
a sampling latch coupled to an output of the digital filter, the sampling latch to sample a signal generated by the comparator.

20. The integrated circuit of claim 13, further comprising a digital-to-analog converter to receive the second value and generate an analog value, wherein the first adjustable impedance includes a first current source transistor that is controlled in response to the analog value; and the second adjustable impedance includes a second current source transistor that is controlled in response to the analog value.

21. The integrated circuit of claim 20, wherein the first current source transistor is a pull-down device that sinks the first current, and the second current source transistor is a pull-down device that sinks the second current.

22. The integrated circuit of claim 13, wherein the second value is a digital control value that includes a first set of bits and a second set of bits, wherein, during operation, the first set of bits are held steady and the second set of bits are modified to compensate for changes in environmental fluctuations, and wherein the environmental fluctuations include any of supply voltage and temperature fluctuations.

23. The integrated circuit of claim 13, wherein the third adjustable impedance is a digitally adjustable resistor that includes a plurality of transistors coupled to a common node, and wherein the transistors in the plurality of transistors are selectively activated in response to specific bits of the second control value.

24. A method of generating control values used to calibrate termination impedances for a drive current and termination resistance of a plurality of communication circuits disposed on an integrated circuit device, the method comprising:
developing a first voltage by drawing a first current through a first adjustable impedance and an external resistor;
comparing the first voltage to a reference voltage to provide a first control value to calibrate an impedance setting of the first adjustable impedance;
developing a second voltage by drawing a second current through a second adjustable impedance and a third adjustable impedance, wherein the second adjustable impedance is controlled based on the first value that represents the first impedance setting; and
comparing the second voltage to the reference voltage to provide a second control value that represents a second impedance setting of at least one of the second and third adjustable impedances.

25. The method of claim 24, the method further comprising comparing the second voltage with the reference voltage to provide a second control value and calibrating, with the second control value, the third adjustable impedance.

26. The method of claim 24, wherein calibrating the impedance settings comprises adjusting the first control value to set the first voltage to the reference voltage.

27. The method of claim 24, further comprising generating the reference voltage in the integrated circuit device.

28. The method of claim 24, further comprising inputting the second voltage from a source that is external to the integrated circuit device.

29. The method of claim 24, wherein at least one of the first and second control values is a digital value.

30. The method of claim 24, wherein the second adjustable impedance mirrors the first adjustable impedance.

31. An integrated circuit comprising:
a plurality of communication circuits to transmit and receive data; and
a calibration circuit coupled to the plurality of communication circuits, the calibration circuit to establish control values that calibrate a drive current and termination resistance of the plurality of communication circuits, the calibration circuit including:
a pad that couples to an external resistor;
a first current source coupled to the pad, the first current source to draw a first current through the external resistor and develop a first voltage at a first node, wherein the first current source is controlled by a first control value, and wherein the first control value holds the first voltage equal to a reference voltage;
a second current source that is controlled based on the first control value; and
an adjustable resistor, connected in series with the second current source, to develop a second voltage at a second node by passing a second current through the second current source, wherein the adjustable resistor is controlled based on a second control value to hold the second voltage equal to the reference voltage.

32. The integrated circuit of claim 31, wherein the first current and the second current are equal.

33. The integrated circuit of claim 31, wherein each of the communication circuits includes a driver.

34. The integrated circuit of claim 31, wherein each of the communication circuits includes a receiver.

35. An integrated circuit comprising:
a pad that couples to an external resistor;
a first current source, coupled to the pad, to develop a first voltage by drawing a first current through the external resistor;
a first plurality of register bits, coupled to the first current source, to store a first value that calibrates the first current of the first current source, wherein the first value is based on a first comparison between the first voltage and a reference voltage;
a second current source that is controlled based on the first value;
a digitally adjustable resistor, coupled to the second current source, wherein a second voltage is developed by drawing a second current through the digitally adjustable resistor and the second current source;
a second plurality of register bits, coupled to the second adjustable impedance, to store a second value that calibrates an impedance setting of the third adjustable impedance, wherein the second value is based on a second comparison between the second voltage and the reference voltage; and
a plurality of drivers to transmit data, wherein, for each driver of the plurality of drivers, at least one of a drive current and a termination resistance is set based on the first value and the second value.

36. The integrated circuit of claim 35, further comprising a comparator having a first input coupled to the pad, a second input, and an output coupled to the first plurality of register bits.

37. The integrated circuit of claim 36, further comprising a multiplexer having a first multiplexer input coupled to the reference voltage, a second multiplexer input coupled to the third adjustable impedance to receive the second voltage, and a multiplexer output coupled to the second input of the comparator.

38. The integrated circuit of claim 35, further comprising a second pad to receive the reference voltage.