Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider following loop: Loop: LW r2, 0(r2) BEQ r2, r0, LOOP OR r2, r2, r3 SW r2, 0(r5) Assume that there is no delay slot

Consider following loop: Loop:

LW r2, 0(r2)

BEQ r2, r0, LOOP

OR r2, r2, r3

SW r2, 0(r5)

Assume that there is no delay slot and the next PC located in ID stage. Also, assume that the loop is iterated for 100 times. a) Draw the pipeline diagram for the first 2 iterations b) How many cycles does it take to complete the instruction sequence? c) If a one-bit branch predictor is used, which is initialized to N(i.e. branch not taken), how many correct and wrong predictions that it will produce?

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

Students also viewed these Databases questions