Instruction Format:
The following instructions are to be implemented. Theinstruction format: 4-bit opcode; 4-bit register field (orimmediate).
Opcode
Rd
Rs
Rt / Imm
sub Rd, Rs,Rt opcode 0001,performs Reg[Rd] <- Reg[Rs] – Reg[Rt]
Or Rd, Rs,Rt opcode 0011,performs Reg[Rd] <- Reg[Rs] or Reg[Rt]
Lw Rd, Rs opcode 0100, performs Reg[Rd] < -Mem[Reg[Rs]] #Note: Rt notused
Sw Rd, Rs opcode 0101, performs Mem[Reg[Rs]] <- Reg[Rd] #Note: Rt notused
Beq Rd, Rs,L opcode 0110, performs if (Reg[Rd] == Reg[Rs])PC<-PC+sign-ext(L)
else PC <- PC +1
Show the truth table (similar to Figure 4.18) to list values ofthe control signals for each of the instructions respectively.
Figure 4.18

Memto-Reg
PayPal Gateway not configured
PayPal Gateway not configured