Assume that the instruction is executed in a single-cycle datapath. The Followin
ID: 3827597 • Letter: A
Question
Assume that the instruction is executed in a single-cycle datapath. The Following instruction was fetched:
0000 0000 0100 1000 0110 0000 0010 0000
Assume the data memory is all zeros and that the processor’s registers have the following values at the beginning of the clock cycle in which the above instruction word is fetched
1) what are the values of the ALU control inputs for this instruction?
2) For each MUX, show the values of its data output during the execution of this instruction and these register classes.
3) For the ALU and the add two units, what are their data input values?
4) What are the values of all inputs for the "registers" unit?
r0 r1 r2 r3 r4 r5 r8 r16 r12 r31 0 1 4 2 -2 15 6 8 2 -4 Instruction 125-0] Shift Jump address [31-0] eft 2 26 28 PC 4 131-28 Add ALU 1 result Add Shift eft 2 RegDst Jump Branch Mem Read Instruction 131-26 MemtoReg Contro ALUO MemWrite ALU Src RegWrite Instruction 125-21] Read Read register 1 Read PC address Instruction 120-16] data 1 Read Zero register 2 Write Read I data 2 x Instruction ALU ALU Read Address result data [31-0] nstruction nstruction 15-11 register memory Write data Registers Write Data data memory Instruction [15-0] 16 32 Sign ALU a extend control Instruction 5-0Explanation / Answer
1Ans:: The values of ALU control_inputs ::
// ALUOp[1-0] Instruction[5-0]
00 010100
10 101010 //
2Ans: Values of data_output during the executn of the instruction::
// Reg_Mux ALU_mux Mem/ALU__mux Branch_mux Jump_mux
X 0x00000014 X PC + 4 PC + 4 //
3Ans: Data_input values::
// ALU PC add Branch add
-3 and 0x00000014 PC and 4 PC+4 and 0x00000014 //
4Ans: Values of inputs for registers_unit//
// RegWrite Reg_A Reg_B Write_Register Write_Data
0 3 2 x x //
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.