fardinabbasi / RISC-V_Processor_MultiCycle

Design and implementation of RISC-V processor with a multi-cycle datapath and controller.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi Cycle RISC-V Processor

Design and implementation of RISC-V processor with a multi-cycle datapath and controller.

Commands

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

Datapath

Controller

Immediate Extension Unit Controller

ALU Opcode Controller

ALU Controller

Test Code

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

About

Design and implementation of RISC-V processor with a multi-cycle datapath and controller.


Languages

Language:Verilog 100.0%