Computer organization quiz
Quiz 6
1. The MIPS processor has an ALU unit shown in the following figure. There are three-bits control signals sent to ALU circuit generated by the ALU decoder within the control unit, as listed in the following table.
Figure 1. ALU Unit
What are the three-bits control signal values for implementing the instruction “lw”?
lw $rt, immed($rs) # load word from memory address [$rs]+immed
What are the three-bits control signal values for implementing the instruction “addi”?
addi $s0, $s0, -1 # [$s0]= [$s0]-1
+ 2 01
A B
Cout
Y
3
01
F2
F1:0
[N-1] S
NN
N
N
N NNN
N
2
Z ero
E xtend
+
2
01
AB
C
out
Y
3
0
1
F
2
F
1:0
[N-1]
S
NN
N
N
NNNN
N
2
Z
e
r
o
E
x
t
e
n
d