Question: Consider the following code that will be executed on the MIPS implemented in 5-stage pipeline, IF, ID, EX, MEM, WB, as in the text. add

 Consider the following code that will be executed on the MIPS

Consider the following code that will be executed on the MIPS implemented in 5-stage pipeline, IF, ID, EX, MEM, WB, as in the text. add $3, $3, $4 1w $2, 100 ($3) add $2, $3, $6 (1) Assume the MIPS pipeline implementation is without data forwarding and no delayed slot, show how many cycles need to be spent to finish the code. To show the pipeline stalls, when and where, insert "nop" instructions into the code and also state the CPI for the code. (2) Now the pipeline is with data forwarding but without delayed slots, show how many cycles are needed for the code. To show the pipeline stalls, when and where, insert "nop" instructions into the code and also state the CPI for the code

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!