1. With the above incomplete pipeline design, the assembler should insert nop in
ID: 3698524 • Letter: 1
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.
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.
[6 points] Explain where and how many minimal nop instructions the assembler should insert in order to run the following sequence of instructions correctly.
L1: sw
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 #5Explanation / Answer
Answer is as follows :
The instructions after adding NOP instructions are as follows :
a)
The two nop instructions are used after lw and sw instruction are 2 because it takes more time to execute because of load and store.
So total of the 4 NOP instructions are used in given sequence of instructions.
b)
So in this only 3 NOP instructions are used to run the program correctly.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.