edited by
8,762 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

9.4k
views
5 answers
22 votes
Ishrat Jahan asked Nov 3, 2014
9,403 views
Consider a $2$-way set associative cache memory with $4$ sets and total $8$ cache blocks $(0-7)$ and a main memory with $128$ blocks $(0-127)$. What memory blocks will be present in the ... 0$ $5$ $7$ $9$ $16$ $55$3$ $5$ $7$ $9$ $16$ $55$
9.8k
views
2 answers
31 votes
Ishrat Jahan asked Nov 3, 2014
9,755 views
An instruction set of a processor has $125$ signals which can be divided into $5$ groups of mutually exclusive signals as follows:Group $1$ $:$ ... $103$22$55$
6.4k
views
1 answers
25 votes
Ishrat Jahan asked Nov 3, 2014
6,403 views
A hardwired CPU uses $10$ control signals $S_1$ to $S_{10}$, in various time steps $T_1$ to $T_5$, to implement $4$ instructions $I_1$ to $I_4$ ...
15.4k
views
7 answers
49 votes
Ishrat Jahan asked Nov 3, 2014
15,442 views
Consider a simple graph with unit edge costs. Each node in the graph represents a router. Each node maintains a routing table indicating the next hop router to be used to relay a ... $>100$ but finite$\infty$3$>3$ and $\leq 100$