Question: Consider the pipeline with 5 stages: IF , ID , EX , M and W . Assume that each stage requires one clock cycle. Show

Consider the pipeline with 5 stages: IF, ID, EX, M and W. Assume that each stage requires one
clock cycle. Show how the following program segment for adding 2 arrays is processed and compare the clock cycles needed in non-pipeline system with pipelined system when result of the branch instruction l.e. content of is available after WB stage. LOAD R4 #400 L1: LOAD R1,0(R4); LOAD R2,400(R4);
ADD R3, R1, R2:
STORE R3,0(R4)
SUB R4, R4, #4;
BNEZ R4, L1;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!