Question: Consider the following code fragment to be executed in an 8-stage pipeline machine with Branch is resolved at the end of the 6 th stage.

 Consider the following code fragment to be executed in an 8-stage

Consider the following code fragment to be executed in an 8-stage pipeline machine with Branch is resolved at the end of the 6 th stage. Assume byte addressable memory Answer the following questions. Show your work for each question: 1. What is the number of pipeline fill cycles? ii. Explain using RTL notation what happens during the Fetch, Decode, and Execute stages of the BNE instruction? iii. How many cycles could be the branch penalty? iv. Calculate the Branch target address, in decimal? v. Calculate the CPI when executing the above code, for the following two cases: a. If Branch is never taken b. If Branch is taken

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!