# US 2024/0004793 A1 · Shadow caches for level 2 cache controller

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

- Number: US 2024/0004793 A1
- Document ID: US20240004793A1
- Status: Published application
- Kind: A1
- Application number: 18/362,005
- Filed: 2023-07-31
- Published: 2024-01-04
- Earliest claimed: 2019-05-24
- Applicants: Texas Instruments Incorporated
- Inventors: Abhijeet Ashok CHACHAD; David Matthew THOMPSON; Naveen BHORIA
- Web page: https://patentgrep.com/patent/US20240004793A1

## CPC

- G06F 12/0811: with multilevel cache hierarchies
- G06F 9/3004: {to perform operations on memory}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/30079: {Pipeline control instructions, e.g. multicycle NOP}
- G06F 9/3867: {using instruction pipelines}
- G06F 9/467: {Transactional memory (G06F9/528 takes precedence)}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 11/3037: {where the computing system component is a memory, e.g. virtual memory, cache (accessing, addressing or allocating within memory systems or architectures G06F12/00; checking stores for correct operation G11C29/00)}
- G06F 11/3055: {Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16)}
- G06F 12/0808: with cache invalidating means (G06F12/0815 takes precedence)
- G06F 12/0815: Cache consistency protocols
- G06F 12/0828: {with concurrent directory accessing, i.e. handling multiple concurrent coherency transactions}
- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F 12/084: with a shared cache
- G06F 12/0895: of parts of caches, e.g. directory or tag array
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06F 13/1668: {Details of memory controller}
- G06F 2212/1021: Hit rate improvement
- G06F 2212/1024: Latency reduction
- G06F 2212/608: Details relating to cache mapping
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus including a CPU core and a L1 cache subsystem coupled to the CPU core. The L1 cache subsystem includes a L1 main cache, a L1 victim cache, and a L1 controller. The apparatus includes a L2 cache subsystem coupled to the L1 cache subsystem. The L2 cache subsystem includes a L2 main cache, a shadow L1 main cache, a shadow L1 victim cache, and a L2 controller. The L2 controller receives an indication from the L1 controller that a cache line A is being relocated from the L1 main cache to the L1 victim cache; in response to the indication, update the shadow L1 main cache to reflect that the cache line A is no longer located in the L1 main cache; and in response to the indication, update the shadow L1 victim cache to reflect that the cache line A is located in the L1 victim cache.

## Claims

### Claim 1

A circuit device comprising:
a processor core;
a first cache subsystem that includes:
a first cache memory configured to store a first set of cache entries;
a second cache memory configured to store a second set of cache entries; and
a first cache controller coupled to the processor core, the first cache memory and the second cache memory, wherein the first cache controller is configured to evict a cache entry from the first cache memory by storing the cache entry in the second cache memory; and
a second cache subsystem that includes:
a first tag memory associated with the first cache memory and configured to store a first set of tag data associated with the first set of cache entries;
a second tag memory associated with the second cache memory and configured to store a second set of tag data associated with the second set of cache entries; and
a second cache controller coupled to the first cache controller, the first tag memory, and the second tag memory.

### Claim 2 (depends on 1)

The circuit device of claim 1, wherein:
the eviction of the cache entry from the first cache memory by the first cache controller includes providing an indication of the eviction to the second cache controller; and
wherein the second cache controller is configured to modify the first set of tag data and the second set of tag data based on the indication.

### Claim 3 (depends on 2)

The circuit device of claim 2, wherein:
the cache entry is a first cache entry;
the first cache controller is configured to provide, to the second cache controller, a request for data associated with a second cache entry;
the eviction of the cache entry from the first cache memory is in response to receiving the data associated with the second cache entry; and
the request for the data associated with the second cache entry includes the indication of the eviction of the first cache entry from the first cache memory.

### Claim 4 (depends on 1)

The circuit device of claim 1, wherein the second cache controller is configured to:
receive a request to read data;
determine whether the request corresponds to a hit or a miss in the first cache memory using the first tag memory; and
based on the request corresponding to a hit in the first cache memory, provide a snoop request for the data to the first cache controller.

### Claim 5 (depends on 4)

The circuit device of claim 4, wherein:
the second cache subsystem includes a third cache memory; and
the second cache controller is further configured to, based on the request corresponding to a miss in the first cache memory:
determine whether the request corresponds to a hit or a miss in the third cache memory; and
based on the request corresponding to a hit in the third cache memory, provide the data using the third cache memory.

### Claim 6 (depends on 1)

The circuit device of claim 1, wherein the second cache controller is configured to:
receive a request to write a first set of data;
determine whether the request corresponds to a hit or a miss in the first cache memory using the first tag memory; and
based on the request corresponding to a hit in the first cache memory, provide a snoop read and invalidate request to the first cache controller.

### Claim 7 (depends on 6)

The circuit device of claim 6, wherein the second cache controller is further configured to, based on the snoop read and invalidate request returning a second set of data indicated as modified:
merge the first set of data and the second set of data to produce a merged set of data; and
cause the merged set of data to be written.

### Claim 8 (depends on 7)

The circuit device of claim 7, wherein the second cache controller is further configured to, based on the snoop read and invalidate request returning the second set of data indicated as unmodified, cause the first set of data to be written.

### Claim 9 (depends on 1)

The circuit device of claim 1, wherein the first set of tag data and the second set of tag data include address data and coherence data.

### Claim 10 (depends on 1)

The circuit device of claim 1, wherein:
the first cache subsystem is a level-one (L1) cache subsystem; and
the second cache subsystem is a level-two (L2) cache subsystem.

### Claim 11 (depends on 1)

The circuit device of claim 1, wherein the first cache memory and the second cache memory have different associativity.

### Claim 12 (depends on 1)

The circuit device of claim 1, wherein:
the first cache subsystem includes a set of buffers configured to store a third set of cache entries for transfer to the second cache subsystem; and
second tag memory is configured to store a third set of tag data associated with the third set of cache entries.

### Claim 13

A circuit device comprising:
a first cache subsystem that includes:
a first tag memory associated with a first cache memory of a second cache subsystem and configured to store a first set of tag data associated with the first cache memory;
a second tag memory associated with a second cache memory of the second cache subsystem and configured to store a second set of tag data associated with the second cache memory; and
a cache controller coupled to the first tag memory, the second tag memory, and the second cache subsystem, wherein the cache controller is configured to modify the first set of tag data and the second set of tag data based on a cache entry being evicted from the first cache memory and stored in the second cache memory.

### Claim 14 (depends on 13)

The circuit device of claim 13, wherein:
the cache entry is a first cache entry;
the cache controller is configured to receive, from the second cache subsystem, a request for data associated with a second cache entry to replace the first cache entry in the first cache memory; and
the request for the data associated with the second cache entry includes an indication of the eviction of the first cache entry from the first cache memory. The circuit device of claim 13, wherein the cache controller is configured to:
receive a request to read data;
determine whether the request corresponds to a hit or a miss in the first cache memory using the first tag memory; and
based on the request corresponding to a hit in the first cache memory, provide a snoop request for the data to the second cache subsystem.

### Claim 16 (depends on 15)

The circuit device of claim 15, wherein:
the first cache subsystem includes a third cache memory; and
the cache controller is further configured to, based on the request corresponding to a miss in the first cache memory:
determine whether the request corresponds to a hit or a miss in the third cache memory; and
based on the request corresponding to a hit in the third cache memory, provide the data using the third cache memory.

### Claim 17 (depends on 13)

The circuit device of claim 13, wherein the cache controller is configured to:
receive a request to write a first set of data;
determine whether the request corresponds to a hit or a miss in the first cache memory using the first tag memory; and
based on the request corresponding to a hit in the first cache memory, provide a snoop read and invalidate request to the second cache subsystem.

### Claim 18 (depends on 17)

The circuit device of claim 17, wherein the cache controller is further configured to, based on the snoop read and invalidate request returning a second set of data indicated as modified:
merge the first set of data and the second set of data to produce a merged set of data; and
cause the merged set of data to be written.

### Claim 19 (depends on 18)

The circuit device of claim 18, wherein the cache controller is further configured to, based on the snoop read and invalidate request returning the second set of data indicated as unmodified, cause the first set of data to be written.

### Claim 20 (depends on 13)

The circuit device of claim 13, wherein the first set of tag data and the second set of tag data include address data and coherence data.

### Claim 21 (depends on 13)

The circuit device of claim 13, wherein:
the first cache subsystem is a level-two (L2) cache subsystem; and
the second cache subsystem is a level-one (L1) cache subsystem.
