Question: Problem 8 A five instruction sequence executes according to Tomasulo's algorithm. Each instruction is of the form ADD DR , SR 1 , SR 2

Problem 8
A five instruction sequence executes according to Tomasulo's algorithm. Each instruction is of the form ADD DR,SR1,SR2 or MUL DR,SR1,SR2. ADDs are pipelined and take 9 cycles (F-D-E1-E2-E3-E4-E5-E6-WB). MULs are also pipelined and take 11 cycles (two extra execute stages). The microengine must wait until a result is in a register before it sources it (reads it as a source operand)
The register file before and after the sequence are shown below (tags for "After" are ignored).
Before
After
\table[[,V,tag,value],[R0,1,z,4],[R1,1,z,5],[R2,1,z,6],[R3,1,z,7],[R4,1,z,8],[R5,1,z,9],[R6,1,z,10],[R7,1,z,11]]
\table[[,V,tag,value],[R0,1,,310],[R1,1,,5],[R2,1,,410],[R3,1,,31],[R4,1,,8],[R5,1,,9],[R6,1,,10],[R7,1,,21]]
Complete the five instruction sequence in program order in the space below. Note that we have helped you by giving you the opcode and two source operand addresses for instruction 4.(The program sequence is unique.)
\table[[1],[2],[,,],[4,MUL,, R6, R6],[5,,]]
In cycle 1 instruction 1 is fetched. In cycle 2, instruction 1 is decoded and instruction 2 is fetched. In cycle 3, instruction 1 starts execution, instruction 2 is decoded, and instruction 3 is fetched.
Assume the reservation stations are all initially empty. Put each instruction into the next available reservation station. For example, the first ADD goes into "a". The first MUL goes into "x". Instructions remain in the reservation stations until they are completed. Show the state of the reservation stations at the end of cycle 8.
Note: to make it easier for the grader, when allocating source registers to reservation statinno ninace olusove houn tha hinhar numbarad manictar ha acoinnod tn CD?
3. Show the state of the Register Alias Table ( V , tag, Value) at the end of cycle 8.
\table[[,V,tag,value],[R0,,,],[R1,,,],[R2,,,],[R3,,,],[R4,,,],[R5,,,],[R6,,,],[R7,,,]]
Problem 8 A five instruction sequence executes

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!