Op | RegDst |
RegWrite |
ExtOp |
ALUSrc |
Beq |
Bne |
J |
MemRead |
MemWrite |
MemtoReg |
|
---|---|---|---|---|---|---|---|---|---|---|---|
addi |
0 (rt ) |
1 | 1 (sign) | 1 (Imm) | 0 | 0 | 0 | 0 | 0 | 0 | |
slti |
0 (rt ) |
1 | 1 (sign) | 1 (Imm) | 0 | 0 | 0 | 0 | 0 | 0 | |
andi |
0 (rt ) |
1 | 0 (zero) | 1 (Imm) | 0 | 0 | 0 | 0 | 0 | 0 | |
ori |
0 (rt ) |
1 | 0 (zero) | 1 (Imm) | 0 | 0 | 0 | 0 | 0 | 0 | |
xori |
0 (rt ) |
1 | 0 (zero) | 1 (Imm) | 0 | 0 | 0 | 0 | 0 | 0 | |
sw |
x | 0 | 1 (sign) | 1 (Imm) | 0 | 0 | 0 | 0 | 1 | x | |
bne |
x | 0 | x | 0 (BusB ) |
0 | 1 | 0 | 0 | 0 | x | |
j |
x | 0 | x | x | 0 | 0 | 1 | 0 | 0 | x |
add
, sub
, AND
, OR
, and slt
.
rs
and rt
, and the destination register is rd
; this defines how the signals ALUSrc
and RegDst
are set.
RegWrite
=1).
lw
and sw
,
ALUSrc
field is set to perform the address calculation.
MemRead
and MemWrite
are set to perform the memory access.
RegDst
and RegWrite
are set for a load to cause the result to be stored into the rt
register.
rs
and rt
registers to the ALU.
MemtoReg
and RegDst
fields are irrelevant when the RegWrite
signal is 0.
Thus, the entry MemtoReg
in the last four rows of the table is replaced with X
for “don’t care.”
You are going to jump down from that ledge? Are you out of your gourd (crazy)? |