Course Solutions Uncategorized (Solved) : Instruction Format Following Instructions Implemented Instruction Format 4 Bit Opcode 4 Bi Q29563792 . . . .

(Solved) : Instruction Format Following Instructions Implemented Instruction Format 4 Bit Opcode 4 Bi Q29563792 . . . .

 

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 Mem-Mem- Instruction RegDst ALUSrc Reg Write Read Write Branch ALUOp1 ALUOpo 0 0 0 0 0 0 1? SW beq 0 0 0 0 0 0 0 0 0 0

Memto-Reg

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post