Question: 1 . LW $t 0 , 0 ( $s 0 ) ; load a [ 0 ] 2 . ADDI $s 1 , zero, 2
LW $t$s ; load a
ADDI $s zero, ; $s
ADDI $s $s ; increment memory address
LOOP: ADDI $t $t ; ai ai
BEQ $t $s JMARK ; Branch b ; if $t goto JMARK
ADDI $t $t ; aiai
JMARK: SW $t$s ; store ai
ADDI $t $t ; increment loop counter
ADDI $s $s ; increment memory address
ADDI $t $t ; ai ai
BNEQ $t $s Loop ; Branch b ; if $t $s goto Loop
with this code,
c Assuming there is no forwarding, fill the table below. add as many rows as needed
d Assuming there is forwarding, fill the table below. add as many rows as needed begintabularcllllll
begintabularc
Instruction
Number
endtabular & IF & ID & EX & MEM & WB &
hline & & & & & &
hline & & & & & &
hlineldots & & & & & &
hlineldots & & & & & &
hline
endtabular
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
