Method and apparatus for scheduling instructions in waves
Abstract
In a microprocessor, an Instruction scheduler 30 includes a dependency matrix 36 and a waiting buffer 34. A dependency determination unit 32 receives instructions to be executed, forwards the instructions to the waiting buffer 34, determines if any dependency exists between the instructions, and forwards the dependency information to the dependency matrix 36 in the form of a dependency vector 40. Dependency matrix 36 periodically determines whether any of the instructions contained in the waiting buffer 34 are ready to be executed, that is, no dependencies exist for that instruction. All identified instructions are then assigned to a current wave to be dispatched. The identified instructions are then dispatched for execution as execution resources become available. As each instruction is dispatched for execution in the waiting buffer 34, the dependency vector 40 for all dependent instructions is cleared for subsequent execution. However, until all instructions in the current wave are dispatched, no instructions in a subsequent wave may be dispatched. In this manner, an out-of-order processing scheme is implemented that efficiently accounts for data dependency between processed inst
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 96.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for scheduling instructions for dispatch to an execution unit, said method comprising the steps of: a) receiving a plurality of instructions; b) generating a dependency vector for each instruction, wherein the dependency vector has a bit set that indicates each instruction on which the instruction is dependent; c) determining the instructions that are ready for execution by identifying each instruction that has no bits set in its corresponding dependency vector; d) clearing the bits in each of the dependency vectors that correspond to the instructions ready for execution; e) p
- Claim 2Depends on #1
The method, as set forth in claim 1, wherein
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗