Design and implementation of RISC-V processor with a multi-cycle datapath and controller.
R_Type: add, sub, and, or, slt
I_Type: lw, addi, xori, ori, slti, jalr
S_Type: sw
J_Type: jal
B_Type: beq, bne, blt, bge
U_Type: lui
The following assembly code can be converted to machine code using RISC-V Online Assembler.
addi x8,x0,30
sub x9,x8,x7
and x10,x8,x7
or x11,x8,x7
slt x12,x8,x7
slt x12,x8,x7
xori x13,x7,13
ori x14,x7,13
slti x15,x7,13
sw x8,400(x7)
jalr x16,x7,10
lui x17,50
- Course: Digital Systems 2 [ECE 778]
- Semester: Spring 2023
- Institution: School of Electrical & Computer Engineering, College of Engineering, University of Tehran
- Instructors: Dr. Safari
- Contributors: Fardin Abbasi, Soheil Abdollahi