Question: In this exercise we examine in detail how an instruction is executed in a single-cycle datapath. Problems in this exercise refer to a clock cycle


In this exercise we examine in detail how an instruction is executed in a single-cycle datapath. Problems in this exercise refer to a clock cycle in which the processor fetches the following instruction word 000000 01011 01000 00011 00000 100101 Assume that data memory is all zeros and that the processor's registers (32 bits) have the following values (decimal format) at the beginning of the cycle in which the above instruction word is fetched r0 rl r2 r3 r4 r5 r6 r8 r11 r18 125 -56 79 134 -2 15 141 211 3.1) What are the outputs of the sign-extend and the "Shift left 2" unit (near the top of Figure 1) for this instruction word? (5 pts) Sign-extend Shift-left-2 3.2) What are the values of the ALU control unit's inputs for this instruction? (5 pts) ALUOp Instruction[5-0] 3.3) What is the new PC address after this instruction is executed (assuming the current value of PC is pc)? Highlight the path through which this value is determined (5 pts) 3.4) For each Mux, show the values of its data output during the execution of this instruction (5 pts) 3.5) For the ALU and the two add units, what are their data input values? (5 pts) 3.6) What are the values of all inputs for the "Registers" unit? (10 pts) In this exercise we examine in detail how an instruction is executed in a single-cycle datapath. Problems in this exercise refer to a clock cycle in which the processor fetches the following instruction word 000000 01011 01000 00011 00000 100101 Assume that data memory is all zeros and that the processor's registers (32 bits) have the following values (decimal format) at the beginning of the cycle in which the above instruction word is fetched r0 rl r2 r3 r4 r5 r6 r8 r11 r18 125 -56 79 134 -2 15 141 211 3.1) What are the outputs of the sign-extend and the "Shift left 2" unit (near the top of Figure 1) for this instruction word? (5 pts) Sign-extend Shift-left-2 3.2) What are the values of the ALU control unit's inputs for this instruction? (5 pts) ALUOp Instruction[5-0] 3.3) What is the new PC address after this instruction is executed (assuming the current value of PC is pc)? Highlight the path through which this value is determined (5 pts) 3.4) For each Mux, show the values of its data output during the execution of this instruction (5 pts) 3.5) For the ALU and the two add units, what are their data input values? (5 pts) 3.6) What are the values of all inputs for the "Registers" unit? (10 pts)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
