# US 2023/0068637 A1 · Routing instruction results to a register block of a subdivided register file based on register block utilization rate

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

- Number: US 2023/0068637 A1
- Document ID: US20230068637A1
- Status: Published application
- Kind: A1
- Application number: 17/464,227
- Filed: 2021-09-01
- Published: 2023-03-02
- Earliest claimed: 2021-09-01
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Kurt A. Feiste; Brian W. Thompto; Susan E. Eisen; Salma Ayub; Dung Q. Nguyen
- Web page: https://patentgrep.com/patent/US20230068637A1

## CPC

- G06F 9/3012: {Organisation of register space, e.g. banked or distributed register file}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/384: {Register renaming}
- G06F 9/3854: {Instruction completion, e.g. retiring, committing or graduating}
- G06F 9/3858: {Result writeback, i.e. updating the architectural state or memory}
- G06F 11/30: Monitoring
- G06F 11/3024: {where the computing system component is a central processing unit [CPU]}
- G06F 11/3409: {for performance assessment}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 2201/81: Threshold
- G06F 2201/88: Monitoring involving counting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system, processor, programming product and/or method for assigning instructions to destination register file blocks, and/or routing instructions, includes: providing a processing pipeline having two or more execution units configured to process instructions; providing a register file having register file entries configured to hold data, where the register file is subdivided into a plurality of register blocks and each register block has two or more register file entries; calculating a utilization rate for one or more register blocks; and assigning and/or routing an instruction to write its results to a register block based upon the utilization rate for that register block. Preferably the execution unit is configured to write its results to a single specific destination (rename) register block.

## Claims

### Claim 1

A method for routing instructions in a processor, the method comprising:
providing a processing pipeline having two or more execution units configured to process instructions;
providing a register file having a plurality of register file entries configured to hold data, wherein the register file is subdivided into a plurality of register blocks, and each register block has two or more register file entries;
calculating a utilization rate for one or more of the plurality of register blocks; and
routing an instruction to write its results to a register block of the one or more of the plurality of register blocks based upon the utilization rate calculated for the one or more of the plurality of register blocks.

### Claim 2 (depends on 1)

The method according to claim 1, wherein calculating the utilization rate for the one or more of the plurality of the register blocks comprises:
determining a usage rate for each of the one or more of the plurality of the register blocks; and
comparing the usage rate of each of the one or more of the plurality of the register blocks to a threshold.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the threshold is at least one of a group consisting of: a fixed number or percentage, a preset number or percentage, a predetermined number or percentage, a predefined number or percentage, an adjustable number or percentage, and a programmable number or percentage.

### Claim 4 (depends on 2)

The method according to claim 2, wherein determining a usage rate of each of the one or more of the plurality of register blocks comprises determining at least one of a group consisting of: a number of register entries in use in the register block, and a number of register entries that are not being used and are available for use in the register block.

### Claim 5 (depends on 1)

The method according to claim 1, wherein routing an instruction to write its results to a register block of the one or more of the plurality of register blocks based upon the utilization rate calculated for the one or more of the plurality of register blocks comprises:
routing the instruction to a first register block if the utilization rate for the first register block is above a number or percentage; and
routing the instruction to a second register block if the utilization rate for the first register block is equal to or less than the number or the percentage.

### Claim 6 (depends on 1)

The method according to claim 1, wherein each execution unit is configured to write its results to a single specific register block.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
using the utilization rate of the one or more of the plurality of register blocks to assign one of the one or more of the plurality of register blocks to receive the results of the instruction.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
assigning an initial register block from the one or more of the plurality of register blocks to the instruction;
determining whether the initial register block assigned to the instruction is over-utilized; and
reassigning, in response to the initial register block assigned to the instruction being over-utilized, the initial register block assigned to the instruction to a different register block other than the initial register block,
wherein determining whether the initial register block assigned to the instruction is over-utilized comprises:
comparing the utilization rate calculated for the initial register block assigned to the instruction to a threshold, and if the utilization rate for the initial register block assigned to the instruction is over the threshold, then the initial register block assigned to the instruction is over-utilized.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
determining whether the register file has an available register entry;
associating, in response to the register file having an available register entry, an initial register block from the one or more of the plurality of register blocks to the instruction without using the utilization rate for the initial register block associated with the instruction; and
checking, using the utilization rate for the initial register bank associated with the instruction, the initial register block associated with the instruction.

### Claim 10 (depends on 9)

The method according to claim 9, wherein checking the initial register block associated with the instruction comprises:
adjusting, in response to the initial register block associated with the instruction being over-utilized, the initial register block associated with the instruction and assigning a different register block; and
assigning, in response to the initial register block associated with the instruction not being over-utilized, the initial register block associated with the instruction.

### Claim 11 (depends on 10)

The method according to claim 10, wherein:
assigning the initial register block associated with the instruction comprises keeping the initial register bank associated with the instruction according to a default table, and
adjusting the initial routing decision and assigning a different register block to the instruction comprises swapping the initial register bank associated with the instruction according to a swap table.

### Claim 12

A processor for processing instructions, the processor comprising:
at least one processing pipeline having a plurality of execution units configured to execute the instructions;
a register file having a plurality of register file entries configured to hold data, the register file sub-divided into a plurality of register blocks, each register block having at least two register file entries configured, wherein each register block is configured to receive results from a specific execution unit; and
an instruction dispatch unit configured to select which one of the plurality of register blocks is to receive the results from executing the instructions,
wherein the processor is configured to:
calculate a utilization rate for one or more of the plurality of register blocks; and
assign a register block to receive the results from executing an instruction based upon the utilization rate for that register block.

### Claim 13 (depends on 12)

The processor according to claim 12, wherein the processor is further configured to:
initially associate the instruction with a specific register block;
calculate the utilization rate for the specific register block initially associated with the instruction; and
change, in response to the specific register block initially associated with the instruction being over-utilized, the specific register block initially associated with the instruction and assign the instruction to a register block different than the specific register block initially associated with the instruction.

### Claim 14 (depends on 13)

The processor according to claim 13, wherein the processor is further configured to:
assign the instruction, in response to the specific register block initially associated with the instruction not being over-utilized, to the specific register block initially associated with the instruction.

### Claim 15 (depends on 13)

The processor according to claim 13, wherein the processor is further configured to:
have a first default table of register block assignments by instruction type and have at least a second swap table of register block assignments by instruction type, wherein instructions are initially associated with a specific register block according to the first default table, and
in response to the specific register block initially associated with the instruction not being over-utilized, maintain the register block assignment according to the first default table; and
in response to the specific register block initially associated with the instruction being over-utilized, swap the register block assignment according to the second swap table.

### Claim 16 (depends on 12)

The processor according to claim 12, wherein the processor is further configured to:
calculate a utilization rate for each of the plurality of register blocks; and
select the register block to assign to receive the results of the instruction using the utilization rate of that register block.

### Claim 17 (depends on 12)

The processor according to claim 12, wherein the processor is further configured to:
initially associate a specific register block from the one or more of the plurality of register blocks to an instruction based upon a preferred execution unit to execute the instruction;
calculate the utilization rate for the specific register block initially associated with the instruction;
check whether the utilization rate of the specific register file block initially associated with the instruction is being overutilized;
change, in response to the utilization rate of the specific register block initially associated with the instruction being over-utilized, the specific register block associated with the instruction and assign a different register block to the instruction; and
dispatch the instruction to an issue queue with the different register block assigned to the instruction.

### Claim 18 (depends on 12)

The processor according to claim 12, wherein the dispatch unit has a counter for each of the plurality of register blocks to track the number of register file entries in the respective register block that are in use or available for use.

### Claim 19 (depends on 12)

The processor according to claim 12, wherein the processor is further configured to:
assign the instruction an issue queue to receive the instruction in a first stage of the dispatch unit;
assign the register block to receive the results of the instruction in a second stage of the dispatch unit; and
assign the register file entry in the register block to receive the results of the instruction in a mapper.

### Claim 20

A processor for processing instructions, the processor comprising:
at least one processing pipeline having a plurality of execution units configured to execute the instructions;
a register file having a plurality of register file entries configured to hold data, the register file sub-divided into a plurality of register blocks, each register block having at least two register file entries, wherein each register block is configured to receive results from a specific execution unit; and
an instruction dispatch unit configured to select for each instruction the issue queue to hold that instruction for execution and the execution unit to execute that instruction, wherein the dispatch unit comprises a counter to determine for each register block one of a number of available or in use register file entries in the respective register blocks,
wherein the dispatch unit is configured to:
preliminarily associate a specific register block with an instruction;
determine, using the counter for the specific register block preliminarily associated with the instruction whether the specific register block preliminarily associated with the instruction is over-utilized;
assign, in response to the specific register block preliminarily associated with the instruction being over-utilized, a register block to the instruction that is different than the specific register block preliminarily associated with the instruction; and
assign, in response to the specific register block preliminarily associated with the instruction not being over-utilized, the specific register block preliminarily associated with the instruction; and
wherein the processor is configured to:
transmit the instruction with its assigned register block to the issue queue and the mapper.
