Question: Problem #1 We assume that the following MIPS code is executed on a pipelined processor with a 5-stage pipeline (IF, ID, EX, MEM, WB), data

 Problem #1 We assume that the following MIPS code is executed

Problem #1 We assume that the following MIPS code is executed on a pipelined processor with a 5-stage pipeline (IF, ID, EX, MEM, WB), data forwarding unit (only from MEM and WB stages to EX stage), hazard detection unit, and branch instruction outcome and target address are known in MEM stage. Assume that the first half of the clock cycle write-back stage writes to register file and the second half of the clock cycle the decode stage performs a read of source registers. Show a pipeline execution diagram for the program where all data forwards are marked with arrows and stalls are marked with"You can insert NOPs in addition to stalls (if needed for the correct operation of the code) 11: lw $44($16) 12: add S5, S4, $2 13: lw $6, 8(S5) 14: beq S5, S6, Target I5: sub S3, $5, $6

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!