440 views
0 0 votes
Consider two machines M1 and M2. For both machines, all instructions except for mispredicted branches take one cycle. Mispredicted branches take one cycle plus an additional misprediction penalty.

 Machine A has a clock rate of 1.0 GHz and a misprediction penalty of 5 cycles.

  Machine B has a clock rate of 2.0 GHz and a misprediction penalty of 20 cycles.

 Branches are 25% of all instructions and 80% of branches are predicted correctly. Which of the following statement is correct?

 (a) Machine A is faster than Machine B

 (b) Machine B is faster than Machine A

 (c) Both are same

 (d) None of these

1 Answer

2 2 votes
Answer: opt b) Machine B is faster

Cycles required for A = 0.75*1+0.25*0.80*1+0.25*0.20*(1+5)=1.25

Cycles required for B=

0.75*1+0.25*0.80*1+0.25*0.20*(1+20)=2

Execution time = cycles / clock rate

Execution time of A=1.25/1 GHz =1.25 nsec

Execution time of B = 2/2 GHz = 1 nsec

Hence machine B is faster than machine A as execution time of B is less than A
Position:
Show:

Related questions

5 5 votes
3 3 answers
4.6k
4.6k views
Xylene asked Jun 6, 2017
4,649 views
I have a doubt regarding the implementation of BSA instruction. I read that BSA instruction can be implemented as :-T4:- m[AR] < PC; AR< AR+1T5:- PC< AR; SC< 0He...
3 3 votes
1 answers 1 answer
3.6k
3.6k views
jaswanth431 asked Sep 5, 2021
3,648 views
The instruction format is CMP R1, R2.How will the carry and zero flags we be modified after above instruction is executed? Case 1:R1< R2 Carry Flag = 1 Zero Flag = 0R1= R...
1 1 vote
1 1 answer
889
889 views
Na462 asked Dec 2, 2018
889 views
Assume that the base register contains 32856. The program counter is currently having a value of 25687 memory location. What is the branch address if the address field of...
0 0 votes
1 answers 1 answer
918
918 views
Na462 asked Nov 7, 2018
918 views