





































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!






































Instruction Level Parallelism (ILP) • Basic idea:
Execute several instructions in parallel
•More transistors/logic
to Pentium and beyond
•we fetch I2 before I1 has finished
operations (fetch, decode, …) on severaldifferent instructions in parallel– as mentioned, limit of 1 IPC
if you had executed one-at-a-time
•You can squash instructions that don’t correspond to
the “correct” execution (ex. misfetched instructionsfollowing a taken branch, instructions after a pagefault)
world you can do whatever you want!– “Outside Appearance” = “Architecture” (ISA)– “Whatever you want” = “Microarchitecture”–
μ
Arch basically includes everything not explicitly defined in the ISA
•pipelining, caches, branch prediction, etc.
Back to ILP… But how? • Simple ILP recipe
•can’t execute > 1 IPC if we’re not fetching > 1 IPC
same time
Fetch Decode
Decode
Decode
Execute
ExecuteWriteback
Writeback
Decode up to 2 insts
Read operands andCheck dependencies
Fetch up to 32 bytes
Scheduling • Central problem to ILP processing
instructions) exists
multiple conditions:
•is there a data dependency?
execute at the same time
Scheduling • How many instructions are we looking for?
is called “N-way superscalar”, “N-issue superscalar”, orsimply “N-way”, “N-issue” or “N-wide”
•*Peak execution bandwidth•This “N” is also called the “issue width”
number
address
•Register names known at decode•Memory addresses not known until execute
dependences between them occur closeenough that changing the instruction orderwill change the outcome of the program
Dynamic (Out-of-Order) Scheduling
Program code I1: ADD R1, R2, R3I2: SUB R4, R1, R5I3: AND R6, R1, R7I4: OR R8, R2, R6I5: XOR R10, R2, R
how many instructions ahead do we look.– Do not confuse with “issue width” (N).– E.g. a 4-issue out-of-order processor can have a 128-entry
window (it can look at up to 128 instructions at a time).
and I4!
5s
30s
5s
5s Hands toll-boothagent a $100 bill;takes a while tocount the change
One-at-a-time = 45s
With a “4-Issue” Toll Booth
L1 L2 L3 L
OOO = 30s