Beruflich Dokumente
Kultur Dokumente
(Score boarding)
Instruction Level
Parallelism
ILP is the principle that there are many
instructions in code that don’t
depend on each other. That means
it’s possible to execute those
instructions in parallel.
Loop Level Parallelism - that parallelism that exists within a loop. Such
parallelism can cross loop iterations.
Loop Unrolling - Either the compiler or the hardware is able to exploit the
parallelism inherent in the loop.
Dynamic Scheduling
DIVD F0,F2,F4
ADDD F10,F0,F8
SUBD F12,F8,F14
– Enables out-of-order execution => out-of-order completion
The idea:
Dynamic Scheduling
HW Schemes: Instruction Parallelism
• Out-of-order execution divides ID stage:
1. Issue—decode instructions, check for structural hazards
2. Read operands—wait until no data hazards, then read operands
• Scoreboards allow instruction to execute whenever 1 & 2 hold, not waiting
for prior instructions.
• A scoreboard is a “data structure” that provides the information necessary
for all pieces of the processor to work together.
• We will use In order issue, out of order execution, out of order commit ( also
called completion)
• First used in CDC6600. Our example modified here for DLX.
• CDC had 4 FP units, 5 memory reference units, 7 integer units.
• DLX has 2 FP multiply, 1 FP adder, 1 FP divider, 1 integer.
Using A Scoreboard
Dynamic Scheduling
Scoreboard Implications
2. Functional unit status—Indicates the state of the functional unit (FU). 9 fields for
each functional unit
Busy—Indicates whether the unit is busy or not
Op—Operation to perform in the unit (e.g., + or –)
Fi—Destination register
Fj, Fk—Source-register numbers
Qj, Qk—Functional units producing source registers Fj, Fk
Rj, Rk—Flags indicating when Fj, Fk are ready
3. Register result status—Indicates which functional unit will write each register, if
one exists. Blank when no pending instructions will write that register