Question: Assume that machine A is a 5 - stage pipeline with 1 n s clock cycle, and machine B is a 1 0 - stage

Assume that machine A is a 5-stage pipeline with 1ns clock cycle, and machine B is a 10-stage pipeline
with 0.6 ns clock cycle. The machine A experiences a stall due to a data hazard every 5 instructions, and
the machine B experiences 3 stalls every 8 instructions. Also, branches constitute 30% of the
instructions, and the misprediction rate for both machines is 5%.
a) Which machine is faster, and by how much, when only considering data hazards?
b) If the branch misprediction penalty for machine A and B is 2 and 5 cycles respectively, what are the
CPIs of each machine?
Assume that machine A is a 5 - stage 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 Programming Questions!