In typical RISC ISA, delayed branch executes which instruction irrespective of…

In typical RISC ISA, delayed branch executes which instruction irrespective of whether the branch condition is true or false?

Answer: B. Instruction immediately following the branch conditionThis delayed branch allows one or more instructions following the branch to be executed in the pipeline whether the branch is taken or not. In order to avoid…

  1. A.

    It waits till the branch condition is evaluated

  2. B.

    Instruction immediately following the branch condition

  3. C.

    Instruction that belongs to a different a subroutine

  4. D.

    Instruction immediately preceding the branch condition

Attempted by 30 students.

Show answer & explanation

Correct answer: B

This delayed branch allows one or more instructions following the branch to be executed in the pipeline whether the branch is taken or not. In order to avoid the pipeline delay due to conditional branch instruction, a suitable instruction is placed below the conditional branch instruction such that the instruction will be executed irrespective of whether branch is taken or not and won't affect the program behaviour. The delayed branch means that the instruction following the branch is always executed before the PC is modified to perform the branch. In delayed branching solution of control hazards, Instruction immediately following the branch instruction is executed.

Explore the full course: Isro

Loading lesson…