Question: Problem 2 . ( 2 0 points ) We know the format of lw - format instruction: 1 0 1 0 1 1 ss ssst

Problem 2.(20 points)
We know the format of lw-format instruction:
101011ss ssst tttt IIII IIII IIII IIII sw rt, I (rs)
We know the format ofbeqinstruction:
000100ss ssst tttt iiii iiii iiii iiii beq rs,rt,I
The format can also be presented as follows:
Processor tries to run instruction sw$6,8($5), please answer the following question:
Theinstructionsw$6,8($5)allocatesat memory address0x00400018.
The data memory has the following structure:
data memory
Memory
Data
0x 00100010
0x11111111
0x 00100014
0x 22222222
0x 00100018
0x 33333333
The data in $5 is decimal 0x00100014.
The data in $6 is 10.
Given the Datapath as below. Please answer the following question
1) Please answer the following question. (10 points)
When sw $6,8($5) is executed,
What is the data on wire A($rs)(5 bit Binary):0b00101
What is the data on wire B($rt)(5 bit Binary):0b00110
What is the data on wire C(8 digit hex): 0x 0010001C
What is the data on wire F(4 digit Hex):0x000A
What is the data on pin MemWrite(1 bit binary): _1__
What is the data on pin RegWrite(1 bit binary): ___
_______________________________________________________
2) Instruction beq $2,$3,0x is allocated at memory address 0x00400010,
The data in $2 is decimal 20
The data in $3 is decimal 20
The data on wire E is 0x 00400020
Please answer the following question (10 points)
What's the data on wire F (4 digit hex): 0x 0003
What's the data on pin MemRead(1 bit binary): 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!