Question: 1. With the above incomplete pipeline design, the assembler should insert nop instructions to execute the sequence of instructions with data and/or control hazards correctly.

1. With the above incomplete pipeline design, the assembler should insert nop instructions to execute the sequence of instructions with data and/or control hazards correctly.

a)

b)

[6 points] Explain where and how many minimal nop instructions the assembler should insert in order to run the following sequence of instructions correctly.

add $t1, $t2, $t3 #1 sub $t2, $t3, $t4 #2 lw $t3, 0($t1) #3 sw $t1, 8($t5) #4 add $t2, $t1, $t2 #5 

[6 points] Explain where and how many minimal nop instructions the assembler should insert in order to run the following sequence of instructions correctly.

 add $t1, $t2, $t3 #1 sub $t2, $t3, $t4 #2 beq $t3, $zero, L1 #3 sw $t4, 8($t5) #4 

L1: sw

$t4, 16($t5) #5 1. With the above incomplete pipeline design, the assembler should insert nop

1. With the above incomplete pipeline design, the assembler should insert nop instructions to execute the sequence of instructions with data and/or control hazards correctly [6 points] Explain where and how many minimal nop instructions the assembler should insert in order to run the following sequence of instructions correctly a) #1 #2 #3 #4 #5 add $tl, $t2, $t.3 sub $t2, ?t3, $t 4 $t3, 0 ($t1) $tl, 8 ($t5) SW add $t2, $tl, $t2 b) [6 points] Explain where and how many minimal nop instructions the assembler should insert in order to run the following sequence of instructions correctly sub $t2, $t3, $t4 beq St3, $zero, L1 SW #1 #2 #3 $t4, 8 ($t5) $t4, 16 ($t5) L Sw #5

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!