Draw Pipeline diagram to execute below set of instructions in pipelined architecture? How many cycles both cases take to complete below set of instructions? Assume each stage takes 1 clock cycle. It is a 5-stage pipeline.
- If there is no operand forwarding.
- If there is operand forwarding.
LOAD R2, 0(R1)
LOAD R3, 4(R1)
LOAD R5, 8(R1)
ADD R4,R2,R3
STORE R4, 12(R1)
ADD R6, R2,R5
STORE R6,16(R1)