2. Dynamic Approach Tomosulo Algorithm
2. Dynamic Approach Tomosulo Algorithm
Lecturer,CSE Dept
Unit I
Tomasulo Algorithm
By
N.R.Rejin Paul
Lecturer/VIT/CSE
DAP Spr.‘98 ©UCB 2
Review: Three Parts of the Scoreboard
1. Instruction status—which of 4 steps the instruction is in
Load1
Load2 Load Buffers
Load3
Load4
Load5 Store
Load6
Buffers
Add1
Add2 Mult1
Add3 Mult2
Reservation To Mem
Stations
FP
FPadders
adders FP
FPmultipliers
multipliers
Common
Chap. 3Data
-ILP 1Bus (CDB) 11 DAP Spr.‘98 ©UCB 11
Reservation Station Components
Op—Operation to perform in the unit (e.g., + or –)
Vj, Vk—Value of Source operands
– Store buffers has V field, result to be stored
Qj, Qk—Reservation stations producing source registers
(value to be written)
– Note: No ready flags as in Scoreboard; Qj,Qk=0 => ready
– Store buffers only have Qi for RS producing result
Busy—Indicates reservation station or FU is busy
Loop: LD F0 0 R1
MULTD F4 F0 F2
SD F4 0 R1
SUBI R1 R1 #8
BNEZ R1 Loop