Question: Question 5 : a . Consider the following assembly language code: IO: ADD R 4 = R 1 + RO; 1 1 : SUB R

Question 5: a. Consider the following assembly language code: IO: ADD R4= R1+ RO; 11: SUB R9- R3- R4; 12: ADD R4- R5+ R6; 13: LOW R2 MEM[R3+100): 14: LDW R2- MEM [R2+0); 15: STW MEMR4+100]- R2; 16: AND R2- R2 & R1; 17: BEQ R9- Rl, Target; IB: AND R9- R96 R1; Consider a pipeline with forwarding, hazard detection, and I delay slot for branches. The pipeline is the typical 5-stage IF, ID, EX, MEM, WB MIPS design. For the above code complete the pipeline diagram below instructions on the left, cycles on top) for the code. Insert the characters IF, ID, EX, MEM, WB for each instruction in the boxes. Assume that there two levels of bypassing, that the second half of the decode stage performs a read of source registers, and that the first half of the write-back stage writes to the register file. Label all data stalls (Draw an X in the box). Label all data forwards that the forwarding unit detects King Saud University College of Computer and Information Sciences Computer Engineering Department 3x Semester II,1443 H CEN316, Computer Architecture Homework 4(arrow between the stages handing off the data and the stages receiving the data). What is the final execution time of the code? Cycles 01234567891011121413 IO 11121314 IS 161718

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!