edited by
8,304 views
21 votes
21 votes

We have two designs $D1$ and $D2$ for a synchronous pipeline processor. $D1$ has $5$ pipeline stages with execution times of $3$ nsec, $2$ nsec, $4$ nsec, $2$ nsec and $3$ nsec while the design $D2$ has $8$ pipeline stages each with $2$ nsec execution time How much time can be saved using design $D2$ over design $D1$ for executing $100$ instructions?

  1. $214$ nsec
  2. $202$ nsec
  3. $86$ nsec
  4. $-200$ nsec
edited by

3 Answers

Best answer
33 votes
33 votes
$(B)$ is the correct option for this question.

Execution time for Pipeline = $(K+n-1)*\text{execution_time}$   where $k$ = no of stages in pipeline, $n$ = no of instructions
Execution time = $\max$(all stages execution time)

$D_1 = (5+100-1)*4 = 416$

$D_2 = (8+100-1)*2 = 214$

Time saved using $D_2 = 416-214  =202$
edited by
0 votes
0 votes

Execution time for pipeline = (K + n - 1 ) $\times$ Tp

Where n = number of instruction , K = number of stages Tp =  pipelene time

For D1: Pipeline time = max(3,2,4,2,3) = 4nsec

For D1: Pipeline time = max(2,2,2,2,2,2,2,2) = 2nsec

Execution time for pipeline D1 = (5 + 100 - 1 ) $\times$ 4nseec = 416nsec

​​​​​​​Execution time for pipeline D2 = (8 + 100 - 1 ) $\times$ 2nseec = 214nsec

Time saved = D1- D2 = 416- 208 = 202

0 votes
0 votes
Total execution time = (k + n – 1) * maximum clock cycle

Where k = total number of stages and n = total number of instructions

 

For D1 :

Total execution time = (5 + 100 – 1) * 4 = 416

 

For D2 :

k = 8 and n = 100

Total execution time = (8 + 100 – 1) * 2 = 214

 

Thus, time saved using D2 over D1 = 416 – 214 =202.
option (B) is correct one
Answer:

Related questions

24 votes
24 votes
1 answer
3