Question: Consider the following lines of MIPS code: I 1 : add $t 3 , $t 1 , $t 2 I 2 : or $t 5
Consider the following lines of MIPS code:
I: add $t $t $t
I: or $t $t $t
I: add $t $t $t
I: lw $t$t
I: sw $t$t
I: lw $t$t
a Find all the data dependencies and their types give instructions and the registers involved
b List the hazards.
c Add NOP instructions to eliminate the hazards identified in b
d Assuming a clock period of ps what is the total time to execute the instruction sequence
resulting from c
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
