Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

plz help me to solve this problem Add IA Add Shift left 2 RegDst Branch instruct

ID: 2294076 • Letter: P

Question

plz help me to solve this problem

Add IA Add Shift left 2 RegDst Branch instruction (31 284 Control A lemRead MentoRe Write Instruction [25-21] Read PC Read reg ster 1 Read address Instruction [20-16] Reatd Zero register 2 Write Read 131-0 ALU ALUAddress dataM Read Instruction instruction (15-11register data 2 memory Write data Registers Write Data data memory Instruction [15-0 16 Sign- 32 ALU control extend/ Instruction [5-0) 1. Consider the single stage CPU represented in the diagram. Complete the control line table below for the given instructions by entering 0, 1, or x for "don't care" Instruction #1 : Instruction #2: Instruction #3 : Instruction #4 : Instruction #5 addi $tO St1. $t2 10001 10001 1000 100000000000010100 sh $tO, Stl 100 OxOB090001 RegDst Branch MemRead Memt oReg MemWrite ALUSrc RegWrite #2 #3 #4 #5

Explanation / Answer

The answer will be;

RegDst

Branch

MemRead

MemtoReg

MemWrite

ALUSrc

RegWrite

#1

1

0

x

x

x

1

1

#2

1

0

1

1

X

X

1

#3

0

0

X

X

1

0

0

#4

0

1

1

0

1

X

0

#5

0

0

1

1

1

X

X

RegDst

Branch

MemRead

MemtoReg

MemWrite

ALUSrc

RegWrite

#1

1

0

x

x

x

1

1

#2

1

0

1

1

X

X

1

#3

0

0

X

X

1

0

0

#4

0

1

1

0

1

X

0

#5

0

0

1

1

1

X

X