in CO and Architecture retagged by
267 views
4 votes
4 votes
Consider a 5—stage pipeline processor used to execute 200 number of instructions and among those 100 instructions cause 3 stall cycles each. What is the total cycles required for these operation if CPI is not equal to one.
in CO and Architecture retagged by
by
267 views

1 comment

$(200+5-1) + (3*100) = 504$.

You can also try this by table filling

 

1234567….100101102103104105106107108109110111112…..500501502503504
I1FDEMW
I2FDEMW
I3FDEMW
.
.
I100FDEMW
I101$\phi$$\phi$$\phi$FDEMW
I102$\phi$$\phi$$\phi$FDEMW
.$\phi$$\phi$$\phi$
I200FDEMW


100 instructions with no stalls :

$5 + (100-1)* 1 = 104$ cycles

Next 100 with 3 stall cycles :

$108 + (100-1)*4  = 504$ cycles
 

3
3

Please log in or register to answer this question.

Related questions