Question: 3. [12 points] Consider the following pseudo assembly language code: I1: SUB R9- R3 R4 12: ADD R4 R5+R6; 13: LW R2 = MEM [R3

 3. [12 points] Consider the following pseudo assembly language code: I1:

3. [12 points] Consider the following pseudo assembly language code: I1: SUB R9- R3 R4 12: ADD R4 R5+R6; 13: LW R2 = MEM [R3 100]; 4: LW R2-MEM [R2+0] I5: SW MEM [R4 100] R2; 16: AND R2- R2 &R1 17: BEQ R9RI, Target; 18: AND R9 = R9 & RI; Consider a pipeline with forwarding, hazard detection, and one delay slot for branches. The pipeline is the typical 5- stage IF, ID, EX, MEM, WB MIPS design. For the above code, complete the pipeline diagram below (instructions on the left, cycles on top) for the code. Insert the characters IF, ID, EX, MEM, WB for each instruction in the boxes. Assume that there two levels of bypassing, that the second half of the decode stage performs a read of source registers, and that the first half of the write-back stage writes to the register file Label all data stalls (Draw an X in the box). Label all data forwards that the forwarding unit detects (arrow between the stages handing off the data and the stages receiving the data). What is the final execution time of the code? TOTI T2 T3 T4 TS T6 T7 T 15 17 Note: Feel free to add more cycles (T9, TI0, etc) as much as you may require. Here, 0, etc stand for the instructions and TO, T, etc stand for the cycle times

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 Databases Questions!