Tracing an R-Type Instruction
Notes
- Let's take a look at
ADD x10, x5, x9 - Assume
- x5 = 20
- X9 = 15
- X10 = 0
- Encode the instruction, at least partially
- Opcode (21-31): 458 (ADD)
- RM (16-20): X9
- SHAMT (15-10): 0
- RN (9-5): X5
- RD (4-0): X10
- Draw this as it goes through figure 4.17
- Modify any hardware necessary to accomplish this..
- What are the values of the control lines?
- Reg2Loc
- Branch
- MemRead
- Mem2Reg
- ALUOp: NA
- MemWrite
- ALUSrc
- RegWrite
- Should all of these be asserted at once?