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

Assume that machine A is a 5-stage pipeline with 1ns clock cycle, and machine B is a 10-stage pipeline with 0.6ns clock cycle. The machine A experiences a stall due to a data hazard every 5 instruc(ons, and the machine B experiences 3 stalls every 8 instruc(ons. Also, branches cons(tute 30% of the instruc(ons, and the mispredic(on rate for both machines is 5%. a) Which machine is faster, and by how much, when only considering data hazards? b) If the branch mispredic(on penalty for machine A and B is 2 and 5 cycles respec(vely, what are the CPIs of each machine?

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!