Unlock access to all the studying documents.
View Full Document
Lab 4 and 5
RISC-V ISA: Instructions
Three types of operations:
• Computational: Perform arithmetic and logical operations on registers
• Loads and stores: Move data between registers and main memory
• Control Flow: Change the execution order of instructions to support conditional
statements and loops.
Computational Instructions
• Arithmetic, comparison, logical, and shift operations.
• Register-Register Instructions:
• 2 source operand registers
• 1 destination register
All Values are Binary
Register-Immediate Instructions
§ One operand comes from a register and the other is a small constant that is encoded
into the instruction.
• Format: oper dest, src1, const