# US 2008/0307276 A1 · Memory Controller with Loopback Test Interface

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

- Number: US 2008/0307276 A1
- Document ID: US20080307276A1
- Status: Published application
- Kind: A1
- Application number: 11/760,566
- Filed: 2007-06-08
- Published: 2008-12-11
- Earliest claimed: 2007-06-08
- Assignees: Apple Inc.
- Inventors: Luka Bodrozic; Sukalpa Biswas; Hao Chen; Sridhar P. Subramanian; James B. Keller
- Web page: https://patentgrep.com/patent/US20080307276A1

## CPC

- G01R 31/31716: {Testing of input or output with loop-back}
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)

## Abstract

In one embodiment, an apparatus comprises an interconnect; at least one processor coupled to the interconnect; and at least one memory controller coupled to the interconnect. The memory controller is programmable by the processor into a loopback test mode of operation and, in the loopback test mode, the memory controller is configured to receive a first write operation from the processor over the interconnect. The memory controller is configured to route write data from the first write operation through a plurality of drivers and receivers connected to a plurality of data pins that are capable of connection to one or more memory modules. The memory controller is further configured to return the write data as read data on the interconnect for a first read operation received from the processor on the interconnect.

## Claims

### Claim 1

A memory controller comprising:
a write data buffer configured to store write data received from one or more write operations on an interconnect to which the memory controller is coupled;
a plurality of drivers configured to drive write data from the write data buffer on a plurality of pins to which a plurality of memory modules are capable of being coupled;
a plurality of receivers configured to receive data from the plurality of pins; and
a controller configured, in a loopback test mode of operation, to cause first write data to be transmitted from the write data buffer, through the plurality of drivers and the plurality of receivers, to be captured in the memory controller in response to a first write operation.

### Claim 2 (depends on 1)

The memory controller as recited in claim 1 wherein, in response to a first read operation received from the interconnect, the controller is configured to cause the first write data to be transmitted on the interconnect.

### Claim 3 (depends on 2)

The memory controller as recited in claim 2 further comprising a merge buffer which, in a normal mode of operation, is configured to store data of one or more read-modify-write operations, and wherein the controller is configured to compare a read address from the first read operation to addresses of data in the merge buffer to determine which data to provide in response to the first read operation.

### Claim 4 (depends on 3)

The memory controller as recited in claim 3 further comprising a second plurality of drivers and a second plurality of receivers, wherein the second plurality of drivers are configured to drive address pins to which the one or more memory modules are capable of being coupled, and wherein the second plurality of receivers are configured to provide address bits from the address pins to the merge buffer for storage in the loopback test mode, whereby a write address of the first write operation is stored in the merge buffer in the loopback test mode.

### Claim 5 (depends on 3)

The memory controller as recited in claim 3 wherein the merge buffer is written with one or more addresses prior to the first write operation, and wherein the memory controller further comprises a second plurality of drivers and a second plurality of receivers, wherein the second plurality of drivers are configured to drive address pins to which the one or more memory modules are capable of being coupled, and wherein the second plurality of receivers are configured to provide address bits from the address pins for comparison to the merge buffer to detect a merge buffer entry to store the write data.

### Claim 6 (depends on 5)

The memory controller as recited in claim 5 wherein the second plurality of receivers comprise a disable input, and wherein the controller is configured to disable the second plurality of receivers in the normal mode.

### Claim 7 (depends on 4)

The memory controller as recited in claim 4 wherein the second plurality of receivers comprise a disable input, and wherein the controller is configured to disable the second plurality of receivers in the normal mode.

### Claim 8 (depends on 3)

The memory controller as recited in claim 3 wherein, if the read address does not match an address in the merge buffer, the controller is configured to cause error data to be returned in response to the first read operation.

### Claim 9 (depends on 8)

The memory controller as recited in claim 8 wherein the controller is configured to cause the data from the merge buffer to be transmitted through the plurality of drivers and plurality of receivers to a read data buffer.

### Claim 10

An apparatus comprising:
an interconnect;
at least one processor coupled to the interconnect; and
at least one memory controller coupled to the interconnect, wherein the memory controller is programmable by the processor into a loopback test mode of operation, and wherein, in the loopback test mode, the memory controller is configured to receive a first write operation from the processor over the interconnect, and wherein the memory controller is configured to route write data from the first write operation through a plurality of drivers and receivers connected to a plurality of data pins that are capable of connection to one or more memory modules, and wherein the memory controller is configured to return the write data as read data on the interconnect for a first read operation received from the processor on the interconnect.

### Claim 11 (depends on 10)

The apparatus as recited in claim 10 wherein the processor is configured to execute a program during the loopback test mode that includes instructions which, when executed, cause the first write operation and the first read operation.

### Claim 12 (depends on 11)

The apparatus as recited in claim 11 wherein the program further includes one or more instructions which check that the read data matches the write data.

### Claim 13 (depends on 10)

The apparatus as recited in claim 10 wherein the memory controller further comprises a merge buffer which, in a normal mode of operation, is configured to store data of one or more read-modify-write operations, and wherein the memory controller is configured to compare a read address from the first read operation to addresses of the data in the merge buffer to determine which data to provide in response to the first read operation.

### Claim 14 (depends on 13)

The apparatus as recited in claim 13 wherein the memory controller further comprises a second plurality of drivers and a second plurality of receivers, wherein the second plurality of drivers are configured to drive address pins to which the one or more memory modules are capable of being coupled, and wherein the second plurality of receivers are configured to provide address bits from the address pins to the merge buffer in the loopback test mode.

### Claim 15 (depends on 14)

The apparatus as recited in claim 14 wherein the second plurality of receivers comprise a disable input, and wherein the memory controller is configured to disable the second plurality of receivers in the normal mode.

### Claim 16 (depends on 13)

The apparatus as recited in claim 13 wherein, if the read address does not match an address in the merge buffer, the memory controller is configured to return error data in response to the first read operation.

### Claim 17

A method comprising:
issuing a first write operation from a processor to a memory controller in a loopback test mode of operation;
routing write data from the first write operation through a plurality of drivers and receivers in the memory controller, wherein the plurality of drivers and receivers are connected to a plurality of data pins that are capable of connection to one or more memory modules;
issuing a first read operation from the processor to the memory controller in the loopback test mode of operation; and
returning the write data as read data on the interconnect for a first read operation received from the processor on the interconnect.

### Claim 18 (depends on 17)

The method as recited in claim 17 further comprising checking that the read data matches the write data in the processor.

### Claim 19 (depends on 17)

The method as recited in claim 17 wherein the memory controller further comprises a second plurality of drivers and a second plurality of receivers, wherein the second plurality of drivers are configured to drive address pins to which the one or more memory modules are capable of being coupled, and wherein the second plurality of receivers are configured to provide address bits from the address pins back to the memory controller, and wherein the second plurality of receivers comprise a disable input, the method further comprising disabling the second plurality of receivers in a normal mode of operation by the memory controller.
