The present invention relates to a processor-based system, and more particularly, to a processor-based system having a memory module with a memory hub coupling several memory devices to a processor or other memory access device.
Processor-based systems, such as computer systems, use memory devices, such as dynamic random access memory (“DRAM”) devices, as system memory to store instructions and data that are accessed by a processor. In a typical computer system, the processor communicates with the system memory through a processor bus and a memory controller. The processor issues a memory request, which includes a memory command, such as a read command, and an address designating the location from which data or instructions are to be read or to which data or instructions are to be written. The memory controller uses the command and address to generate appropriate command signals as well as row and column addresses, which are applied to the system memory. In response to the commands and addresses, data is transferred between the system memory and the processor. The memory controller is often part of a system controller, which also includes bus bridge circuitry for coupling the processor bus to an expansion bus, such as a PCI bus.
Although the operating speed of memory devices has continuously increased, this increase in operating speed has not kept pace with increases in the operating speed of processors. Even slower has been the increase in operating speed of memory controllers coupling processors to memory devices. The relatively slow speed of memory controllers and memory devices limits the data bandwidth between the processor and the memory devices.
One approach to increasing the data bandwidth to and from memory devices is to use multiple memory devices coupled to the processor through a memory hub as shown in
The system controller 110 contains a memory hub controller 112 that is coupled to the processor 104. The memory hub controller 112 is also coupled to several memory modules 114a-n through a bus system 115. Each of the memory modules 114a-n includes a memory hub 116 coupled to several memory devices 118 through command, address and data buses 117. The memory hub 116 efficiently routes memory requests and responses between the controller 112 and the memory devices 118. Computer systems employing this architecture can have a higher bandwidth because the processor 104 can access one memory module 114a-n while another memory module 114a-n is responding to a prior memory access. For example, the processor 104 can output write data to one of the memory modules 114a-n in the system while another memory module 114a-n in the system is preparing to provide read data to the processor 104. The operating efficiency of computer systems using a memory hub architecture can make it more practical to vastly increase data bandwidth of a memory system. A memory hub architecture can also provide greatly increased memory capacity in computer systems.
The system controller 110 also serves as a communications path to the processor 104 for a variety of other components. More specifically, the system controller 110 includes a graphics port that is typically coupled to a graphics controller 121, which is, in turn, coupled to a video terminal 123. The system controller 110 is also coupled to one or more input devices 120, such as a keyboard or a mouse, to allow an operator to interface with the computer system 10. Typically, the computer system 10 also includes one or more output devices 122, such as a printer, coupled to the processor 104 through the system controller 110. One or more data storage devices 122 are also typically coupled to the processor 104 through the system controller 110 to allow the processor 104 to store data or retrieve data from internal or external storage media (not shown). Examples of typical storage devices 124 include hard and floppy disks, tape cassettes, and compact disk read-only memories (CD-ROMs).
Although there are advantages to utilizing a memory hub for accessing memory devices, the design of the hub memory system, and more generally, computer systems including such a memory hub architecture, becomes increasingly difficult. The memory modules 114a-n each internally operate synchronously although perations between memory modules are asynchronous. The command, address, and data signals transferred to the memory module 114a-n are normally latched or strobed into the memory modules 114a-n by a clock signal. However, as transfer rates increase, the time during which the command, address and data signals as received at the memory hubs 116 are valid decreases. This period during which the signals are valid is commonly referenced by those ordinarily skilled in the art as the “window” or “eye.” Not only does the size of the eye for command, address, and data signals decrease, but the time or location of the eye can also vary because of various factors, such as timing skew, voltage and current drive capability, and the like. In the case of timing skew of signals, it often arises from a variety of timing errors such as loading on the lines of the bus and the physical lengths of such lines.
As the size of signal eyes decrease at higher transfer rates, the variations in the location of the signal eyes become more of a problem. One technique to alleviate this problem to some extent is to couple a clock to the memory modules. As shown in
One technique that has been proposed to allow the CLK signal to continue being used to strobe command, address and data signals at higher transfer rates is to include circuitry (not shown) in the memory hubs 116 that adjusts the timing of the CLK signal within each of the hubs 116 so that it is aligned with the signal eye. However, this technique adds a fair degree of complexity to the memory hubs 116 and is not always effective.
There is therefore a need for a system and method that allows command, address and data signals to be coupled between a memory hub controller and one or more memory hubs in respective memory modules that avoids problems of synchronizing a clock signal coupled between the memory hub controller and memory hubs along with the command, address, and data signals.
A memory system includes a memory hub controller coupled to a plurality of memory hubs each of which includes at least one receiver that is initialized before use. The memory hub controller transmits a downstream initialization complete signal to one of the memory hubs when initialization of a receiver in the memory hub controller has been completed. Each of the memory hubs determines if it is receiving a respective downstream initialization complete signal, and it also determines if initialization of at least one internal receiver has been completed. If so, each of the memory hubs except for a final memory hub furthest downstream from the memory hub controller transmits a downstream initialization complete signal. If the final memory hub receives the respective downstream initialization complete signal and initialization of at least one receiver in the final memory hub has been completed, the final memory hub transmits an upstream initialization complete signal. Each of the memory hubs except for the final memory hub determines if it is receiving a respective upstream initialization complete signal, and it also determines if initialization of all receivers in the memory hub has been completed. If so, the memory hub transmits an upstream initialization complete signal. When the memory hub controller receives a respective upstream initialization complete signal, it transitions the memory system to normal operation.
Embodiments of the present invention are directed to a memory module and memory hub controller each having the capability of generating a clock signal for strobing data signals during the “eye” of the data signals when the data signals are valid. More particularly, embodiments of the present invention are directed to a system and method for communicating the initialization status of the memory module and memory hub controller. Certain details are set forth below to provide a sufficient understanding of various embodiments of the invention. However, it will be clear to one skilled in the art that the invention may be practiced without these particular details. In other instances, well-known circuits, control signals, and timing protocols have not been shown in detail in order to avoid unnecessarily obscuring the invention.
A computer system 100 having a hub memory system according to one embodiment of the invention is shown in
As in the computer system 10 of
The downstream buses 132 couple data away from the memory hub controller 128, and the upstream buses 134 couple data toward the memory hub controller 128. Therefore, the downstream bus 132 couples write data to and from each of the memory modules 130, except for the memory module 130n furthest downstream from the memory hub controller 128, which only receives write data. Similarly, the upstream bus 134 couples read data to and from each of the memory modules 130, except for the memory module 130n furthest downstream from the memory hub controller 128, which only transmits read data. The downstream bus 132 also couples write data from the memory hub controller 128, and the upstream bus 134 couples read data to the memory hub controller 128. Significantly, the buses 132, 134 need not couple clock signals to and from the memory modules 130 and the memory hub controller 128 for the purpose of allowing the memory modules 130 to capture data transmitted through the buses 132, 134. Instead, as explained in greater detail below, each of the memory modules 130 and the memory hub controller 128 generates signals internally to strobe the data coupled through the buses 132, 134.
The memory modules 130 are shown coupled to the memory hub controller 128 in a point-to-point coupling arrangement in which each of the buses 132 and 134 are coupled only between two points. However, it will be understood that other topologies may also be used. For example, it may be possible to use a multi-drop arrangement in which a single downstream bus (not shown) and a single upstream bus (not shown) are coupled to all of the memory modules 130. A switching topology may also be used in which the memory hub controller 128 is selectively coupled to each of the memory modules 130 through a switch (not shown). Other topologies that may be used will be apparent to one skilled in the art.
Each of the memory modules 130 includes a first receiver 142 that receives write data through the downstream bus 132, a first transmitter 144 that transmits read data upstream through the upstream bus 134, a second transmitter 146 that transmits write data downstream through the downstream bus 132, and a second receiver 148 that receives read data through the upstream bus 134.
The memory modules 130 also each include a memory hub local 150 that is coupled to its first receiver 142 and its first transmitter 144. The memory hub local 150 receives write data through the downstream bus 132 and the first receiver 142 and couples the write data to one or more of sixteen memory devices 160, which, in the example illustrated in
The memory hub 150 also receives read data from one or more of the memory devices 160 and couples the read data through the first transmitter 144 and the upstream bus 134. In the event the write data coupled through the downstream bus 132 and the first receiver 142 is not being directed to the memory devices 160 in the memory module 130 receiving the write data, the write data are coupled though a downstream bypass path 170 to the second transmitter 146 for coupling through the downstream bus 132. Similarly, if read data is being transmitted from a downstream memory module 130, the read data is coupled through the upstream bus 134 and the second receiver 148. The read data are then coupled upstream through an upstream bypass path 174, and then through the first transmitter 144 and the upstream bus 134. The second receiver 148 and the second transmitter 146 in the memory module 130n furthest downstream from the memory hub controller 128 are not used and may be omitted from the memory module 130n.
The memory hub controller 128 also includes a transmitter 180 coupled to the downstream bus 132, and a receiver 182 coupled to the upstream bus 134. The downstream bus 132 from the transmitter 180 and the upstream bus 134 to the receiver 182 are coupled only to the memory module 130a that is the furthest upstream to the memory hub controller 128. The transmitter 180 couples write data from the memory hub controller 128, and the receiver 182 couples read data to the memory hub controller 128.
The computer system 100 also includes a reference clock generator 190, which generates a reference clock signal that is coupled to the memory hub controller 128 and each of the memory modules 130. The memory hub controller 128 and the memory modules 130 use the reference clock to generate an internal clock signal that, in the embodiment of
One embodiment of the receivers 142, 182 and the transmitters 144, 180 in the memory hub controller 128 and in one of the memory modules 130 is shown in
As previously explained, the receiver 200 receives the data bits from the transmitter 210 and strobes them in using a receive clock signal generated from the clock signal received from the clock generator 500 and having four times the frequency of the core clock. More specifically, in one embodiment of the invention, the pattern transmitted by the transmitter 210 is the following 32-bit pattern divided into four cycles each having 8 bits: “01011011 11000101 10010011 00101100” (hex “5BC5932C”). The data bit pattern is transmitted from right to left. In the embodiment of
In the embodiment of
It is significant, for reasons that will be explained below, that the transmitters 210 can transmit the inverse of the above 32-bit pattern, namely “10100100 00111010 01101100 11010011,” and the receivers 200 can detect that pattern as well as the fact the inverse of the pattern is being transmitted.
In the embodiment of
In the second comparison, the pattern comparator 234 compares the eight data bits captured in the receiver 200 for each core cycle to the sixteen valid 8-bit data bit patterns stored in an expected pattern memory 230. For purposes of this comparison, it can use any of the 32 bits captured on each transition of the receive clock signal since the first comparison confirmed that all 32 bits were the same. Based on this comparison, phase adjustment logic 240 adjusts the phase of the receive clock signal so that it can best capture the data coupled to the receiver. More specifically, the pattern comparator 234 compares the 8 bits received during any core cycle to the 16 valid patterns and their inverses stored in the expected pattern memory 230 to adjust the phase of the receive clock signal. The above operation is controlled by a receive interface controller 244. One embodiment of the receivers 200 is shown and described in greater detail, and the operation of the transmitters 210 and receivers are described in greater detail, in U.S. patent application Ser. No. ______ having a common inventor, which is incorporated herein by reference.
In the third comparison, the pattern comparator 234 checks an additional 33rd bit, which functions as a control bit. The pattern that is sent on the beses 132, 134 is also sent on the control bit for each of these buses. The eight bits captured on one core clock is compared in the same manner as the second comparison.
The duration of the initialization process during which the phase of the receive clock signal is adjusted will typically be different for each of the receivers 200 used in the memory modules 130. It is important for the receivers 200 to be able to provide an indication of when the adjustment of the phase of the receive clock signal has been completed for a least two reasons. First, once initialization of a receiver 200 has been completed, the transmitter 210 no longer needs to transmit the 32-bit initialization patterns. By communicating its initialization status, the receiver 200 can inform the transmitter 210 when it can discontinue transmitting the 32-bit pattern.
The second reason why it is important for the receivers 200 to be able to communicate their respective synchronization status is because the computer system 100 (
One embodiment of a technique by which the receivers 200 can communicate their respective initialization status will now be explained with reference to the flow chart of
The procedure shown in
There is no receiver coupled to the downstream bus 132 for the memory hub controller 128 so the determination at step 324 will always result in the transmitter 180 inverting the test data at step 328 as soon as initialization of the receiver 182 has been completed. However, the “downstream” transmitters 146 in the respective memory modules 130 will not couple inverted test data to the downstream bus 132 at step 328 until detection of initialization completion of both receivers 142, 148 is detected at step 320 and receipt of inverted test data on the downstream bus 132 is detected at step 324. As a result, when the memory hub controller 128 or each of the memory modules 130 transmits inverted test data on the downstream bus 132, it notifies the downstream memory module that initialization has been completed. Each memory module 130 thus transmits inverted data downstream in sequence upon receipt of inverted test data from either the adjacent memory hub controller 128 or the upstream adjacent memory module 130 as long as initialization of both of its receivers have been completed. When the furthest downstream memory module 130 receives inverted test data on the downstream bus 132 at step 324, all of the memory modules 130 have been notified that initialization has been completed for all upstream memory modules and the memory hub controller 128.
Normal operation cannot begin responsive to the furthest downstream memory module 130 receiving inverted test data on the downstream bus 132 because the memory hub controller 128 and the memory modules 130 have not been notified that initialization has been completed for all of the downstream memory modules 130. Therefore, the process checks at step 330 to determine if inverted test data have been received through any upstream data bus 134. The memory module 130 furthest downstream from the memory hub controller 128 has no upstream data bus 134, so the “upstream” transmitter 144 in the furthest downstream memory module begins transmitting inverted test data upstream to the upstream memory module 130 at step 336. In like manner, each “upstream” receiver 148 checks at step 330 to determine if it is receiving inverted test data. If so, the upstream transmitter 144 in the memory module 130 likewise begins transmitting inverted test data upstream at step 336. When the receiver 182 in the memory hub controller 128 detects inverted test data at step 340, it is notified that initialization in both receivers 142, 148 in all of the memory modules 130 have been completed. The memory hub controller 128 then switches to the normal operating mode at step 344 by sending NOP's, or “No Operations” on the downstream bus 132.
In an alternative embodiment, the completion of initialization for only the downstream receiver 142 is checked at step 320 so that the downstream transmitter 146 in each memory module 130 will begin transmitting inverted test data at step 328 as soon as inverted test data is detected on the downstream bus 132 at step 324. In this embodiment, when the furthest downstream memory module detects inverted test data, it only signifies that initialization of the downstream receivers 142 have been completed. However, in this embodiment, the initialization status of the downstream receivers 148 are checked at step 320 along with the determination of whether inverted test data is being received by the “upstream” receiver 148 in the memory module. If inverted test data is being received through the upstream receiver 148 and initialization of the upstream receiver has been completed, the upstream transmitter 144 begins transmitting inverted test data at step 336. Therefore, receipt of inverted test data by the receiver 182 in the memory hub controller 128 still signifies that initialization for both receivers 142, 148 in all of the memory hubs 130 have been completed.
Although the transmission and detected of inverted test data provides one means of communicating the initialization status of the memory hub controller 128 and the memory modules, other communication protocols may alternatively be used.
The bus interfaces 410a,b, 412a,b are coupled to a switch 460 through a plurality of bus and signal lines, represented by buses 414. The buses 414 are conventional, and include a write data bus and a read data bus, although a single bi-directional data bus may alternatively be provided to couple data in both directions through the bus interfaces 410a,b, 412a,b. It will be appreciated by those ordinarily skilled in the art that the buses 414 are provided by way of example, and that the buses 414 may include fewer or greater signal lines, such as further including a request line and a snoop line, which can be used for maintaining cache coherency.
The switch 460 is coupled to four memory interfaces 470a-d which are, in turn, coupled to the memory devices 160 (
In an embodiment of the present invention, each memory interface 470a-d is specially adapted to the memory devices 160 to which it is coupled. More specifically, each memory interface 470a-d is specially adapted to provide and receive the specific signals received and generated, respectively, by the memory devices 160 to which it is coupled. Also, the memory interfaces 470a-d are capable of operating with memory devices 160 operating at different clock frequencies. As a result, the memory interfaces 470a-d isolate the processor 104 from changes that may occur at the interface between the memory hub 130 and memory devices 160 coupled to the memory hub local 150, and it provides a more controlled environment to which the memory devices 160 may interface.
The switch 460 coupling the bus interfaces 410a,b, 412a,b and the memory interfaces 470a-d can be any of a variety of conventional or hereinafter developed switches. For example, the switch 460 may be a cross-bar switch that can simultaneously couple bus interfaces 410a,b, 412a,b to each other to provide the downstream bypass path 170 and the upstream bypass path 174 shown in
With further reference to
The write buffer 482 in each memory interface 470a-d is used to store write requests while a read request is being serviced. In such a system, the processor 104 can issue a write request to a system memory device 440a-d even if the memory device to which the write request is directed is busy servicing a prior write or read request. The write buffer 482 preferably accumulates several write requests received from the switch 460, which may be interspersed with read requests, and subsequently applies them to each of the memory devices 160 in sequence without any intervening read requests. By pipelining the write requests in this manner, they can be more efficiently processed since delays inherent in read/write turnarounds are avoided. The ability to buffer write requests to allow a read request to be serviced can also greatly reduce memory read latency since read requests can be given first priority regardless of their chronological order.
The use of the cache memory unit 484 in each memory interface 470a-d allows the processor 104 to receive data responsive to a read command directed to a respective system memory device 160 without waiting for the memory device 160 to provide such data in the event that the data was recently read from or written to that memory device 160. The cache memory unit 484 thus reduces the read latency of the system memory devices 440a-d to maximize the memory bandwidth of the computer system. Similarly, the processor 104 can store write data in the cache memory unit 484 and then perform other functions while the memory controller 480 in the same memory interface 470a-d transfers the write data from the cache memory unit 484 to the memory device 160 to which it is coupled.
Further included in the memory hub local 150 may be a self-test module 490 coupled to the switch 460 through a test bus 492. The self-test module 490 is further coupled to a maintenance bus 496, such as a System Management Bus (SMBus) or a maintenance bus according to the Joint Test Action Group (JTAG) and IEEE 1149.1 standards. Both the SMBus and JTAG standards are well known by those ordinarily skilled in the art. Generally, the maintenance bus 496 provides a user access to the self-test module 490 in order to set memory testing parameters and receive test results. For example, the user can couple a separate PC host via the maintenance bus 496 to set the relative timing between signals that are applied to the memory devices 160. Similarly, data indicative of the relative timing between signals that are received from the memory devices 160 can be coupled to the PC host via the maintenance bus 496.
Further included in the memory hub 150 may be a DMA engine 486 coupled to the switch 460 through a bus 488. The DMA engine 486 enables the memory hub 130 to move blocks of data from one location in one of the memory devices 160 to another location in the memory device without intervention from the processor 104. The bus 488 includes a plurality of conventional bus lines and signal lines, such as address, control, data buses, and the like, for handling data transfers in the system memory. Conventional DMA operations well known by those ordinarily skilled in the art can be implemented by the DMA engine 486.
From the foregoing it will be appreciated that, although specific embodiments of the invention have been described herein for purposes of illustration, various modifications may be made without deviating from the spirit and scope of the invention. Accordingly, the invention is not limited except as by the appended claims.
Number | Date | Country | |
---|---|---|---|
Parent | 10848606 | May 2004 | US |
Child | 11432018 | May 2006 | US |