Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Lab 2 . asm codes are here: #Lab 2 . data arrayOne: . byte 0 xaa, 0 x 2 2 , 0 xbb , 0
Labasm codes are here:
#Lab
data
arrayOne: byte xaa,xxbbx
text
li $sx
li $sx
la $sarrayOne
xori $s$sxaa
and $s$s$s
lb $t$s
sb $s$s
Part A: Single Cvcle Processor
Figure A: Single Cycle Processor Datapath
Run the given Labasm file on MARS simulator. Using the ToolsMIPS 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, ie store.
If the datapath does not cross through the label, mark it as
tableNoLabel,Value during cycle Value during cycle abcdefghijkmnpqrsRegDst,,Branch,,MemRead,,MemtoReg,,ALUOp,,MemWrite,,ALUSrc,,RegWr,,PCSrcZero,,
Step 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