# US 2023/0266971 A1 · Selectable register file blocks for hardware threads of a multithreaded processor

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

- Number: US 2023/0266971 A1
- Document ID: US20230266971A1
- Status: Published application
- Kind: A1
- Application number: 17/586,708
- Filed: 2022-01-27
- Published: 2023-08-24
- Earliest claimed: 2022-01-27
- Assignees: NXP B.V.
- Applicants: NXP B.V.
- Inventors: Michael Andrew Fischer
- Web page: https://patentgrep.com/patent/US20230266971A1

## CPC

- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3009: {Thread control instructions}
- G06F 9/30101: {Special purpose registers}
- G06F 9/30112: {comprising data of variable length}
- G06F 9/3012: {Organisation of register space, e.g. banked or distributed register file}
- G06F 9/30123: {according to context, e.g. thread buffers}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of a multithreaded processor and a method of assigning blocks of register files for hardware threads of multithreaded processors are disclosed. In an embodiment, the method includes providing a multithreaded processor with a register file that provides registers for T hardware threads, the register file being organized as a set of B blocks, where each of the B blocks contains N registers and where B is greater than or equal to T, configuring assignments of the B blocks to the T hardware threads such that at least one of the B blocks of the register file and not more than R/N of the B blocks of the register file is assigned to each of the T hardware threads, where R is the number of registers defined by the instruction set architecture of the multithreaded processor and where R/N is an integer, thereby the multithreaded processor supports the T hardware threads with the register file that has less than T×R registers, and executing machine instructions on the multithreaded processor, where register numbers in the machine instructions are translated into register file addresses using the configured assignments.

## Claims

### Claim 1

A method of assigning blocks of register files for hardware threads of multithreaded processors, the method comprising:
providing a multithreaded processor with a register file that provides registers for T hardware threads, the register file being organized as a set of B blocks, where each B block contains N registers and where B is greater than or equal to T; and
configuring assignments of the B blocks to the T hardware threads such that at least one of the B blocks of the register file and not more than R/N of the B blocks of the register file is assigned to each of the T hardware threads, where R is a quantity of registers defined by an instruction set architecture of the multithreaded processor and where R/N is an integer, thereby the multithreaded processor supports the T hardware threads with the register file that has less than T×R registers, wherein assigning each of T hardware threads includes preconfiguring at least some of the B blocks of the register file when a processor register-transfer level (RTL) design is generated for the multithreaded processor to selectively assign at least some of the B blocks of the register file to the T hardware threads such that assignments of the at least some of the B blocks of the register file to the T hardware threads are fixed; and
executing machine instructions on the multithreaded processor, where register numbers in the machine instructions are translated into register file addresses using the configured assignments.

### Claim 2

(canceled)

### Claim 3 (depends on 1)

The method of claim 1, wherein preconfiguring at least some of the B blocks of the register file includes preconfiguring all the B blocks of the register file when the processor register-transfer level (RTL) design is generated for the multithreaded processor to selectively assign all the B blocks of the register file to the T hardware threads such that assignments of all the B blocks of the register file to the T hardware threads are fixed.

### Claim 4 (depends on 3)

The method of claim 3, wherein some of the T hardware threads are each assigned a single B block of the register file and some of the T hardware threads are each assigned two B blocks of the register file.

### Claim 5 (depends on 1)

The method of claim 1, wherein assigning each of the T hardware threads includes assigning the B blocks of the register file that have not been preconfigured using software-controlled data in a control/status register during or after initialization of the multithreaded processor.

### Claim 6 (depends on 5)

The method of claim 5, wherein assigning each of the T hardware threads includes using a register number of an instruction as a part of a register file address and using particular data in the control/status register as another part of the register file address.

### Claim 7 (depends on 1)

The method of claim 1, further comprising causing an exception by an enable bit in a control/status register if the multithreaded processor attempts to access a register in a block that is not enabled for an executing thread.

### Claim 8 (depends on 1)

The method of claim 1, wherein assigning each of the T hardware threads includes assigning each of the T hardware threads at least one B block of the register file using software-controlled data in a control/status register corresponding to that hardware thread during or after initialization of the multithreaded processor.

### Claim 9 (depends on 8)

The method of claim 8, wherein assigning each of the T hardware threads at least one B block of the register file using the software-controlled data includes using a register number of an instruction as a part of a register file address and using particular data in the control/status register as another part of the register file address.

### Claim 10

A multithreaded processor comprising:
a register file that provides registers for T hardware threads, the register file being organized as a set of B blocks, where each B block contains N registers and where B is greater than or equal to T,
wherein each of the T hardware threads is assigned at least one of the B blocks of the register file and not more than R/N of the B blocks of the register file, where R is a quantity of registers defined by an instruction set architecture of the multithreaded processor and where R/N is an integer, thereby the multithreaded processor supports the T hardware threads with the register file that has less than T×R registers, and
wherein at least some of the B blocks of the register file are preconfigured to be assigned to some of the T hardware threads when a processor register-transfer level (RTL) design is generated such that assignments of at least some of the B blocks of the register file to some of the T hardware threads are fixed.

### Claim 11

(canceled)

### Claim 12 (depends on 10)

The multithreaded processor of claim 10, wherein all the B blocks of the register file are preconfigured to be assigned to the T hardware threads when the processor register-transfer level (RTL) design is generated such that assignments of all the B blocks of the register file to the T hardware threads are fixed.

### Claim 13 (depends on 12)

The multithreaded processor of claim 12, wherein some of the T hardware threads are each assigned a single B block of the register file and some of the T hardware threads are each assigned two B blocks of the register file.

### Claim 14 (depends on 10)

The multithreaded processor of claim 10, further comprising a block assigning circuity to assign the B blocks of the register file that have not been preconfigured using software-controlled data in a control/status register of the block assigning circuity during or after initialization of the multithreaded processor.

### Claim 15 (depends on 14)

The multithreaded processor of claim 14, wherein the block assigning circuity includes a first register for storing a register number of an instruction, where the register number is used as a part of a register file address and particular data in the control/status register is used as another part of the register file address.

### Claim 16 (depends on 14)

The multithreaded processor of claim 14, wherein an enable bit in a control/status register causes an exception if the multithreaded processor attempts to access a register in a block that is not enabled for an executing thread.

### Claim 17 (depends on 10)

The multithreaded processor of claim 10, further comprising a plurality of block assigning circuitries to assign each of the T hardware threads at least one B block of the register file using software-controlled data in control/status registers corresponding to the T hardware threads during or after initialization of the multithreaded processor.

### Claim 18 (depends on 17)

The multithreaded processor of claim 17, wherein each of the plurality of block assigning circuitries includes a first register for storing a register number of an instruction, where the register number is used as a part of a register file address and particular data in the control/status register of that block assigning circuitry is used as another part of the register file address.

### Claim 19

A multithreaded processor comprising:
a register file that provides registers for T hardware threads, the register file being organized as a set of B blocks, where each B block contains N registers and where B is greater than or equal to T; and
a block assigning circuitry configured to assign each of the T hardware threads at least one of the B blocks of the register file and not more than R/N of the B blocks of the register file, where R is a quantity of registers defined by an instruction set architecture of the multithreaded processor and where R/N is an integer, thereby the multithreaded processor supports the T hardware threads with the register file that has less than T×R registers, wherein at least some of the B blocks of the register file are preconfigured to be assigned to some of the T hardware threads when a processor register-transfer level (RTL) design is generated such that assignments of at least some of the B blocks of the register file to some of the T hardware threads are fixed and wherein the blocks assigning circuitry is configured to assign the B blocks of the register file that have not been preconfigured using software-controlled data in a control/status processor.

### Claim 20

(canceled)
