edited by
9,370 views
9 votes
9 votes
Consider a $3$-stage pipelined processor having a delay of $10 \mathrm{~ns}$ (nanoseconds), $20 \mathrm{~ns}$, and $14 \mathrm{~ns},$ for the first, second, and the third stages, respectively. Assume that there is no other delay and the processor does not suffer from any pipeline hazards. Also assume that one instruction is fetched every cycle.

The total execution time for executing $100$ instructions on this processor is _____________ $\mathrm{ns}.$
edited by

4 Answers

Best answer
10 votes
10 votes
Given,

delays = $10 ns, 20ns, 14ns$

total instruction (n) = $100$

We take pipeline delay as $t_p = max(10, 20, 14) = 20$

number of stages ($k$) $ = 3$

So,

Total execution time $ = (k + (n – 1)) \times t_p$

$\implies (3 + 100- 1) \times 20 ns$

$\implies 2040ns$
selected by
4 votes
4 votes

For the given pipeline system:

  • Total number of stages $(k)=3$
  • Total number of instructions, $(n)=100$
  • Total delay ($t_p) = \max(\text{stage delay})$
    • $\implies t_p = \max (10,20,14) \ ns$
    • $\implies t_p =20 \;ns$
  • $ET_{p} = [(k+(n-1))*t_p]$

    $\implies ET_p= [(3+(100-1))*20]\;ns$

    $\implies ET_p= (3+99)*20\;ns$

    $\implies ET_{pipeline}=2040\;ns$

    $\therefore$ To execute $100$ instructions in the given pipeline $2040\;ns$ time is required.

Ref: GATE CSE 2021 Set 1 | Question: 53

0 votes
0 votes

For the given pipeline system:

  • Total number of stages $(k)=3$
  • Total number of instructions, $(n)=100$
  • Total delay ($t_p) = \max(\text{stage delay})$
    • $\implies t_p = \max (10,20,14) \ ns$
    • $\implies t_p =20 \;ns$
  • $ET_{p} = [(k+(n-1))*t_p]$

    $\implies ET_p= [(3+(100-1))*20]\;ns$

    $\implies ET_p= (3+99)*20\;ns$

    $\implies ET_{pipeline}=2040\;ns$

    $\therefore$ To execute $100$ instructions in the given pipeline $2040\;ns$ time is required.

Ref: GATE CSE 2021 Set 1 | Question: 53

0 votes
0 votes
Ans = 2040 ns.

Here we have to calculate total execution time for executing 100 instructions on the processor which is 2040 ns.
Answer:

Related questions

13 votes
13 votes
4 answers
2
5 votes
5 votes
2 answers
4
admin asked Feb 15, 2023
8,813 views
The value of the definite integral \[\int_{-3}^{3} \int_{-2}^{2} \int_{-1}^{1}\left(4 x^{2} y-z^{3}\right) \mathrm{d} z \mathrm{~d} y \mathrm{~d} x\]is _________. (Rounde...