# US 2022/0283955 A1 · Data cache region prefetcher

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

- Number: US 2022/0283955 A1
- Document ID: US20220283955A1
- Status: Published application
- Kind: A1
- Application number: 17/752,244
- Filed: 2022-05-24
- Published: 2022-09-08
- Earliest claimed: 2016-08-19
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Donald W. McCauley; William E. Jones
- Web page: https://patentgrep.com/patent/US20220283955A1

## CPC

- G06F 12/12: Replacement control
- G06F 12/0862: with prefetch
- G06F 12/0891: using clearing, invalidating or resetting means
- G06F 12/0848: {Partitioned cache, e.g. separate instruction and operand caches}
- G06F 12/0886: Variable-length word access
- G06F 2212/1021: Hit rate improvement
- G06F 2212/6024: History based prefetching
- G06F 2212/6026: Prefetching based on access pattern detection, e.g. stride based prefetch
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method, system, and processing system for pre-fetching data is disclosed. The method, system, and processing system includes data cache region prefetch circuitry for detecting a first access by a first instruction at a first instruction address to a first memory portion, detecting a first non-sequential access pattern to a set of addresses in the first memory portion, and in response to a miss by a second instruction at the first instruction address, and in response to the non-sequential access pattern occurring, pre-fetching data according to the first non-sequential access pattern.

## Claims

### Claim 1

A system, comprising:
data cache region prefetcher circuitry configured to:
detect a first access by a first instruction at a first instruction address to a first memory portion;
detect a first non-sequential access pattern to a set of addresses in the first memory portion; and
in response to a miss by a second instruction at the first instruction address, and in response to the non-sequential access pattern occurring, pre-fetch data according to the first non-sequential access pattern.

### Claim 2 (depends on 1)

The system of claim 1, wherein the data cache region prefetcher circuitry is further configured to store a first line entry in a line entry table in response to detecting the first access by the first instruction.

### Claim 3 (depends on 2)

The system of claim 2, wherein the first line entry includes information for identifying an address for the first access and information for identifying an instruction pointer address for the first instruction.

### Claim 4 (depends on 2)

The system of claim 2, wherein the first line entry corresponds to the first memory portion.

### Claim 5 (depends on 2)

The system of claim 2, wherein the data cache region prefetcher circuitry is further configured to, in response to detecting the first non-sequential access pattern, update the first line entry to include a first set of access bits indicative of the non-sequential access pattern.

### Claim 6 (depends on 1)

The system of claim 1, wherein the non-sequential access pattern includes a plurality of misses.

### Claim 7 (depends on 2)

The system of claim 2, wherein the data cache region prefetcher circuitry is further configured to evict the first line entry from the line entry table to a region history table.

### Claim 8 (depends on 7)

The system of claim 7, wherein the pre-fetching occurs in response to the first line entry being in the region history table.

### Claim 9 (depends on 1)

The system of claim 1, wherein the first instruction and the second instruction are the same.

### Claim 10

A method comprising:
detecting a first access by a first instruction at a first instruction address to a first memory portion;
detecting a first non-sequential access pattern to a set of addresses in the first memory portion; and
in response to a miss by a second instruction at the first instruction address, and in response to the non-sequential access pattern occurring, pre-fetching data according to the first non-sequential access pattern.

### Claim 11 (depends on 10)

The method of claim 10, further comprising storing a first line entry in a line entry table in response to detecting the first access by the first instruction.

### Claim 12 (depends on 11)

The method of claim 11, wherein the first line entry includes information for identifying an address for the first access and information for identifying an instruction pointer address for the first instruction.

### Claim 13 (depends on 11)

The method of claim 11, wherein the first line entry corresponds to the first memory portion.

### Claim 14 (depends on 11)

The method of claim 11, further comprising, in response to detecting the first non-sequential access pattern, updating the first line entry to include a first set of access bits indicative of the non-sequential access pattern.

### Claim 15 (depends on 10)

The method of claim 10, wherein the non-sequential access pattern includes a plurality of misses.

### Claim 16 (depends on 11)

The method of claim 11, further comprising evicting the first line entry from the line entry table to a region history table.

### Claim 17 (depends on 16)

The method of claim 16, wherein the pre-fetching occurs in response to the first line entry being in the region history table.

### Claim 18 (depends on 10)

The method of claim 10, wherein the first instruction and the second instruction are the same.

### Claim 19

A processing system, comprising:
stream prefetcher circuitry; and
data cache region prefetcher circuitry configured to:
detect a first access by a first instruction at a first instruction address to a first memory portion;
detect a first non-sequential access pattern to a set of addresses in the first memory portion; and
in response to a miss by a second instruction at the first instruction address, and in response to the non-sequential access pattern occurring, pre-fetch data according to the first non-sequential access pattern.

### Claim 20 (depends on 19)

The processing system of claim 19, wherein the data cache region prefetcher circuitry is further configured to store a first line entry in a line entry table in response to detecting the first access by the first instruction.
