Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please kindly help me with the problem below, Thanks. 4.Consider a 5-stage IF, ID, Ex, MEM and WB pipeline. Assume that we use predict branch
Please kindly help me with the problem below, Thanks.
4.Consider a 5-stage IF, ID, Ex, MEM and WB pipeline. Assume that we use "predict branch not taken" method Calculation of branch address is made in the EX stage. Data is forwarded when possible You are to analyze the pipeline execution of this following code. Draw the 5-stage execution diagram using the template shown (i.e., see the initial two cycles below.) Point out where the stalls are needed to prevent data and control hazard. Point out where data are forwarded from one stage to another stage Show your work. [Note for Instructor - HW] addi Ss0, S0, 2 add ?t1, $to, St0 add St4, $tl, ?t2 subi $s0, Ss0, 1 (b) loop: lw Sto, 12 (Ss0) bne Ss0, Szero, loo lw Ss1,16 ($ $zero, loop 4.Consider a 5-stage IF, ID, Ex, MEM and WB pipeline. Assume that we use "predict branch not taken" method Calculation of branch address is made in the EX stage. Data is forwarded when possible You are to analyze the pipeline execution of this following code. Draw the 5-stage execution diagram using the template shown (i.e., see the initial two cycles below.) Point out where the stalls are needed to prevent data and control hazard. Point out where data are forwarded from one stage to another stage Show your work. [Note for Instructor - HW] addi Ss0, S0, 2 add ?t1, $to, St0 add St4, $tl, ?t2 subi $s0, Ss0, 1 (b) loop: lw Sto, 12 (Ss0) bne Ss0, Szero, loo lw Ss1,16 ($ $zero, loopStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started