-
Notifications
You must be signed in to change notification settings - Fork 0
Home
RAKSHITHA R NAYAK edited this page Mar 21, 2024
·
14 revisions
Block Diagram:
//explain
Data Path for R type Instruction:
R-type instructions use three registers as operands: two as sources, and one as a destination
The 32-bit instruction has six fields: op, rs1, rs2, rd, funct3, and funct7. Each field is five or seven bits, as indicated. All R-type instructions have an opcode of 33. R-type instructions can handle add, sub, and, or and slt. All of these instructions read two registers from the register file, perform some ALU operation on them, and write the result back to a third register in the register file.
Instruction Format for some of the R-type instructions is shown below:

Ex: ADD X8,X12,X11
