# US 2025/0165257 A1 · Lightweight out of order scheduler for processing units

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

- Number: US 2025/0165257 A1
- Document ID: US20250165257A1
- Status: Published application
- Kind: A1
- Application number: 18/950,479
- Filed: 2024-11-18
- Published: 2025-05-22
- Earliest claimed: 2023-11-16
- Assignees: The Trustees of Princeton University
- Applicants: The Trustees of Princeton University
- Inventors: Ishita Chaturvedi; Bhargav Reddy Godala; David I. August
- Web page: https://patentgrep.com/patent/US20250165257A1

## CPC

- G06F 9/3838: {Dependency mechanisms, e.g. register scoreboarding}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F 9/3851: {from multiple instruction streams, e.g. multistreaming}
- G06F 9/3856: {Reordering of instructions, e.g. using queues or age tags}
- G06F 9/3887: {controlled by a single instruction for multiple data lanes [SIMD]}
- G06F 9/3888: {controlled by a single instruction for multiple threads [SIMT] in parallel}
- G06F 9/3844: {using dynamic branch prediction, e.g. using branch history tables}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processing unit leverages a decode stage's pool of instructions, thereby expanding available instruction choices and eliminating the need for expensive OoO techniques to identify reordering opportunities. The processing unit introduces instruction reordering by presenting an alternative instruction to the warp scheduler through the existing interface rather than offering the oldest instruction in each warp. The result is a simple and efficient OoO engine that operates predominantly in the processing unit's front end.

## Claims

### Claim 1

A processing unit, comprising:
a front-end including:
an issue buffer configured to receive instructions;
a dependence checker configured to receive instructions and detect any read-after-write (RAW), write-after-read (WAR), or write-after-write (WAW) hazards of each instruction; and
an out-of-order (OoO) scheduler operably coupled to the issue buffer and dependence checker, the OoO scheduler configured to select one or more instructions from the issue buffer for later stages.

### Claim 2 (depends on 1)

The processing unit of claim 1, wherein an instruction is removed from the issue buffer after it is issued.

### Claim 3 (depends on 2)

The processing unit of claim 2, wherein the issue buffer marks a space as empty after an instruction has been issued from the issue buffer.

### Claim 4 (depends on 1)

The processing unit of claim 1, wherein the dependence checker is further configured to mark and/or detect any read-after-write (RAW), write-after-read (WAR), or write-after-write (WAW) hazards of each instruction with instructions currently in the issue buffer.

### Claim 5 (depends on 1)

The processing unit of claim 1, wherein the processing unit is a graphics processing unit (GPU).

### Claim 6 (depends on 1)

The processing unit of claim 1, wherein the processing unit is configured to respect all register dependencies.

### Claim 7 (depends on 1)

The processing unit of claim 1, wherein the processing unit is configured to issue all memory instructions in order with respect to each other.

### Claim 8 (depends on 1)

The processing unit of claim 1, wherein the processing unit is configured to operate such that load instructions can be reordered against other load instructions but cannot be reordered against store instructions.

### Claim 9 (depends on 1)

The processing unit of claim 1, wherein the processing unit is configured to operate such that store instructions are not reordered against any load or store instruction.

### Claim 10 (depends on 1)

The processing unit of claim 1, wherein the processing unit is configured to check for idempotence in the dependence checker and does not issue non-idempotent instructions until a translation lookaside buffer hit or miss is determined for all prior load instructions.

### Claim 11 (depends on 1)

The processing unit of claim 1, wherein the processing unit is configured to consider structural hazards when selecting instructions for out-of-order issue.

### Claim 12 (depends on 1)

The processing unit of claim 1, wherein the front-end further comprises an instruction buffer, the instruction buffer is configured to:
receive instructions and send the instructions to the dependence checker and the issue buffer when the issue buffer requests a new instruction.

### Claim 13 (depends on 12)

The processing unit of claim 12, wherein new instructions are fetched only when the instruction buffer is empty.

### Claim 14 (depends on 1)

The processing unit of claim 1, further comprising at least one warp scheduler configured to select at least one warp from its assigned warps and issuing one or more instructions from that warp.

### Claim 15 (depends on 14)

The processing unit of claim 14, wherein the processing unit utilizes an out-of-order scheduler and separate warp scheduler.

### Claim 16 (depends on 15)

The processing unit of claim 15, wherein the out-of-order scheduler looks at one or more warps in each cycle to select one or more instructions which are ready for out-of-order issue.

### Claim 17 (depends on 16)

The processing unit of claim 16, wherein the warp scheduler selects one or more of the ready instructions from one or more warps and issues the selected one or more ready instructions.

### Claim 18 (depends on 1)

The processing unit of claim 1, wherein the out-of-order scheduler knows the instruction has no dependencies by means of a scoreboard.

### Claim 19 (depends on 1)

The processing unit of claim 1, wherein the out-of-order scheduler knows the instruction has no dependencies by means of an instruction encoding.

### Claim 20 (depends on 18)

The processing unit of claim 18, wherein, after issuing an instruction, a single instruction, multiple threads (SIMT) stack and/or a scoreboard (SB) is/are updated.

### Claim 21 (depends on 14)

The processing unit of claim 14, wherein the warp scheduler is configured to use a scheduling policy that selects one or more instructions from one or more warps with no structural hazards.

### Claim 22 (depends on 1)

The processing unit of claim 1, wherein the processing unit is configured to select a warp for dependence checking if there was a writeback to the warp and/or the warp does not have any valid entries in an instruction table.

### Claim 23 (depends on 1)

The processing unit of claim 1, wherein the processing unit maintains a Warp-WriteBack (WWb) bit-vector and an ITabEmpty (ITE) bit vector where each bit corresponds to a warp.

### Claim 24 (depends on 23)

The processing unit of claim 23, wherein, when a warp has a write-back, the corresponding bit in the WWb is set.

### Claim 25 (depends on 23)

The processing unit of claim 23, wherein, when a warp does not have any entries in the ITE, the corresponding ITE bit is set to one.

### Claim 26 (depends on 23)

The processing unit of claim 23, wherein, in a cycle, the processing unit selects warps whose WWb bit is set over warps whose ITE bit is set.

### Claim 27 (depends on 23)

The processing unit of claim 23, wherein after dependence checking for a warp, the WWb bit corresponding to the warp is unset.

### Claim 28 (depends on 23)

The processing unit of claim 23, wherein when independent instructions are found and placed in the ITE, the ITE bit corresponding to the warp is unset.

### Claim 29 (depends on 23)

The processing unit of claim 23, wherein, when the ITE bit is set for a warp, the warp is skipped for consideration by a warp scheduler in that cycle.
