In which of the above instructions is done writing in a register?
a) lw
b) bne
c) beq
d) sll
e) sw
f) add
I'm sure for d) and f) but I also think that a) and e) are correct. What do you think?
In which of the above instructions is done writing in a register?
a) lw
b) bne
c) beq
d) sll
e) sw
f) add
I'm sure for d) and f) but I also think that a) and e) are correct. What do you think?
So Think about the general 5 stage pipeline used in MIPS F,D,E,M,W. (fetch, decode, execute, memory, write)
lw -> you are LOADING something from memory into variable (ends in write) sw -> you are taking a variable and writing into memory (ends in write)