# US 2024/0256464 A1 · Prefetch kill and revival in an instruction cache

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

- Number: US 2024/0256464 A1
- Document ID: US20240256464A1
- Status: Published application
- Kind: A1
- Application number: 18/630,098
- Filed: 2024-04-09
- Published: 2024-08-01
- Earliest claimed: 2018-08-14
- Assignees: Texas Instruments Incorporated
- Applicants: Texas Instruments Incorporated
- Inventors: Bipin Prasad Heremagalur Ramaprasad; David Matthew Thompson; Abhijeet Ashok Chachad; Hung Ong
- Web page: https://patentgrep.com/patent/US20240256464A1

## CPC

- G06F 12/0862: with prefetch
- G06F 12/1045: associated with a data cache
- G06F 12/0875: with dedicated cache, e.g. instruction or stack
- G06F 12/0886: Variable-length word access
- G06F 12/0897: with two or more cache hierarchy levels (with multilevel cache hierarchies G06F12/0811)
- G06F 15/7807: {System on chip, i.e. computer system on a single chip; System in package, i.e. computer system on one or more chips in a single package}
- G06F 12/1063: {the data cache being concurrently virtually addressed}
- G06F 2212/1024: Latency reduction
- G06F 2212/1028: Power efficiency
- G06F 2212/301: In special purpose processing node, e.g. vector processor
- G06F 2212/50: Control mechanisms for virtual memory, cache or TLB
- G06F 2212/507: using speculative control
- G06F 2212/6028: Prefetching based on hints or prefetch instructions
- G06F 2212/654: Look-ahead translation
- G06F 2212/684: TLB miss handling
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A system comprises a processor including a CPU core, first and second memory caches, and a memory controller subsystem. The memory controller subsystem speculatively determines a hit or miss condition of a virtual address in the first memory cache and speculatively translates the virtual address to a physical address. Associated with the hit or miss condition and the physical address, the memory controller subsystem configures a status to a valid state. Responsive to receipt of a first indication from the CPU core that no program instructions associated with the virtual address are needed, the memory controller subsystem reconfigures the status to an invalid state and, responsive to receipt of a second indication from the CPU core that a program instruction associated with the virtual address is needed, the memory controller subsystem reconfigures the status back to a valid state.

## Claims

### Claim 1

A device, comprising:
a processor configured to provide a request specifying a first address;
a memory; and
a memory controller coupled to the processor and the memory and configured to:
receive the request;
determine a second address based on the first address;
perform address translation of the second address to determine a third address;
receive a count associated with the request; and
based on the count, determine whether to retrieve an instruction based on the third address.

### Claim 2 (depends on 1)

The device of claim 1, wherein:
the count specifies a number of instructions subsequent to a first instruction, wherein the first instruction is retrievable based on the first address; and
based on the count indicating that the number of instructions is zero, the memory controller is configured to determine to not retrieve the instruction based on the third address.

### Claim 3 (depends on 2)

The device of claim 2, wherein the memory controller is configured to:
prior to receipt of the count, set a status bit associated with the instruction to a valid state; and
responsive to receipt of the count indicating that the number of instructions is zero, change the status bit to an invalid state.

### Claim 4 (depends on 3)

The device of claim 3, wherein the memory controller is configured to:
receive a revival indication associated with the instruction; and
responsive to receipt of the revival indication,
change the status bit back to the valid state; and
retrieve the instruction.

### Claim 5 (depends on 4)

The device of claim 4, wherein the memory controller is configured to determine a hit/miss condition of the second address.

### Claim 6 (depends on 5)

The device of claim 5, wherein:
the memory controller includes a register; and
the memory controller is configured to store an indication of the hit/miss condition, the third address, and the status bit in the register.

### Claim 7 (depends on 1)

The device of claim 1, wherein:
the count specifies a number of instructions subsequent to a first instruction, wherein the first instruction is retrievable based on the first address; and
based on the count indicating that the number of instructions is greater than zero, the memory controller is configured to determine to retrieve the instruction based on the third address.

### Claim 8 (depends on 1)

The device of claim 1, wherein the memory is a level-one (L1) cache memory.

### Claim 9 (depends on 8)

The device of claim 8, further comprising:
a level-two (L2) cache memory, wherein a cache line size of the L2 cache memory is greater than a cache line size of the L1 cache memory, and
wherein the memory controller is configured to:
determine whether the third address corresponds to a lower half or an upper half of a cache line of the L2 cache memory; and
retrieve a set of instructions from the upper half based on a determination that the third address corresponds to the upper half of the cache line, or from the upper half and the lower half based on a determination that the third address corresponds to the lower half of the cache line.

### Claim 10 (depends on 1)

The device of claim 1, wherein the first address and the second address are virtual addresses, and the third address is a physical address.

### Claim 11

A method, comprising:
receiving, at a memory controller, a request specifying a first address;
retrieving, from a memory, a first instruction based on the first address;
determining a second address based on the first address;
performing address translation of the second address to determine a third address;
receiving a count associated with the request; and
based on the count, determining whether to retrieve a second instruction based on the third address.

### Claim 12 (depends on 11)

The method of claim 11, wherein:
the count specifies a number of instructions subsequent to the first instruction; and
the method further comprises, based on the count indicating that the number of instructions is zero, determining not to retrieve the second instruction based on the third address.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
prior to receiving the count, setting a status bit associated with the second instruction to a valid state; and
responsive to receiving the count indicating that the number of instructions is zero, changing the status bit to an invalid state.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
receiving a revival indication associated with the second instruction; and
responsive to receiving the revival indication,
changing the status bit back to the valid state; and
retrieving the second instruction.

### Claim 15 (depends on 14)

The method of claim 14, further comprising providing the revival indication based on a branch misprediction.

### Claim 16 (depends on 11)

The method of claim 11, further comprising:
determining a hit/miss condition of the second address in the memory.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
storing an indication of the hit/miss condition and the third address in a register of the memory controller.

### Claim 18 (depends on 11)

The method of claim 11, wherein:
the count specifies a number of instructions subsequent to the first instruction; and
the method further comprises, based on the count indicating that the number of instructions is greater than zero, determining to retrieve the second instruction based on the third address.

### Claim 19 (depends on 11)

The method of claim 11, wherein the memory is a level-one (L1) cache memory.

### Claim 20 (depends on 19)

The method of claim 19, further comprising:
determining whether the third address corresponds to a lower half or an upper half of a cache line of a level-two (L2) cache memory; and
retrieving a set of instructions from the upper half based on determining that the third address corresponds to the upper half of the cache line, or from the upper half and the lower half based on determining that the third address corresponds to the lower half of the cache line.
