# US 7,269,708 B2 · Memory controller for non-homogenous memory system

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

- Number: US 7,269,708 B2
- Document ID: US7269708B2
- Status: Granted
- Kind: B2
- Application number: 10/828,900
- Filed: 2004-04-20
- Published: 2005-10-20
- Granted: 2007-09-11
- Earliest claimed: 2004-04-20
- Assignees: Rambus Inc.
- Inventors: Frederick A. Ware
- Web page: https://patentgrep.com/patent/US7269708B2

## CPC

- G06F 12/10: Address translation
- G06F 12/0292: {using tables or multilevel address translation means (G06F12/023 takes precedence; address translation in virtual memory systems G06F12/10)}
- G06F 12/08: in hierarchically structured memory systems, e.g. virtual memory systems
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 2212/2022: Flash memory
- G06F 2212/205: Hybrid memory, e.g. using both volatile and non-volatile memory
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A memory controller includes a first memory interface adapted to be coupled to one or more first memory devices of a first memory type having a first set of attributes, and a second memory interface adapted to be coupled to one or more second memory devices of a second memory type having a second set of attributes. The first and second sets of attributes have at least one differing attribute. The controller also includes interface logic configured to direct memory transactions having a predefined first characteristic to the first memory interface and to direct memory transactions having a predefined second characteristic to the second memory interface. Pages having a usage characteristic of large volumes of write operations may be mapped to the one or more first memory devices, while pages having a read-only or read-mostly usage characteristic may be mapped to the one or more second memory devices.

## Claims

### Claim 1

A controller, comprising:
a first memory interface adapted to be coupled to one or more first memory devices wherein the first memory devices comprise volatile memory devices;
a second memory interface adapted to be coupled to one or more second memory devices wherein the second memory devices comprise non-volatile memory devices; and
interface logic coupled to the first and second interfaces and configured to direct memory transactions having a predefined first characteristic to the first memory interface and to direct at least some memory transactions having a predefined second characteristic to the second memory interface, wherein the second characteristic comprises a usage characteristic selected from the group consisting of a read-mostly characteristic and read-only characteristic; and wherein the usage characteristic of at least some memory transactions is updated during operation.

### Claim 2 (depends on 1)

The controller of claim 1, wherein the second memory devices have a limited write operation endurance.

### Claim 3 (depends on 2)

The controller of claim 2, further comprising:
an endurance counter for counting a number of write operations to a block of memory cells in the one or more second memory devices.

### Claim 4 (depends on 2)

The controller of claim 2, further comprising:
a set of endurance counters for counting the number of write operations to each block of memory cells in the one or more second memory devices.

### Claim 5 (depends on 1)

The controller of claim 1, further comprising:
a write cache for storing data associated with write operations directed to any of the one or more second memory devices.

### Claim 6 (depends on 5)

The controller of claim 5, wherein the write cache is configured to write data stored therein to the one or more second memory devices when a predefined write cache state occurs.

### Claim 7 (depends on 5)

The controller of claim 5, wherein the controller is configurable to write data stored therein to the one or more second memory devices.

### Claim 8 (depends on 5)

The controller of claim 5, wherein the controller is adapted to relocate one or more pages from the one or more second memory devices to the one or more first memory devices when a predefined write cache state occurs.

### Claim 9 (depends on 1)

The controller of claim 1, wherein the one or more first memory devices are Dynamic Random Access Memory (DRAM) devices and the one or more second memory devices are Flash memory devices.

### Claim 10 (depends on 1)

The controller of claim 1, further comprising:
a prefetch buffer coupled to the second memory interface and adapted to prefetch data from the one or more second memory devices.

### Claim 11 (depends on 10)

The controller of claim 10, wherein the second memory interface is configured to reduce power used by the one or more second memory devices between prefetches of data from the one or more second memory devices.

### Claim 12 (depends on 1)

The controller of claim 1, wherein the memory controller is configurable to move pages from the one or more first memory devices to secondary storage and to then power down the one or more first memory devices.

### Claim 13 (depends on 1)

The controller of claim 1, wherein the controller is adapted for use in conjunction with a processor having virtual memory logic for mapping virtual memory addresses into physical memory addresses and page logic for assigning physical memory addresses to virtual memory addresses, wherein the page logic is configured to assign physical memory addresses in the one or more first memory devices to virtual memory addresses associated with a first usage characteristic, and to assign physical memory addresses in the one or more second memory devices to virtual memory addresses associated with a second usage characteristic.

### Claim 14

A controller, comprising:
first interface means for coupling the controller to one or more first memory devices wherein the first memory devices comprise volatile memory devices;
second interface means for coupling the controller to one or more second memory devices wherein the second memory devices comprise non-volatile memory devices; and
logic means coupled to the first and second interface means for directing memory transactions having a predefined first characteristic to the first memory interface means and for directing at least some memory transactions having a predefined second characteristic to the second memory interface means, wherein the second characteristic comprises a usage characteristic selected from the group consisting of a read-mostly characteristic and read-only characteristic, and wherein the usage characteristic of at least some memory transactions is updated during operation.

### Claim 15

A system, comprising:
a first memory interface adapted to be coupled to one or more first memory devices of a first memory type having a first set of attributes;
a second memory interface adapted to be coupled to one or more second memory devices of a second memory type having a second set of attributes, wherein the first and second sets of attributes have at least one differing attribute;
interface logic coupled to the first and second interfaces and configured to direct memory transactions having a predefined first characteristic to the first memory interface and to direct memory transactions having a predefined second characteristic to the second memory interface; and
a processor having virtual memory logic for mapping virtual memory addresses into physical memory addresses and page logic for assigning physical memory addresses to virtual memory addresses, wherein the page logic is configured to assign physical memory addresses in the one or more first memory devices to virtual memory addresses associated with a first usage characteristic, and to assign physical memory addresses in the one or more second memory devices to virtual memory addresses associated with a second usage characteristic.

### Claim 16 (depends on 15)

The system of claim 15, wherein the first usage characteristic comprises memory usage that includes both read and write operations.

### Claim 17 (depends on 16)

The system of claim 16, wherein the second usage characteristic comprises memory usage that includes only read operations.

### Claim 18 (depends on 16)

The system of claim 16, wherein the second usage characteristic comprises memory usage that includes read operations and less than a threshold amount of write operations.

### Claim 19 (depends on 15)

The system of claim 15, wherein the processor includes a page table cache having entries that include a field whose value is set by the processor in accordance with the first and second usage characteristics.

### Claim 20 (depends on 15)

The system of claim 15, including a page table, for mapping virtual memory pages to physical memory pages, having a plurality of entries that include a field whose value is set in accordance with whether corresponding virtual memory pages are associated with the first or second usage characteristic.

### Claim 21 (depends on 20)

The system of claim 20, wherein the system is configured to change the value of the field in an entry of the page table based on usage of the corresponding page.

### Claim 22

A system, comprising:
first interface means for coupling to one or more first memory devices of a first memory type having a first set of attributes;
second interface means for coupling to one or more second memory devices of a second memory type having a second set of attributes, wherein the first and second sets of attributes have at least one differing attribute;
logic means coupled to the first and second interface means for directing memory transactions having a predefined first characteristic to the first interface means and to direct memory transactions having a predefined second characteristic to the second interface means; and
virtual memory means for mapping virtual memory addresses into physical memory addresses and page means for assigning physical memory addresses to virtual memory addresses, wherein the page means assigned physical memory addresses in the one or more first memory devices to virtual memory addresses associated with a first usage characteristic, and assigns physical memory addresses in the one or more second memory devices to virtual memory addresses associated with a second usage characteristic.

### Claim 23

A method of managing memory in a non-homogeneous memory system, comprising:
establishing a plurality of page table entries, each entry in the plurality of page table entries mapping a virtual memory page address to a physical memory page address, each said entry including a usage field identifying a respective portion of main memory in which the physical memory page address is located, wherein the main memory includes at least two distinct portions, including a first portion implemented with one or more first memory devices of a first memory type having a first set of attributes and a second portion implemented with one or more second memory devices of a second memory type having a second set of attributes, wherein the first and second sets of attributes have at least one differing attribute;
receiving a memory transaction request;
translating a virtual address of a page associated with the memory transaction request into a physical address in accordance with a corresponding page table entry of the plurality of page table entries, the physical address comprising a physical address in a respective portion of main memory;
directing the memory transaction to the physical address in the respective portion of main memory.

### Claim 24 (depends on 23)

The method of claim 23, wherein the first memory devices are volatile memory devices, the first set of attributes include an unlimited endurance characteristic, the second memory devices are non-volatile memory devices, and the second set of attributes include a limited endurance characteristic.

### Claim 25 (depends on 23)

The method of claim 23, wherein the second memory devices are non-volatile memory devices and the first memory devices are volatile memory devices.

### Claim 26 (depends on 23)

The method of claim 23, further comprising:
determining if an endurance limitation associated with one of the second memory devices has been exceeded; and
redirecting the memory transaction if the endurance limitation not been exceeded.

### Claim 27 (depends on 23)

The method of claim 23, wherein the second memory devices are non-volatile memory devices, and the method includes:
redirecting at least one write operation directed to one of the second memory devices to a write cache.

### Claim 28 (depends on 27)

The method of claim 27, further comprising:
determining if the write cache can accept a write operation; and
writing the page to the write cache if the write cache can accept a write operation.

### Claim 29 (depends on 23)

The method of claim 23, wherein the second memory devices are non-volatile memory devices and the method includes:
pre-fetching data from the second memory device.

### Claim 30 (depends on 29)

The method of claim 29, including reducing power to the one or more second memory devices between prefetches.

### Claim 31 (depends on 23)

The method of claim 23, including moving pages from the one or more first memory devices to secondary storage and then powering down the one or more first memory devices.
