Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. A computer has five-stage pipeline, similar towhat we discussed in pipelined implementation of ANNA microarchitecture. Assume the computer deals with control hazards by stalling

3. A computer has five-stage pipeline, similar towhat we discussed in pipelined implementation of ANNA microarchitecture. Assume the computer deals with control hazards by stalling the pipeline for four cycles immediately after hitting a branch instruction. (There is no special hardware to resolve the branches faster.) Assuming the only source of stalls in this pipeline is control hazards and 30% of all program instructions are conditional branches; assuming CPI without stalls is two, answer the following:(15 + 15)

A.What would be the average CPI (Cycles per Instruction) for this computer?

B.What would be the CPI if we use a nave branch predictor which always assumes that the branch will not be taken and continues fetching the sequentially following instructions. Assume each branch is taken 60% of the time and not taken 40% of the time.

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

Step: 3

blur-text-image

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

1. In uncertain times, I usually expect the best.

Answered: 1 week ago