# US 2018/0322078 A1 · Unified cache for diverse memory traffic

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

- Number: US 2018/0322078 A1
- Document ID: US20180322078A1
- Status: Published application
- Kind: A1
- Application number: 15/716,461
- Filed: 2017-09-26
- Published: 2018-11-08
- Earliest claimed: 2017-05-04
- Assignees: NVIDIA Corporation
- Applicants: NVIDIA Corporation
- Inventors: Xiaogang QIU; Ronny KRASHINSKY; Steven HEINRICH; Shirish GADRE; John EDMONDSON; Jack CHOQUETTE; Mark GEBHART; Ramesh JANDHYALA; Poornachandra RAO; Omkar PARANJAPE; Michael SIU
- Web page: https://patentgrep.com/patent/US20180322078A1

## CPC

- G06F 13/28: using burst mode transfer, e.g. direct memory access {DMA}, cycle steal (G06F13/32 takes precedence)
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/084: with a shared cache
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/0895: of parts of caches, e.g. directory or tag array
- G06F 12/122: of the least frequently used [LFU] type, e.g. with individual count value
- G06F 2212/60: Details of cache memory
- G06F 2212/62: Details of cache specific to multiprocessor cache arrangements
- G06F 2213/28: DMA
- G11C 7/1015: {Read-write modes for single port memories, i.e. having either a random port or a serial port}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A unified cache subsystem includes a data memory configured as both a shared memory and a local cache memory. The unified cache subsystem processes different types of memory transactions using different data pathways. To process memory transactions that target shared memory, the unified cache subsystem includes a direct pathway to the data memory. To process memory transactions that do not target shared memory, the unified cache subsystem includes a tag processing pipeline configured to identify cache hits and cache misses. When the tag processing pipeline identifies a cache hit for a given memory transaction, the transaction is rerouted to the direct pathway to data memory. When the tag processing pipeline identifies a cache miss for a given memory transaction, the transaction is pushed into a first-in first-out (FIFO) until miss data is returned from external memory. The tag processing pipeline is also configured to process texture-oriented memory transactions.

## Claims

### Claim 1

A memory subsystem, comprising:
a first memory that includes a first set of data slots and a second set of data slots;
a first tag store that includes a first set of tags and a second set of tags; and
a data scrubber that manages the first memory by:
identifying a first tag that is included in the first set of tags and is associated with first in-flight data,
determining that a number of available data slots in the data memory is less than a threshold value, and
evicting a second tag included in the second set of tags, wherein evicting the second tag also causes data stored in a first data slot included in the first set of data slots to be evicted, and wherein the first in-flight data is subsequently stored in the first data slot, and the first tag subsequently references the first data slot.

### Claim 2 (depends on 1)

The memory subsystem of claim 1, wherein the data scrubber further manages the first memory by:
evicting a third tag included in the first set of tags to free a third data slot included in the second set of data slots; and
evicting a fourth tag included in the second set of tags to free a fourth data slot included in the second set of data slots.

### Claim 3 (depends on 1)

The memory subsystem of claim 1, wherein each data slot included in the first set of data slots has a first size, and each tag included in the first set of tags has a second size that is not equal to the first size.

### Claim 4 (depends on 1)

The memory subsystem of claim 1, wherein the first set of data slots includes a first amount of storage space for storing data having a first type.

### Claim 5 (depends on 4)

The memory subsystem of claim 4, wherein the data scrubber further manages the first memory by evicting a first subset of tags from the first set of tags to cause of a first subset of data slots included in the first set of data slots to be evicted.

### Claim 6 (depends on 5)

The memory subsystem of claim 5, wherein the data scrubber further manages the first memory by evicting a second subset of tags from the second set of tags to cause a second subset of data slots included in the first set of data slots to be evicted.

### Claim 7 (depends on 4)

The memory subsystem of claim 4, wherein the data scrubber further manages the first memory by:
evicting a first subset of tags from the first set of tags to cause a first subset of data slots included in the second set of data slots to be evicted; and
allocating the first subset of data slots for storing data having the first type.

### Claim 8 (depends on 7)

The memory subsystem of claim 7, wherein the data scrubber further manages the first memory by:
evicting a second subset of tags from the second set of tags to cause a second subset of data slots included in the second set of data slots to be evicted; and
allocating the second subset of data slots for storing data having the first type.

### Claim 9 (depends on 4)

The memory subsystem of claim 4, wherein data having the first type comprises one of scratchpad data, local/global data, and texture data.

### Claim 10

A computer-implemented method, comprising:
identifying a first tag included in a first set of tags and associated with first in-flight data;
determining that a number of available data slots in a data memory is less than a threshold value; and
evicting a second tag included in a second set of tags,
wherein evicting the second tag also causes data stored in a first data slot included in a first set of data slots to be evicted, and
wherein the first in-flight data is subsequently stored in the first data slot, and the first tag subsequently references the first data slot.

### Claim 11 (depends on 10)

The computer-implemented method of claim 10, wherein each data slot included in the first set of data slots has a first size, and each tag included in the first set of tags has a second size that is not equal to the first size.

### Claim 12 (depends on 10)

The computer-implemented method of claim 10, wherein the first set of data slots includes a first amount of storage space for storing data having a first type.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, further comprising decreasing storage space for data having the first type by evicting a first subset of tags from the first set of tags to cause of a first subset of data slots included in the first set of data slots to be evicted.

### Claim 14 (depends on 13)

The computer-implemented method of claim 13, further comprising decreasing storage space for data having the first data type by evicting a second subset of tags from the second set of tags to cause a second subset of data slots included in the first set of data slots to be evicted.

### Claim 15 (depends on 12)

The computer-implemented method of claim 12, further comprising increasing storage space for data having the first data type by evicting a first subset of tags from the first set of tags to cause a first subset of data slots included in the second set of data slots to be evicted and allocating the first subset of data slots for storing data having the first type.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, further comprising increasing storage space for data having the first data type by evicting a second subset of tags from the second set of tags to cause a second subset of data slots included in the second set of data slots to be evicted and allocating the second subset of data slots for storing data having the first type.

### Claim 17 (depends on 10)

The computer-implemented method of claim 10, wherein data having the first type comprises one of scratchpad data, local/global data, and texture data

### Claim 18

A system, comprising:
a first memory that includes a first set of data slots and a second set of data slots;
a first tag store that includes a first set of tags and a second set of tags; and
a data scrubber that manages the first memory by evicting a one or more tags included in the second set of tags to cause data stored in one or more data slots included in the first set of data slots to be evicted also, wherein in-flight data is subsequently stored in the one or more data slots, and one or more tags included in the first set of tags subsequently reference the one or more data slots.

### Claim 19 (depends on 18)

The system of claim 18, further comprising:
a current age counter;
a first class counter associated with a first class of data; and
a first set counter associated with the first set of tags.

### Claim 20 (depends on 19)

The system of claim 19, wherein the tag pipeline invalidates a specific tag that is included in the first set of tags and is associated with the first class of data by:
receiving a first invalidation request to invalidate one or more tags associated with the first class of data;
incrementing the current age counter to a first value in response to the first invalidation request;
incrementing the first class counter to the first value based on the current age counter;
receiving a first access request to access data associated with the specific tag;
determining that the first class counter exceeds the first set counter; and
evicting the specific tag to cause a specific data slot corresponding to the specific tag to be evicted as well.

### Claim 21 (depends on 19)

The system of claim 19, wherein the data scrubber further manages the first memory by:
determining that the current age counter has reached a maximum value;
determining that the first class counter exceeds the first set counter;
evicting a specific tag that is included in the first set of tags and is associated with the first class of data; and
updating the first set counter to a value indicated by the first class counter; and
resetting the current age counter.
