Consider below sequence of instructions which are executed on a 5-stage…

Consider below sequence of instructions which are executed on a 5-stage pipeline having the stages Instruction Fetch (IF), Instruction Decode and operand fetch (ID), Execute (EX), Memory access (MA) and Write Back (WB).
Decoding of Instruction happens in 1st phase of clock cycle and Operand fetch happens in second phase of clock cycle. Writeback happens in first phase of clock cycle. Assume no operand forwarding is used, then the number of stalls in below given program is?

image.png

Attempted by 8 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…