Question: Problem 3 ( 1 2 pts ) Consider the following assembly language code: 1 0 : Iw $R 9 , 4 , ( $R 1
Problem pts
Consider the following assembly language code:
: Iw $R$R
LDW R MEMR;
I: add $R$R$R
ADD R R R:
: Iw $R$R
LDW R MEMR;
: add $R$R$R
ADD R R R;
: Iw $RO$R
NLDW R MEM R ;
: sub $R$R$R
SUB R R R;
: and $R$R$R
AND R R & R;
I: Iw $R$R
LDW R MEMR:
I: SW $R$R
STW MEMR R;
: add $R$R$R
ADD R R R: data
a What is the final execution time of the code?
tableTOTTTTSTTTTTTTTTT
There is a total of cycles
b Verify that the program takes number of cycles found in the previous part speedups:
i Using a singlecycled processor.
ii Using a pipelined processor.
tableIFIDEXMEM,WBtablePipelineRegister ps ps ps ps
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
