"> (Answered) EEL 4768: Computer Architecture Homework 4 QUESTION 1. (10 points) Modify the single-cycle datapath by implementing the 'load word indexed'... - Tutorials Prime

Question Details

(Answered) EEL 4768: Computer Architecture Homework 4 QUESTION 1. (10 points) Modify the single-cycle datapath by implementing the 'load word indexed'...


EEL 4768: Computer Architecture Homework 4 QUESTION 1. (10 points) Modify the single-cycle datapath by implementing the 'load word indexed'...


Hello, I cannot seem to find a solution to this homework here./tutors-problems/Computer-Science/10352793-I-am-confused-as-to-how-to-solve-some-parts-of-this-homework-and-would/ Is there any way you can point me towards a solution? Thank you.EEL 4768: Computer Architecture

 

Homework 4

 

QUESTION 1.

 

(10 points)

 

Modify the single-cycle datapath by implementing the ‘load word indexed’ instruction (lwx). Below is the

 

syntax and the encoding. The instruction below reads the word from memory address (t1+t2) and stores it

 

in register t0.

 

lwx

 

$t0, ($t1 + $t2)

 

unique

 

t1

 

t2

 

t0

 

opcode

 

rs

 

rt

 

rd

 

shamt

 

funct

 

a)

 

Give the functional form of the instruction based on the register names.

 

b)

 

Give the functional form based on the instruction fields.

 

c)

 

Draw the changes on the datapath diagram.

 

d)

 

Give the values of the control signals.

 

QUESTION 2.

 

(10 points)

 

Repeat the question above for the ‘push’ instruction. Below is the syntax and the encoding. The

 

instruction below pushes register t0 on the stack. Notice that the rs field encodes register sp and that the

 

immediate value is equal to 4.

 

The stack in MIPS is a full descending stack. Therefore, in the push operation, the register is written to

 

memory address (sp-4), then the value of (sp-4) is written to register sp.

 

push

 

$t0

 

unique

 

sp

 

t0

 

4

 

opcode

 

rs

 

rt

 

immediate

 

QUESTION 3.

 

(10 points)

 

Repeat the question above for the ‘increment’ instruction (inc). Below is the syntax and the encoding. The

 

instruction below increments both registers t0 and t1 by 4. Notice that the immediate value in the

 

instruction is equal to 4.

 

inc

 

$t0, $t1

 

unique

 

t0

 

t1

 

4

 

opcode

 

rs

 

rt

 

immediate

 

-1-

 


Solution details:

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Jan 02, 2020

EXPERT

Tutor

ANSWER RATING

YES, THIS IS LEGAL

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • As a reference for in-depth understanding of the subject.
  • As a source of ideas / reasoning for your own research (if properly referenced)
  • For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

NEW ASSIGNMENT HELP?

Order New Solution. Quick Turnaround

Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.

WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.

Order Now
WP2Social Auto Publish Powered By : XYZScripts.com