















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















2
by the compiler, before the program runs: Static
Instruction Scheduling
by the hardware, when the program is running:
Dynamic Instruction Scheduling
4
5
1 stall
1 stall
2 stalls
0 stalls
7
8
Instruction Window
Instruction Queue
Functional Units
Floating point Adder
Floating point Multiplier
Integer ALU
Integer Multiplier
Memory Unit
With dynamic instruction scheduling …
10
11
Mem
PC
Reg
File
Sign
extend
4
ALU
Zero?
Mem
13
14
16
17
Else, squash the fetched instruction and re-fetch
from the branch target address
squash: cancel, annul the processing of that instruction
19
BEQZ R3, out
Fetch inst i +
Suppose that the
condition evaluates
to TRUE
Fetch inst from
branch target address
etc
SQUASH inst i+
i.e., ONE BRANCH STALL CYCLE
20
Else, squash the fetched instruction and re-fetch
from the branch target address
0 stall cycles
1 stall cycle