# US 2025/0147761 A1 · Canceling prefetch of cache blocks based on an address and a bit field

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

- Number: US 2025/0147761 A1
- Document ID: US20250147761A1
- Status: Published application
- Kind: A1
- Application number: 19/016,702
- Filed: 2025-01-10
- Published: 2025-05-08
- Earliest claimed: 2022-12-02
- Assignees: SiFive, Inc.
- Applicants: SiFive, Inc.
- Inventors: Eric Andrew Gouldey; Wesley Terpstra; Michael Klinglesmith
- Web page: https://patentgrep.com/patent/US20250147761A1

## CPC

- G06F 9/30018: {Bit or string instructions}
- G06F 12/0862: with prefetch
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 2212/1024: Latency reduction
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Prefetch circuitry may be configured to transmit a message to cancel a prefetch of one or more cache blocks of a group. The message may correspond to a prefetch message by indicating an address for the group and a bit field for the one or more cache blocks of the group to cancel. In some implementations, the message may target a higher level cache to cancel prefetching the one or more cache blocks, and the message may be transmitted to the higher level cache via a lower level cache. In some implementations, the message may target a higher level cache to cancel prefetching the one or more cache blocks, the message may be transmitted to a lower level cache via a first command bus, and the lower level cache may forward the message to the higher level cache via a second command bus.

## Claims

### Claim 1

An apparatus comprising:
a cache configured to:
receive a prefetch message to generate a prefetch of one or more cache blocks of a group of cache blocks; and
receive a cancel message that causes canceling the prefetch of the one or more cache blocks of the group of cache blocks, the cancel message including an address that indicates the group of cache blocks and a bit field that indicates the cache block of the one or more cache blocks of the group; and
a processor core to use the cache to prefetch data.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the cache is a lower level cache and the message is configured to target a higher level cache, via the lower level cache, to cancel prefetching of one or more cache blocks at the higher level cache.

### Claim 3 (depends on 2)

The apparatus of claim 2, where in the cache is further configured to:
receive the message via a first command bus; and
forward the message to the higher level cache via a second command bus.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the message includes a hint field that indicates a level of cache that the cancel is targeting.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein the message to is associated with a mis-speculation associated with the one or more cache blocks.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the address is aligned to a 1 kilobyte region of addressable memory with a first cache block of the group corresponding to a first cache block in the 1 kilobyte region.

### Claim 7

A method comprising:
receiving, by a cache, a prefetch message to generate a prefetch of one or more cache blocks of a group of cache blocks; and
receiving, by the cache, a cancel message that causes canceling the prefetch of the one or more cache blocks of the group of cache blocks, the cancel message including an address that indicates the group of cache blocks and a bit field that indicates the cache block of the one or more cache blocks of the group.

### Claim 8 (depends on 7)

The method of claim 7, wherein the cache is a lower level cache, and the method further comprises:
determining that the message is targeting a higher level cache; and
forwarding the message to the higher level cache.

### Claim 9 (depends on 8)

The method of claim 8, wherein the message is received at the lower level cache via a first command bus, and the lower level cache transmits the message to the higher level cache via a second command bus.

### Claim 10 (depends on 7)

The method of claim 7, wherein the message includes a hint field that indicates a level of cache that the cancel is targeting.

### Claim 11 (depends on 7)

The method of claim 7, further comprising:
determining that the message is not targeting a higher level cache; and
determining whether to cancel the prefetch of one or more cache blocks of a group of cache blocks.

### Claim 12 (depends on 7)

The method of claim 7, wherein determining whether to cancel the prefetch of one or more cache blocks of a group of cache blocks comprises determining not to cancel the prefetch of one or more cache blocks of a group of cache blocks, and the method further comprises:
ignoring the message.

### Claim 13 (depends on 7)

The method of claim 7, wherein determining whether to cancel the prefetch of one or more cache blocks of a group of cache blocks comprises determining to cancel the prefetch of one or more cache blocks of a group of cache blocks, and the method further comprises:
canceling the prefetch of one or more cache blocks of a group of cache blocks.

### Claim 14 (depends on 7)

The method of claim 7, wherein the address is aligned to a 1 kilobyte region of addressable memory with a first cache block of the group corresponding to a first cache block in the 1 kilobyte region.

### Claim 15

A non-transitory computer readable medium comprising a circuit representation that, when processed by a computer, is used to program or manufacture an integrated circuit comprising a cache configured to:
receive a prefetch message to generate a prefetch of one or more cache blocks of a group of cache blocks; and
receive a cancel message that causes canceling the prefetch of the one or more cache blocks of the group of cache blocks, the cancel message including an address that indicates the group of cache blocks and a bit field that indicates the cache block of the one or more cache blocks of the group.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the cache is a lower level cache, and the message is configured to target a higher level cache, via the lower level cache, to cancel prefetching of one or more cache blocks at the higher level cache.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, wherein the circuit representation that, when processed by a computer, is used to program or manufacture the integrated circuit comprising the cache further configured to:
receive the message via a first command bus; and
forward the message to the higher level cache via a second command bus.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the message includes a hint field that indicates a level of cache that the cancel is targeting.

### Claim 19 (depends on 15)

The non-transitory computer readable medium of claim 15, the message to is associated with a mis-speculation associated with the one or more cache blocks.

### Claim 20 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the address is aligned to a 1 kilobyte region of addressable memory with a first cache block of the group corresponding to a first cache block in the 1 kilobyte region.
