retagged by
539 views
1 votes
1 votes
Consider a pipelined system with these $4$ phases:

FI –  Fetch instruction
DA – Decode and calculate address
FO – Fetch Operand
EX-  Execute instruction

Each phase requires one clock cycle. There were four instructions in the following program:

$\begin{array}{|l|l|}  \hline \text{Load } R1 & \leftarrow M[312] \\ \hline \text{ADD } R2 & \leftarrow R1 + M[313] \\ \hline \text{INC } R3 & \leftarrow R2+1 \\ \hline \text{Store } M[314] & \leftarrow R3 \\ \hline \end{array}$

If there exists pipeline hazards , then the number of clock cycles required to complete the above program  is _________
retagged by

1 Answer

Best answer
1 votes
1 votes
Clocks   1     2      3       4     5        6       7       8       9       10

Load     FI   DA    FO    EX

ADD           FI      DA   ----    FO     EX

INC                     FI     ----    DA     ----    FO     EX

Store                           ----    FI      -----   DA     ----      FO      EX

Total 10 clock cycles are required to complete those instructions.
selected by
Answer:

Related questions

0 votes
0 votes
2 answers
1
Bikram asked May 27, 2017
390 views
Consider a $5$ stage instruction pipeline which can implement the $4$ instructions $I1, \ I2, \ I3, \ I4$. Below table gives the number of clocks required per instruction...