# US 2023/0058689 A1 · Controller with caching and non-caching modes

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

- Number: US 2023/0058689 A1
- Document ID: US20230058689A1
- Status: Published application
- Kind: A1
- Application number: 17/981,591
- Filed: 2022-11-07
- Published: 2023-02-23
- Earliest claimed: 2019-05-24
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Abhijeet Ashok CHACHAD; Timothy David ANDERSON; David Matthew THOMPSON
- Web page: https://patentgrep.com/patent/US20230058689A1

## CPC

- G06F 9/467: {Transactional memory (G06F9/528 takes precedence)}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/30079: {Pipeline control instructions, e.g. multicycle NOP}
- G06F 9/30098: {Register arrangements}
- G06F 9/30101: {Special purpose registers}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/3867: {using instruction pipelines}
- G06F 9/4498: {Finite state machines}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- 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 12/0811: with multilevel cache hierarchies
- G06F 12/0813: with a network or matrix configuration
- G06F 12/0824: {Distributed directories, e.g. linked lists of caches}
- 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/0855: Overlapped cache accessing, e.g. pipeline (G06F12/0846 takes precedence)
- G06F 12/0871: Allocation or management of cache space
- G06F 12/0888: using selective caching, e.g. bypass
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/12: Replacement control
- G06F 13/1668: {Details of memory controller}
- G06F 12/0804: with main memory updating (G06F12/0806 takes precedence)
- G06F 12/121: using replacement algorithms
- G06F 2212/1016: Performance improvement
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/621: Coherency control relating to peripheral accessing, e.g. from DMA or I/O device
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus includes a CPU core, a first cache subsystem coupled to the CPU core, and a second memory coupled to the cache subsystem. The first cache subsystem includes a configuration register, a first memory, and a controller. The controller is configured to: receive a request directed to an address in the second memory and, in response to the configuration register having a first value, operate in a non-caching mode. In the non-caching mode, the controller is configured to provide the request to the second memory without caching data returned by the request in the first memory. In response to the configuration register having a second value, the controller is configured to operate in a caching mode. In the caching mode the controller is configured to provide the request to the second memory and cache data returned by the request in the first memory.

## Claims

### Claim 1

A device comprising:
a first cache memory;
a cache controller coupled to the first cache memory;
a second cache memory coupled to the cache controller, wherein:
the second cache memory has a set of address regions that includes a first address region; and
the second cache memory is configured to store a set of data in the first address region; and
a configuration register coupled to the cache controller and configured to store a set of configuration values that includes a respective configuration value for each address region of the set of address regions, wherein a first configuration value of the set of configuration values is associated with the first address region;
wherein the cache controller is configured to:
receive a read request associated with the set of data;
retrieve the set of data from the second cache memory;
provide the set of data; and
determine whether to store the set of data in the first cache memory based on the first configuration value.

### Claim 2 (depends on 1)

The device of claim 1 further comprising a processor coupled to the cache controller, wherein the cache controller is configured to:
receive the read request from the processor; and
provide the set of data to the processor.

### Claim 3 (depends on 1)

The device of claim 1, wherein:
the first cache memory is a level-two ( L2) cache memory;
the cache controller is an L2 cache controller; and
the second cache memory is a level-three (L3) cache memory.

### Claim 4 (depends on 1)

The device of claim 1, wherein:
the first cache memory is configured to store a set of entries associated with the first address region of the second cache memory; and
the cache controller is configured to:
determine a change in the first configuration value such that the first configuration value indicates not to store entries associated with the first address region in the first cache memory; and
based on the change, evict the set of entries from the first cache memory.

### Claim 5 (depends on 4)

The device of claim 4, wherein the cache controller is configured to evict the set of entries by invalidating the set of entries.

### Claim 6 (depends on 4)

The device of claim 4, wherein the cache controller is configured to evict the set of entries by writing back the set of entries to the second cache memory.

### Claim 7 (depends on 4)

The device of claim 4 further comprising a processor core coupled to the cache controller and configured to:
inhibit providing of memory requests associated with the first address region to the cache controller during the eviction of the set of entries by the cache controller.

### Claim 8 (depends on 7)

The device of claim 7, wherein the processor core is configured to provide a memory request associated with a second address region of the set of address regions of the second cache memory during the eviction of the set of entries by the cache controller.

### Claim 9 (depends on 7)

The device of claim 7 further comprising a writeback invalidate register coupled to the cache controller, wherein:
the cache controller is configured to write to the writeback invalidate register to indicate eviction of the set of entries is complete; and
the processor core is configured to resume the providing of the memory requests associated with the first address region to the cache controller based on the writeback invalidate register.

### Claim 10 (depends on 1)

The device of claim 1, wherein the cache controller is configured to retrieve the set of data from the second cache memory based on the read request being associated with a cache miss in the first cache memory.

### Claim 11

A device comprising:
a processor core;
a level-two ( L2) cache memory;
an L2 cache controller coupled between the processor core and the L2 cache memory;
a configuration register configured to store a set of configuration values; and
a level-three (L3) cache memory coupled to the L2 cache controller that includes a set of memory regions, wherein:
the set of configuration values includes a respective configuration value for each memory region of the set of memory regions that indicates whether to store data associated with the respective memory region in the L2 cache memory;
the set of configuration values includes a first configuration value associated with a first memory region of the set of memory regions; and
the L2 cache controller is configured to:
receive a memory request associated with a set of data stored in the first memory region;
retrieve the set of data from the L3 cache memory;
provide the set of data to the processor core; and
determine whether to store the set of data in the L2 cache memory based on the first configuration value.

### Claim 12 (depends on 11)

The device of claim 11, wherein:
the L2 cache memory is configured to store a set of cache entries associated with the first memory region of the L3 cache memory; and
the L2 cache controller is configured to:
determine a change in the first configuration value such that the first configuration value indicates not to store cache entries associated with the first memory region in the L2 cache memory; and
based on the change, evict the set of cache entries from the L2 cache memory.

### Claim 13 (depends on 12)

The device of claim 12, wherein the L2 cache controller is configured to evict the set of cache entries by invalidating the set of cache entries.

### Claim 14 (depends on 12)

The device of claim 12, wherein the L2 cache controller is configured to evict the set of cache entries by writing back the set of cache entries to the L3 cache memory.

### Claim 15 (depends on 12)

The device of claim 12, wherein:
the memory request is a first memory request; and
the processor core is configured to inhibit providing of a second memory request directed the first memory region to the L2 cache controller during the eviction of the set of cache entries.

### Claim 16 (depends on 15)

The device of claim 15, wherein the processor core is configured to provide a third memory request associated with a second memory region of the set of memory regions during the eviction of the set of cache entries.

### Claim 17 (depends on 15)

The device of claim 15 further comprising a writeback invalidate register coupled to the L2 cache controller, wherein:
the L2 cache controller is configured to write to the writeback invalidate register to indicate eviction of the set of cache entries is complete; and
the processor core is configured to resume the providing of the second memory request based on the writeback invalidate register.

### Claim 18

A method comprising:
storing a set of configuration values associated with a first cache memory of a first level of a cache hierarchy, wherein:
the first cache memory includes a set of memory regions that includes a first memory region;
the set of configuration values includes a respective configuration value for each memory region of the set of memory regions that specifies whether to cache data stored in the respective memory region; and
the set of configuration values includes a first configuration value associated with the first memory region;
receiving, by a cache controller of a second level of a cache hierarchy, a memory request associated with a set of data stored in the first memory region;
receiving, by the cache controller, the set of data from the first cache memory; and
determining, by the cache controller, whether to store the set of data in a second cache memory of the second level of the cache hierarchy based on the first configuration value.

### Claim 19 (depends on 18)

The method of claim 18, wherein:
the second cache memory includes a set of cache entries associated with the first memory region; and
the method further comprises:
determining a change in the first configuration value such that the first configuration value indicates not to store entries associated with the first memory region in the second cache memory; and
based on the change, evicting the set of entries from the second cache memory.

### Claim 20 (depends on 19)

The method of claim 19 further comprising:
inhibiting a second memory transaction associated with the first memory region during the evicting of the set of entries from the second cache memory; and
performing a third memory transaction associated with a second memory region of the set of memory regions during the evicting of the set of entries from the second cache memory.
