Question: 4. [35 pt] Pipeline & CPI: (a) Let us consider a classic 5 stage MIPS pipeline where the branch is resolved in ID stage. Consider

 4. [35 pt] Pipeline & CPI: (a) Let us consider a

classic 5 stage MIPS pipeline where the branch is resolved in ID

stage. Consider the following code fragment: ADD R2, R2, R3 ADD R3,

4. [35 pt] Pipeline & CPI: (a) Let us consider a classic 5 stage MIPS pipeline where the branch is resolved in ID stage. Consider the following code fragment: ADD R2, R2, R3 ADD R3, R4, R2 ADD 1 R5, R5, 4-1 SD R3, 0 (R10) BEQZ R5, L1 Assume that the initial value of R5 is 3 i. [3 pt] How many times the branch will be taken? How many times it will not be taken? ii. [4 pt] List all immediate RAW, WAR and WAW dependences in 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!