Read training of memory controller
By performing careful reading training, rough reading training and advanced reading training in the memory system, adjusting the timing of the phase interpolator, the data sampling alignment problem in data communication between the memory controller and multiple memory modules is solved, and low bit errors are achieved data transmission rate.
Patent Information
- Application Number
- CN202411105373.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2013-09-27
- Filing Date
- 2014-07-29
- Publication Date
- 2024-12-03
AI Technical Summary
In memory systems, when data communication between memory controllers and multiple memory modules is communicated between the memory controller and the prior art, it is difficult for the prior art to effectively adjust the phase interpolation to ensure that the data samples are aligned at the read data clock phase information, resulting in a high bit error rate.
By performing scrutiny training, rough reading training and advanced reading training, the memory controller adjusts the phase interpolator using the sideband signal path to determine the sampling timing of the read data to ensure that the data samples are aligned at the data eye and achieve a low bit error rate.
It effectively reduces the bit error rate during read operation in the memory system and improves data sampling accuracy and stability.
Smart Images

Figure CN119065995A_ABST
Abstract
Description
Technical Field
[0001] Embodiments described herein generally relate to memory systems in which a memory controller communicates over a single channel or bus with multiple memory modules having a pinout compatible with a socket coupled to the channel and the memory controller. Background Art
[0002] The memory controller manages the data flow between the processor and one or more memory modules on an interface or bus. The memory controller contains the logic required to read and write to the memory modules and refresh the data stored in the DRAM. It is implemented as a single chip. The memory controller supports the protocols used by multiple memory modules coupled to the channel, such as the Joint Electron Device Engineering Council (JEDEC) third generation double data rate (DDR3) synchronous dynamic random access memory (SDRAM) protocol.
[0003] Before using the interface to the memory, the memory controller must configure the operation of the memory module by adjusting the timing at which the memory controller will be activated to sample read data from the memory module. A single alignment device, such as a phase interpolator, is controlled by the memory controller to generate clock phase information and align the data sampling signal in response to a phase control signal and a reference signal having a different determined phase to sample the center of the read data at the center where the read data will be transmitted or at the data eye. BRIEF DESCRIPTION OF THE DRAWINGS
[0004] The embodiments are described by way of example and with reference to the accompanying drawings, which are not drawn to scale and in which like reference numerals refer to similar elements.
[0005] Figure 1 An embodiment of a system having a memory system is shown.
[0006] Figure 2 An embodiment of a memory module is shown.
[0007] Figure 3 An embodiment of a bus interface between a memory controller and memory modules is shown.
[0008] Figure 4 is an embodiment of an operation of performing a perusal training to adjust a phase interpolator to generate a sampled signal.
[0009] Figure 5 An embodiment of the operation of performing a coarse read training to determine a read offset when read data is received is shown.
[0010] Figure 6 An embodiment of the operation of performing phase interpolator training during normal read operation is shown. DETAILED DESCRIPTION
[0011] Through the memory interface, the memory module sends a strobe signal along with the data signal to the memory controller, where the memory controller processes the strobe signal to determine when to turn on the receiver and read the data. The memory controller can then use other processes to determine where to sample the read data for reading, such as using a phase interpolator.
[0012] The described embodiments provide techniques to perform fine read training followed by coarse read training and then advanced read training to adjust the phase interpolator during normal read operations. The described embodiments provide a sideband signal path for the memory module to return a signal that the memory controller uses to adjust the phase interpolator. Also, the memory controller provides a memory module signal pattern that the memory module returns via a sideband signal path on the bus that is separate from the data and command bus lines for the memory controller to use to determine the read offset timing when to turn on the receiver to sample the returned read data.
[0013] In the following description, in order to provide a more thorough understanding of the present invention, a large number of specific details are set forth, such as logic implementation, operation codes, devices for specifying operands, resource partitioning / sharing / copying implementations, types and relationships of system components, and logic partitioning / integration selections. However, it should be understood by those skilled in the art that the present invention may be implemented without these specific details. In other examples, control structures, gate-level circuits, and full software instruction sequences are not shown in detail to avoid obfuscating the present invention. Based on the included descriptions, those skilled in the art will be able to implement appropriate functionality without undue experimentation.
[0014] References to "one embodiment", "an embodiment", "an example embodiment", etc. in the description indicate that the described embodiment may include a particular feature, structure or characteristic, but every embodiment may not necessarily include the particular feature, structure or characteristic. Moreover, such phrases do not necessarily refer to the same embodiment.
[0015] In the following description and claims, the terms "coupled" and "connected" and their derivatives may be used. It should be understood that these terms are not intended as synonyms for each other. "Coupled" is used to indicate that two or more elements that may or may not be in direct physical or electrical contact with each other cooperate or interact with each other. "Connected" is used to indicate that communication is established between two or more elements that are coupled to each other. Certain embodiments relate to memory device electronic assemblies. Embodiments include devices and methods of forming electronic assemblies.
[0016] Figure 1An embodiment of a computing system 100 is shown, the computing system 100 includes one or more processors 102, typically mounted on a motherboard, a memory controller 104, and a plurality of memory modules 200a, 200b. The processor 102 may include a central processing unit, a multi-core processor. The memory controller 104, in response to memory access requests from the processor 102, communicates with the plurality of memory modules 200a, 200b via a bus 108, which is also referred to as a channel, a bus interface, etc., wherein both memory modules 200a, 200b are separately and independently connected to the same bus 108. The memory controller 104 may include controller logic 110, which includes: code or logic executed to implement operations; a phase interpolator 112 for receiving an input timing signal and generating an interpolated sampling signal aligned with a data eye of a received read data signal; a linear feedback shift register (LFSR) 114 for generating random read identifiers used in coarse and high-level read training stages; and a training register 116 for storing values used during training operations.
[0017] exist Figure 1 In an embodiment, the memory modules 200a, 200b are installed in slots or memory sockets on the motherboard of the system 100. The memory modules 200a, 200b may include the same or different types of memory modules, which have pin arrangements compatible with the pin arrangements in the memory slots on the motherboard. In addition, the memory modules may support the same or different memory protocols, such as the fourth generation double data rate (DDR4) protocol and other protocols. Although only two memory modules 200a, 200b are shown, there may be multiple memory modules.
[0018] Each of the memory modules 200a, 200b includes memory chips 202a, 204a, 206a, 208a and 202b, 204b, 206b, 208b on one or both sides of the memory modules 200a, 200b to store data. The memory chips, such as DRAM chips, located on one or both sides of the memory module packages 200a, 200b include storage elements that store data being used by the processor 102.
[0019] Each memory module 200a, 200b may include a memory module controller 210a, 210b for coordinating memory management and access operations with the memory controller 104. The memory controller 104 includes logic, such as logic 110, for managing read training operations, read and write operations, and memory management operations with respect to the memory modules 200a, 200b connected to the bus 108, and for interfacing the processor 2 to the memory modules 200a, 200b. The memory controller 104 and / or the memory modules 200a, 200b may be integrated with the processor 102, or as described above. Figure 1 The diagram is shown implemented in logic separate from the processor 102 on the system 100 motherboard.
[0020] The system 100 motherboard may include a memory socket compatible with different types of memory chips to allow different types of memory modules 200a, 200b to support different types of memory devices that support different memory protocols as long as the different types of memory modules 200a, 200b are compatible with the pin architecture in the memory socket.
[0021] In one embodiment, the memory modules 200a, 200b may include the same or different types of double data rate synchronous dynamic random access memory (DDR SDRAM) memory modules, such as LPDDR, dual in-line memory modules (DIMMs), such as unbuffered DIMMs (UDIMMs), load-reduced dual in-line memory modules (LRDIMMs), small outline dual in-line memory modules (SODIMMs), etc. The memory modules 200a, 200b may implement various forms of memory, including, but not limited to, NAND (flash) memory, ferroelectric random access memory (FeTRAM), nanowire-based non-volatile memory, three-dimensional (3D) cross-point memory such as phase change memory (PCM), memory combined with memristor technology, magnetoresistive random access memory (MRAM), spin transfer torque (STT)-MRAM, etc.
[0022] Figure 2A more detailed description of an embodiment of a memory module 200, such as memory modules 200a, 200b, is provided, such as including a memory module controller 210 that performs memory module operations and interacts with the memory controller 104. The memory module 200 may include a mode register 212 in the memory module controller 210, a read buffer 214 and a write buffer 216 for buffering read and write data for the memory chips 202, 204, 206, 208, wherein the mode register 212 has data that can be configured using a mode register set (MRS) command. The buffers 214, 216 may be implemented in circuits within the memory module controller 210 or external to the memory module controller 210 in the memory module 200. In further embodiments, the mode register 212 may be implemented in the memory chips 202, 204, 206, 208.
[0023] The code or logic implementing the operation of the memory module controller 210 and the memory controller 104 may be implemented as computer readable code loaded into a memory and executed by a processor, or may be encoded in hardware logic, such as in an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), etc.
[0024] The logic or code of the described embodiments may be implemented in a machine-readable storage medium included in a device or apparatus having electrical or other hardware elements for storing machine-executable instructions. The machine-readable medium may include, but is not limited to, flash memory, optical disks, compact disk read-only memory (CD-ROM), digital versatile / video disk (DVD) ROM, random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, and other machine-readable media suitable for storing electronic instructions.
[0025] In alternative embodiments, the logic or code of the described embodiments may be implemented in a signal transmission medium.
[0026] Figure 3 An embodiment of the bus interface lines 108 between the memory controller 104 and the memory module 200 is shown, including: a sideband path 300 having sideband lines; command and control signal lines 302 through which the memory controller 104 sends commands to the memory module 200; a differential clock input signal (DCLK) 304 from the memory controller 104 to the memory module 200, which the memory module 200 uses to sample the address and control signals on the command / control lines 302; and data lines 306 through which read data and write data are transmitted between the memory controller 104 and the memory module 200. Additional buses may be included for other purposes.
[0027] The sideband path 300 has one or more signal lines to transmit additional information that the memory controller 104 can use for training and other purposes (in response to control signals from the memory controller 104). For example, the memory controller 104 can send a consent message to the memory module 200 in response to receiving a read received acknowledgement, which can cause the memory module 200 to send a read identifier (ID) signal through the sideband path 300 before sending data. The memory module 200 can use the sideband path 300 to send the read ID that the memory controller 104 previously sent with the read request, and in response, the memory module 200 can send the read ID back through the sideband path 300 without processing, such as filtering, interpolation, etc. Also, in some embodiments, the sideband path 300 may include a pair of clock signals on the memory module 200.
[0028] In one embodiment, the sideband path 300 that sends the read ID back to the memory controller 104 sends signals at the command frequency rather than the clock frequency. In one embodiment, the sideband path 300 can be designed to transmit a clock pattern with a transmission clock and a transmission period that is twice the clock input signal (DCLK) 304. The memory module 200 can transmit signals and the received read ID as part of the control signal through the sideband path 300 before transmitting the read data. These read ID signals can transmit bursts of data with a specific timing relationship relative to the control signals, such as the consent signal. This timing relationship can vary within a certain range, depending on the memory module delay and the channel. In a specific embodiment, the memory module 200 may not transmit the strobe with the burst data, so that the memory controller 104 performs a fine read training to train the read ID signal sampling delay to align with the center of the read ID signal eye to achieve a low bit error rate. The read ID signal can be transmitted at half the frequency of the data bus, but these speeds can still be as high as 1600MTps.
[0029] Figure 4An embodiment of operations performed by the memory controller logic 110 and the memory module controller 202 logic is shown that allows the memory controller logic 110 to perform close read training of the phase interpolator 112 in conjunction with the memory module 200 to provide interpolated sampled signals aligned at the data eye. The close read training may be initiated during the bus 108 probe during the startup of the system 100. To initiate the close read training, the memory controller logic 110 sends a command (at block 400) to program the mode register 212 in the memory module 200 to start the close read training mode. In response to the mode register 212 being written to indicate the close read training mode, the memory module controller 210 transmits a first pattern on a first sideband signal line of the sideband path 300 and transmits a second pattern on a second signal line on the sideband path 300 that is different from the first signal line (at blocks 404 and 406). The first and second patterns may include clock signals having opposite values, such as 1010 and 0101. In some embodiments, the clock pattern may have a period twice the period of the DCLK 304 clock signal and may have the frequency of the command / control signal line 302 instead of the clock frequency 304. The signals on different signal lines of the sideband path 300, such as 1010 and 0101, may be out of phase or in phase. Also, the patterns transmitted on the modules 404 and 406 may be transmitted in a continuous manner on different lines of the sideband path 300.
[0030] After the bits of the first and second patterns are transmitted, if (at block 408) the mode register 212 continues to indicate the fine read training mode, control returns to block 404 to continue transmitting patterns having opposite values. If (at block 408) the fine mode training is complete, the coarse read training phase may begin (at block 410).
[0031] Once the transmitted bit pattern is received (at block 412) by the memory controller logic 110, if (at block 414) the received bit is not the opposite of the bit value stored in the training register 116, 0 and 1 or 1 and 0, then the received bit is stored (at block 416) in the training register 116. If (at block 414) the received bit value is opposite to the stored bit value, then the timing at which the opposite bit (or pattern) is located is determined (at block 418). The memory controller logic 110 then determines (at block 422) an edge from the determined timing by changing the timing of the read, such as scanning outward in both directions from the determined timing until a match is not found, at which point the edges of the data eye are determined in each direction from the determined timing when the opposite bit pattern was received. The timing at which the data eye is located between these edge timings is then determined (at block 422). In one embodiment, the edges of the data eye are determined by changing the phase interpolator 112 timing to scan outward in each direction from the determined data eye to find a point where there is no match.
[0032] Based on these timing signals, the settings for controlling the phase interpolator 112 are determined (at block 424) to generate interpolated signals for sampling data at the determined data eyes. After training the phase interpolator 112 to generate interpolated signals for sampling at data eyes between edges, the memory controller logic 110 writes (at block 426) to the mode register 212 of the memory module 220 to stop perusing the training mode to prevent the memory module controller from continuing to send the opposite bit pattern on the sideband path 300.
[0033] In some embodiments, a change between samples of 1 and 0, or vice versa, is detected, indicating timing with read data, which may include data eyes, edges, or read data between edges. These training operations may require four training result bits to capture even / odd numbers for each signal. Two bits may be used if only even or odd numbers are captured. Phase interpolator 112 is configured to generate interpolated samples to read data in the middle of the data eye boundaries.
[0034] In the above embodiment, bits of the pattern are compared to determine the timing of the edge that begins scanning the data eye. In an alternative embodiment, the memory controller 110 may compare not just one bit, but the entire pattern (e.g., 0101, 1010), thereby determining at blocks 414 and 418 that the data eye is located at a timing when a value opposite to the stored pattern is detected, rather than just a single bit. Also, in such an embodiment where the entire pattern is compared, the entire pattern will be stored in the training register 116 at block 416, rather than just a single bit.
[0035] Figure 5 An embodiment of operations performed by the memory controller logic 110 and the memory module controller logic 202 is shown that allows the memory controller logic 110 to perform coarse read training of the memory controller 104 in conjunction with the memory module 200 to determine an offset or timing to wait before the memory controller 104 initiates reading data after a consent signal is sent to retrieve read data. Upon initiating (at block 500) the coarse read training, the memory controller logic 110 generates (at block 502) a random read ID using the LFSR 114. The generated read ID is buffered (at block 504) in the training register 116. The memory controller logic 110 sends (at block 506) a read command to the memory module 200 along with the generated read ID. When the memory module controller 210 operates in the coarse read training mode (at block 508), upon receiving (at block 510) the read command and the read ID, the memory module controller 210 executes the read command (at block 512).
[0036] After sending the read command along with the read ID (at block 506), the memory controller logic 110 transmits (at block 514) an approval signal to the memory module 200 via the bus interface 108. Upon receiving (at block 516) the approval signal, the requested data is returned (at block 518) via the data bus 306 and the received read ID is returned (at block 520) via the sideband path 300. The read ID signal is returned in a burst. In some embodiments, the read ID is returned via the sideband read ID signal 300 before the read data. In this manner, the memory module controller 200 sends the read ID back to the memory controller 104 without filtering or interpreting the data. In some embodiments, the memory controller logic 110 may provide the approval signal without waiting for an acknowledgement (ACK) to the read command from the memory module 200.
[0037] Once the memory controller 104 receives (at module 522) the read ID on the sideband path 300, the memory controller logic 110 determines (at module 524) whether the received read ID matches the sent read ID stored in the training register 116. If not (from the "no" branch of module 524), then the memory controller logic 110 modifies (at module 526) the cycle delay setting to the number of cycles from sending the consent to receiving the read ID. The cycle delay setting is the coarse timing setting for when the memory controller logic 110 attempts to read data, and at module 526 the coarse cycle delay timing or cycle level time is adjusted until the timing matches when the read ID is received or the round trip delay setting from setting the consent. From module 526, control returns to module 502 to continue generating random read IDs for coarse read training until a match occurs. If (at module 524) the sent and received read IDs match, then the memory controller logic 110 determines (at module 526) the read offset as the time difference from sending the consent signal to receiving the matching read ID. After determining the read offset, the memory controller logic 110 may send (at block 530) a mode register command to the memory module 200 to determine the coarse read training. Upon receiving the command to terminate (at block 542) the coarse read training, the memory module controller 200 programs (at block 540) the mode register 212.
[0038] The fine read training produces settings for controlling the phase interpolator 112 to produce interpolated sampling signals for reading within the data eye that transmits the read data, and the result of the coarse read training step is a read offset for determining when to start receiving the read data after setting the consent signal. After the fine and coarse read training, normal read operations can be started using the determined phase interpolator 112 settings and read offsets.
[0039] Figure 6An embodiment of operations performed by the memory controller logic 110 and the memory module controller 202 logic to perform advanced read training during normal read operations to further improve the phase interpolator 112 settings used to generate sampling signals used to sample read data signals is shown. Once advanced training is initiated (at block 600) during normal read / write operations using the determined phase interpolator settings and read offsets, the memory controller logic 110 performs (at block 602) Figure 5 604), the memory module controller 210 performs (at module 606) the following operations on modules 502-514 in order to generate and transmit the read ID signal and the read command. In an advanced training mode during normal read / write operation (at module 604), the memory module controller 210 performs (at module 606) Figure 5 The operations at modules 510 , 512 , 516 , 518 are to process the received read command and return the read ID via the sideband path 300 .
[0040] Once the memory controller 104 receives (at module 608) the read ID via the sideband path 300, if (at module 610) the received read ID matches the transmitted read ID stored in the training register 116, then the timing when the read ID was read is determined (at module 612). The memory controller logic 110 then performs (at module 614) the operations at modules 418 through 426 to determine an edge from the determined read ID timing, determine a data eye from the determined edge, and determine an interpolated signal for controlling the settings of the phase interpolator to generate an interpolated signal for sampling data at the determined data eye. These operations of adjusting the phase interpolator 112 using the randomly generated read IDs are continuously performed to determine the boundaries of the data eye and re-center the phase interpolator 112 settings using a more aggressive and realistic pattern of randomly generated read IDs, as opposed to the repetitive reverse pattern used during the close read training.
[0041] If (from the "No" branch of block 610) there is no match, then the memory controller logic 110 modifies (at block 616) the cycle delay setting to the number of cycles from sending the ACK to receiving the read ID. The cycle delay setting is a coarse timing setting for when the memory controller logic 110 attempts to read data, and at block 526 the coarse cycle delay timing or cycle level time is adjusted until the read ID is received or the round trip delay setting from setting the ACK is matched. From block 616 control returns to block 602 to continue generating random read IDs for advanced fine grain training until a match is found.
[0042] The described embodiments enable training of the sideband read ID signal on the read ID line 300 to achieve a low bit error rate on the bus 100. The read training is efficient in that it achieves eye-centered sampling with a single pattern. The embodiments can further generate a high voltage pattern on the read ID bus 300 to determine the worst-case boundary.
[0043] It should be understood that the references to "one embodiment" or "an embodiment" throughout this specification indicate that the specific features, structures, or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present invention. Therefore, it should be emphasized and understood that the references to "an embodiment" or "one embodiment" or "an alternative embodiment" in two or more places in different parts of this specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics may be appropriately combined in one or more embodiments of the present invention.
[0044] Similarly, it should be understood that in the foregoing description of embodiments of the present invention, various features are sometimes grouped together in a single embodiment, figure, or description thereof in order to simplify the disclosure to facilitate understanding of one or more of the various inventive aspects. However, this method of disclosure should not be interpreted as reflecting an intention that the claimed subject matter requires more features than are expressly stated in each claim. On the contrary, as reflected in the claims below, inventive aspects rely on less than all of the features of a single foregoing disclosed embodiment. Therefore, the claims that follow the detailed description are expressly incorporated into the detailed description.
[0045] The described operations of the memory controller 104 and the memory module 200 may be implemented as a method, apparatus, or computer-readable storage medium using standard programming and / or engineering techniques to produce software, firmware, hardware, or a combination thereof. The described operations may be implemented as code or logic maintained in a "computer-readable storage medium" that may directly perform the functions or a processor may read and execute the code from the computer storage readable medium. A computer-readable storage medium includes at least one of: an electronic circuit, a storage material, an inorganic material, an organic material, a biological material, a box, a shell, a coating, and hardware. A computer-readable storage medium may include, but is not limited to, magnetic storage media (e.g., hard disk drives, floppy disks, magnetic tapes, etc.), optical storage (CD-ROMs, DVDs, optical disks, etc.), volatile and non-volatile storage devices (e.g., EEPROMs, ROMs, PROMs, RAMs, DRAMs, SRAMs, flash memories, firmware, programmable logic, etc.), solid-state devices (SSDs), etc. The computer-readable storage medium may further include digital logic implemented in hardware devices (e.g., integrated circuit chips, programmable logic devices, programmable gate arrays (PGA), field programmable gate arrays (FPGA), application-specific integrated circuits (ASIC), etc.). Further still, the code that implements the described operations may be implemented as a "transmission signal", where the transmission signal may be transmitted through space or through a transmission medium, such as optical fiber, copper wire, etc. The transmission signal in which the code or logic is encoded may further include wireless signals, satellite transmissions, radio waves, infrared signals, Bluetooth, etc. The program code embedded in the computer-readable storage medium may be sent as a transmission signal from a sending station or computer to a receiving station or computer. The computer-readable storage medium does not only contain transmission signals. Those skilled in the art will appreciate that many modifications may be made to the present configuration without departing from the scope of the present invention, and the article of manufacture may include suitable information-bearing media known in the art.
[0046] Example
[0047] The following examples pertain to further embodiments.
[0048] Example 1 is a device coupled to at least one memory module via a bus, comprising: a bus interface to the at least one memory module; memory controller logic that performs operations when in operation, the operations comprising: programming the memory module to initiate a training mode, wherein in the training mode the memory module transmits a continuous bit pattern on a sideband path of the bus interface; receiving the bit pattern via the bus interface; determining a value transition in the bit pattern from the received bit pattern, thereby determining a data eye between the determined value transitions; and determining a setting for controlling a phase interpolator to generate an interpolation signal for sampling data within the determined data eye.
[0049] In Example 2, the subject matter of Example 1 may optionally include that the operations further include programming the memory module to terminate the training mode and transmit the bit pattern in response to determining the data eye and the setting for controlling the phase interpolator.
[0050] In Example 3, the subject matter of Example 1 may optionally include that determining a transition from a received clock bit pattern includes: storing a read value from the bit pattern in a register; and determining whether a subsequent read value from a subsequently transmitted bit pattern matches the read value in the register, wherein the data eye is determined as between edges of two read values that match the value stored in the register.
[0051] In Example 4, the subject matter of Example 1 may optionally include that the bit pattern includes a first continuous bit pattern on a sideband path of a bus interface for reading the identifier signal, and a second continuous bit pattern on the sideband path, wherein the first and second continuous bit patterns have opposite values.
[0052] In Example 5, the subject matter of Example 4 can optionally include that the first continuous bit pattern is sent on the first read identifier signal line and includes a continuous 1010 pattern, and the second continuous pattern is sent on the second read identifier signal line and includes a continuous 0101 pattern.
[0053] In Example 6, the subject matter of Example 5 can optionally include that the first and second continuous patterns alternate between 0 and 1 at each clock interval to create a clock pattern having a period that is twice the period of a clock interval on the bus interface.
[0054] In Example 7, the subject matter of Example 1 may optionally include that the bus interface includes a command line for transmitting commands, a data line for transmitting data, and a read identifier signal line, wherein the bit pattern is transmitted on the read identifier signal line at a command frequency lower than the clock frequency.
[0055] In Example 8, the subject matter of Example 1 may optionally include that the operation further includes: in response to determining a setting for controlling a phase interpolator, sending a read command together with a read identifier to a memory module; receiving read data including a returned read identifier from the memory module; and determining a read offset in response to determining that the returned read identifier matches the read identifier sent together with the read command, wherein the read offset is used to determine when to start sampling read data in a data eye using the determined setting of the phase interpolator.
[0056] Example 9 is a device coupled to at least one memory module via a bus, comprising: a bus interface to the at least one memory module; memory controller logic that performs a coarse read training operation when in operation, the operation comprising: sending a read command and a read identifier to the memory module; receiving read data and the received read identifier from the memory module via the bus interface; and determining a read offset in response to determining that the received read identifier from the memory module includes the read identifier sent along with the read command, wherein the read offset is used to determine when to start sampling data in a data eye of the received read data.
[0057] In Example 10, the subject matter of Example 9 may optionally include that the operation further includes: in response to determining that the received read identifier does not match the read identifier sent together with the read command, performing at least one iteration of the following steps: generating a new read identifier to be included in a new read command sent to the memory module until a read offset is determined in response to read data received from the memory module including the generated new read identifier.
[0058] In Example 11, the subject matter of Example 10 can optionally include a linear feedback shift register (LFSR) for generating the read identifier and the new read identifier to provide a random read identifier value.
[0059] In Example 12, the subject matter of Example 9 can optionally include terminating the coarse read training in response to the received read identifier including the read identifier sent with the read command.
[0060] In Example 13, the subject matter of Example 9 can optionally include that the read identifier causes the memory module to send back the read identifier when returning the read data in response to the read command.
[0061] In Example 14, the subject matter of Example 9 can optionally include transmitting the read identifier from the memory module over a sideband path.
[0062] In Example 15, the subject matter of Example 8 can optionally include that the bus interface includes a command line for transmitting commands, a data line for transmitting data, and a read identifier signal line, wherein the memory module returns the read identifier on the read identifier signal line.
[0063] In Example 16, the subject matter of Example 15 can optionally include returning the read identifier from the memory module on the clock signal.
[0064] In Example 17, the subject matter of Example 9 may optionally include that the operation further includes: after the read command is sent, sending an approval signal to the memory module, wherein the memory module sends a read identifier signal in response to the approval signal, wherein the read offset measures the time when the data arrives after the approval signal is sent.
[0065] Example 18 is a device coupled to at least one memory module via a bus, comprising: a bus interface to the at least one memory module; a phase interpolator; and memory controller logic that performs a coarse read training operation when in operation, the operation comprising: using a read identifier returned from the memory module via a sideband path of the bus interface that is separate from command and data signal lines of the bus interface to determine a read offset for sampling read data on the bus interface; and when using the read offset to determine when to start sampling data in a data eye of the read data, executing: sending a read command together with the read identifier to the memory module; receiving the received read identifier from the memory module on the sideband path of the bus interface; in response to determining that the received read identifier matches the read identifier sent along with the read command: determining a data eye for reading the received read identifier; and determining a setting for controlling the phase interpolator to generate an interpolated signal for sampling data at the determined data eye, wherein the received read identifier is read at the determined data eye.
[0066] In Example 19, the subject matter of Example 18 may optionally include that determining a read offset using a read identifier includes: sending a read command to a memory module along with the read identifier; receiving read data and a received read identifier from the memory module via a bus interface, wherein the received read identifier is received on a sideband path of the bus interface; and determining the read offset as a timing when the received read data matches the read identifier sent along with the read command.
[0067] In Example 20, the subject matter of Example 18 can optionally include a linear feedback shift register (LFSR) for generating a read identifier during coarse read training and when using a read offset to determine when to begin sampling data in a data eye.
[0068] Example 21 is a computer-readable storage medium coupled to at least one memory module via a bus interface to a bus, wherein the computer-readable storage medium implements logic that, when executed, performs operations including: programming the memory module to initiate a training mode, wherein in the training mode the memory module transmits a continuous bit pattern on a sideband path of the bus interface; receiving the bit pattern via the bus interface; determining a value transition in the bit pattern from the received bit pattern, thereby determining a data eye between the determined value transitions; and determining a setting for controlling a phase interpolator to generate an interpolation signal for sampling data within the determined data eye.
[0069] In Example 22, the subject matter of Example 21 may optionally include that the bit pattern includes a first continuous bit pattern on a sideband path of a bus interface for reading the identifier signal, and a second continuous bit pattern on the sideband path, wherein the first and second continuous bit patterns have opposite values.
[0070] In Example 23, the subject matter of Example 18 may optionally include that the operation further includes: in response to determining a setting for controlling a phase interpolator, sending a read command together with a read identifier to a memory module; receiving read data including a returned read identifier from the memory module; and determining a read offset in response to determining that the returned read identifier matches the read identifier sent together with the read command, wherein the read offset is used to determine when to start sampling read data in a data eye using the determined setting of the phase interpolator.
[0071] Example 24 is a computer-readable storage medium coupled to at least one memory module via a bus interface to a bus to perform a coarse read training operation, wherein the computer-readable storage medium implements logic that, when executed, performs operations including: sending a read command and a read identifier to a memory module; receiving read data and the received read identifier from the memory module via the bus interface; and determining a read offset in response to determining that the received read identifier from the memory module includes the read identifier sent along with the read command, wherein the read offset is used to determine when to start sampling data in a data eye of the received read data.
[0072] In Example 25, the subject matter of Example 24 may optionally include that the operation further includes: in response to determining that the received read identifier does not match the read identifier sent together with the read command, performing at least one iteration of the following steps: generating a new read identifier to be included in a new read command sent to the memory module until a read offset is determined in response to read data received from the memory module including the generated new read identifier.
[0073] Example 26 is a method for training a bus interface to a bus, wherein the bus is coupled to at least one memory module via the bus interface, the method comprising: programming the memory module to initiate a training mode, wherein in the training mode the memory module transmits a continuous bit pattern on a sideband path of the bus interface; receiving the bit pattern via the bus interface; determining a value transition in the bit pattern from the received bit pattern to thereby determine a data eye between the determined value transitions; and determining a setting for controlling a phase interpolator to thereby generate an interpolation signal for sampling data within the determined data eye.
[0074] In Example 27, the subject matter of Example 26 may optionally include that the bit pattern includes a first continuous bit pattern on a sideband path of a bus interface for reading the identifier signal, and a second continuous bit pattern on the sideband path, wherein the first and second continuous bit patterns have opposite values.
[0075] In Example 28, the subject matter of Examples 26 and 27 may optionally include a machine-readable medium comprising code that, when executed, causes a machine to perform the method of any one of Examples 26 and 27.
[0076] Example 29 is a method for training a bus interface to a bus, the bus being coupled to at least one memory module via the bus interface, the method comprising: sending a read command and a read identifier to the memory module; receiving read data and the received read identifier from the memory module via the bus interface; and determining a read offset in response to determining that the received read identifier from the memory module includes the read identifier sent along with the read command, wherein the read offset is used to determine when to start sampling data in a data eye of the received read data.
[0077] In Example 30, the subject matter of Example 29 may optionally include that the operation further includes: in response to determining that the received read identifier does not match the read identifier sent along with the read command, performing at least one iteration of the following steps: generating a new read identifier to be included in a new read command sent to the memory module until a read offset is determined in response to the received read identifier from the memory module including the generated new read identifier.
[0078] Example 31 is a device coupled to at least one memory module via a bus, comprising: a device for programming the memory module to initiate a training mode, wherein in the training mode the memory module transmits a continuous bit pattern on a sideband path of a bus interface; a device for receiving the bit pattern via the bus interface; a device for determining a value transition in the bit pattern from the received bit pattern to thereby determine a data eye between the determined value transitions; and a device for determining a setting for controlling a phase interpolator to generate an interpolation signal for sampling data within the determined data eye.
[0079] In Example 32, the subject matter of Example 31 may optionally include means for programming the memory module to terminate the training mode in response to determining the data eye and for controlling the settings of the phase interpolator and transmitting the bit pattern.
[0080] In Example 33, the subject matter of Example 31 may optionally include that the device for determining a transition from a received clock bit pattern includes: a device for storing a read value from the bit pattern in a register; and a device for determining whether a subsequent read value from a subsequently transmitted bit pattern matches the read value in the register, wherein the data eye is determined as between edges of two read values that match the value stored in the register.
[0081] In Example 34, the subject matter of Example 31 may optionally include a device for sending a read command along with a read identifier to a memory module in response to determining a setting for controlling a phase interpolator; a device for receiving read data including a returned read identifier from the memory module; and a device for determining a read offset in response to determining that the returned read identifier matches the read identifier sent along with the read command, wherein the read offset is used to determine when to begin sampling read data in a data eye using the determined setting of the phase interpolator.
[0082] In Example 35, the subject matter of Example 34 may optionally include: a device for performing at least one iteration of the following steps: in response to determining that the received read identifier does not match the read identifier sent together with the read command, generating a new read identifier to be included in a new read command sent to the memory module until a read offset is determined in response to the read identifier received from the memory module including the generated new read identifier.
[0083] In Example 36, the subject matter of Example 31 may optionally include: a device for determining a read offset for sampling read data on a bus interface using a read identifier returned from a memory module via a sideband path of a bus interface that is separate from command and data signal lines of the bus interface; and a device for determining when to start sampling data in a data eye of the read data using the read offset by performing the following steps: sending a read command together with the read identifier to the memory module; receiving the received read identifier from the memory module on a sideband path of the bus interface; in response to determining that the received read identifier matches the read identifier sent together with the read command: determining a data eye for reading the received read identifier; and determining a setting for controlling a phase interpolator to generate an interpolation signal for sampling data at the determined data eye, wherein the received read identifier is read at the determined data eye.
Claims
1. An integrated circuit device comprising: an interface, the interface communicating with the memory module via a bus interface; as well as A memory controller logic is configured to perform a read training operation, wherein the memory controller logic is configured to: Sending a first read command and a first read identifier to the memory module through the bus interface, wherein the first read identifier is a random read identifier; receiving read data and a second read identifier from the memory module via the bus interface, wherein the second read identifier is received from the memory module on a sideband path of the bus interface; and In response to determining that the second read identifier from the memory module includes the first read identifier sent along with the first read command, a read offset is determined, wherein the read offset is used to determine a data sampling time.
2. The integrated circuit device of claim 1 , wherein the logic is further configured to: determining that the second read identifier does not include the first read identifier sent along with the first read command; Perform the following iterations: generating a third read identifier, wherein the third read identifier is a random read identifier, and sending a second read command including the third read identifier to the memory module; as well as The iteration ends after the read offset is determined.
3. The integrated circuit device of claim 1, wherein the logic is further operable to terminate a read training operation in response to including the first read identifier in the second read identifier.
4. The integrated circuit device of claim 1, wherein the logic is further for sending a grant command to the memory module.
5. The integrated circuit device according to claim 1, wherein: The bus interface includes a command line on which a command is transmitted, a data line on which data is transmitted, and a read identifier signal line on which the second read identifier is received from the memory module.
6. The integrated circuit device according to claim 1, wherein: The integrated circuit device further comprises a linear feedback shift register (LFSR), and the linear feedback shift register (LFSR) is used to generate the first read identifier.
7. The integrated circuit device of claim 1, wherein the logic is further configured to: A grant signal is sent to the memory module following the read command, and wherein the read offset measures the time at which data arrives after sending the grant signal.
