Answered step by step
Verified Expert Solution
Question
1 Approved Answer
We have the MIPS instruction: sw $7, 20($6). The question asks us to label register $6 and register $7 as either read register 1, read
We have the MIPS instruction: sw $7, 20($6). The question asks us to label register $6 and register $7 as either "read register 1", "read register 2", or "write register". There is a little explenation of sw at bottom of the image. Thanks!!
Looking at the block diagram match $6 and $7 with "Read register 1," "Read register 2" or "Write register." $6 Write register $7 Read register 1 This diagram is the simple 1 cycle-per-instruction 32-bit MIPS architecture we discussed in class. IMI Add Add result Shift left 2 RegDst Branch MemRead MemtoRe AL Instruction 131-2 Control emWri ALUSrc ReqWrite Instruction [25-2 Read Read PCI. address register 1 Read nstruction [20 Readdata 1 register 2 Write Read 31-0] ALU ALU InstructionInstruction [15register resultAddressHead memory data Registers Write Data data Instruction [15-0 16 Sign- 32 ALU control extend Instruction [5-0 For the following questions, assume that PC-0x12343210, where the encoding for the MIPS instruction sw $7,20($6) is stored As a review, the MIPS sw $ra, D($rd) instruction stores the contents of register ra to memory location D(Srd); like x86-64, the value of D(Srd) is determined by adding the displacement value D to the contents of register rdStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started