A processor executes all non branch instructions in one cycl
A processor executes all non branch instructions in one cycle This processor implements branch prediction, which takes 2 cycles if the prediction is correct and 4 cycles if the prediction is incorrect. If conditional branch instructions occupy 15% of the instruction stream, and the probability of an incorrect branch prediction is 20%. what is the average number of cycles per instruction? 0 85 cycles 1 21 cycles 1 36 cycles 185 cycles
Solution
1.21 cycles for a processor executes all non-branch instructions is one cycle this processor implements branch prediction , which takes 2 cycles if predicit is correct and 4 cycles if predicite is incorrect
