edited by
542 views
0 votes
0 votes
Consider a 5 stage pipeline that allows overlapping of all instructions except branch instructions. The target of branch instructions is not available until the branch instruction is completed. Let each stage delay is 20 ns and there are 30% branch instructions.
What is the performance gain of pipeline over non-pipeline
edited by

1 Answer

0 votes
0 votes
CPI=1+0.3*4(stall due to branch instruction)=1.12

instruction execution time in non pipeline processor=20*3=100ns

instruction execution time in non pipeline processor=1.12*20=22.4ns;

speedup=100/22.4=4.46

Related questions

0 votes
0 votes
2 answers
1
0 votes
0 votes
1 answer
4