retagged by
356 views

1 Answer

Best answer
1 votes
1 votes

if every instruction take 1 cycle and there are no conflict then total cycles taken will be 

1*5+(200-1)*1 = 204 cycles

since operations takes different cycles then the stalls will be

for ADD 1 cycles ---- stalls = 0 

for MUL 3 cycles ---- stalls = 2

for DIV 5 cycles ----stalls   = 4

total stalls suffered = 100*0 + 25*4+ 75*2= 250

total no of cycles required for execution of 200 instruction= 204+250 = 454 cycles.

see reference: https://gateoverflow.in/204125/gate2018-50

let me know if there is any mistake in the solution provided.

selected by

Related questions

0 votes
0 votes
0 answers
1
saif asked Nov 24, 2018
395 views
According to me. the Solution should beCorrect me!! where I am wrong.. please
0 votes
0 votes
0 answers
2
0 votes
0 votes
1 answer
3