A simple RISC CPU is implemented with a single scalar instruction processing pipeline. Instructions are always executed

Question:

A simple RISC CPU is implemented with a single scalar instruction processing pipeline. Instructions are always executed sequentially except in the case of branch instructions. Given that pb is the probability of a given instruction being a branch, pt is the probability of a branch being taken, pc is the probability of a correct prediction, b is the branch penalty in clock cycles, and c is the penalty for a correctly predicted branch:

a. Calculate the throughput for this instruction pipeline if no branch prediction is made given that pb = 0.16, pt = 0.3, and b = 3.

b. Assume that we use a branch prediction technique to try to improve the pipeline’s performance. What would be the throughput if c = 1, pc = 0.8, and the other values are the same as above?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: