# US 2021/0342268 A1 · Prefetch store preallocation in an effective address-based cache directory

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

- Number: US 2021/0342268 A1
- Document ID: US20210342268A1
- Status: Published application
- Kind: A1
- Application number: 17/220,115
- Filed: 2021-04-01
- Published: 2021-11-04
- Earliest claimed: 2020-05-04
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Bryan Lloyd; Brian W. Thompto; George W. Rohrbaugh, III; Mohit Karve; Vivek Britto
- Web page: https://patentgrep.com/patent/US20210342268A1

## CPC

- G06F 9/3013: {according to data content, e.g. floating-point registers, address registers}
- G06F 9/384: {Register renaming}
- G06F 9/3001: {Arithmetic instructions}
- G06F 9/30032: {Movement instructions, e.g. MOVE, SHIFT, ROTATE, SHUFFLE}
- G06F 9/3012: {Organisation of register space, e.g. banked or distributed register file}
- G06F 9/3824: {Operand accessing}
- G06F 12/0238: {Memory management in non-volatile memory, e.g. resistive RAM or ferroelectric memory}
- G06F 12/0811: with multilevel cache hierarchies
- G06F 12/0862: with prefetch
- G06F 12/1045: associated with a data cache
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In at least one embodiment, a processing unit includes a processor core and a vertical cache hierarchy including at least a store-through upper-level cache and a store-in lower-level cache. The upper-level cache includes a data array and an effective address (EA) directory. The processor core includes an execution unit, an address translation unit, and a prefetch unit configured to initiate allocation of a directory entry in the EA directory for a store target EA without prefetching a cache line of data into the corresponding data entry in the data array. The processor core caches in the directory entry an EA-to-RA address translation information for the store target EA, such that a subsequent demand store access that hits in the directory entry can avoid a performance penalty associated with address translation by the translation unit.

## Claims

### Claim 1

A processing unit, comprising:
a vertical cache hierarchy including at least a store-through upper-level cache and a store-in lower-level cache, wherein the upper-level cache includes a data array and an effective address (EA) directory having a plurality of directory entries each corresponding to a respective data entry among a plurality of data entries in the data array;
a processor core including:
an execution unit configured to process memory access instructions and, based on processing the memory access instructions, initiate accesses to the vertical cache hierarchy;
a translation unit configured to translate EAs to real addresses (RAs);
a prefetch unit that prefetches data into the vertical cache hierarchy for access by the processor core, wherein the prefetch unit is configured to initiate allocation of a directory entry in the EA directory for a store target EA without prefetching a cache line of data into the corresponding data entry in the data array; and
wherein the processor core caches in the directory entry EA-to-RA address translation information for the store target EA, such that a subsequent demand store access that hits in the directory entry can avoid a performance penalty associated with address translation by the translation unit.

### Claim 2 (depends on 1)

The processor of claim 1, wherein the prefetch unit is configured to prefetch data associated with the store target address into the lower-level cache.

### Claim 3 (depends on 1)

The processor of claim 1, wherein:
the processor core includes a real address (RA) directory; and
the EA-to-RA address translation information includes a pointer to a directory entry in the RA directory buffering an RA corresponding to the store target EA.

### Claim 4 (depends on 1)

The processor of claim 1, wherein:
the prefetch unit includes a prefetch queue (PRQ) including a plurality of queue entries;
the prefetch unit allocates a queue entry among the plurality of queue entries to a store prefetch stream including the store target EA; and
the queue entry indicates a direction and stride for the store prefetch stream.

### Claim 5 (depends on 4)

The processor of claim 4, wherein the queue entry further indicates that prefetching of data for the prefetch store stream into the upper-level cache is inhibited.

### Claim 6 (depends on 1)

The processor of claim 1, wherein:
the store target EA is a first store target EA; and
the processor core, based on a hit of a second store target EA of a demand store access in the directory entry in the EA directory, utilizes the cached EA-to-RA address translation information to obtain the RA without translation of the second store target EA.

### Claim 7 (depends on 1)

A data processing system, comprising:
multiple processing units, including the processing unit of claim 1;
a shared memory; and
a system interconnect communicatively coupling the shared memory and the multiple processing units.

### Claim 8

A method of data processing in a processing unit, the method comprising:
prefetching data likely to be accessed by a processor core of the processing unit into a vertical cache hierarchy including at least a store-through upper-level cache and a store-in lower-level cache, wherein the upper-level cache includes a data array and an effective address (EA) directory having a plurality of directory entries each corresponding to a respective data entry among a plurality of data entries in the data array;
processing, in an execution of the processor core, memory access instructions and, based on processing the memory access instructions, initiating accesses to the vertical cache hierarchy;
initiating a store prefetch stream, and based on store prefetch stream, allocating a directory entry in the EA directory for a store target EA in a store prefetch stream without prefetching a cache line of data into the corresponding data entry in the data array; and
translating the store target EA into real address (RA) and caching in the directory entry EA-to-RA address translation information for the store target EA, such that a subsequent demand store access that hits in the directory entry can avoid a performance penalty associated with address translation.

### Claim 9 (depends on 8)

The method of claim 8, and further comprising prefetching data associated with the store target address into the lower-level cache.

### Claim 10 (depends on 8)

The method of claim 8, wherein:
the processor core includes a real address (RA) directory; and
the EA-to-RA address translation information includes a pointer to a directory entry in the RA directory buffering an RA corresponding to the store target EA.

### Claim 11 (depends on 8)

The method of claim 8, and further comprising:
allocating a queue entry among a plurality of queue entries in a prefetch queue (PRQ) to the store prefetch stream including the store target EA; and
indicating in the queue entry a direction and stride for the store prefetch stream.

### Claim 12 (depends on 11)

The method of claim 11, and further comprising indicating in the queue entry that prefetching of data for the prefetch store stream into the upper-level cache is inhibited.

### Claim 13 (depends on 8)

The method of claim 8, wherein:
the store target EA is a first store target EA; and
based on a hit of a second store target EA of a demand store access in the directory entry in the EA directory, utilizing the cached EA-to-RA address translation information to obtain the RA without translation of the second store target EA.

### Claim 14

A design structure tangibly embodied in a machine-readable storage device for designing, manufacturing, or testing an integrated circuit, the design structure comprising:
a processing unit, including:
a vertical cache hierarchy including at least a store-through upper-level cache and a store-in lower-level cache, wherein the upper-level cache includes a data array and an effective address (EA) directory having a plurality of directory entries each corresponding to a respective data entry among a plurality of data entries in the data array;
a processor core including:
an execution unit configured to process memory access instructions and, based on processing the memory access instructions, initiate accesses to the vertical cache hierarchy;
a translation unit configured to translate EAs to real addresses (RAs);
a prefetch unit that prefetches data into the vertical cache hierarchy for access by the processor core, wherein the prefetch unit is configured to initiate allocation of a directory entry in the EA directory for a store target EA without prefetching a cache line of data into the corresponding data entry in the data array; and
wherein the processor core caches in the directory entry EA-to-RA address translation information for the store target EA, such that a subsequent demand store access that hits in the directory entry can avoid a performance penalty associated with address translation by the translation unit.

### Claim 15 (depends on 14)

The design structure of claim 14, wherein the prefetch unit is configured to prefetch data associated with the store target address into the lower-level cache.

### Claim 16 (depends on 14)

The design structure of claim 14, wherein:
the processor core includes a real address (RA) directory; and
the EA-to-RA address translation information includes a pointer to a directory entry in the RA directory buffering an RA corresponding to the store target EA.

### Claim 17 (depends on 14)

The design structure of claim 14, wherein:
the prefetch unit includes a prefetch queue (PRQ) including a plurality of queue entries;
the prefetch unit allocates a queue entry among the plurality of queue entries to a store prefetch stream including the store target EA; and
the queue entry indicates a direction and stride for the store prefetch stream.

### Claim 18 (depends on 17)

The design structure of claim 17, wherein the queue entry further indicates that prefetching of data for the prefetch store stream into the upper-level cache is inhibited.

### Claim 19 (depends on 14)

The design structure of claim 14, wherein:
the store target EA is a first store target EA; and
the processor core, based on a hit of a second store target EA of a demand store access in the directory entry in the EA directory, utilizes the cached EA-to-RA address translation information to obtain the RA without translation of the second store target EA.
