Question: FIGURE 4 . 2 3 The simple control and datapath are extended to handle the unconditional branch instruction. An additional OR - gate ( at
FIGURE The simple control and datapath are extended to handle the unconditional branch instruction. An additional ORgate at the upper right is used to control the multiplexor that chooses between the branch target and the sequential instruction following this one. One input to the ORgate is the Uncondbranch control signal. Although not shown, the Signextend logic would recognize the unconditional branch opcode and signextend the lower bits of the branch instruction to form a bit address to be added to the PC
Consider the following instruction: xB
a Write this instruction in biriary.
b Write the instruction in LEGv
c What are the outputs of the signextend and the "shift left unit near the top of Figure for this instruction word in binary and hexadecimal?
d What is the new PC address after this instruction is executed? Highlight the path through which this value is determined.
e For each mux, show the values of its inputs and outputs during the execution of this instruction in decimal. List values that are register outputs at Reg X
f What are the input values for the ALU and the two add units in decimal format?
g What are the values of all jnputs for the register units in decimal?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
