Skip to content
RAKSHITHA R NAYAK edited this page Mar 21, 2024 · 14 revisions

Block Diagram:

Copy of riscv_architecture

//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:

RTyPE_inst drawio

Ex: ADD X8,X12,X11

addinst drawio

Clone this wiki locally