Question: Assume that a program has a sequence of 10 instructions streaming through an instruction pipeline with 4 stages. In this program, there is 20 percent

Assume that a program has a sequence of 10 instructions streaming through an instruction pipeline with 4 stages. In this program, there is 20 percent chance of encountering a branch instruction. The probability that a branch is taken is 40 percent. Each stage of the pipeline requires one clock cycle. Note that when a branch is taken, the pipeline has to be cleared. Calculate the following:

Assume cycle = 1

(I) Time taken to execute the program

(ii) Speed up factor of the pipeline

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!