# US 2017/0255572 A1 · System and method for preventing cache contention

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

- Number: US 2017/0255572 A1
- Document ID: US20170255572A1
- Status: Published application
- Kind: A1
- Application number: 15/062,436
- Filed: 2016-03-07
- Published: 2017-09-07
- Earliest claimed: 2016-03-07
- Assignees: Ceva D.S.P. Ltd.
- Applicants: Ceva D.S.P. Ltd.
- Inventors: Amos ROHE; Roni M. SADEH
- Web page: https://patentgrep.com/patent/US20170255572A1

## CPC

- G06F 12/1483: {using an access-table, e.g. matrix or list}
- G06F 12/0826: {Limited pointers directories; State-only directories without pointers}
- G06F 12/0853: Cache with multiport tag or data arrays
- G06F 12/0864: using pseudo-associative means, e.g. set-associative or hashing
- G06T 1/60: Memory management
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/1041: Resource optimization
- G06F 2212/1044: Space efficiency improvement
- G06F 2212/1052: Security improvement
- G06F 2212/6026: Prefetching based on access pattern detection, e.g. stride based prefetch
- G06F 2212/622: State-only directory, i.e. not recording identity of sharing or owning nodes
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A system and method for preventing cache contention for a cache including a plurality of ways and a separate port for each way, the method including: obtaining, in a core of a processor, a multidimensional coefficient array of a multidimensional filter, and pointers to data elements from a plurality of rows of a multidimensional data array, and loading the plurality of rows into the cache, where each row is stored in a different way of the cache.

## Claims

### Claim 1

A method for preventing cache contention for a cache comprising a plurality of ways and a separate port for each way, the method comprising:
obtaining, in a core of a processor pointers to data elements from a plurality of rows of a multidimensional data array; and
loading the plurality of rows into the cache, wherein each row is stored in a different way of the cache.

### Claim 2 (depends on 1)

The method of claim 1, wherein the multidimensional data array is a two-dimensional data array representing an image, and wherein data elements of the two-dimensional data array are components of pixels of the image.

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of rows are used for performing a single step of a multidimensional filter.

### Claim 4 (depends on 3)

The method of claim 3, wherein performing the multidimensional filter comprises performing a sliding window operation.

### Claim 5 (depends on 3)

The method of claim 3, further comprising:
reading, by the core, the data elements required for performing one of a plurality of steps of the multidimensional filter in parallel from the ways of the cache.

### Claim 6 (depends on 3)

The method of claim 3, further comprising:
extracting a stride length based on addresses of non-consecutive data elements required for performing a single step of the multidimensional filter,
wherein loading the plurality of rows is performed based on the stride length.

### Claim 7 (depends on 6)

The method of claim 6, wherein the stride length equals the length the multidimensional data array.

### Claim 8 (depends on 6)

The method of claim 6, wherein consecutive rows are stored in different ways.

### Claim 9

A method for preventing cache contention for a cache comprising a plurality of ways and a separate port for each way, the method comprising:
obtaining, in a core of a processor, a request for performing a multi-operation, and pointers to a plurality of vectors that are required for performing the multi-operation; and
loading the plurality of vectors required for the multi-operation into the cache, wherein each vector is stored in a different way of the cache.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
reading, by the core, the vectors required for performing the multi-operation in parallel from the different ways of the cache.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
reading, by the core, other vectors subsequent to the plurality of vectors required for performing the multi-operation, in parallel from the different ways of the cache.

### Claim 12 (depends on 8)

The method of claim 8, further comprising:
extracting a stride length based on addresses of the vectors,
wherein loading the plurality of vectors is performed based on the stride length.

### Claim 13

A system comprising:
a memory;
a cache comprising a plurality of ways and a separate port for each way of the cache; and
a core configured to:
obtain pointers to data elements from a plurality of rows of a multidimensional data array; and
load the plurality of rows from the memory into the cache, wherein each row is stored in a different way of the cache.

### Claim 14 (depends on 13)

The system of claim 13, wherein the multidimensional data array is a two-dimensional data array representing an image, and wherein data elements of the two-dimensional data array are components of pixels of the image.

### Claim 15 (depends on 13)

The system of claim 13, wherein the plurality of rows are used for performing a single step of a multidimensional filter.

### Claim 16 (depends on 15)

The system of claim 15, wherein the multidimensional filter comprises a sliding window operation.

### Claim 17 (depends on 15)

The system of claim 15, wherein the core is further configured to:
read the data elements required for performing one of a plurality of steps of the multidimensional filter in parallel from the different ways of the cache.

### Claim 18 (depends on 15)

The system of claim 15, wherein the core is further configured to:
extract a stride length based on addresses of non-consecutive data elements required for performing the single step of the multidimensional filter,
wherein loading the plurality of rows is performed based on the stride length.
