Answered step by step
Verified Expert Solution
Link Copied!

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!!

image text in transcribed

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 rd

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

2. What efforts are countries making to reverse the brain drain?

Answered: 1 week ago