Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Computer Architecture 1. Implement the following two proposed MIPS instructions

ID: 645768 • Letter: C

Question

Computer Architecture

1. Implement the following two proposed MIPS instructions by extending the MIPS datapath. Give the values for this instruction of RegWrite, PCSrc, RegDest, ALUSrc, MemRead, MemWrite, MemtoReg and any additional control signals you create. Also give the operation specified by ALUOp.

Computer Architecture 1. Implement the following two proposed MIPS instructions by extending the MIPS datapath. Give the values for this instruction of RegWrite, PCSrc, RegDest, ALUSrc, MemRead, MemWrite, MemtoReg and any additional control signals you create. Also give the operation specified by ALUOp. b- lwr Rd, Rs(Rt) : Rd= Mem[Rs+Rt]

Explanation / Answer

Control Signals :

1. RegDst = 0 => Register destination number for the Write register comes from the rt field (bits 20-16)

RegDst = 1 => Register destination number for the Write register comes from the rd field (bits 15-11)

2. RegWrite = 1 => The register on the Write register input is written with the data on the Write data input (at the next clock edge)

3. ALUSrc = 0 => The second ALU operand comes from Read data 2

ALUSrc = 1 => The second ALU operand comes from the signextension unit

4.PCSrc = 0 => The PC is replaced with PC+4 PCSrc = 1 => The PC is replaced with the branch target address

5. MemtoReg = 0 => The value fed to the register write data input comes from the ALU MemtoReg = 1 => The value fed to the register write data input comes from the data memory

6. MemRead = 1 => Read data memory

7. MemWrite = 1 => Write data memory

R-format instructions :

RegDst = 1

RegWrite = 1

ALUSrc = 0

Branch = 0

MemtoReg = 0

MemRead = 0

MemWrite = 0

ALUOp = 10

Branch Equal

RegDst = X

RegWrite = 0

ALUSrc = 0

Branch = 1

MemtoReg = X

MemRead = 0

MemWrite = 0

ALUOp = 01

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote