Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 rl1 r18 -219 -56 79 134 15 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 rl1 r18 -219 -56 79 134 15 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started