This invention relates to memory systems, and more particularly to memory read strobe pulse optimization training systems.
As is known in the art, many data systems include Double Data Rate (DDR) SDRAM memories. In many data systems several DDR SDRAM chips are used. Reading of data from a DDR SDRAM memory system is accomplished with each SDRAM chip producing in response to a read command its own read strobe pulse. The read strobe pulse from each chip is used to strobe the data, typically a nibble, read from that chip into a storage device (i.e., sampler) associated with that chip. The read strobe is produced at the leading edge of a valid data window, or eye, of the data, i.e., nibble. While ideally, in response to the read data command, all of the chips in the memory system should provide the data read therefrom to a data bus at the same time and produce all of the read strobe pulses at the same time, because of chip mismatches, board layout and internal timing skews, the data provided on the data bus from each of the chips may have time delays one from the other and the read strobe pulses may also have time delays one from the other.
It is also known in the art that it is desirable to strobe the data into the sampler at the center of the valid data window the strobe which, as noted above is delayed one half of the window period. This one-half period delay is applied to all the read strobe pulses. Therefore, because of the variation in the time each nibble is provided to its sampler and the time variations of the read strobe pulses, valid data may not be sampled into one or more of the samplers.
In accordance with the present invention, a method is provided for determining a read strobe pulse delay for data read from a memory having a plurality of memory chips. Each one of the chips provides data along with an associated read strobe pulse. The data read from each one of the plurality of chips is stored in a corresponding one of a plurality of storage devices in response to the read strobe pulse associated with such one of the plurality of chips. The method includes monitoring read requests for the memory from a plurality of resources and from a read pulse strobe delay training system. The method grants access to the memory to the read pulse strobe delay training system in response to the request from the strobe read pulse delay training system. The method operates the training system when such system has been granted access to the memory to determine the read strobe pulse delay. The delay is applied to the plurality of read strobe pulses to enable valid read data from the plurality of memory chips to be stored in each one of the plurality of the storage device in response to the read strobe pulses being delayed by the read pulse strobe delay. The plurality of read strobe pulses are delayed by the determined read pulse strobe delay when read data is subsequently provided from the memory for use by the plurality of resources.
In one embodiment, the training system operation comprises: (a) loading, in response to the training request signal, a predetermined data into the plurality of chips of the memory at a predetermined address; (b) setting a delay applying the read strobe pulses to the plurality of storage devices at an initial delay; (c) reading data from the memory chips at the predetermined address; (d) storing the read data into the storage device in response to the applied delay; (e) reading the stored data from the storage device; (f) comparing the data read from the storage device to the predetermined data to determine whether the read data is valid or invalid; (g) changing the delay applied to the plurality of read strobe pulses; (h) repeating steps (c) through (g) for a predetermined number of delays; (i) determining the strobe pulse delay in accordance a predetermined number of valid data read consecutively from the storage device; and (j) subsequently applying the determined strobe pulse for the read strobe pulses.
In accordance with another feature of the invention, a method is provided for determining a read strobe pulse delay for data read from a memory having a plurality of memory chips. Each one of the chips provides data along with an associated read strobe pulse. The data read from each one of the plurality of chips is stored in a corresponding one of a plurality of storage devices in response to the read strobe pulse associated with such one of the plurality of chips. The method includes: (a) loading, in response to a training request signal provided by the system during operation of the system in processing the user data, a predetermined data into the memory at a predetermined address; (b) setting a delay to the read strobe pulses at an initial delay; (c) reading data from the memory chips at the predetermined address; (d) storing the read data into the storage device in response to the applied delay; (e) reading the stored data from the storage device; (f) comparing the data read from the storage device to the predetermined data to determine whether the read data is valid or invalid; (g) changing the delay applied to the plurality of read strobe pulses; (h) repeating steps (c) through (g) until a predetermined number of delays; (i) determining the strobe pulse delay in accordance with a time window having a predetermined number of valid data read consecutively from the storage device; and (j) subsequently using the determined strobe pulse delay in subsequently processing the user data until the occurrence of a subsequent training signal.
In accordance with another feature of the invention, a method is provided for determining a read strobe pulse delay for data read from a memory having a plurality of memory chips. Each one of the chips provides data along with an associated read strobe pulse. The data read from each one of the plurality of chips is stored in a corresponding one of a plurality of storage devices in response to the read strobe pulse associated with such one of the plurality of chips. The method includes (a) storing data written into the memory from the plurality of resources having a predetermined address into both the memory and into a local memory device; (b) monitoring requests for the memory from a plurality of resources and from a strobe delay training system; (c) granting the strobe delay training system access to the memory in response to a request from such training system; (e) operating the access granted strobe delay training system to determine the read strobe pulse delay; (d) subsequently writing the data stored in the local memory device back into the memory at the predetermined location.
In one embodiment, the method the training system operation comprises: (a) operating the training system when such system has been granted access to the memory to determine the read strobe pulse delay, such strobe pulse delay being when the data from the plurality of memory chips and stored in the plurality of storage devices in response to the read strobe pulses is valid; and (b) using the determined strobe pulse delay for read subsequently from the memory for use by the plurality of resources.
The details of one or more embodiments of the invention are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the invention will be apparent from the description and drawings, and from the claims.
Like reference symbols in the various drawings-indicate like elements.
Referring now to
Referring now to
Thus, referring to
Referring to
Referring now to
In response to a training request, either at start-up of the system 10 (
At the appropriate time, the arbiter grants the training system 24 access to the memory system 20. More particularly, when access is granted, the pre-set data in register 50 becomes stored in the chips 1 though n at the pre-set address stored in register 52. As will be described in connection with
More particularly, the most recent data being written into the memory system 20 (i.e., into the chips 1 through n) at the pre-set address stored in the register 52 prior to the training system 24 being granted access to the memory system 20 is stored on a local data storage register 54. In this way, user data having the pre-set address will be preserved, i.e., not destroyed during the training process. Thus, the address on the address bus portion of bus 16 (
The process described above for preserving user data during the training process is described in
On the other hand, if the snooped address is the same as the pre-set address, Step 504, and if the training process was active, Step 506, and has not been terminated, Step 510, the training process continues and register 54 maintains the copy of the data last stored in the memory system 20, Step 511.
On the other hand, if the snooped address is the same as the pre-set address, Step 504, and if the training process was active, Step 506, and has now been terminated, Step 510, the copy of the data last stored in the memory system 20 is returned to the memory system 20, Step 512. That is, in Step 512, the data stored in register 54 is returned to the system memory 30 at is previous address.
Referring now to
In Step 402, and referring to
More particularly, referring also to
More particularly, in Step 404A, the read data stored in the samplers 301–30n in response to the Δmin delayed read strobe pulses DRSP1–DRSP4 is read and compared with the pre-set word stored in register 50. If the read data is the same, (i.e., if each one the nibbles read are is the same as the corresponding nibble in the pre-set word), a valid sample increment counter 62 in a window calculator/delay increment module 64 of the training system 24 is incremented, Steps 404B and 404C.
In Step 404D, a determination is made as to whether a predetermined number of, here in this example, 8, valid samples have been obtained (i.e., if each of the nibbles read is the same as the corresponding nibble in the pre-set word). If not, the training system waits for the next read operation of the training system 24 Step 404E. On the other hand, if in Step 404D, a determination is made that a predetermined number of, here in this example, 8, valid samples have been obtained for here 8 consecutive times, Step 404D, a determination is made in Step 404E as to whether a lower boundary has been established for a window of time delays which result in valid data being stored in samplers 301–30n, and if not, the current delay command applied to the time delay 32 by module 64 is marked in module 64 as the lowest time delay in the window of valid time delays for the read strobe pulses, Step 404E.
On the other hand, if in Step 404E it is determined that the lower boundary of a window of time delays which result in valid data being stored in samplers 301–30n, has not been established, the training system waits for the next memory system access by the training system 24, Step 404G.
On the other hand, if in Step 404B, it is determined that any one of the nibbles read is different from the corresponding nibble in the pre-set word, a determination is made as to whether the lower boundary of the of time delays which result in valid data being stored in samplers 301–30n, Step 404H. If the lower boundary has not been found, the current delay applied by the time delay 32 the valid sample counter 60 is reset. Setup 4041. On the other hand, if the lower boundary has been found, the present delay applied to the time delay 32 is marked as the upper time delay for the window of time delays which result in valid data being stored in samplers 301–30n, Step J.
When the upper and lower time delays for the time delays which result in valid data being stored in samplers 301–30n, has been established the optimum time delay ΔO is calculated as the mean of the upper and lower time delays. At the end of the training process, the optimum time delay ΔO is used during normal user data processing, Step 406, with copy of the users data at the pre-set address being returned to the memory system as described above in connection with
A number of embodiments of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. Accordingly, other embodiments are within the scope of the following claims.
Number | Name | Date | Kind |
---|---|---|---|
6646929 | Moss et al. | Nov 2003 | B1 |
6658523 | Janzen et al. | Dec 2003 | B1 |
6735709 | Lee et al. | May 2004 | B1 |
6889334 | Magro et al. | May 2005 | B1 |
6941433 | Libby et al. | Sep 2005 | B1 |
7016240 | Avakian et al. | Mar 2006 | B1 |