






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 issue/execute pipeline
Instruction fetch/dispatch pipeline
fetch decode data dependence checking, register renaming DISPATCH
(insert into window)
(take from window)
issue execute complete (writeback)
In-order
Out-of-order
Dispatch
dependences.
operands are available Issue
Execute
Write result
instruction in the scoreboard reads the same register being written, and the read has not yet taken place
Integer Unit (integer MIPS pipeline)
Instruction status
Functional-unit status
DIV no
ADD no
MULT2no
MULT1no
Integeryes L.D F6 R2 yes
FU busy op F i Fj Fk Q j Q k R j R k
Integer
Register-result status
Instruction status DISPATCH ISSUE EXECUTE WRITE RESULT
Functional-unit status
DIV no
ADD no
MULT2no
MULT1no
Integeryes L.D F2 R3 yes
FU busy op F (^) i Fj Fk Q (^) j Q (^) k R (^) j R (^) k
Integer
Register-result status
Instruction status
Functional-unit status
DIV no
ADD no
MULT2no
MULT1yes MUL.D F0 F2 F4 Integer no yes
Integeryes L.D F2 R3 yes
FU busy op F (^) i Fj Fk Q (^) j Q (^) k R (^) j R (^) k
MULT1 Integer
Register-result status
Instruction status
Functional-unit status
DIV no
ADD yes SUB.D F8 F6 F2 Integeryes no
MULT2no
MULT1yes MUL.D F0 F2 F4 Integer no yes
Integeryes L.D F2 R3 yes
FU busy op F i Fj Fk Q j Q k R j R k
MULT1Integer ADD
Register-result status
Instruction status DISPATCH ISSUE EXECUTE WRITE RESULT
Functional-unit status
DIV yes DIV.D F10 F0 F6 MULT1 no yes
ADD yes SUB.D F8 F6 F2 Integer yes no
MULT2no
MULT1yes MUL.D F0 F2 F4 Integer no yes
Integeryes L.D F2 R3 yes
FU busy op F (^) i Fj Fk Q (^) j Q (^) k R (^) j R (^) k
MULT1Integer ADD DIV
Register-result status
Instruction status
Functional-unit status
DIV yes DIV.D F10 F0 F6 MULT1 no yes
ADD yes SUB.D F8 F6 F2 yes yes
MULT2no
MULT1yes MUL.D F0 F2 F4 yes yes
Integeryes L.D F2 R3 yes
FU busy op F (^) i Fj Fk Q (^) j Q (^) k R (^) j R (^) k
MULT1Integer ADD DIV
Register-result status
finishing..
DIV yes DIVD F10 F0 F6 MULT1 no yes
ADD yes ADDD F6 F8 F2 yes yes
MULT2no
MULT1yes MULTD F0 F2 F4 yes yes
Integerno
FU busy op F i Fj Fk Q j Q k R j R k
Instruction status
Functional-unit status
Register-result status
ID
EX ID
EX
IDIDIDIDISISEXEXEXEXEXEXEXEXWR
IDISISISISISISISISISISISISISISEX…..
IDISISISEXEXWR
IDISISISISEXEXEXEXEXEXEXEXEXEXWR
ID ISEXEXWR
IDIS WR
=> Notice there are always 2 cycles between EX of data dependent instructions (e.g., L.D and MUL.D): producer does WR and consumer does last IS cycle in which registers are read from the register file. This is an artifact of the CDC 6600: all values must first pass through the register file (no bypasses).
Shaded boxes indicate stalls. RAW
Structural
WAR
2 3 4 6 5 7
=> Execution latencies: L.D (2 – agen + access), MUL.D (10), DIV.D (40), SUB.D/ADD.D (2)
1
Amount of instruction-level parallelism (ILP) in the program
Number of scoreboard entries (window size)
Number and type of functional units, register ports, etc.
Anti- and output dependences
because early (OOO) writes are possible
when finally issuing)
❍ If operands are available, the data is buffered along with the instruction in “reservation stations”
❍ CDC: only buffers the instruction, all operands are read from register file when all operands are ready (operands read at issue stage)
❍ CDC – late reads / Tomasulo – early reads: early reads help WAR condition
❍ Waiting instructions replace register specifiers with a “tag” indicating the producer instruction
❍ Register specifiers are used only once, at dispatch!
❍ Renaming eliminates WAR/WAW hazards
❍ Only last one is actually used to update register: helps WAW condition
❍ CDC: stall in dispatch until WAW hazard goes away
L.D (1)
ADD.D (1)
L.D (2)
ADD.D (2)
True dependence (RAW / F0)
True dependence (RAW / F0)
Anti-dependence (WAR / F0)
Output dependence (WAW / F0)
L.D load1, 34(R2) ADD.D F4, load1, F L.D load2, 45(R3) ADD.D F8, load2, F
L.D (1)
ADD.D (1)
True dependence (RAW / load1)
L.D (2)
ADD/D (2)
True dependence (RAW / load2)
To memory
From memory
FP adders FP multipliers
From IF unit
L.D F0 <-
ADD.D <- F
L.D F0 <-
ADD.D <- F
To memory
From memory
FP adders FP multipliers
From IF unit
load
ADD.D <- F
L.D F0 <-
ADD.D <- F
F0 load
To memory
From memory
FP adders FP multipliers
From IF unit
load
L.D F0 <-
ADD.D <- F
F0 load
load1 (value)
To memory
From memory
FP adders FP multipliers
From IF unit
load
ADD.D <- F
F0 load
load1 (^) (value)
load