The answer to the table given by teacher is: RegDst-0 Jump-x Branch-1 MemRead-1
ID: 3798927 • Letter: T
Question
The answer to the table given by teacher is:
RegDst-0
Jump-x
Branch-1
MemRead-1
MemtoReg-x
ALUop-1
MemWrite-x
ALUSrc-1 (not sure about this one, please give your answer)
RegWrite-x
x means the signal cannot be set in this instruction.
Could you explain the answer in details?
5. (35 points) We wish to add the single cycle datapath and control. Add an a new instruction im Gump memory) to page. This necessary datapaths and control signals to the attached figure on next new jump instruction bm SI, S2, 100 writes PC with the value in memory location 0, i.e., PC (next PC)+memory [$2-100]. The format is the same as lw except that ri field is not used. Give control values of all the control lines for jm. Add more control lines if necessary RegDst Jump Branch MemRead T MemtoRe Reg Write ALUo Mem Write ALUSrcExplanation / Answer
In the image, for jump instruction address provided as jump address[31 0].
This states destination register is 0
So RegDst-0
-------------------------------------------------------------------------------------
Jump register value will be depend on label or branch. Hence it may have any value.
So Jump - x
------------------------------------------------------------------------------------------
Branch -> 1
Activating the branch register to 1 to allow execute jmp instruction.
---------------------------------------------------------------------------------
MemRead -> 1
To jump from one branch to next branch, so need to write the data from one brach to
next branch. So activate MemRead register to 1.
---------------------------------------------------------------------------------------
ALUop -> 1
This says the alu operations carry on while executing jmp instruction.
----------------------------------------------------------------------------------------
MemWrite
Writing into memory is depend on instructions. So it may be any value. Hence it is x. (no-operation)
---------------------------------------------------------------------------------------------
ALUSrc - 1
Yes, it is correct since logical operations need to be done.
-----------------------------------------------------------------------------------
RegWrite -> x
Only reading is required not Regwrite, so no operation.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.