Skip to content

ISRO Scientist/Engineer CSE 2017Computer Organization and Architecture › Pipelining

ISRO Scientist/Engineer CSE 2017 PYQ: For a pipelined CPU with a single ALU, consider the following situations The ${j+1}^{st}$ instruction uses…

For a pipelined CPU with a single ALU, consider the following situations

  1. The ${j+1}^{st}$ instruction uses the result of the $j^{th}$ instruction as an operand

  2. The execution of a conditional jump instruction

  3. The $j^{th}$ and ${j+1}^{st}$ instructions require the ALU at the same time.

Which of the above can cause a hazard

  1. A
    I and II only
  2. B
    II and III only
  3. C
    III only
  4. D
    All the three
    Correct answer

Answer

(D) All the three

Approach

Identify the type of hazard each situation represents in a pipelined CPU with a single ALU. Situation I is a data hazard (RAW), Situation II is a control hazard, and Situation III is a structural hazard. Since all three can cause hazards, the correct option is D.

Reviewed by ISRO IQ Editorial Team.