1. Consider the following instruction: Instruction: AND Rd, Rn, Rm Interpretation: Reg[Rd] = Reg[Rn] AND Reg[Rm] (a) Show the dataflow for this instruction using dash lines on the below figure for LEGv8 datapath. PC Add ALU Add result Shift Reg2Loc left 2 Branch MemRead MemtoReg Control ALUOP Instruction [31-21] Mux Mux Read address Instruction [31-0] Instruction memory Instruction [9-5] Instruction [20-16] Instruction [4-0] OMux1) MemWrite ALUSrc RegWrite Read register 1 Read Read register 2 Write data 1 Read register data 2 Write data Registers Zero ALU ALU result Address Read data Mux1 Write Data data memory Instruction [31-0] 32 64 Sign- extend ALU control Instruction [31-21] (b) What are the values of control signals generated by the control unit for this instruction? Reg2Loc ALUSrc MemtoReg RegWrite MemRead MemWrite Branch ALUOP1 ALUOP0
Added by Tammy R.
Close
Step 1
(a) To show the dataflow for the AND instruction, we need to identify the relevant components and their connections in the LEGv8 datapath. Show more…
Show all steps
Your feedback will help us improve your experience
Duncan Newman and 84 other Principles of Accounting educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Recommended Videos
In this exercise, we examine in detail how an instruction is executed in a single-cycle datapath. Problems in this exercise refer to the clock cycle in which the processor fetches the following instruction word: 1000110010100110000000000011000. Assume that the data memory is all zeros and that the processor registers have the following values at the beginning of the cycle in which the above instruction word is fetched: a. What are the outputs of the sign-extend and the jump Shift-Left-2 (near the top of Figure 4.24) for this instruction word? (2 points) b. What are the values of ALU control unit's inputs (ALUOp and Instruction operation) for this instruction? (2 points) c. For the ALU and the two add units, what are their data input values? (2 points) d. What are the values of all inputs for the "Registers" unit? (2 points)
Sri K.
Following is the simple implementation of RISC-V instruction subset (R-type, lw, sw, beq). Modify this diagram for the implementation to be able to also execute the following two instructions: - jal - addi Fill the truth table for these two instructions
Aarya B.
4.1 Consider the following instruction: Instruction: AND Rd, Rs, Rt Interpretation: Reg[Rd] = Reg[Rs] AND Reg[Rt] 4.1.1 [5] <COD §4.1> What are the values of control signals generated by the control in COD Figure 4.2 (The basic implementation of the MIPS subset...) for the above instruction?
Akash M.
Recommended Textbooks
Horngren’s Cost Accounting
Cost Accounting A Managerial Emphasis
Principles of Accounting Volume 1: Financial Accounting
Watch the video solution with this free unlock.
EMAIL
PASSWORD