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

Give the exact number of bits for the answer. For answers consisting of 32 bits,

ID: 3762925 • Letter: G

Question

Give the exact number of bits for the answer. For answers consisting of 32 bits, provide the hex representation of those 32 bits (double check you conversions). For answers consisting of less than 32 bits, provide the exact number of bits.

3. What are the two input values for each of the Adders and the ALU?

a. Top left ADD (PC+4)

b. Top right ADD (Shift left 2 + PC)

c. ALU

instruction [25-0 shift Shift, Jump address [31-( PC+4 131-28 Add ALU Add result RegDst Ju Shift eft 2 Instruction (31-20 Control Memto RegWrite Instruction 125-21] Read Read register 1 Read struction (20-16) Readdata1 PCaddress Zero Instruction register 2 31-0) M Write data 2 Write Read InstructionInstruction (15-1register data 2 esultAddress Read LI memory Write data Registers Write Data data memory Instruction (15-0 6 Sign 32 ALU control extend Instruction FIGURE 4.24 The simple control and datapath are extended to handle the jump instruction. An additional multiplexor (at the upper right) is used to choose between the jump target and either the branch target or the sequential instruction following this one. This multiplexor is controlled by the jump control signal. The jump target address is obtained by shifting the lower 26 bits of the jump instruction left 2 bits, effectively adding 00 as the low-order bits, and then concatenating the upper 4 bits of PC4 as the high-order bits, thus yielding a 32-bit address.

Explanation / Answer

b. Top right ADD (Shift left 2 + PC):

the second ALU input is a register (R-format instruction) or a signed-extended lower 16 bits of the instruction

The value written to the register file is obtained from the ALU (R-format instruction) or memory

the main control of alu inpo=ut/out is

R-type-> 10

lw->00

sw -> 00

beq->1

0000-> AND 0001 ->OR

0010->add

0110 -> subtract 0111-> set on less than Instruction

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote