FOR MIPS architecture QUESTION 2 Part a) Write the three microinstructions of th
ID: 3739326 • Letter: F
Question
FOR MIPS architecture
QUESTION 2 Part a) Write the three microinstructions of the "branch-on-equal' (beq) instruction. (20 points) PCWriteSequencing ALU Control Register Memory Control Control Label SRC1 SRC2 Fetch Branchl Field Possible Value This is the label of the microinstruction. It can be any word. The first Label ALU Control SRC 1 SRC 2 microinstruction has the label 'Fetch Add, Subt, Func Code PC, A B, 4, Extend, Extshft (16-bit sign extended and shifted) Read, Write ALU, Write MDR (memory data register) Read PC, Read ALU, Write ALU ALU, ALUOut Cond (conditional), Jump address Seq, Fetch, Dispatch i (i is the current state) Memory PC Write Control SequencingExplanation / Answer
Label
ALU Control
SRC1
SRC2
Register Control
Memory
PCWrite Control
Sequencing
Fetch
ADD
PC
4
Read PC
ALU
Seq
Beq1
Subt
A
B
ALUOUT[a1] -cont
Fetch[a2]
Branch1
Branch address
Fetch[a3]
[a1]If the values are equal ALU contents will be written to PC
[a2]Go to microinstruction fetch
[a3]Go to microinstruction fetch
These are the sequence of instructions to be performed for 'beq' instruction
Label
ALU Control
SRC1
SRC2
Register Control
Memory
PCWrite Control
Sequencing
Fetch
ADD
PC
4
Read PC
ALU
Seq
Beq1
Subt
A
B
ALUOUT[a1] -cont
Fetch[a2]
Branch1
Branch address
Fetch[a3]
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.