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:
I1: add $t3, $t1, $t2
I2: or $t5, $t3, $t4
I3: add $t2, $t6, $t3
I4: lw $t6,24($t3)
I5: sw $t6,12($t2)
I6: lw $t0,48($t6)
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 175 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 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!