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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66fa56d735422_26266fa56d6c7b5a.jpg)


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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
