CS 3853 Computer Architecture Chapter 3 Section 4 Example Answers


Modification 6: The instruction ADD.D F0,F4,F4 is executed at the end of this code. When does it complete?

Instruction
Reservation
Station
Execution
Unit
Issue
Cycle
Ex Start
Cycle
Ex End
Cycle
Memory
Cycle
CDB
cycle
Write
dest
L.D    F6,32(R2)Load1ALU12234F6
L.D    F2,44(R3)Load2ALU23345F2
MUL.DF0,F2,F4Mult1fmul361516F0
SUB.DF8,F2,F6Add1fadd4678F8
DIV.DF10,F0,F6Mult2fmul5175657F10
ADD.DF6,F8,F2Add2fadd691011F6
ADD.DF0,F4,F4Add3fadd7121314F0
Note: The instruction can issue in cycle 7, but the fadd is not available until cycle 9. At cycle 9 the previous add has priority and starts executing at cycle 9.