# US 2021/0233579 A1 · System and method for compensating for sdram signal timing drift through periodic write training

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0233579 A1
- Document ID: US20210233579A1
- Status: Published application
- Kind: A1
- Application number: 16/752,442
- Filed: 2020-01-24
- Published: 2021-07-29
- Earliest claimed: 2020-01-24
- Assignees: QUALCOMM Incorporated
- Applicants: Qualcomm Incorporated
- Inventors: FARRUKH AQUIL; Vaishnav SRINIVAS; Mahalingam NAGARAJAN; Yong XU
- Web page: https://patentgrep.com/patent/US20210233579A1

## CPC

- G11C 11/4076: Timing circuits (for regeneration management G11C11/406)
- G06F 13/4243: {with synchronous protocol}
- G11C 7/1066: {Output synchronization}
- G11C 7/1093: {Input synchronization}
- G11C 11/409: Read-write [R-W] circuits
- G11C 11/4093: Input/output [I/O] data interface arrangements, e.g. data buffers
- G11C 7/04: with means for avoiding disturbances due to temperature effects
- G11C 2207/2254: Calibration
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Signal timing drift in a synchronous dynamic random access memory (SDRAM) system may be compensated for by performing write signal timing training using a multi-purpose command (MPC) first-in-first-out (FIFO) write and MPC FIFO read at periodic intervals interspersed with mission-mode SDRAM traffic. The test result samples obtained from the write signal timing training may be analyzed independently of mission-mode SDRAM traffic. The mission-mode timing of the SDRAM data bit signals relative to the SDRAM write clock signal may be adjusted based on the analysis.

## Claims

### Claim 1

An apparatus, comprising:
a synchronous dynamic random access (SDRAM) system comprising an SDRAM, a memory controller, and a physical interface (PHY) configured to couple the SDRAM with the memory controller; and
a processor system configured to:
transmit to the memory controller a plurality of requests to initiate write signal timing training, the plurality of requests transmitted at periodic intervals interspersed with mission-mode SDRAM traffic between the SDRAM and the memory controller, the write signal timing training using a multi-purpose command (MPC) first-in-first-out (FIFO) write and MPC FIFO read, the write signal timing training performed a plurality of times producing a corresponding plurality of test result samples;
receive the plurality of test result samples from the memory controller independently of mission-mode SDRAM traffic between the SDRAM and the memory controller;
analyze the plurality of test result samples independently of mission-mode SDRAM traffic between the SDRAM and the memory controller; and
provide mission-mode timing settings to the PHY based on an analysis of the plurality of test result samples.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the PHY includes mission-mode configurable delay cell (CDC) circuitry, training-mode CDC circuitry, and selection circuitry configured to apply to a plurality of SDRAM data bit signals relative to an SDRAM write clock signal a selected one of the mission-mode timing settings using the mission-mode CDC circuitry and training-mode timing settings using the training-mode CDC circuitry.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the PHY is configured to:
receive the mission-mode timing settings from the processor system;
interrupt mission-mode SDRAM traffic operation to configure the mission-mode CDC circuitry with the mission-mode timing settings;
configure the mission-mode CDC circuitry with the mission-mode timing settings while mission-mode SDRAM traffic is interrupted; and
resume mission-mode SDRAM traffic operation after configuring the mission-mode CDC circuitry with the mission-mode timing settings.

### Claim 4 (depends on 2)

The apparatus of claim 2, wherein the memory controller is configured, in response to each request to initiate the write signal timing training, to:
write a test data value represented by a plurality of SDRAM data bit signals using the MPC .FIFO write, wherein the PITY applies the training-mode timing settings to the plurality of SDRAM data bit signals relative to the SDRAM write clock signal during the MPC FIFO write;
after the test data value is written, read a resulting data value represented by the plurality of SDRAM data bit signals using the MPC FIFO read;
compare the resulting data value with the test data value; and
provide a result of comparing the resulting data value with the test data value to the processor system.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the processor system is configured to:
initiate write signal timing training a plurality (M) of times to obtain NI test result samples, and each time the write signal timing training is initiated, to initiate a plurality (N) of MPC FIFO writes to N FIFO register locations and N MPC FIFO reads from the N FIFO register locations to obtain N results; and
average the N results to produce one of the NI test result samples.

### Claim 6 (depends on 4)

The apparatus of claim 4, wherein the processor system is configured to, at each periodic interval:
transmit the request to initiate the write signal timing training to the memory controller;
receive the result of comparing the resulting data value with the test data value from the memory controller;
determine updated training-mode timing settings based on the result of comparing the resulting data value with the test data value; and
provide the updated training-mode timing settings to the PHY.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the PHY is configured to, during the write signal timing training:
skew timing of each of the plurality of SDRAM data bit signals relative to the SDRAM write clock signal at the PHY, the timing of each SDRAM data bit signal skewed an amount less than a data eye period, the timing of each SDRAM data bit signal skewed by a different amount; and
write the test data value represented by the plurality of data bit signals having the skewed timing to the SDRAM using the MPC FIFO write.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the processor system is configured to:
produce each of the plurality of test result samples by comparing a bit pattern of the resulting data value with a bit pattern of the test data value to determine bit differences indicating one of early arrival of the SDRAM data bit signals at the SDRAM from the PHY relative to the SDRAM write clock signal and late arrival of the data bit signals at the SDRAM from the PHY relative to the SDRAM write clock signal; and
determine updated training-mode timing settings by updating timing of the plurality of SDRAM data bit signals in a first direction relative to the SDRAM write clock signal by an amount less than the data eye period if the bit difference indicates early arrival of the data bit signals and updating the timing of the plurality of SDRAM data bit signals in a second direction relative to the SDRAM write clock signal by the amount less than the data eye period if the bit difference indicates late arrival of the SDRAM data bit signals.

### Claim 9 (depends on 6)

The apparatus of claim 6, wherein the processor system is configured to:
produce each of the plurality of test result samples by comparing the resulting data value with the test data value to determine whether the resulting data value matches the test data value; and
determine updated training-mode timing settings by updating timing of the plurality of SDRAM data bit signals in a first direction by an amount less than a data eye period if the resulting data value matches the test data value and updating the timing of the plurality of SDRAM data bit signals a second direction by the amount less than the data eye period if the resulting data value does not match the test data value.

### Claim 10 (depends on 1)

The apparatus of claim 1, further comprising one of a computing system, a mobile computing system, an Internet of Things (IoT) device, a virtual reality system, or an augmented reality system incorporating the host, the memory, and the link, wherein the processor system is configured to perform a computing function of the one of the computing system, the mobile computing system, the Internet of Things device, the virtual reality system, or the augmented reality system.

### Claim 11

An apparatus for compensating for signal timing drift in a synchronous dynamic random access memory (SDRAM) system, comprising:
a host coupled to an SDRAM via a link, the host comprising a processor system, the host configured to:
control write signal timing training performed a plurality of times at periodic intervals interspersed with mission-mode SDRAM traffic, the write signal timing training using a multi-purpose command (MPC) first-in-first-out (FIFO) write and MPC FIFO read, the write signal timing training performed a plurality of times producing a corresponding plurality of test result samples;
analyze the plurality of test result samples independently of mission-mode SDRAM traffic; and
adjust mission-mode timing of a plurality of SDRAM data bit signals relative to an SDRAM write clock signal based on an analysis of the plurality of test result samples.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the host is configured to request interruption of mission-mode SDRAM traffic operation while the mission-mode timing is being adjusted.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the host is configured to control at each periodic interval:
writing a test data value represented by the plurality of SDRAM data bit signals using the MPC FIFO write, wherein training-mode timing settings control timing of the plurality of SDRAM data bit signals relative to the SDRAM write clock signal during the MPC FIFO write;
after writing the test data value, reading a resulting data value represented by the plurality of SDRAM data bit signals using the MPC FIFO read;
comparing the resulting data value with the test data value independently of mission-mode SDRAM traffic;
updating the training-mode timing settings independently of mission-mode SDRAM traffic based on comparing the resulting data value with the test data value.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the host is configured to:
skew timing of each of the plurality of SDRAM data bit signals relative to the SDRAM write clock signal at a physical interface (PHY) coupled to the SDRAM, the timing of each SDRAM data hit signal skewed an amount less than a data eye period, the timing of each SDRAM data bit signal skewed by a different amount; and
write the test data value represented by the plurality of data bit signals having the skewed timing to the SDRAM using the MPC FIFO write.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the host is configured to:
produce each of the plurality of test result samples by comparing a bit pattern of the resulting data value with a bit pattern of the test data value to determine bit differences indicating one of early arrival of the SDRAM data bit signals at the SDRAM from the physical interface relative to the SDRAM write clock signal and late arrival of the data bit signals at the SDRAM from the physical interface relative to the SDRAM write clock signal; and
update the training-mode timing settings by updating timing of the plurality of SDRAM data bit signals in a first direction relative to the SDRAM write clock signal by an amount less than the data eye period if the bit difference indicates early arrival of the data bit signals and updating the timing of the plurality of SDRAM data bit signals in a second direction relative to the SDRAM write clock signal by the amount less than the data eye period if the bit difference indicates late arrival of the SDRAM data bit signals.

### Claim 16 (depends on 13)

The apparatus of claim 13, wherein the host is configured to:
produce each of the plurality of test result samples by comparing the resulting data value with the test data value to determine whether the resulting data value matches the test data value; and
update the training-mode timing settings by updating timing of the plurality of SDRAM data bit signals in a first direction by an amount less than a data eye period if the resulting data value matches the test data value, and updating the timing of the plurality of SDRAM data bit signals a second direction by the amount less than the data eye period if the resulting data value does not match the test data value.

### Claim 17 (depends on 13)

The apparatus of claim 13, wherein the host is configured to:
control performing the write signal timing training a plurality (M) of times to obtain M test result samples;
each time the write signal timing training is performed, writing the test data value is performed a plurality (N) of times to N FIFO register locations, and reading the resulting data value is performed N times from the N FIFO register locations to obtain N results; and
the N results are averaged to produce one of the M test result samples.

### Claim 18 (depends on 11)

The apparatus of claim 11, further comprising one of a computing system, a mobile computing system, an Internet of Things (IoT) device, a virtual reality system, or an augmented reality system incorporating the host, the memory, and the link, wherein the processor system is configured to perform a computing function of the one of the computing system, the mobile computing system, the Internet of Things device, the virtual reality system, or the augmented reality system.

### Claim 19

An apparatus for compensating for signal timing drift in a synchronous dynamic random access memory (SDRAM) system, comprising:
means for performing write signal timing training a plurality of times at periodic intervals interspersed with mission-mode SDRAM traffic, the write signal timing training using a multi-purpose command (MPC) first-in-first-out (FIFO) write and MPC FIFO read, the write signal timing training performed a plurality of times producing a corresponding plurality of test result samples;
means for analyzing the plurality of test result samples independently of mission-mode SDRAM traffic; and
means for adjusting mission-mode timing of a plurality of SDRAM data bit signals relative to an SDRAM write clock signal based on an analysis of the plurality of test result samples.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the means for performing the write signal timing training a plurality of times at periodic intervals comprises:
means for, at each periodic interval, writing a test data value represented by the plurality of SDRAM data bit signals using the MPC FIFO write, wherein training-mode timing settings control timing of the plurality of SDRAM data bit signals relative to the SDRAM write clock signal during the MPC FIFO write;
means for, after writing the test data value, reading a resulting data value represented by the plurality of SDRAM data bit signals using the MPC FIFO read;
means for comparing the resulting data value with the test data value independently of mission-mode SDRAM traffic;
means for updating the training-mode timing settings independently of mission-mode SDRAM traffic based on comparing the resulting data value with the test data value.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein:
the means for writing the test data value represented by the plurality of SDRAM data bit signals using the MPC FIFO write comprises:
means for skewing timing of each of the plurality of SDRAM data bit signals relative to the SDRAM write clock signal at a physical interface (PHY) coupled to the SDRAM, the timing of each SDRAM data bit signal skewed an amount less than a data eye period, the timing of each SDRAM data bit signal skewed by a different amount; and
means for writing the test data value represented by the plurality of data bit signals having the skewed timing to the SDRAM using the MPC FIFO write; reading the resulting data value comprises reading a resulting bit pattern;
the means for performing the write signal timing training produces each of the plurality of test result samples by comparing a bit pattern of the resulting data value with a bit pattern of the test data value to determine bit differences indicating one of early arrival of the SDRAM data bit signals at the SDRAM from the physical interface relative to the SDRAM write clock signal and late arrival of the data bit signals at the SDRAM from the physical interface relative to the SDRAM write clock signal; and
the means for updating the training-mode timing settings comprises means for updating timing of the plurality of SDRAM data bit signals in a first direction relative to the SDRAM write clock signal by an amount less than the data eye period if the bit difference indicates early arrival of the data bit signals and updating the timing of the plurality of SDRAM data bit signals in a second direction relative to the SDRAM write clock signal by the amount less than the data eye period if the bit difference indicates late arrival of the SDRAM data bit signals.

### Claim 22 (depends on 20)

The apparatus of claim 20, wherein:
the means for performing the write signal timing training produces each of the plurality of test result samples by comparing the resulting data value with the test data value to determine whether the resulting data value matches the test data value; and
the means for updating the training-mode timing settings comprises means for updating timing of the plurality of SDRAM data bit signals in a first direction by an amount less than a data eye period if the resulting data value matches the test data value, and updating the timing of the plurality of SDRAM data bit signals a second direction by the amount less than the data eye period if the resulting data value does not match the test data value.

### Claim 23 (depends on 20)

The apparatus of claim 20, wherein:
the means for performing write signal timing training performs the write signal timing training a plurality (M) of times to obtain M test result samples;
each time the write signal timing training is performed the means for writing the test data value writes the test data value a plurality (N) of times to N FIFO register locations, the means for reading the resulting data value reads the N FIFO register locations, and the means for comparing produces N results; and
the apparatus further comprises means for averaging the N results to produce one of the M test result samples.

### Claim 24 (depends on 19)

The apparatus of claim 19, further comprising one of a computing system, a mobile computing system, an Internet of Things (IoT) device, a virtual reality system, or an augmented reality system incorporating the host, the memory, and the link, wherein the processor system is configured to perform a computing function of the one of the computing system, the mobile computing system, the Internet of Things device, the virtual reality system, or the augmented reality system.

### Claim 25

A method for compensating for signal timing drift in a synchronous dynamic random access memory (SDRAM) system, comprising:
performing write signal timing training a plurality of times at periodic intervals interspersed with mission-mode SDRAM traffic, the write signal timing training using a multi-purpose command (MPC) first-in-first-out (FIFO) write and MPC FIFO read, the write signal timing training performed a plurality of times producing a corresponding plurality of test result samples;
analyzing the plurality of test result samples independently of mission-mode SDRAM traffic; and
adjusting mission-mode timing of a plurality of SDRAM data bit signals relative to an SDRAM write clock signal based on an analysis of the plurality of test result samples.

### Claim 26 (depends on 25)

The method of claim 25, wherein performing the write signal timing training comprises:
writing a test data value represented by the plurality of SDRAM data bit signals using the MPC FIFO write, wherein training-mode timing settings control timing of the plurality of SDRAM data bit signals relative to the SDRAM write clock signal during the MPC FIFO write;
after writing the test data value, reading a resulting data value represented by the plurality of SDRAM data bit signals using the MPC FIFO read;
comparing the resulting data value with the test data value independently of mission-mode SDRAM traffic; and
updating the training-mode timing settings independently of mission-mode SDRAM traffic based on comparing the resulting data value with the test data value.

### Claim 27 (depends on 26)

The method of claim 26, wherein adjusting the mission-mode timing comprises adjusting mission-mode timing settings controlling timing of the plurality of SDRAM data bit signals relative to the SDRAM write clock signal during the mission-mode SDRAM traffic, wherein the mission-mode SDRAM traffic is stalled only during the MPC FIFO write and MPC FIFO read and while the mission-mode timing settings are being adjusted.

### Claim 28 (depends on 27)

The method of claim 27, wherein:
writing the test data value represented by the plurality of SDRAM data bit signals using the MPC FIFO write comprises:
skewing timing of each of the plurality of SDRAM data bit signals relative to the SDRAM write clock signal at a physical interface (PHY) coupled to the SDRAM, the timing of each SDRAM data bit signal skewed an amount less than a data eye period, the timing of each SDRAM data bit signal skewed by a different amount; and
writing the test data value represented by the plurality of data bit signals having the skewed timing to the SDRAM using the MPC FIFO write;
reading the resulting data value comprises reading a resulting bit pattern;
performing the write signal timing training produces each of the plurality of test result samples by comparing a bit pattern of the resulting data value with a bit pattern of the test data value to determine bit differences indicating one of early arrival of the SDRAM data bit signals at the SDRAM from the physical interface relative to the SDRAM write clock signal and late arrival of the data bit signals at the SDRAM from the physical interface relative to the SDRAM write clock signal; and
updating the training-mode timing settings comprises updating timing of the plurality of SDRAM data bit signals in a first direction relative to the SDRAM write clock signal by an amount less than the data eye period if the bit difference indicates early arrival of the data bit signals and updating the timing of the plurality of SDRAM data bit signals in a second direction relative to the SDRAM write clock signal by the amount less than the data eye period if the bit difference indicates late arrival of the SDRAM data bit signals.

### Claim 29 (depends on 27)

The method of claim 27, wherein:
the write signal timing training produces each of the plurality of test result samples by comparing the resulting data value with the test data value and determining whether the resulting data value matches the test data value; and
updating the training-mode timing settings comprises updating timing of the plurality of SDRAM data bit signals in a first direction by an amount less than a data eye period if the resulting data value matches the test data value, and adjusting the timing of the plurality of SDRAM data bit signals a second direction by the amount less than the data eye period if the resulting data value does not match the test data value.

### Claim 30 (depends on 27)

The method of claim 27, wherein:
the write signal timing training is performed a plurality (M) of times to Obtain NI test result samples;
each time the write signal timing training is performed, writing the test data value is performed a plurality (N) of times to N FIFO register locations, reading the resulting data value is performed N times from the N FIFO register locations, and the comparing is performed N times to produce N results; and
the method further comprises averaging the N results are averaged to produce one of the M test result samples.
