Memory systems and methods for dynamically phase adjusting a write strobe and data to account for receive-clock drift

A memory system includes a memory controller that writes data to and reads data from a memory device. A write data strobe accompanying the write data indicates to the memory device when the write data is valid, whereas a read strobe accompanying data from the memory device indicates to the memory controller when the read data is valid. The memory controller adaptively controls the phase of the write strobe to compensate for timing drift at the memory device. The memory controller uses the read strobe as a measure of the drift.

FIELD

The subject matter disclosed herein relates generally to circuits for communicating data between integrated circuits, and in particular to circuits and associated methods for phase shifting data and strobe signals to accommodate drift in a clock signal.

BACKGROUND

SDRAM, or synchronous dynamic random access memory, is a type of memory integrated circuit that waits for rising or falling edges of a timing reference signal before responding to control inputs. Typical examples of timing reference signals include clock signals and strobe signals. DDR SDRAM, or double-data-rate SDRAM, achieves greater bandwidth than ordinary SDRAM by transferring data on both the rising and falling edges of timing reference signals.

Many DDR SDRAMs that produce data also produce a data strobe, called “DQS” (“data query strobe”), to indicate that data is valid. The DQS is transmitted, along with data, from the memory controller to the DDR SDRAM during write operations and from the DDR SDRAM from the memory controller during read operations. When driven by the memory controller, DQS is center-aligned with the write data. When driven by the memory, DQS is edge-aligned with the read data.

The timing for write operations is often defined in a specification. For example, in at least some DDR SDRAM specifications, the time tDQSSbetween a write command and the first corresponding rising edge of DQS is specified with a relatively wide range (from 75% to 125% of one clock cycle). The time tDQSSmight be described as a window during which the specified DDR SDRAM “looks for” data on a data bus. Devices issuing a write command to such a DDR SDRAM are expected to drive DQS in such a way that the signal arrives at the DRAM pins at a clock edge, plus or minus 25% of one clock cycle.

Designing a memory controller that provides the write DQS within a timing window tDQSScan be complicated by the fact that the memory controller is desired to operate in many different system topologies. For example, relatively short, lightly loaded channels may lead a DQS to arrive too early; whereas relatively long, highly loaded channels may lead a DQS to arrive too late. In either case, the early or late DQS may violate the specification requirement for the timing window tDQSS, and potentially lead to an error. Other system variations, such as those that result from process variations and temperature and supply-voltage fluctuations, also affect signal propagation delays and therefore further complicate the task of maintaining the relative timing of the DQS and the write signal within the requisite window.

Meeting the DQS timing window tDQSScan be particularly daunting if the memory device does not include clock recovery circuitry to stabilize the device-side clock signal used to time the write signal. DDR DRAMs adapted for use in mobile devices often lack clock-recovery circuitry, which advantageously reduces standby power and standby-active transition latency. Unfortunately, these benefits come at the cost of increased write signal drift, leading to an increased probability of violating the tDQSStiming parameter.

DETAILED DESCRIPTION

FIG. 1depicts a memory system100, including a memory controller105and at least one memory device110. In accordance with the depicted embodiment, memory controller105adaptively controls the timing of the write DQS to compensate for timing drift of write signals within memory device110, and therefore to prevent violations of the tDQSStiming window. Read DQS signals from memory device110provide a measure of write-signal timing. Memory controller105monitors the phase of read DQS signals to sense and correct for write-signal drift.

Memory controller105includes control logic115that issues address and control signals to a command interface120, conveys byte-wide transmit-data signals TD to a variable-delay write circuit125, and receives byte-wide receive-data signals RD from a variable delay read circuit130. A distributed clock signal PClk defines the clock domain for control logic115, interface120, and portions of variable-delay write and read circuits125and130. Respective write and read phase-reference signals PClkWc and PClkRc, each a phase shifted version of clock signal PClk in this embodiment, respectively define the write and read clock domains.

Memory device110, a strobed DDR DRAM in this example, includes a clock distribution network140, a command decoder145, a write circuit150, and a read circuit155, all of which communicate with a DRAM core160. Memory device110additionally includes a plurality of pads165coupled to corresponding pads135of controller105. In this example, one of pads135is a shared strobe terminal that both conveys the write strobe to and receives the read strobe from memory device110, and data lines DQ share collections of pads135to transmit and receive data. Separate unidirectional data lines or separate strobe lines can be used for transmit and receive operations in other embodiments.

Clock signal PClk from control logic115times both the memory controller and the memory device. The clock path between memory controller105and the various components of memory device110, including clock distribution network140, impose a clock delay, so the device-side clock domain is defined by a distributed clock signal Ckb that may not be phase aligned with controller-side clock signal PClk. Including a clock-recovery circuit in network140can ameliorate this phase misalignment; however, clock recovery circuitry consumes standby power and increases the time required to activate the memory device, and is therefore undesirable for some applications.

To perform a write operation, control logic115issues the appropriate address and control signals to command interface120. The following discussion is limited to write command WCa for ease of illustration, as the remaining address and control signals will be readily understood by those of skill in the art. Command interface120includes a synchronous storage element170that times write command WCa to clock signal PClk. The resulting signal WCac is then conveyed to command decoder145as signal WCad. (The present disclosure employs a naming convention in which signals ending with a lower-case “c” are control-side signals, and signals ending in a lower-case “d” are memory-device-side signals. This naming convention recognizes that signals communicated between memory controller105and memory device110shift in phase.) Synchronous storage element175within command decoder145retimes control signal WCad to the device-side time domain defined by signal Ckb to create a write signal Write to core160.

During a write operation, variable-delay write circuit125issues, on a write-strobe terminal DQSWc, a like-named, center-aligned write strobe with write data DQ to memory device110. (In general, signals and their associated nodes carry the same designations. Whether a given moniker refers to a signal or a corresponding node will be clear from the context.) The timing of the data and strobe signals is based upon a clock signal PClkWc, a delayed version of clock signal PClk. As detailed below, the delay imposed upon clock signal PClkWc is set to ensure system100meets the tDQSSrequirement imposed by the DDR SDRAM specification.

At memory device110, write circuit150captures the write data DQ from memory controller105using a strobe DQSWd, a delayed version of DQSWc, and retimes the captured data to the memory-device clock domain as data WRD. As noted previously, per the tDQSSspecification the time between the write command Write and the first corresponding rising edge of DQS is specified as from 75% to 125% of one clock cycle. In memory device110, this timing window tDQSScorresponds to the phase difference between the strobe DQSWd and the edge of clock signal Ckb that accompanies write command Write.

During a read operation, read circuit155issues a read data strobe DQSRd edge-aligned with data DQ to memory controller105. Variable-delay read circuit130then captures the read data DQ using a clock signal PClkRc phase aligned with a delayed version of read strobe DQSRd, controller-side read strobe DQSRc. Variable-delay read circuit130then retimes the captured data to the controller clock domain PClk as data RD. A phase comparator180maintains the alignment between clock signal PClkRc and read strobe DQSRc by occasionally comparing the phases of these two signals and phase adjusting clock signal PClkRc as needed to reduce any phase difference. In this embodiment, comparator180uses a control signal Inc/Dec to adjust the signal-propagation delay through a delay circuit182to phase adjust clock signal PClkRc. Control signal Inc/Dec is also used in this embodiment to advance or retard the write clock domain defined by clock signal PClkWc.

In variable-delay write circuit125, a skip circuit188samples data signals TD from control logic115using clock signal PClk and retimes the captured data to clock signal PClkWc, a delayed version of clock signal PClk. The delay imposed by delay circuit186is set to optimize the timing of controller-side strobe DQSWc, and thus the device-side strobe DQSWd, to maintain the delay between the strobe DQSWd and the edge of clock signal Ckb that accompanies write command Write within the specified tDQSSwindow.

FIG. 2depicts a flowchart200illustrating a process of calibrating and adaptively adjusting memory controller105in accordance with one embodiment. In a calibration process205that may be performed at initialization or another time, memory controller105initiates a series of dummy write operations210to memory device110, each write operation using different delayed versions of a write data signal. In this step, memory controller105may write pre-specified data bytes to memory device110, independent of any data needs of components of the memory system or other higher layer machine-readable code; these writes may be performed at power-up, or other intervals in which the memory component was otherwise not being utilized.

Following completion of the dummy write operations210, controller105reads the data of all dummy write operations from memory device110(step215) and compares the read data with a copy of the originally written data to identify successful write operations (step220). Timing information corresponding to the successful dummy write operations allows for identification of the particular delayed write data signal providing the best timing margin (step225). The logic values that identify the delayed write data signal providing the best timing margin may then be programmed into one or both of delay circuits182and186(step227).

Delay adaptation230follows calibration205to accommodate phase drift that occurs over time due to e.g. temperature and supply-voltage fluctuations. Per decision235, phase comparator180in controller105occasionally compares read strobe DQSRc with clock signal PClkRc during read operations. If these two signals are out of phase, comparator180adjusts delay circuit182as needed to maintain synchronization between the two signals (step240). In some embodiments, delay circuit182can be calibrated to introduce a phase offset (e.g., 90 degrees) that is adaptively maintained.

In embodiments where the adjustment is dynamic, a minimum read command density or rate may be needed. In particular, because the adjustment only occurs when read data is received by memory controller105, excessive timing drift may occur if read commands are issued infrequently. In some embodiments, therefore, control logic115may issue one or more supplemental read commands to the memory device110if a time interval since a last read command exceeds a predetermined value.

Turning to variable-delay write circuit125, delay circuit186is set at initialization to maintain the tDQSSparameter within the specified window as discussed above. Once set, however, the tDQSSwindow can vary with temperature and supply voltage fluctuations. Clock distribution network140, a primary contributor to such variations, allows clock signal Ckb to drift with respect to write strobe DQSWd. Storage element175synchronizes the Write command to clock signal Ckb, so the Write command likewise drifts with respect to write strobe DQSWd. If substantial, such drift can cause memory system100to violate the required tDQSSwindow.

Recall that time tDQSSis the time between the strobe DQSWd and the edge of clock signal Ckb that accompanies write command Write. Because the write command Write is timed to clock signal Ckb, clock signal Ckb provides a measure of write-signal drift. Read strobe signal RQSRd is also timed to clock signal Ckb, and is therefore also a measure of write-signal drift. In other words, both write command Write and read strobe RQSRd are timed to clock signal Ckb, and therefore drift together with clock signal Ckb. Memory controller takes advantage of this relationship by altering the phase of write strobe DQSWc to account for drift in the read strobe signal RQSRd, and thus to account for drift in clock signal Ckb that might otherwise induce a violation in the specified tDQSSwindow.

Comparator180issues control signals Inc/Dec to delay circuit182to maintain phase alignment between clock signal PClkRc and the receive strobe DQSRc. These phase adjustments accommodate phase changes in receive strobe DQSRc that are induced by changes in the phase of clock signal Ckb, and are consequently similar in magnitude to the phase changes experienced by write command Write. Control signals Inc/Dec are also conveyed to delay circuit186within variable-delay write circuit125to adjust clock signal PClkWc by the same phase change imposed by delay circuit182to accommodate changes in strobe DQSRc. Write strobe DQSWc is timed to clock signal PClkWc, and so is likewise phase adjusted to accommodate drift in the receive strobe DQSRc, and thus the similar drift in write signal Write.

FIG. 3depicts an embodiment of memory system100ofFIG. 1in more detail, like-identified elements being the same or similar. In addition to delay186and skip circuit188ofFIG. 1, variable-delay write circuit125includes input registers302and304timed to clock domain PClk, output registers306,308, and310timed to the PClkWc domain, a strobe-pattern generator312, a multiplexer314, and a pair of output buffers316and318. Registers302and304capture transmit-enable signal Ten and eight-bit-wide data TD, respectively, upon rising edges of clock signal PClk. Skip circuit188retimes the outputs of registers302and304to the PClkWc domain and provides the retimed transmit-enable signal TenF to register306and four-bits of data TD to each of registers308and310for capture by respective rising and falling edges of clock signal PClk. Multiplexer314then alternately transmits the contents of registers308and310via driver318to memory device110. Each time multiplexer314issues a burst of parallel data bits, pattern generator312transmits a write-strobe pattern (e.g., 1010) DQSWc to accompany the data to memory device110. Both the transmitted strobe DQSWc and the write data DQ are timed to PClkWc, the phase of which can be adjusted relative to clock signal PClk by asserting a load signal Ldt to capture an applied transmit phase-adjustment signal Tpht.

Variable-delay read circuit130may function in substantially the same manner as variable-delay write circuit125, so a detailed discussion of variable-delay read circuit130is omitted for brevity. In summary, variable-delay read circuit130transfers read data DQ from clock domain PClkRc to clock domain PClk in the presence of an asserted receive-enable signal Ren. An AND gate320issues an enable signal EN that allows comparator180to update the delay calibration for delay elements182and186in the presence of a version of the read-enable signal, Renc, retimed into the PClkRc clock domain. The timing of clock signal PClkRc can be adjusted by asserting a load signal Ldr to capture an applied receive phase-adjustment signal Tphr.

In an alternative embodiment (not shown), variable-delay read circuit130may include a FIFO block for receiving the read data, with the output of gate320causing the read data to be loaded into the FIFO. The read data may then be unloaded from the FIFO as receive-data signals RD. Though clock signal PClkRc is not used to sample read data in this alternative embodiment, comparator180and delay element182may still be included for updating the write delay.

FIG. 4depicts embodiments of delay circuit486and skip circuit488, which may be used as delay circuit186and skip circuit188ofFIGS. 1 and 3. For simplicity, the discussion of skip circuit488is limited to the phase shifting of transmit-enable signal Ten: variable-delay write circuit125similarly retimes other signals between the PClk and PClkWc domains.

Delay circuit486includes an offset clock generator405, a multiplexer410, and an n-bit counter415. Skip circuit488includes collections of latches420and425and a pair of multiplexers430and435. Register306fromFIG. 3is also included inFIG. 4to show how the respective outputs TenF and PClkWc of skip circuit488and delay circuit486may be used to produce a transmit enable signal TenFc retimed to the PClkWc domain.

Counter415, a 5-bit counter in the depicted embodiment, is loaded with a calibrating value at initialization, as detailed above in connection withFIG. 2. The five bits loaded into counter405are presented on its output as course delay bits DlyC[2:0] and fine delay bits DlyF[1:0]. These delay signals together determine the delays imposed on the transmit-enable signal Ten and clock signal PClk to obtain the adjusted enable signal TenFc and write clock signal PClkWc. These signals can then be phase adjusted as needed by incrementing or decrementing counter415as described above in connection withFIGS. 1 and 2.

FIG. 5is a timing diagram500illustrating operation of skip circuit488and delay circuit486ofFIG. 4for the case in which DlyC[2:0] is 010 and DlyF[1:0] is 01. DlyC[2:0] is coupled to the select port of multiplexer430, and causes multiplexer430to select its #2 (01) input to provide output signal TenC, a version of transmit enable signal Ten delayed by three clock cycles via latches420. Signal TenC can thus be delayed in increments of one PClk cycle by appropriate selection of DlyC[2:0] values. Latches425then present the coarsely adjusted enable signal TenC to the inputs of multiplexer435on both the rising and falling edges of clock signal PClk. Because DlyF[1] is a zero in this example, multiplexer435selects the output of the one of latches425with an inverted clock input. The output TenF from multiplexer435therefore takes the value of TenC following the next falling edge of clock signal PClk.

Offset clock generator405provides four clock signals PClk00, PClk01, PClk10, and PClk11having different phase offsets relative to the clock signal PClk. PClk00, PClk01, PClk10, and PClk11are delayed with respect to the PClk signal by 0, 0.25, 0.5, and 0.75 clock cycles, respectively. Multiplexer410then selects one of these four clock signals based upon the value of fine delay signal DlyF[1:0] to produce the phase-shifted write clock signal PClkWc. DlyF[1:0] is 01 in the present example, so multiplexer410outputs signal PClk01as write clock signal PClkWc. Register306captures the adjusted transmit-enable signal TenF on the rising edge of clock signal PClkWc to produce the final transmit enable signal TenFc phase adjusted by 0.25 clock cycles into the PClkWc domain. TenFc and PClkWc can be similarly phase adjusted 0, 0.5, and 0.75 by setting fine delay signal DlyF[1:0] to 00, 10, and 11, respectively.

In the foregoing description and in the accompanying drawings, specific terminology and drawing symbols are set forth to provide a thorough understanding of the present invention. In some instances, the terminology and symbols may imply specific details that are not required to practice the invention. For example, the interconnection between circuit elements or circuit blocks may be shown or described as multi-conductor or single conductor signal lines. Each of the multi-conductor signal lines may alternatively be single-conductor signal lines, and each of the single-conductor signal lines may alternatively be multi-conductor signal lines. Signals and signaling paths shown or described as being single-ended may also be differential, and vice-versa. Similarly, signals described or depicted as having active-high or active-low logic levels may have opposite logic levels in alternative embodiments. As another example, circuits described or depicted as including metal oxide semiconductor (MOS) transistors may alternatively be implemented using bipolar technology or any other technology in which a signal-controlled current flow may be achieved. With respect to terminology, a signal is said to be “asserted” when the signal is driven to a low or high logic state (or charged to a high logic state or discharged to a low logic state) to indicate a particular condition. Conversely, a signal is said to be “de-asserted” to indicate that the signal is driven (or charged or discharged) to a state other than the asserted state (including a high or low logic state, or the floating state that may occur when the signal driving circuit is transitioned to a high impedance condition, such as an open drain or open collector condition). A signal driving circuit is said to “output” a signal to a signal receiving circuit when the signal driving circuit asserts (or de-asserts, if explicitly stated or indicated by context) the signal on a signal line coupled between the signal driving and signal receiving circuits.

An output of a process for designing an integrated circuit, or a portion of an integrated circuit, comprising one or more of the circuits described herein may be a computer-readable medium such as, for example, a magnetic tape or an optical or magnetic disk. The computer-readable medium may be encoded with data structures or other information describing circuitry that may be physically instantiated as an integrated circuit or portion of an integrated circuit. Although various formats may be used for such encoding, these data structures are commonly written in Caltech Intermediate Format (CIF), Calma GDS II Stream Format (GDSII), or Electronic Design Interchange Format (EDIF). Those of skill in the art of integrated circuit design can develop such data structures from schematic diagrams of the type detailed above and the corresponding descriptions and encode the data structures on computer readable medium. Those of skill in the art of integrated circuit fabrication can use such encoded data to fabricate integrated circuits comprising one or more of the circuits described herein.

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, the skip and delay circuitry disclosed herein are examples, but are not limiting. Many other circuits and methods for crossing clock domains are well known to those of skill in the art. Embodiments of the invention may be adapted for use with multi-pulse-amplitude-modulated (multi-PAM) signals. 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. Only those claims specifically reciting “means for” or “step for” should be construed in the manner required under the sixth paragraph of 35 U.S.C. §112.