Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab 2 . asm codes are here: #Lab 2 . data arrayOne: . byte 0 xaa, 0 x 2 2 , 0 xbb , 0

Lab2.asm codes are here:
#Lab 2
.data
arrayOne: .byte 0xaa,0x22,0xbb,0x44
.text
li $s2,0x3344
li $s3,0x55
la $s5,arrayOne
xori $s1,$s2,0xaa55
and $s4,$s1,$s3
lb $t1,2($s5)
sb $s4,1($s5)
Part A: Single Cvcle Processor
Figure A: Single Cycle Processor Datapath
Run the given Lab2.asm file on MARS simulator. Using the Tools->MIPS X Ray, you would be able to see the datapaths of the instructions. Based on the above figure, what will be the values of the followings when the following instructions are executed:
Hint:
Identify the instruction during the specified cycle.
Identify the datapath of the identified instruction, then determine the values of the labels for that datapath.
The datapath follows the instruction class datapath, i.e.,RI??Jload? store.
If the datapath does not cross through the label, mark it as 'x'.
\table[[No.,Label,Value during cycle 5,Value during cycle 7],[1,a,,],[2,b,,],[3,c,,],[4,d,,],[5,e,,],[6,f,,],[7,g,,],[8,h,,],[9,i,,],[10,j,,],[11,k,,],[12,m,,],[13,n,,],[14,p,,],[15,q,,],[16,r,,],[17,s,,],[18,RegDst,,],[19,Branch,,],[20,MemRead,,],[21,MemtoReg,,],[22,ALUOp,,],[23,MemWrite,,],[24,ALUSrc,,],[25,RegWr,,],[26,PCSrc,,],[27,Zero,,]]
image text in transcribed

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_2

Step: 3

blur-text-image_3

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 Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

=+a) Make a bar chart using counts on the y-axis.

Answered: 1 week ago