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
Get step-by-step solutions from verified subject matter experts
