Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

image text in transcribed

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, loop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB 2008 Databases

Authors: Vidya Vrat Agarwal, James Huddleston

1st Edition

1590599470, 978-1590599471

More Books

Students also viewed these Databases questions

Question

What is an interface? What keyword is used to define one?

Answered: 1 week ago

Question

1. Who will you assemble on the team?

Answered: 1 week ago

Question

4. Who would lead the group?

Answered: 1 week ago