NOP instruction is a special instruction which doesn’t perform any operation in its execution phase. Consider the following sets of instructions which are generated by a compiler.
Assume a 5-stage pipeline with following stages
Instruction Fetch (IF), Instruction Decode (ID), EX(Execute), Memory(MEM), and Register Write (RW).
If each stage takes 2nsec time, The time required to execute S1 minus the time required to execute S2(in nano secs). Assume that there is no data forwarding support from the hardware.