422 views
1 votes
1 votes
In an instruction pipeline of 10 ns clock, the memory instruction takes 2 stalls while branch related instruction takes 3 stalls. If the frequency of memory related and branch instructions is 20% and 30% respectively. What is the average time taken by an instruction?

a) 11.3 ns   b) 13 ns

c) 23 ns d) 13.3 ns

2 Answers

Best answer
4 votes
4 votes
ans would be like this:

only memory=20%

only Branch=30%

so 1+ 20%*2 + 30% * 3

1+0.4 + 0.9 =2.3 clocksp=2.3 * 10ns =23ns

PS:here no relation has been given between memory related and branch related instructions

so i have not consider it.
selected by

Related questions

2 votes
2 votes
1 answer
2
Parshu gate asked Nov 18, 2017
1,400 views
How to slove this type of problems? How to understand the problem?Please help me out. Given answer is 31
2 votes
2 votes
1 answer
3
2 votes
2 votes
1 answer
4
focus _GATE asked Oct 5, 2015
470 views