# US 11,119,776 B2 · Cache management operations using streaming engine

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

- Number: US 11,119,776 B2
- Document ID: US11119776B2
- Status: Granted
- Kind: B2
- Application number: 16/825,348
- Filed: 2020-03-20
- Published: 2020-09-10
- Granted: 2021-09-14
- Earliest claimed: 2013-07-15
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Joseph Raymond Michael Zbiciak; Timothy David Anderson; Jonathan (Son) Hung Tran; Kai Chirca; Daniel Wu; Abhijeet Ashok Chachad; David M. Thompson
- Web page: https://patentgrep.com/patent/US11119776B2

## CPC

- G06F 9/3016: {Decoding the operand specifier, e.g. specifier format}
- G06F 9/30014: {with variable precision}
- G06F 9/30036: {Instructions to perform operations on packed data, e.g. vector, tile or matrix operations}
- G06F 9/30038: {using a mask}
- G06F 9/30047: {Prefetch instructions; cache control instructions}
- G06F 9/30098: {Register arrangements}
- G06F 9/30112: {comprising data of variable length}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/32: Address formation of the next instruction, e.g. by incrementing the instruction counter (G06F9/38 takes precedence)
- G06F 9/345: of multiple operands or results {(addressing multiple banks G06F12/06)}
- G06F 9/3802: {Instruction prefetching}
- G06F 9/383: {Operand prefetching (cache prefetching G06F12/0862)}
- G06F 9/3867: {using instruction pipelines}
- G06F 11/00: Error detection; Error correction; Monitoring (error detection, correction or monitoring in information storage based on relative movement between record carrier and transducer G11B20/18; monitoring, i.e. supervising the progress of recording or reproducing G11B27/36; in static stores G11C29/00)
- G06F 11/1048: {using arrangements adapted for a specific error detection or correction feature}
- G06F 12/0831: using a bus scheme, e.g. with bus monitoring or watching means
- G06F 12/0835: {for main memory peripheral accesses (e.g. I/O or DMA)}
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 12/1027: using associative or pseudo-associative address translation means, e.g. translation look-aside buffer [TLB]
- G06F 9/3822: {Parallel decoding, e.g. parallel decode units}
- G06F 11/10: Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F 12/0207: {with multidimensional access, e.g. row/column, matrix}
- G06F 12/0862: with prefetch
- G06F 2212/1056: Simplification
- G06F 2212/452: Instruction code
- G06F 2212/60: Details of cache memory
- G06F 2212/6022: Using a prefetch buffer or dedicated prefetch cache
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- G06F 2212/657: Virtual address space management
- G06F 2212/681: Multi-level TLB, e.g. microTLB and main TLB
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A stream of data is accessed from a memory system using a stream of addresses generated in a first mode of operating a streaming engine in response to executing a first stream instruction. A block cache management operation is performed on a cache in the memory using a block of addresses generated in a second mode of operating the streaming engine in response to executing a second stream instruction.

## Claims

### Claim 1

A method comprising:
receiving a cache management instruction that specifies a base address, a data size, and a level of a cache memory to operate on;
determining, based on the base address and the data size, a set of addresses associated with the cache management instruction;
issuing a set of cache management operations to the cache memory that includes a cache management operation for each address in the set of addresses; and
providing a control signal to the cache memory that indicates at least one of: write data for the set of cache management operations is not being provided to the cache memory or read data associated with the set of cache management operations should not be provided by the cache memory.

### Claim 2 (depends on 1)

The method of claim 1, wherein the cache memory includes a plurality of levels that includes a first level representing a point of unification and a second level representing a point of coherence, and wherein the first level and the second level are different.

### Claim 3 (depends on 2)

The method of claim 2, wherein the cache management instruction specifies the level of the cache memory to operate on by specifying whether to operate on the point of unification or the point of coherence.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first level is a level 2 (L2) cache level and the second level is a level 3 (L3) cache level.

### Claim 5 (depends on 1)

The method of claim 1, wherein the cache management instruction further specifies whether the cache management operation is a clean operation, an invalidate operation, or a clean-and-invalidate operation.

### Claim 6 (depends on 1)

The method of claim 1, wherein the cache memory includes a level 2 (L2) cache and the issuing of the set of cache management operations issues the set of cache management operations directly to the L2 cache.

### Claim 7 (depends on 1)

The method of claim 1, wherein the set of cache management operations includes a plurality of cache management operations.

### Claim 8

A method comprising:
receiving a cache management instruction that specifies a base address, a data size, and a level of a cache memory to operate on;
determining, based on the base address and the data size, a set of addresses associated with the cache management instruction; and
issuing a set of cache management operations to the cache memory that includes a cache management operation for each address in the set of addresses, wherein:
the cache management instruction has an associated privilege level; and
the method further comprises, for each cache management operation in the set of cache management operations:
when the respective cache management operation includes a clean operation or a clean-and-invalidate operation, determining, whether the associated privilege level permits a read to the respective address of the respective cache management operation; and
when the respective cache management operation includes an invalidate operation, determining, whether the associated privilege level permits a write to the respective address of the respective cache management operation.

### Claim 9 (depends on 1)

The method of claim 1 further comprising:
asserting an indicator of the set of cache management operations during the issuing of the set of cache management operations to the cache memory; and
in response to the indicator, causing a processor wait to execute a second instruction.

### Claim 10 (depends on 1)

The method of claim 1, wherein:
the set of addresses includes a virtual address;
the method further comprises translating the virtual address to a physical address; and
the issuing of the cache management operation associated with the virtual address uses the physical address.

### Claim 11 (depends on 1)

The method of claim 1 further comprising:
determining that an address of the set of addresses is invalid; and
notifying a processor that the address is invalid.

### Claim 12 (depends on 1)

The method of claim 1 further comprising:
determining that an address of the set of addresses causes a page fault; and
notifying a processor of the page fault.

### Claim 13 (depends on 12)

The method of claim 12 further comprising:
saving a state of the set of cache management operations prior to the page fault;
moving a new page of data into the cache memory; and
resuming the set of cache management operations using the saved state.

### Claim 14

A system comprising:
a processor;
a memory coupled to the processor that includes a cache memory; and
a memory component coupled to the processor and the memory, wherein the memory component is operable to:
receive a cache management instruction from the processor that specifies a level of the cache memory to operate on;
determine a set of addresses associated with the cache management instruction;
issue a set of cache management operations to the cache memory that includes a cache management operation for each address in the set of addresses; and
provide a control signal to the cache memory that indicates at least one of: write data associated with the set of cache management operations is not being provided to the cache memory or read data associated with the set of cache management operations is not to be provided by the cache memory.

### Claim 15 (depends on 14)

The system of claim 14, wherein the cache memory includes a point of unification and a point of coherence, and the cache management instruction specifies the level of the cache memory by specifying whether to operate on the point of unification or the point of coherence.

### Claim 16 (depends on 15)

The system of claim 15, wherein the point of unification is a level 2 (L2) cache level and the point of coherence is a level 3 (L3) cache level.

### Claim 17 (depends on 14)

The system of claim 14, wherein:
the cache management instruction further specifies a base address and a data size; and
the memory component is operable to determine the set of addresses based on the base address and the data size.

### Claim 18 (depends on 14)

The system of claim 14, wherein the cache management instruction includes a field that specifies whether the cache management operation is a clean operation, an invalidate operation, or a clean-and-invalidate operation.

### Claim 19 (depends on 14)

The system of claim 14, wherein:
the cache memory includes a level 2 (L2) cache; and
the memory component is operable to issue the set of cache management operations directly to the L2 cache.

### Claim 20 (depends on 14)

The system of claim 14, wherein the memory component is operable to provide an indicator of the set of cache management operations to the processor, wherein the indicator is configured to cause the processor to wait to execute a subsequent instruction.
