Question: Problem 3 ( 1 2 pts ) Consider the following assembly language code: 1 0 : Iw $R 9 , 4 , ( $R 1

Problem 3(12 pts)
Consider the following assembly language code:
10: Iw $R9,4,($R1)
// LDW R9- MEM[R1+4];
I1: add $R3,$R4,$R9
//ADD R3= R4+ R9:
12: Iw $R1,100($R3)
/LDW R1- MEM[R3+100];
13: add $R4,$R1,$R0
//ADD R4= R1+ R0;
14: Iw $R1,O($R3)
NLDW R1= MEM R 3+0];
15: sub $R3,$R1,$R4
//SUB R3= R1- R4;
16: and $R9,$R9,$R7
//AND R9- R9 & R7;
I7: Iw $R2,100($R4)
//LDW R2= MEM[R4+100]:
I8: SW $R4,100($R2)
//STW MEM[R2+100]- R4;
19: add $R1,$R5,$R4
//ADD R1= R5+ R4: data).
a) What is the final execution time of the code?
\table[[,TO,T1,T2,T3,T4,TS,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16,T17],[10,,,,,,,,,,,,,,,,,,],[11,,,,,,,,,,,,,,,,,,],[12,,,,,,,,,,,,,,,,,,],[13,,,,,,,,,,,,,,,,,,],[14,,,,,,,,,,,,,,,,,,],[15,,,,,,,,,,,,,,,,,,],[16,,,,,,,,,,,,,,,,,,],[17,,,,,,,,,,,,,,,,,,],[18,,,,,,,,,,,,,,,,,,],[19,,,,,,,,,,,,,,,,,,]]
There is a total of cycles
b) Verify that the program takes number of cycles found in the previous part speedups:
i) Using a single-cycled processor.
ii) Using a pipelined processor.
\table[[IF,ID,EX,MEM,WB,\table[[Pipeline],[Register]]],[45 ps,50 ps,35 ps,65 ps,30p5,15p5
 Problem 3(12 pts) Consider the following assembly language code: 10: Iw

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 Databases Questions!