2. [60] In this exercise we examine the detail how an instruction is executed in
ID: 3864184 • Letter: 2
Question
2. [60] In this exercise we examine the detail how an instruction is executed in a single-cycle MIPS datapath (the processor diagram is shown in Figure 4.24) Problems in this exercise refer to a clock cycle in which the process fetches the following instruction word: 101 0110100001 001 0000000000010100 Assume that data memory is all zeros and that the processor's registers have the following values at the beginning of the cycle in which the above instruction word is fetched: r12 10 32 1) Please write the corresponding assembly instruction 2) What is the effect of this instruction? i.e., does it process data, or transfer data, or change the control flow? 3) What are the outputs of the sign-extend module and the jump "shift left 2" unit (near the top of Figure. 4.24) for this instruction word? 4) What are the values of the ALU control unit (the second unit of the 2-step control for ALU)'s inputs for this instruction? 5) What is the new PC address after this instruction is executed? Highlight the path through which this value is determined. 6) For each MUX, show the values of its data output during the execution of this instruction with these given register values above. 7) For the ALU and the two add units, what are their data input values? 8) What are the values of all inputs for the "Registers" unit? r31 16Explanation / Answer
1) the instruction will be as follows
10111001011110010110100010100000111101000011101010
2)it will not change and remains constant
3)the output for the sign extended module will be as 0.002
4) Alu controlled values will be 16 to 32
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.