We know the format of beq instruction: 0001 00ss ssst tttt The format can also be presented as follows: 100011 rs rt Load Word 31:26 25:21 20:16 Branch 000100 rs rt 31:26 25:21 20:16 15:0 15:0 beq rs,rt,l

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

We know the format of Iw-format instruction:
1000
11ss
ssst
tttt
IIII
We know the format of beq instruction:
0001
00ss
ssst
tttt
The format can also be presented as follows:
100011 rs
rt
I
Load
Word
31:26 25:21 20:16
15:0
Branch
000100 rs
rt
I
31:26 25:21 20:16
15:0
Processor try to run instruction lw $6,4($5), please answer the following question:
The instruction /w $6,4($5) allocates at memory address 0x00400018.
The data memory has the following structure:
data memory
Memory Data
0x 0010 0010 0x1111 1111
0x 0010 0014 0x 2222 2222
0x 0010 0018 0x 3333 3333
The data in $5 is decimal 0x00100014.
The data in $6 is 0.
Given the datapath as below. Please answer the following question
Add
PC
Read
address
Instruction
[31:0]
Instruction
memory
IIII
A
Instruction [25:21]
Instruction [20:16]
Instruction [15:11]
RegDst
Instruction [15:0] F
IIII
1/₂
IIII
iiii
RegWrite
Read
register 1
Read
data 1
Read
register 2
Write
Read
register data 2
Write
data Registers
16
Instruction [5:0]
12
1) Please answer the following question.
When Iw $6,4($5) is executed,
What is the data on wire A($rs)(5 bit Binary): (
What is the data on wire B($rt)(5 bit Binary):
What is the data on wire C( 8 digit hex): Ox
What is the data on wire D(8 digit Hex):Ox
What is the data on pin MemWrite(1 bit binary):
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 0040 0018
Please answer the following question
What's the data on wire F (4 digit hex): Ox
What's the data on pin MemRead(1 bit binary):
32
Sign-
extend
Iw rt, I (rs)
beq rs,rt,l
Shift
left 2
ALUSrc
OMUXL
ALU
Addresult
Zero
ALU ALU
result
ALU
control
ALUOP
PCSrc
MEX
MemWrite
Read
data
Address
Data
Write memory
data
MemRead
MemtoReg
TMUXO
Transcribed Image Text:We know the format of Iw-format instruction: 1000 11ss ssst tttt IIII We know the format of beq instruction: 0001 00ss ssst tttt The format can also be presented as follows: 100011 rs rt I Load Word 31:26 25:21 20:16 15:0 Branch 000100 rs rt I 31:26 25:21 20:16 15:0 Processor try to run instruction lw $6,4($5), please answer the following question: The instruction /w $6,4($5) allocates at memory address 0x00400018. The data memory has the following structure: data memory Memory Data 0x 0010 0010 0x1111 1111 0x 0010 0014 0x 2222 2222 0x 0010 0018 0x 3333 3333 The data in $5 is decimal 0x00100014. The data in $6 is 0. Given the datapath as below. Please answer the following question Add PC Read address Instruction [31:0] Instruction memory IIII A Instruction [25:21] Instruction [20:16] Instruction [15:11] RegDst Instruction [15:0] F IIII 1/₂ IIII iiii RegWrite Read register 1 Read data 1 Read register 2 Write Read register data 2 Write data Registers 16 Instruction [5:0] 12 1) Please answer the following question. When Iw $6,4($5) is executed, What is the data on wire A($rs)(5 bit Binary): ( What is the data on wire B($rt)(5 bit Binary): What is the data on wire C( 8 digit hex): Ox What is the data on wire D(8 digit Hex):Ox What is the data on pin MemWrite(1 bit binary): 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 0040 0018 Please answer the following question What's the data on wire F (4 digit hex): Ox What's the data on pin MemRead(1 bit binary): 32 Sign- extend Iw rt, I (rs) beq rs,rt,l Shift left 2 ALUSrc OMUXL ALU Addresult Zero ALU ALU result ALU control ALUOP PCSrc MEX MemWrite Read data Address Data Write memory data MemRead MemtoReg TMUXO
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY