edited by
10,321 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

8.4k
views
2 answers
11 votes
admin asked Feb 15, 2023
8,361 views
A keyboard connected to a computer is used at a rate of $1$ keystroke per second. The computer system polls the keyboard every $10 \mathrm{~ms}$ (milli seconds) ... is _____________. (Rounded off to one decimal place)
13.6k
views
4 answers
14 votes
admin asked Feb 15, 2023
13,624 views
An $8$-way set associative cache of size $64 \mathrm{~KB} \;(1 \mathrm{~KB}=1024\; \text{bytes})$ is used in a system with $32$-bit address. The address ... $\text{BLOCK OFFSET.}$The number of bits in the $\text{TAG}$ is ___________.
14.1k
views
4 answers
9 votes
admin asked Feb 15, 2023
14,059 views
Let $A$ be the adjacency matrix of the graph with vertices $\{1,2,3,4,5\}.$Let $\lambda_{1}, \lambda_{2}, \lambda_{3}, \lambda_{4}$ ... The value of $\lambda_{1}+\lambda_{2}+\lambda_{3}+\lambda_{4}+\lambda_{5}=$____________
9.7k
views
2 answers
5 votes
admin asked Feb 15, 2023
9,685 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 _________. (Rounded off to the nearest integer)