This invention relates to systems implementing double data rate (DDR) protocol.
DDR protocol refers to a data transfer protocol that allows for data to be fetched on both the rising and falling edges of a clock (referred to as a data strobe or DQS), thus doubling the effective data transfer rate.
According to DDR protocol, a device driving data also drives the DQS signal. That is, if device 110 is driving data to device 120 via data bus 140, device 110 is also driving a DQS signal to device 120 via DQS bus 130. Conversely, if device 120 is driving data to device 110, it is driving both the data and the DQS signal.
Prior to transmitting data, first device 110 pulls the voltage on DQS bus 130 to zero, then transmits the clock signal as shown. First device 110 concludes data transmission at t1 by transmitting a zero on DQS bus 130. First device 110 then relinquishes control of DQS bus 130.
Between t1 and t2, neither device is transmitting data, so neither is driving a signal on DQS bus 130. For a series terminated bus, the voltage on DQS bus 130 would generally remain in the most recently asserted (zero) state. However, for a parallel terminated bus (as shown in
In general, in one aspect, a circuit includes a driver in communication with a clock bus. The circuit may also include a clock transmitter in communication with a clock bus to transmit a clock signal on the clock bus. The circuit may also include a clock receiver in communication with the clock bus to receive a clock signal on the clock bus.
The driver may drive a voltage of the clock bus to a first voltage level when the clock transmitter is not transmitting a clock signal on the clock bus and the clock receiver is not receiving a clock signal on the clock bus. The first voltage level may correspond to a logical one or a logical zero.
The driver may include a resistance. For example, the driver may include a first resistance between the clock bus and a voltage VDD and a second resistance between the clock bus and ground. The resistances may be provided using resistors. The driver may include a transistor.
The circuit may include enabling circuitry in communication with the driver. The enabling circuitry may enable the driver when the clock transmitter is not transmitting a clock signal on the clock bus and the clock receiver is not receiving a clock signal on the clock bus. The enabling circuitry may also disable the driver when the clock transmitter is not transmitting a clock signal on the clock bus and the clock receiver is not receiving a clock signal on the clock bus.
The circuit may further include receive processing circuitry in communication with the enabling circuitry. The receive processing circuitry may include a receive processing clock, which may turn off in response to a signal from the enabling circuitry.
The driver may be included in a packet processor. The packet processor may be configured to transmit data and to receive data according to a double data rate (DDR) protocol. The circuit may also include a memory. The memory may be configured to transmit data and to receive data according to the DDR protocol. The memory may include a clock transmitter in communication with the clock bus, a clock receiver in communication with the clock bus, and a driver in communication with the clock bus.
In general, in one aspect, a method includes determining that no device is transmitting a clock signal on a clock bus, driving a clock bus to a first voltage, determining that the voltage of the clock bus is equal to the first voltage, and driving the clock bus to a second voltage different than the first voltage. The first voltage may be a logical one or a logical zero. The method may also include driving a clock signal on the clock bus, and may include driving a data signal synchronized with the clock signal on a data bus.
In general, in one aspect, a circuit includes a voltage driving means in communication with a clock bus. The voltage driving means may be for driving a voltage of the clock bus to a first voltage level when a clock signal transmission means is not transmitting a clock signal on the clock bus and a clock signal receiving means is not receiving a clock signal on the clock bus. The first voltage level may correspond to a logical one or a logical zero.
The details of one or more implementations are set forth in the accompanying drawings and the description below. Other features and advantages will be apparent from the description and drawings, and from the claims.
Like reference symbols in the various drawings indicate like elements.
As noted above, a parallel terminated DQS bus is generally in an unknown state after a device relinquishes control of the bus. Therefore, bus control in DDR data transfer can be quite complicated. For example, a device may need to be capable of performing complex timing calculations to determine whether the bus is available for transmitting data to one or more other devices. These calculations may be unreliable for systems operating at high frequencies, as well as for systems in which devices are physically separated by an appreciable distance.
First device 310 further includes a driver 350 in communication with DQS bus 330. Driver 350 may be a weak pull-up, so that when a DQS driver such as DQS driver 322 is driving a clock signal on DQS bus 330, driver 350 has little or no effect on the clock signal.
However, driver 350 is configured so that when no devices are driving a signal on DQS bus 330, the voltage on DQS bus 330 is driven to a voltage corresponding to a logical one. That is, driver 350 pulls DQS bus 330 to a voltage above the threshold voltage at which devices such as first device 310 and second device 320 recognize the voltage on DQS bus 330 as a logical one. In some implementations, driver 350 is enabled only at particular times, which may includes times in which no device is driving a clock signal on DQS bus 330.
In an implementation, first device 310 is a packet processor and second device 320 is a memory. First device 310 transmits data to second device 320, requests data from second device 320, and receives requested data from second device 320. Second device 320 receives data requests from first device 310 and transmits requested data accordingly.
As shown in
At time t2, second device 320 takes control of DQS bus 330 by bringing the voltage on DQS bus 330 down to zero. First device 310 recognizes the change in voltage from a value corresponding to a logical one to a Value corresponding to a logical zero, and therefore recognizes that data from second device 320 will be transmitted at the next rising edge. Thus, a system such as that shown in
In some implementations, each device in communication with DQS bus 330 may include a driver such as driver 350. In some implementations, not all devices may include a driver. For example, in the implementation described above with first device 310 implemented as a packet processor and second device 320 implemented as a memory, a driver 350 may be included in first device 310 but not in second device 320. Since second device 320 only transmits data in response to a request from first device 310, first device 310 may determine whether DQS bus 330 is available based on the amount of data received from second device 320 and act accordingly.
For example, first device 310 may request a particular number of bits of data from second device 320. First device 310 may determine that second device 320 is transmitting data by sensing a change in the voltage on DQS bus 330 from a voltage corresponding to a logical one to a voltage corresponding to a logical zero. A's first device 310 receives data, it may count the number of bits received and thus determine when second device 320 has completed data transmission. First device 310 may subsequently enable driver 350 to bring the voltage on DQS bus 330 to a voltage corresponding to a logical one.
In some implementations, system 300 may include enabling circuitry 360 to enable and disable driver 350. For example, enabling circuitry 360 may enable driver 350 whenever no clock signal is being driven on DQS bus 330. Alternately, enabling circuitry 360 may not enable driver 350 under some circumstances. For example, first device 310 may request a number of data transfers from second device 320. If first device 310 does not need to transmit data to second device 320 between data transfers, enabling circuitry 360 may not enable driver 350 between data transfers. Since first device 310 is not transmitting data the voltage on DQS bus 330 may be allowed to drift to an unknown state between data bursts from second device 320.
Driver 350 may be implemented in a number of ways.
First resistor 555 has a resistance of R1, while second resistor 557 has a resistance of R2. In order to weakly drive the voltage of DQS bus 530 to a voltage corresponding to a logical one, R1 and R2 should be large.
The relative values of R1 and R2 determine the voltage on DQS bus 530. Generally, when R2 is slightly larger than R1, the voltage on DQS bus 530 may be driven to an appropriate voltage.
The implementation of
System 600 includes a first device 610 with a DQS driver 612 and a DQS receiver 613 in communication with a DQS bus 630. Parallel termination of DQS bus 630 is provided by a termination mechanism 635. System 600 further includes a second device 620 with a DQS driver 622 and a DQS receiver 623.
Device 610 includes a driver 650, which is generally weaker than both DQS driver 612 and DQS driver 622, so that the DQS drivers can pull the voltage on DQS bus 630 to a zero upon taking control of DQS bus 630. For example, driver 650 may be a transistor. Device 610 also includes a multiplexer (MUX) 640, which is controlled by a clock signal 643. When clock signal 643 is toggling, MUX 640 outputs clock signal 643 to DQS driver 612.
A device enable signal 642 is input to driver 612. Device enable signal 642 is asserted when device 610 is to take control of DQS bus 630. In response, the clock signal output from MUX 640 is communicated on DQS bus 630 to receiver 623 of second device 620. In order to relinquish control of DQS bus 630, device enable signal 642 is disasserted.
System 600 may also include enabling circuitry 660 to enable and disable driver 650. Enabling circuitry 660 may include, for example, a flip flop 661, a chopping device 662, and a flip flop 664. Device enable signal 642 is sampled by a flip flop 661. Signal 642 is delayed by a cycle and output to a chopping device 662. Chopping device 622 outputs a negative pulse of one cycle to set a flip flop 664. When flip flop 664 is set, Q is one and QN is zero, enabling driver 650.
When a device such as device 620 takes control of DQS bus 630 by pulling the voltage down to zero, RN would be set to one to reset flip flop 664. Driver 650 would then be disabled (QN would be set to one).
Thus driver 650 may be disabled in one of two ways. First, when device enable signal 642 is asserted (i.e., device 610 itself is transmitting data), driver 650 may be disabled. Additionally, when a different device takes control of DQS bus 630, the output of flip flop 664 disables driver 650.
The output of flip flop 664 may also be used to enable receive circuitry 670 for processing a signal received by DQS receiver 613. A gate 666 receives both output Q of flip flop 664 and device enable 642. When both inputs are low, DQS receiver 613 is receiving live data on a data bus (not shown). In response, gate 666 outputs a signal to turn on a receive enable clock in receive circuitry 670 to enable receive circuitry to process the data. Such an implementation may provide for lower power consumption, since the receive circuitry need not be powered at all times.
A number of implementations have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. For example, although the driver is shown as included in a device in communication with the DQS bus, it may be implemented as part of different circuitry. Accordingly, other implementations are within the scope of the following claims.
This application is a divisional application (and claims the benefit of priority under 35 USC 120) of U.S. application Ser. No. 10/631,327, filed Jul. 30, 2003. The disclosure of this application is considered part of (and is incorporated by reference in) the disclosure of this application.
Number | Name | Date | Kind |
---|---|---|---|
4054950 | Boone | Oct 1977 | A |
4344127 | McDaniel et al. | Aug 1982 | A |
5355468 | Jeppesen, III et al. | Oct 1994 | A |
5418822 | Schlachter et al. | May 1995 | A |
5732249 | Masuda et al. | Mar 1998 | A |
5754780 | Asakawa et al. | May 1998 | A |
5964856 | Wu et al. | Oct 1999 | A |
6173350 | Hudson et al. | Jan 2001 | B1 |
6240043 | Hanson et al. | May 2001 | B1 |
6407963 | Sonoda et al. | Jun 2002 | B1 |
6442102 | Borkenhagen et al. | Aug 2002 | B1 |
6453381 | Yuan et al. | Sep 2002 | B1 |
6525981 | Ryan | Feb 2003 | B2 |
6600681 | Korger et al. | Jul 2003 | B1 |
6785189 | Jacobs et al. | Aug 2004 | B2 |
6816544 | Bailey et al. | Nov 2004 | B1 |
6898722 | Anzai | May 2005 | B2 |
6918016 | Magro | Jul 2005 | B1 |
6920526 | Sikkink et al. | Jul 2005 | B1 |
6957399 | Emberling et al. | Oct 2005 | B2 |
7089509 | Emberling et al. | Aug 2006 | B2 |
7219269 | Frisch | May 2007 | B2 |
7257036 | Chang et al. | Aug 2007 | B2 |
7345933 | Telem et al. | Mar 2008 | B1 |
7685456 | Rosen | Mar 2010 | B1 |
20010014053 | Li | Aug 2001 | A1 |
20020017943 | Mihara et al. | Feb 2002 | A1 |
20020026547 | Rodriguez | Feb 2002 | A1 |
20020184461 | Zumkehr | Dec 2002 | A1 |
20030031081 | Suzuki et al. | Feb 2003 | A1 |
20030107415 | Nguyen | Jun 2003 | A1 |
20030140080 | Friend et al. | Jul 2003 | A1 |
20040019816 | Smith et al. | Jan 2004 | A1 |
20040039973 | Bub | Feb 2004 | A1 |
20050015560 | Bae | Jan 2005 | A1 |
20050018494 | Wu et al. | Jan 2005 | A1 |
20060017480 | Lin | Jan 2006 | A1 |
Entry |
---|
Rabaey, Jan et al., “Digital Integrated Circuits: a design perspective”, 2003, Pearson Education, 2nd ed. pp. 453-459. |
Marvell International Ltd.; Discovery LT MIPS System Controller, MV64420; 2004, 2 pages. |
Micron Technology, Inc.; TN-46-05 General DDR SDRAM Functionality, Technical Note; Jul. 2001; 11 pages. |
Lattice Semiconductor Corporation; Dedicated DDR Memory Interface Circuitry, Mar. 17, 2005; 2 pages. |
Number | Date | Country | |
---|---|---|---|
Parent | 10631327 | Jul 2003 | US |
Child | 11546807 | US |