retagged by
170 views
0 votes
0 votes
#Pipelining

Please clear my doubt.

In a 5 stage pipelining (IF, ID, EX, MA, WB)

there are 5 instruction given.

Instruction 1 : R2 ← R0 + R1;

Instruction 2 : R1 ← R2 - R1;

Instruction 3 : R0 ← R2 - R0;

Instruction 4 : R2 ← R1 * R0;

Instruction 5 : R3 ← R1 + R0;

MUL operation takes 3 cycle, other operation takes 1 cycle.

Given That, Operand Forwarding is  From EX to ID and WB to ID Used in the pipeline.

My understanding is whenever dependency is there b/w instruction, ID phase of Next instruction will occur after EX phase of previous Instruction.

It is correct ?
retagged by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
3