Structural hazard: Example3
Machine with load hazard: Data references constitute 40% of the mix. Ideal CPI is 1. Clock rate is 1.05 of the machine without hazard. Which machine is faster, the one with hazard (machine A) or without the hazard (machine B)? Prove.
Solution: Hazard affects 40% of the B’s inst.
Average inst time for machine A: CPI * clock cycle time = 1 * x = 1.0x