The MIPS lw instruction uses the I-format: a destination register is placed in the rt field, and a base register in the

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

The MIPS lw instruction uses the I-format: a destination register is placed in the rt field, and a base register in the

Post by answerhappygod »

The MIPS lw instruction uses the I-format: a destinationregister is placed in the rt field, and a base register in the rsfield and a 16-bit immediate address are used to calculate thememory address to be read.
(Since answers are already given, please explain)
I-format:
Referring to Figure, answer the following questions regardingpipeline execution of the lw instruction.
The Mips Lw Instruction Uses The I Format A Destination Register Is Placed In The Rt Field And A Base Register In The 1
The Mips Lw Instruction Uses The I Format A Destination Register Is Placed In The Rt Field And A Base Register In The 1 (72.83 KiB) Viewed 170 times
(1) Which should be the second input to the ALU?
A. Read register 2 ・ Sign-extended immediate
(2) Which should be the write register number?
A. Instruction (bits 20-16) ・ Instruction (bits 15-11)
(3) Where should the write data input come from?
A. ALU result ・ Read data from Data memory
(4) Referring to Figure 4.48 (p.360), answer the control valuesto be stored in ID/EX pipeline register when executing the lwinstruction.
The Mips Lw Instruction Uses The I Format A Destination Register Is Placed In The Rt Field And A Base Register In The 2
The Mips Lw Instruction Uses The I Format A Destination Register Is Placed In The Rt Field And A Base Register In The 2 (62.01 KiB) Viewed 170 times
PC 4 Address Add Instruction memory IF/ID Instruction Read register 1 Read register 2 Registers Write register Wate data Instruction (15-0) Instruction (20-16) RegWrite Instruction (15-11) 16 Road data 1 Read data 2 Sign- extend 32 ID/EX Shift left 2 ALUSIC SER 6 M AdgAdd result RegDst ALU control ALUOP Zero Add ALU resull EX/MEM Branch Address Wate data PCSrc MemWrite Data memory MemRoad Read data MEM/WB MomtoReg
A. Signal name RegDst ALUSrc: RegDst RegWrite ALUSrc 1 Effect when 0. Write register = rt field (bits 20:16) second ALU operand= register2 Write data = ALU result MemtoReg: RegWrite: None MemRead: None MemWrite: None MemRead MemWrite Memto Reg Effect when 1 Write register =rd field (bits 15:11) second ALU operand = immediate Write data comes from Data memory Write register is written. Data is read from Data memory. Data is written to Data memory.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply