Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 4 ) Consider the following sequence of instructions, and assume that it is executed on a 5 - stage pip data path ( IF

Q4) Consider the following sequence of instructions, and assume that it is executed on a 5-stage pip
data path (IF,DR,ALU,DM, WB. Also assume that writing into a register happens in the first half of the
clock cycle while reading from a register happens in the second half of the clock cycle. Also, assume tha
the hardware will apply "predicted- taken" predictor (i.e. always predict taken) to fetch the instructio
after the branch and flush it later in case of misprediction. Also, assume branch takes two cycles as w
did in class.
(a) List the read-after-write data dependencies. As an example, x on y($t5) shows instruction x has d
dependency on instruction y since it is reading register $t5.
(b) Assume the 5-stage MIPS pipeline with no forwarding, what is the total number of stall cycles? W
is the execution time (in cycles) for the whole program? Show your work.
(c) Assume the 5-stage MIPS pipeline with full forwarding, what is the total number of stall cycles?
is the execution time (in cycles) for the whole program? Show your work.
image text in transcribed

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

5. How would you describe your typical day at work?

Answered: 1 week ago

Question

7. What qualities do you see as necessary for your line of work?

Answered: 1 week ago