5-Stage Pipeline Diagram for given set of instructions is given below. From the table we get to know that given code snippet need 14 clock cycles to execute with 5 stage pipelines without bypassing technique.
Option: (d)
Explanation:
If there is hazard on one instruction immediately after load/store or memory instructions then there is more delay than usual. So, we use two stalls for hazard present immediately after load instruction i.e. instruction 2.
- IF denotes fetch instruction.
- ID denotes Decode instruction .
- EX for execution and MEM for memory-based Operations.
- WB foe register read/Write operations used for stall ir delay.