For a pipelines CPU with a single ALU, consider the following: A. The j + 1st…

2017

For a pipelines CPU with a single ALU, consider the following: A. The j + 1st instruction uses the result of jth instruction as an operand B. Conditional jump instruction C. jth and j + 1st instructions require ALU at the same time Which one of the above causes a hazard?

  1. A.

    A and B only

  2. B.

    B and C only

  3. C.

    B only

  4. D.

    A , B and C

Attempted by 38 students.

Show answer & explanation

Correct answer: D

In a pipelined CPU with a single ALU, all three scenarios cause hazards. A represents a data hazard (Read After Write dependency). B causes a control hazard due to branch uncertainty. C creates a structural hazard because both instructions need the ALU simultaneously.

A video solution is available for this question — log in and enroll to watch it.

Explore the full course: Isro