Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4) Consider the instruction lw which has the format: lw $rt, offset($rs). The instruction loads the contents the memory address pointed to by $rs+offset into

4) Consider the instruction lw which has the format: lw $rt, offset($rs). The instruction loads the contents the memory address pointed to by $rs+offset into the register $rt.

i. Provide an informal RTL (register transfer language) describing the instruction semantics

ii. Explain the way that the instruction is mapped into Figure 4.24from the book by Patterson (below).

image text in transcribed

Shif Jump address (31- left 2 Instruction (25-0 26 28 PC+4131-28 Add ALU RegDst Shift Mom Read Mem Intruction 31-26 Control RegWrite register 1 Road egister 2 nstruction 25-211Road address nstruction po-16] |Road -data 1 Zero LU ALUss da Instruction 31-0 Instruction Instucon (15-11 memory resul register data 2 Wite data Registers data memory 16 sign Sign- 32 extend Instruction [15-0 ALU control Instruction (5-01 FIGURE 4.24 The simple control and datapath are extended to handle the jump instruction. An additional multiplexor (at the upper right) is used to choose between the jump target and either the branch target or the sequential instruction following this one. This multiplexor is controlled by the jump control signal. The jump target address is obtained by shifting the lower 26 bits of the jump instruction left 2 bits, effectively adding 00 as the low-order bits, and then concatenating the upper 4 bits of PC +4 as the high-order bits, thus yielding a 32-bit address

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions