FLASH MEMORY CONTROLLER WITH CALIBRATED DATA COMMUNICATION
An integrated circuit device includes a transmitter circuit operable to transmit a timing signal over a first wire to a DRAM. The DRAM receives a first signal having a balanced number of logical zero-to-one transitions and one-to-zero transitions and samples the first signal at a rising edge of the timing signal to produce a respective sampled value. The device further includes a receiver circuit to receive the respective sampled value from the DRAM over a plurality of wires separate from the first wire. In a first mode, the transmitter circuit repeatedly transmits incrementally offset versions of the timing signal to the DRAM until sampled values received from the DRAM change from a logical zero to a logical one or vice versa; and in a second mode, it transmits write data over the plurality of wires to the DRAM according to a write timing offset generated based on the sampled values.
The present application is a continuation of U.S. application Ser. No. 14/859,991, filed Sep. 21, 2015, which is a continuation of U.S. application Ser. No. 14/613,276, filed Feb. 3, 2015, now U.S. Pat. No. 9,164,933, which is a continuation of U.S. application Ser. No. 14/154,068, filed Jan. 13, 2014, now U.S. Pat. No. 8,948,212, which is a continuation of U.S. application Ser. No. 13/447,080, filed Apr. 13, 2012, now U.S. Pat. No. 8,630,317, issued Jan. 14, 2014, which is a continuation of U.S. patent application Ser. No. 12/430,836, filed Apr. 27, 2009, now U.S. Pat. No. 8,170,067, issued May 1, 2012, which is a divisional of U.S. patent application Ser. No. 11/327,213, filed Jan. 5, 2006, now U.S. Pat. No. 7,535,933, issued May 19, 2009, which is continuation of U.S. patent application Ser. No. 10/684,618, filed Oct. 13, 2003, which is now U.S. Pat. No. 7,042,914, issued May 9, 2006, which is a continuation of U.S. patent application Ser. No. 09/421,073, filed Oct. 19, 1999, which is now U.S. Pat. No. 6,643,787, issued on Nov. 4, 2003, which are hereby incorporated by reference in their entireties.
FIELD OF THE INVENTIONThe present invention relates to bus systems. More particularly, the present invention relates to a method and apparatus for optimizing the voltage and timing characteristics in a bus system, and to a method for transmitting control information during system calibration.
BACKGROUND OF THE INVENTIONComputer systems and other electrical systems typically use one or more buses to interconnect integrated circuits and other system components. Data, typically in digital form, is communicated between such circuits and components via a bus.
Recent trends in bus development have dramatically reduced the voltage swings associated with different data states on the bus. Early bus systems saw rail-to-rail voltage swings from 3.5 or 5.0 volts down to zero volts. More contemporary bus systems provide voltage swings of less than 1 volt. Limited voltage swings have resulted in reduced power dissipation and lower levels of induced noise on the bus. These reductions are particularly important in the context of bus systems running at ever increasing clock rates.
However, reduced voltage swings and increasing data rates pose considerable problems to the system designer. Reduced voltage swings necessarily provide reduced voltage margins. That is, the ability of system components to distinguish one data state from another on the bus is reduced as the upper and lower swing thresholds move closer together. Similarly, increasing operating frequencies require system components to detect data on the bus during shorter and shorter time intervals. Accordingly, voltage and timing margins for bus signals are often limiting factors in determining overall system performance.
Additionally, data would be detected at time t1 during the “data eye,” i.e., the period (“tbit”) during which valid data is on the bus between data transition periods. Time t1 corresponds to center of the data eye and provides maximum timing margin (½ tbit) for data detection between data transition periods.
Unfortunately, the ideal voltage and timing margins illustrated in
In
Slight differences in the actual timing of the clock signal and/or the data signal will result in a shift of their ideal timing relationship. In addition, the bidirectional nature of some signal lines in the bus system will result in timing shifts of different polarities depending on the direction of data flow.
Each one of the multiple slaves connected to the bus might have a different and unpredictable timing error in relation to the ideal clock placement. Such errors reduce the overall timing margin in the system. Further, as actual transition times wander, the hazard arises that a device will attempt to read data during a data transition period, i.e., during a period where the data is not valid on the bus. This hazard increases with system operating frequency.
A comparison between
Where the bus system of
Unfortunately, a number of system phenomena prevent the stable, centered positioning of VHI and VLO about Vref. For example, channel-DC resistance induces voltage errors in current mode signaling systems. With channel-DC resistance, a write data eye can shift in voltage as it goes down the signaling channel. That is, slaves further away from the master are likely to experience smaller voltage swings than the swings of slaves closer to the master, simply due to increasing channel-DC resistance which forms a voltage divider with the termination resistance. In addition, setting output voltage levels to be symmetric about Vref in manufactured systems which experience real process, voltage, and temperature variations is very difficult.
At some point, like the timing errors illustrated above, voltage errors will result in a data error. At a minimum, the presence of voltage errors will reduce the voltage margins allowed within a bus system.
Recognizing the inevitable degradation of the timing and voltage characteristics of bus system signals and the problems associated with same, conventional bus systems sought to compensate for the timing and voltage errors by gross adjustments of the data and/or clock signals in the master. This approach improved signaling margins where degradations were predictable, or where a very limited number of components were connected to a simple bus. However, as bus systems have increased in complexity and size, it has become clear that many factors adversely impacting timing and voltage margins are unique to individual slave devices, or to the relative position of the slave to the master within the overall system.
Thus, the conventional use of timing and voltage offsets in the master has proven ineffective in contemporary bus systems. Similarly, the use of vernier re-calibration techniques has resulted in inconsistent system performance and unacceptable bandwidth degradation in high frequency systems. Accordingly, a need remains for an approach to timing and voltage error compensation which is reliable and well adapted to complex, high frequency bus systems.
SUMMARY OF THE INVENTIONA system includes a first integrated circuit device and a second integrated circuit device. The first device transmits a data sequence to the second integrated circuit device, and the second device samples the data sequence to produce receiver data. The second device then transmits the receiver data back to the first device. Within the first integrated circuit device, a comparison between the data sequence and the receiver data is performed, and based on the comparison, the first device generates information representative of a calibrated timing offset. The first device uses the information representative of the calibrated timing offset to adjust timing associated with transferring write data from the first integrated circuit to the second integrated circuit.
In order to better understand the use, implementation, and associated benefits of the present invention, a general bus system readily adapted to the present invention will be described with reference to
Master 11 and each slave 12a-12n typically include an interface circuit (not shown) coupling the respective device to bus 30. Within bus system 10, a master can communicate with another master (not shown) and with slaves 12a-12n. In contrast, slaves only communicate with masters.
Master 11 contains intelligence and generates commands to the slaves. Master 11 may be a microprocessor, a digital signal processor, a graphics processor, peripheral controller, an input/output (I/O) controller, a DMA controller, a memory controller, a communications device, or some other type of intelligent controller.
Slaves require only a low level of intelligence. In one preferred embodiment, slaves 12a-12n are DRAMs, but might be one or more other types of memory devices including electrically programmable read only memories (EPROMs), flash EPROMs, random access memories (RAMs), static RAMs (SRAMs), video RAMs (VRAMs), etc. In another embodiment, slaves 12a-12n are bus transceivers.
Master 11 and slaves 12a-12n each include Data Bus [8:0] pins, at least one BusCtrl pin and BusEnable pin, a ClkToMaster (“CTM”) pin, a ClkFrom Master (“CFM”) pin, and a Vref pin. These pins receive and transmit low voltage swing signals and correspond to the channel signal line(s) and buses shown in
Master 11 may be configured to communicate control information to slaves 12a-12n in many different ways. The BusCtrl 14 and BusEnable 15 signal paths shown in
Data bus signal lines 32 transfer data between master 11 and slaves 12a-12n. The data bus signal lines 32 are transmission lines having controlled impedances. Each data bus signal line 32 is terminated at one end in a termination resistor (collectively shown as 20). The termination resistors are coupled to a termination voltage, Vterm. The resistance value R of each termination resistor 20 is equal to the line impedance of its data bus signal line 32. Such a configuration helps prevent unwanted signal reflections on the signal line. Other signal lines in memory system 10, such as BusCtrl line 14, BusEnable line 15, CTM line 16a, and CFM line 16b, are similarly terminated by termination resistors 23, 21, 22, respectively.
Clock line 16 is coupled at one end to a clock 35. In one embodiment, clock 35 is external to and independent of master 11 and slaves 12a-12n. The clock signal generated by clock 35 is carried by clock line 16 to master 11 and slaves 12a-12n. Clock line 16 is folded back to form two line segments 16a and 16b. Segment 16a carries the CTM signal, and segment 16b carries the CFM signal.
Bus system 10 also includes a reference voltage line 17 that couples Vref to each of master 11 and slaves 12a-12n. As shown in
In bus system 10, data driven by master 11 propagates past slaves 12a-12n along bus 30. Slaves 12a-12n are able to “sense” the data on the bus in accordance with control information sent from master 11. For example, the master might initiate a transfer of data by broadcasting an access request packet. Each slave 12a-12n decodes the access request packet and determines whether it has been selected to respond. If selected, the slave then responds appropriately by, for example, accepting data from the data bus in a Write operation, or driving data onto the data bus in a Read operation.
The foregoing system is exemplary of systems characterized by single-ended data transmission/reception over a bus consisting of multiple, impedance balanced signal lines. Data is transmitted at a relatively high frequency over these signal lines in relation to a single reference voltage. Such a system is susceptible to the timing errors and voltage errors as described above.
As will be seen hereafter, the present invention optimizes bus transmission conditions by minimizing overall timing and voltage errors. Operating margins for the system are improved accordingly, and data is communicated with greater reliability.
Fundamentally, bus systems operate in two phases; a calibration phase in which system operating parameters may be determined and a normal operation phase in which data is transferred at high speed in accordance with the parameters established during the calibration phase. Effective calibration of the bus system's operating parameters presents a number of concerns which will be discussed in detail below.
Signal Timing AdjustmentIn a first general aspect, the present invention provides a system and method by which individual slave devices adjust their read and/or write timing to “slave” to a master clock signal. This aspect of the present invention is explained with reference to
Slave 12a comprises one or more receivers 60 and one or more transmitters 70 connected to data bus 30. Data sent from master 11 is communicated via data bus 30 to receivers 60. Data sent to master 11 from slave 12a is placed on data bus 30 by transmitters 70. The construction of receivers 60 and transmitters 70 is conventional and determined by the nature of the slave device and bus system.
Synchronous receipt of data by receivers 60 and synchronous transmission of data by transmitters 70 are respectively controlled by a Receive-clock signal (RCLK) and a Transmit-clock signal (TCLK). These signals are indicative of a class of clock signals gating data to/from the slave device and are referred to as “internal read/write clocking signals.” The RCLK signal is derived from the operation of a Receive Delay-Locked-Loop or Phase-Locked-Loop (DLL/PLL) circuit 61 and a Write Offset Register 62. While a DLL or PLL is presently preferred, any clocking circuit capable of accurately generating the internal read/write clock signal in relation to the master clock signal and the offset value may be used. The TCLK signal is derived from the operation of a Transmit DLL/PLL circuit 71 and a Read Offset Register 72. As seen hereafter, both RCLK and TCLK are preferably derived in relation to the CTM and/or the CFM signals, but any clock signal might serve as the master clock signal.
The Receive DLL/PLL 61 and Transmit DLL/PLL 71 may be separately implemented, or implemented in a single clocking circuit using well understood design principles. For example, commonly assigned U.S. patent application Ser. No. 08/795,657, now U.S. Pat. No. 6,125,157, illustrates several possible implementations of a DLL/PLL circuit. U.S. Pat. No. 5,614,855 also discloses a competent DLL circuit.
Write Offset Register 62 stores an offset value established during system calibration or initialization. The stored offset value defines a timing adjustment, as required, to RCLK in relation to the master clock signal (e.g., CFM, as shown in
For example, the individual timing characteristics of slave 12a in relation to the master clock signal are evaluated and adjusted during the calibration phase of operation, typically during system initialization. If the unadjusted application of the master clock signal to slave 12a results in a Write operation execution outside of the center of the data eye, see
This timing error compensation is made individually to slave 12a, and is maintained, i.e., locked, by the DLL/PLL. The master clock signal remains fixed. No timing adjustment or compensation is required within master 11. The Write timing for each slave in the system may be individually adjusted in this manner.
The same holds true for the Read timing of each slave. The offset value stored in Read Offset Register 72 is similarly defined and applied to adjust, as required, the Read timing of slave 12a.
The block diagram of
The circuit shown in
The three outputs (C0, C1, and C2) from vector circuit 77 are applied to a phase mixer 75. By phase mixing (i.e., interpolating) the three signals, phase mixer 75 is able to generate an offset feedback signal varying between −45° and +45°. The actual value of this offset feedback signal, which is returned as a feedback control signal to the DLL/PLL, is defined by the offset value stored in the Offset Register (62 or 72). The offset value is applied to Phase Mixer 75 through a digital-to-analog (DAC) converter 74. In this manner, system timing is conveniently adjusted using 45° sections of the DLL/PLL reference loop. Thus, this embodiment is able to adjust timing of RCLK/TCLK between −45° and +45°. Of note, the timing adjustments provided by the circuit in
In contrast, the circuit shown in
In the circuit of
The feedback signals RCLKFbk and TCLKFbk are adjusted by adding or subtracting loads and thus adjusting the delay of a chain of inverters, 82 and 83, selected according to the offset value stored respectively in Write Offset Register 62 and Read Offset Register 72. The individual bits of the stored offset values may be configured to drive the enabling nodes of corresponding MOS capacitors to effect a binary weighted variable load in the feedback paths of RCLKFbk and TCLKFbk to the DLL/PLL circuit.
Another technique for providing timing offset is illustrated by the circuit shown in
With reference to
Another technique for generating a constant (in degrees) phase offset is illustrated in
The reference loop control voltage (Vc) 100 is used to drive the peripheral loop interpolators as well as a portion of the main clock (CLK) buffer 105 and feedback clock (FbkCLK) buffer 104. The FbkCLK signal is applied along with the input clock signal to phase detector 110. The output signal of phase detector 110 is applied to Interpolator 111 which also receives selected phase signals from reference loop 101.
By virtue of the fact that the delay-vs-supply characteristics of the reference loop buffers and the main and feedback buffers closely track one another, the offset introduced by changing the load capacitance of the feedback clock buffer 104 stays constant over supply and temperature variations. For example, assume that the clock cycle is Tc and the required offset is To. The reference loop will set Vc, such that N*R*Cref=Tc/2, where N is the number of buffers in the reference loop, and R and C are the resistance and capacitance associated with each buffer in the reference loop. Offset control register 106 will set the delay of the feedback clock buffer to differ from the main clock buffer by To=M*R*Cfb, where M is the number of buffers in the main clock buffer and R and Cfb are resistance and capacitance associated with each buffer in the main clock buffer. Since voltage and temperature variations do not affect N, Cref, M, Cfb, and since the reference loop adjusts R such that N*R*Cref always equals Tc/2, it follows that the ratio of To and Tc stays constant in the first order.
The specific implementation shown in
Like the exemplary circuits shown in
The output of counter 123 is also applied to adder circuit 125 which adds or subtracts, the offset value (n bits) stored in Offset Register 126. The adder result is then applied to Offset Counter 127, the output of which is applied to Offset Interpolator 121. Based on the reference vectors from the DLL/PLL reference loop and the Offset Counter output, Offset Interpolator 121 generates a clock signal (CLK).
Thus, Offset Interpolator 121 uses the same basic input vectors as the primary Interpolator 120 but has an offset register value added or subtracted from its mixing control value. The feedback clock (CLKFbk) used to close the control loop can be either the output of the primary Interpolator 120 (as shown), or that of the Offset Interpolator 121, recognizing that the difference is that one output will have an offset register value opposite (i.e., the polarity is inverted) that of the other.
The implementation illustrated in
Up to this point timing errors have been described in the context of read/write clock signals skewed in relation to data eyes. Using any one of the mechanisms described above, a properly adjusted read/write clock signal may be developed for each slave device to maximize clock signal margins in relation to data appearing on the data bus. For the sake of clarity, the examples illustrated above describe data being communicated on one edge of the read/write clock. However, many contemporary bus systems communicate data between a master and one or more slaves using more than one edge of a clock signal or using multiple clocks having different phases. Alternatively, contemporary systems communicate multiple bits in relation to a single clock edge, but using different phase offsets. The use of multiple clock edges or multiple clocks at different phases results in an additional source of timing errors in the bus system, namely duty cycle errors. This problem is illustrated for an exemplary double data rate (DDR) system in
In a DDR system, two bits of data are transmitted on one or more data bus lines during each clock cycle. These two bits are often referred to as “even” and “odd” data bits. Double data rate transmission may be accomplished in many ways, but two are illustrated here. In
The timing diagrams of
The present invention may be used to properly adjust duty cycle(s) in relation to a transmission and/or a reception clock. Further, the present invention has application beyond DDR systems. For example, the present invention might be adapted for use in a Quad Data Rate (QDR) system in which timing for data exchange is set by four clocks spaced 90° apart. In QDR systems there are actually four different data duty cycles, each data duty cycle being defined as the width of an eye for a given data bit divided by the width of all data eyes. One of ordinary skill in the art will see that the following principles may be applied to any N-Data Rate system, where N is a whole number.
No matter the actual number of clock signals or edges, the overall timing margin of the bus system is limited by the width of the smallest data eye defined by a duty cycle. Thus, for maximum timing margins, the data duty cycle should be as close to 1/N as possible, where N is the number of duty cycle defining clock signals or edges in the system.
However, the variable effects described above combine to skew duty cycle data eyes. Offsets in the system clock or in the internal clock generation circuits will result in duty cycle timing errors which reduce timing margins and compress overall system timing requirements. Thus, adjustment of the clock signals defining erroneous duty cycles is required to optimize system bus performance.
Read duty cycle adjustment and/or write duty cycle adjustment may be accomplished in a manner similar to that discussed above in relation to read/write clocks. For example, as shown in
Duty cycle adjustment does not necessarily require active clock recovery, as provided by the DLL/PLL. Duty cycle adjustment might equally apply to a system where skews between internal and external timing points are compensated outside the slave devices, outside the master, or outside both the master and slave devices.
In other words, duty cycle adjustment may be accomplished not only by use of offset registers located on individual slave devices, but also by use of one or more global offset register(s) resident in the master. A single “mean” duty cycle offset value might be stored in the global register and communicated to individual slave devices, or a plurality of individualized duty cycle offset values might be stored and communicated on an individual basis to respective slave devices or group of slave devices. The one or more duty cycle offset register(s) might alternatively be stored outside the master or slave devices.
One embodiment of a duty cycle adjustment circuit is shown in
In a nominal case, wherein no duty cycle adjustment is required IOFFSET and
If there is some difference in the current signals IOFFSET and
The above circuit performs duty cycle adjustment in an “open-loop” manner. That is, no feedback mechanism exists between the corrected clock signal and the duty cycle adjustment circuit. Accordingly, the system must either have sufficient timing margin to work following a single calibration cycle during initialization, or the system must perform periodic re-calibrations.
A presently preferred embodiment of the duty cycle adjustment circuit 141 of
Another exemplary embodiment of the duty cycle adjustment circuit is shown in
In addition to IOFFSET and
The output (at nodes co and
In principle, this duty cycle adjustment scheme should produce the desired clock signal duty cycle without the effect of the duty cycle adjustment value applied from the duty cycle offset register. In practice, however, device mismatches in the duty cycle integrator (171 in
The precepts and relations taught by the exemplary circuits above, may be generically extended and applied to systems having N clocks producing N-Data Rate signals. Conceptually this application is illustrated in
In one preferred implementation, each duty cycle adjustment circuit 202 in
A variation on this scheme would be to use N-1 buffers rather than N, wherein the size of the Nth data eye corresponding to the Nth clock is defined by moving all the other clock eyes relative to the this last clock. In another related embodiment, the constant delay buffers of
In yet another embodiment drawn in relation to a DDR system, the circuit shown in
The embodiment shown in
In addition to timing errors, voltage errors frequently plague bus systems. Voltage errors and their effects were illustrated in the discussion of
In a second general aspect, the present invention provides a system and method by which individual slave devices adjust or compensate the voltage of data received from the data bus, and/or adjust the voltage/current of data being driven onto the data bus. Analogous to the timing adjustment techniques described above, voltage adjustment takes place on a slave by slave basis.
During voltage adjustment, the output voltage swing is properly set and any voltage offset in the received data is compensated. These two functions may be accomplished in many specific ways. Fundamentally, after the master output swing and input levels are optimally established, the resulting signal levels are considered reference, and both slave input offsets and slave output voltage/current are adjusted to correspond to these references.
In the approach illustrated in
The exemplary circuits shown in
The process of determining and storing the slave offset value(s) is performed during the calibration phase of system operation. The calibration phase typically occurs during system initialization, but may be performed otherwise. For example, calibration may be performed periodically or upon detection of some threshold number of bit errors. The actual determination of the timing offset values may be done using many different techniques. Several techniques are described below.
One technique is referred to as 90° calibration, and it requires the use of a DLL/PLL on the master capable of shifting its clock output by 90°. Together, the block diagram of
In
For example, assuming a data transition from a “0” to “1” on the data bus line into the slave receiver, the early occurring slave receiver clock transition A′ would consistently produce a “0” output. Similarly, the late occurring slave receiver clock transition A″ would consistently produce a “1” output. Thus, the data output by the slave receiver can be used to determine phase information during the calibration phase. The slave receiver data derived from this calibration process can be stored in the slave and returned to the master during a subsequent read operation.
The foregoing capabilities can be used by system designers to define an appropriate write offset value. Many different algorithms may be implemented as a matter of routine design choice which result in a “centering” write offset value using a minimum amount of time and resources. For example, a simple single data transition might be written from master 11 to slave 12a in a large block of data, say 128 bits consisting of 64 ones followed by 64 zeros. These bits are stored in the slave and read back to the master. The master determines where in the data block a one-to-zero transition occurred, and uses this information to increment or decrement the write offset value. This sequence of steps continues until the offset value dithers back and forth between “0” and “1” (i.e., “toggles”) with each iteration at which point a centering offset value has been obtained.
Conceptually, the foregoing technique extends conventional DLL/PLL locking loop techniques to implement timing offset control by building a distributed pseudo-DLL using the slave receivers as phase detectors. Thus, assuming the presence within the master of a 90°-shiftable DLL clock, the additional hardware required to implement timing calibration is minimal. Once the output of the data receiver(s) toggle, the distributed loop can be “locked,” and the timing of the master output clock returned to normal (0°).
A similar approach to slave transmitter clock calibration (i.e., read offset value determination) can be readily discerned from the foregoing. In this approach, the internal receive clock for the master is shifted by 90° and the master data receivers function as phase detectors. The process of transmitting a block of data, looking for tell-tale data transitions, adjusting the offset value, and repeating until determination of the optimal read offset value, is performed as explained above, except for the consideration that data flow is reversed between the two processes.
The circuits shown in
Another approach to timing calibration uses a “scanning window,” as illustrated in
Once an appropriate offset value has been determined, it is written to the corresponding offset register in the slave. Alternatively, the offset scanning may be done by offset interpolators in the slave device. However, the first approach of locating the required interpolators in the master saves overall area in the system.
As illustrated in
The process of determining and storing the voltage offset value(s) is performed during the calibration phase like the process for determining and storing timing offset value(s). The actual determination of the voltage offset values may be done using many different techniques. Several techniques are described below.
The first technique for calibrating slave voltages, i.e., determining the voltage offset values, is illustrated in
The circuit shown in
As with the scanning window approach described above, high and low pass/fail transition points are identified. Vref on the slave is set in accordance with a final adjustment offset value located half way between the offset values corresponding to the high and low pass/fail transition points.
In another technique, write voltage calibration is accomplished through the use of voltage offset cancellation loops located in the slave receiver(s). This technique is illustrated in
Slave 12a is placed in write offset calibration mode wherein each slave receiver compares the received data signal at VOL with the “master” VOL signal applied through the Vref signal line. This comparison takes place in voltage cancellation loop 318 which consists of a slave receiver acting as a comparator 317 and offset cancellation circuit 319. Voltage offset values are applied (added and subtracted) through offset cancellation circuit 319 of the slave receiver until its output toggles at which point the offset loop is locked. Offsets due to manufacturing defects in the slave receiver and/or I*R drops present in the data bus are eliminated in this fashion.
In another adaptation of the circuitry shown in
Read voltage output swings for the slave are similarly calibrated. For example, in
Alternatively, the read output voltage swing may be calibrated using a circuit like the one shown in
As with timing and voltage calibration, there must be a way of determining the appropriate values to program into the duty cycle adjustment registers. This can be readily accomplished using a modified version of the scanning window illustrated in
The example shown in
If the relationships (i.e. the mapping) between duty cycle adjustment offset values and the corresponding eye sizes are known, a second method can be employed. Namely, the size of each eye is measured using nominal duty cycle offset values, then the appropriate register values are chosen to make the eyes of equal size based on the known relationships.
If the relationships are not known, they can be estimated by setting the duty cycle adjustment offset values to the extremes of their ranges and then scrolling and measuring the sizes of the eyes. Appropriate values can be chosen by interpolation between the measured duty cycles at the extremes.
Another approach would be simply to measure the overall size of the composite eye, and choose the duty cycle offset register settings that make this size the largest.
Until now, timing (including duty cycle) and voltage adjustments have been discussed as separate phenomenon. While various adjustment mechanisms have been described which address these problems separately, one of ordinary skill in the art will recognize that timing adjustments and voltage adjustments are better viewed as a related family of operating system parameters. Effective bus optimization seeks to maximize both timing and voltage margins, although improvements to one or the other will remedy different system performance problems. Recognizing the interplay between signal timing and signal voltage requirements, the concept of signal equalization will now be addressed.
Signal EqualizationSignal equalization parameters can also be adjusted to increase voltage margins for data signals on the system bus. Equalization involves dynamically changing the drive strength of a channel output driver to compensate for noise signals on the bus. Noise signals may arise from many sources including adjacent channel crosstalk, or residual or undesired signal reflections on the bus. No matter their nature or origin, noise signals cause signal voltages to vary from one clock cycle to another. Compensation for signal voltage variations due to residual signals on the channel is referred to as “temporal equalization.” Compensation for signal voltage variations due to inductive coupling from neighboring channels is referred to as “cross-talk (or spatial) equalization.”
Temporal and cross-talk equalization are discussed separately below. It should be noted that the circuitry to accomplish both forms of equalization may be resident in a master transmitter or in respective slave transmitters.
The foregoing illustrates how signal voltage on a channel is affected by prior transmissions on the same channel. In general, a logical 1 that follows transmission of a logical 0 is less likely to reach VOL than a logical 1 that follows transmission of another logical 1. Similarly, a logical 0 that follows a logical 1 is less likely to reach VOH than a logical 0 that follows another logical 0. Both these effects result in reduced voltage margin at the receiver, making the system more susceptible to errors caused by noise and other margin-reducing effects.
Data history generator 705 receives Dataj and a transmit clock signal, tclk, and generates K delayed data signals, Dataj−1 through Dataj-K. In one embodiment, a new data value is transmitted at each rising edge and each falling edge of tclk. Thus, the delayed data signals are generated by passing Dataj through a sequence of flip-flops 706A-706K that are alternately clocked by falling and rising edges of tclk. By this arrangement, flip-flop 706A outputs Dataj-1, flip-flop 706B outputs Dataj-2 and so forth to flip-flop 706K which outputs Dataj-K. In an alternative embodiment in which data is transmitted on only one clock edge per cycle of tclk (i.e., one data value per clock edge instead of two), flip-flops 706A-706K may be clocked by the same edge of tclk.
Equalization driver 702A includes a multiplexer 709, a set of additive logic gates 712A-712R and corresponding binary weighted transistors (1×, 2×, . . . , 2R-1x), and a set of subtractive logic gates 711A-711R and corresponding binary weighted transistors −1×, −2×,. . . , −2″×). In the embodiment shown in
Reflecting on the operation of the equalization driver 702A, it can be seen that when the magnitude coefficient in register 704A is zero, all transistors controlled by subtractive logic gates 711A-711R are activated and all transistors controlled by additive logic gates 712A-712R are off This is true regardless of the state of Dataj-1 or the sign bit, S. Consequently, when the coefficient magnitude is zero, the equalization current, Ieq1 is becomes 2R*UNIT. When the coefficient magnitude is at a maximum (i.e., all bits set), Dataj-1 is a logical 1, and the coefficient is positive (i.e., sign bit is equal to 0), then all the transistors controlled by the subtractive logic gates 711A-711R and all the transistors controlled by the additive logic gates 712A-712R are activated so that the equalization current becomes 2R+1*IUNIT. Conversely, when the coefficient magnitude is at a maximum, Dataj-1 is a logical 1, and the coefficient sign is negative, then all the transistors controlled by the subtractive logic gates 711A-711R and all the transistors controlled by the additive logic gates are off so that the equalization current is turned off More generally, the current IEQ1 is given by the expression:
IEQ1=2R*IUNIT+(C1*2R)*Polarity(Dataj-1)*IUNIT,
where C1 may be positive or negative and where Polarity(Dataj-1)=1 if Dataj-1 is 1; and −1 if Dataj-1 is 0. The currents drawn by equalization circuits 702B-702K are similarly controlled by coefficients C2-CK. By this arrangement, each of the equalization circuits allows current to be increased or decreased relative to 2R*IUNIT based on respective coefficients and delayed data values. Thus, the overall current IOL is given by the expression:
By selecting the current 2R*K*IUNIT to correspond to the desired high voltage level on the channel (VOH), the coefficients in the equalization registers can be used to effect a current swing above and below the nominal current used to produce VOH and above and below the nominal current used to produce VOL. These current swings can be used in turn to overdrive or underdrive the channel, compensating the output voltage for past output levels. Note that the current IUNIT drawn by the 1× transistor in the equalization drivers may be different from the current IUNIT drawn by the 1× transistor in the weighted driver 701.
Although
As mentioned above, cross-talk equalization involves equalizing a channel voltage to compensate for cross-coupled signals from neighboring channels. The circuits shown in
The foregoing examples of temporal and cross-talk equalization have been drawn to output driver circuits, or transmitter-side circuits. However, such circuits may be incorporated as receiver-side circuits.
For example,
A data history generator 705 receives the output of comparator 830 and generates the data history values, Dataj-1, Dataj-2, . . . Dataj-K. The data history values are used to select, via multiplexers 811A-811K, between positive and negative versions of respective equalization coefficients C1EQ-CKEQ stored in equalization registers 804A-804K. As with the equalization coefficients discussed in reference to
A digital adding circuit 814 receives the output from each of the multiplexers 811A-811K and provides a sum of coefficients to digital-to-analog converter 815 which generates the equalization offset 816. In an alternative embodiment, separate digital to analog converters are used to convert the outputs of multiplexers 811A-811K to respective analog values. The analog values are then combined with the incoming data value, Dataj, in analog adder 817. In this embodiment, adding stage 814 may be omitted, reducing the amount of time required to provide a valid offset value at adder 817. In another alternative embodiment, adder 817 is used to add the equalization offset 816 to Vref instead of to the incoming data. In this case, the equalization offset is generated with reverse polarity.
In yet another embodiment of the bus receiver, analog rather than digital circuitry is used to perform equalization. Sample and hold circuitry is used to capture past data signals (i.e., Dataj-1 to Dataj-k). The amplitude of the captured signals are weighted by equalization coefficients C1EQ-CKEQ from registers 804A-804K, then input to adder 817. Cross-talk equalization is also accomplished in this manner, except that neighboring signals are weighted by the equalization coefficients instead of prior data signals on the same signal path.
Equalization coefficients may be determined using the techniques described above for determining voltage offset values. See
Thus, by gauging the effect of toggled bits in different positions in the pattern, temporal equalization coefficients may be determined, fed back to the slave and installed in the temporal equalization registers within the slave's transmitter or receiver. Equalization coefficients for the master's transmitter may be determined in a similar manner with the slave returning margin measurements to the master for the master to determine its own coefficients.
In an alternative embodiment, each bit in each equalization register may be set during transmission of the sequence of bit patterns and then reset for transmission of the same sequence. Margin measurements may be made by a receiving device (e.g., a master if a slave's transmitter is being equalized) and used to determine whether the equalization bit should remain set. If the margin is improved, the bit under test is set. Otherwise the bit is reset. By successively testing the effect of each bit in the equalization register, moving from most significant bit to least significant bit, the appropriate equalization value may be determined. Once the content of a given equalization register has been established, the bits in the next register may be tested. Referring to
Coefficients for cross-talk equalization may also be determined using the techniques described in reference to
Several exemplary techniques have been presented by which timing offsets and voltage offsets and equalization offsets may be determined during the calibration phase of system operation. There are, however, several issues which should be considered when designing reliable and efficient calibration procedures. Definition of an appropriate calibration data sequence is one such issue.
Multiple calibration sequences are possible, but there are few which are optimal. A first preferred sequence consists of very simple 0-to-1 and 1-to-0 transitions at a data rate (frequency) much lower than the normal data rate of the channel during the bus system operation phase. A data rate with a period larger than the time memory of the channel, e.g., twice the bus electrical length, will usually be adequate. Since the clock and data receivers functioning as phase receivers in the foregoing embodiments are run at normal frequency during the calibration phase, but the data transfer rate is significantly reduced, any timing skews that arise as a function of the data rate are eliminated. In theory, the low frequency data may be considered the mean of the distribution of offsets in a system having frequency dependent offsets. The various offset registers, or rather the offset values stored therein, are determined using this low frequency data and timing, and voltage skews are minimized accordingly.
This approach works because the channel (data bus) transferring data between the master and slaves reacts differently at different data rates. That is, data at different transfer frequencies results in different offsets which are created by resonances and discontinuities at that frequency. Hypothetically, the center of the distribution for such offsets is actually more or less at the same location as the transitions of very low frequency data, and such data can be constructed by large data blocks having a single data transition. Such very low frequency data does not excite harmonics as much as higher frequency data can, and the single data transition may be readily discerned within the calibration process. Thus, by phase detecting the very low frequency data in receivers running at much higher clock rates, the timing and voltage offsets may be accurately determined.
A second preferred calibration sequence consists of a spectrum of calibration data which starts at a very low frequency and slowly increases until the fundamental is reached. No data frequency is favored over another in this approach, so each frequency is given the same number of data transitions, and thus the same number of phase detector evaluations, before the frequency is changed.
In a third preferred calibration sequence, the master observes the valid data window width using the scanning approach explained above, and determines if the communications channel will reliably run at the given frequency. If the master determines that the valid data window is not adequate, it reduces the operating frequency and re-establishes the valid data window width at the new frequency. Since the master's offset registers are calibrated in degrees for most of the foregoing embodiments, the percentage of valid bit-time required for reliable communication can be stored once for all operating frequencies and the final operating frequency need not be an integer multiple of the initial operating frequency.
Preeminent among calibration issues is the fact that data transfers, and in particular control data transfers, between the master and slaves are inherently suspect before completion of the timing and voltage calibration procedures.
As noted, many contemporary bus systems communicate data between the master and slaves using packets. This is particularly true where the bus system comprises a memory system. Thus, the problem of communicating reliable control data from the master to a slave is often compounded by the packet nature of the communicated control data. In yet another aspect, the present invention addresses this problem.
Many of the timing adjustment circuits explained above and resident in a slave can be functionally summarized by the diagram in
Unfortunately, before the receiver and transmitter timing is calibrated to a master clock signal (EXT.CLK), the read and write command packets sent via the control bus may not be received correctly. Unreliable control makes calibration extremely difficult.
To overcome this difficulty, the slow speed serial link might be used to send commands to an un-calibrated slave device. However, this solution presents several problems. First, the serial port is very slow. As a result, the calibration process becomes unwieldy and takes an inordinate amount of time. Second, the slave device is forced to multiplex the slow speed read/write commands with normal control and data transfers. This ability requires significant additional control logic. Such additional hardware may delay certain critical paths during normal slave device operation.
Another approach to overcoming the unreliable nature of control packet transfer to un-calibrated slave devices requires that the control command packet be transmitted at half its normal rate. Such a scheme is illustrated in
While generally superior to transmitting control packets via the serial link, the foregoing technique presents some challenges to the system designer. The slave device must be capable of responding to two different protocols—one for regular operation and the other for calibration. Several exemplary techniques for accomplishing this result are explained below.
Assuming as an example that the slave is a memory device, the control packet typically consists of bit fields representing a number of different components including: a Device ID identifying which slave device is being accessed, an Opcode identifying the nature of the operation, an Address identifying a location related to the operation, and a Write Mask selecting a portion of write data to be stored.
During calibration of the memory device not all of these fields are required. For example, if the system has a method of enabling/disabling the memory device through the serial link, which is typical, then the Device ID field is not needed during calibration. All memory devices other than the one being calibrated can be readily disabled using the serial link. The Write Mask need not be used during calibration. Further, only a subset of the normal Opcodes are required during calibration, since the memory device need only perform simple read and write commands. Finally, only a portion of the typical Address field is required. The addressable memory requirements of the memory device during calibration are greatly reduced as compared to normal operation. Accordingly, many of the control packet bits may be utilized for other purposes during calibration.
In the calibration mode data packet, required calibration bits are placed in the odd positions. The even positioned bits effectively become “don't care” bits. This arrangement of bits allows the same overall control packet format and protocol to be used during normal and calibration modes of operation.
During calibration, the control packet decode logic will receive correct bits for the odd bits and “don't care” bits for even bits. The logic used to decode control data during normal operation requires remarkably little modification to also decode control data during calibration. As shown in
In the example illustrated by
Restrictions on addressable memory space brought about by the foregoing must be considered when a calibration sequence is defined. Furthermore, as Opcode and Address bits are cannibalized using this approach, the control packet format and the corresponding calibration control logic must also be modified. Such tradeoffs are well within ordinary skill in the art. The foregoing examples of the control packet and its associated decode logic are highly specific to a presently preferred embodiment of the bus system. Any reasonable control packet format, definition of bits, and resulting decoding logic might be used to effect dual operation of the memory device, as between normal operation and calibration, with minimal overhead.
The foregoing embodiments of the present invention illustrate various implementations of the timing and/or voltage control circuitry in the slave devices of an exemplary bus system. However, bus system designers may wish to minimize the size, cost, and complexity of the slave devices. Alternatively, bus system designers may provide a very powerful master device. Whatever the motivation for doing so, the timing and/or voltage control circuits previously described as being resident in individual slave devices may be implemented in the master.
A master incorporating such circuits may generally implement voltage/timing adjustments in one of two ways: a mean control approach or an individual control approach. In the mean control approach, optimizing voltage/timing offsets are calibrated for each slave device during calibration. Once a field of offset values have been calculated, a mean offset value is determined in the master. This mean offset value is stored in a register on the master and used to adjust the read/write timing or the read/write voltage for data being communicated between the master and all slave devices.
In the individual slave device control approach, a separate timing/voltage offset value is stored in the master for each slave to produce a field of timing/voltage offset values. As described above, an appropriate offset value may be determined for each slave during calibration. Once determined, the offset value is specifically applied to read/write operations involving the corresponding slave.
However, in normal operating mode, the device ID extracted from a slave access request is used to select a corresponding current control offset value for the accessed slave device. The selected current control offset value is then applied to a drive circuit 434 which adjusts the current of write signals (control or data) being sent to the slave device. The example shows a single signal line, but one or more drive circuits may adjust the output current on a number of data bus signal lines.
From this specific example, one of ordinary skill in the art may see that a very similar approach may be taken to implement read signal voltage adjustments in the master. Further, read/write timing adjustments may also be made on the basis of a mean timing offset value or a field of timing offset values stored in the master. Timing control adjustment may be made in relation to a particular offset value by adjusting the master read/write clock signal, or by communicating a slave device specific internal read/write signal via a signal line.
Claims
1. A controller, comprising:
- a bus interface to couple to a plurality of slave memory devices, the bus interface including a circuit to send at least one signal to individually address a selected slave memory device of the plurality of slave memory devices and store a device-specific value in a reference voltage register of the selected slave memory device; and
- a transmitter to output a data signal to the selected slave memory device
- wherein the device-specific value stored in the reference voltage register of the selected slave memory device controls a reference voltage used by a corresponding receiver circuit of the selected slave memory device, the receiver circuit to receive the data signal transmitted by the slave memory controller to the selected slave memory device.
Type: Application
Filed: Jul 29, 2016
Publication Date: Feb 2, 2017
Patent Grant number: 9785589
Inventors: Jared LeVan Zerbe (Woodside, CA), Kevin S. Donnelly (Los Altos, CA), Stefanos Sidiropoulos (Palo Alto, CA), Donald C. Stark (Palo Alto, CA), Mark A. Horowitz (Menlo Park, CA), Leung Yu (Santa Clara, CA), Roxanne Vu (San Jose, CA), Jun Kim (Los Altos Hills, CA), Bruno W. Garlepp (Sunnyvale, CA), Tsyr-Chyang Ho (Saratoga, CA), Benedict Chung-Kwong Lau (San Jose, CA)
Application Number: 15/222,987