Go to file
BOISSON Brice 3e1ca02fd4
Test add module program counter (#12)
2024-01-26 16:13:54 +01:00
rtl Rework: separate each step of the pipeline in a different component 2023-12-04 11:34:39 +09:00
scripts Add: error message when the number of ran test is lower than the number of test present is the assmbly file (the number of ran test can be superior, and in few time lower that's why it's only a warning 2023-11-30 14:43:01 +09:00
sim Add: new make way enabling multiple asm generated test 2023-11-22 11:35:08 +09:00
tb Test add module program counter (#12) 2024-01-26 16:13:54 +01:00
.gitignore Add: begining bubble sort test | Fix: branch and imm value extension 2023-10-25 11:07:19 +09:00
Makefile Add: new make way enabling multiple asm generated test 2023-11-22 11:35:08 +09:00
README.md Add: debug command in Makefile 2023-11-29 11:14:42 +09:00

README.md

RISC-V Verilog

This project is an educative project with the goal to implement a basic RISC-V CPU in Verilog for an educative purpose.

This CPU will implement the RV32I ISA, with the following goals:

  • Single cycle RISC-V RVI32I CPU
  • Multi cycle CPU
  • Pipelining
  • (Bonus) RISC-V privileged ISA

How to Run the Test

Use the command : make TARGET=<test_bench>-<sub_test>

With test_bench among the listed test bench in the tb directory and sub_test a source code file in the tb/test_source_code/tb_<test_bench> directory.
Example: make TARGET=risc_v_cpu-alu_instruction

You can remove the dash and sub_test argument to run only the non source code based test.
Example: make TARGET=risc_v_cpu

Or use all as a sub_test to run all test associated to a test_bench.
Example: make TARGET=risc_v_cpu-all

You can add the flag debug at the end of the command to open ModelSim interface.
Example: make TARGET=risc_v_cpu-alu_instruction debug