Skip to content

About

32-bit 5-stage pipelined RISC-V processor in SystemVerilog

Topics

Resources

Stars

45 stars

Watchers

5 watching

Forks

Latest commit

 

History

186 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pipelined RISC-V Processor

This repository contains a SystemVerilog implementation of a RISC-V processor project. The main objective of this project is to provide a reliable and high-performance solution for executing RISC-V instructions.

Repository Structure

The repository is structured as follows:

  • design: Contains the source code of the RISC-V processor project.
  • doc: Contains the report.
  • sim: Contains the simulation files and its results.
  • verif: Contains the testbench files.

Resources

Instructions

The following table lists the implemented instructions and their status. The instructions are listed in the order they appear in the RISC-V ISA manual.

# Instruction Implemented Tested Working
1 LUI ✅ ✅ ✅
2 AUIPC ✅ ✅ ✅
3 JAL ✅ ✅ ✅
4 JALR ✅ ✅ ✅
5 BEQ ✅ ✅ ✅
6 BNE ✅ ✅ ✅
7 BLT ✅ ✅ ✅
8 BGE ✅ ✅ ✅
9 BLTU ✅ ✅ ✅
10 BGEU ✅ ✅ ✅
11 LB ✅ ✅ ✅
12 LH ✅ ✅ ✅
13 LW ✅ ✅ ✅
14 LBU ✅ ✅ ✅
15 LHU ✅ ✅ ✅
16 SB ✅ ✅ ✅
17 SH ✅ ✅ ✅
18 SW ✅ ✅ ✅
19 ADDI ✅ ✅ ✅
20 SLTI ✅ ✅ ✅
21 SLTIU ✅ ✅ ✅
22 XORI ✅ ✅ ✅
23 ORI ✅ ✅ ✅
24 ANDI ✅ ✅ ✅
25 SLLI ✅ ✅ ✅
26 SRLI ✅ ✅ ✅
27 SRAI ✅ ✅ ✅
28 ADD ✅ ✅ ✅
29 SUB ✅ ✅ ✅
30 SLL ✅ ✅ ✅
31 SLT ✅ ✅ ✅
32 SLTU ✅ ✅ ✅
33 XOR ✅ ✅ ✅
34 SRL ✅ ✅ ✅
35 SRA ✅ ✅ ✅
36 OR ✅ ✅ ✅
37 AND ✅ ✅ ✅
38 FENCE ❌ ❌ ❌
39 ECALL ❌ ❌ ❌
40 EBREAK ❌ ❌ ❌

Acknowledgements

We extend our appreciation to Yifan Xu for their project, which provided the groundwork for this repository.

About

32-bit 5-stage pipelined RISC-V processor in SystemVerilog

Topics

Resources

Stars

45 stars

Watchers

5 watching

Forks

Contributors

Languages