RISC-V Simple Core Collection
Go to file
2022-12-27 03:40:50 +00:00
fw Fix tests 2022-12-23 22:14:04 -03:00
rtl Update CPU 2022-12-23 22:13:40 -03:00
test Fix tests 2022-12-23 22:14:04 -03:00
.gitignore Rename folder structure and update hexdump generator 2022-11-28 06:52:08 +00:00
README.md Update 'README.md' 2022-12-27 03:40:50 +00:00

Collection of SystemVerilog simple RV32I CPU cores

Table of contesnts

Core list

  • Single cycle processor
  • 5-Stage pipelined processor with hazard detection

Directory structure

.
├── fw                   # Firmware
│   ├── sandbox          # C/Assembly sandbox firmware source
│   └── test             # Assembly programs used for testbenchs
├── rtl                  # RTL Modules
└── test                 # SystemVerilog testbenchs

Requirements

  • SystemVerilog simulator
  • CMake
  • 32-bit GNU RISC-V toolchain

If your package manager does not provide the RISC-V GNU toolchain you can compile it from their main repository or for Windows you can download the xPack pre-compiled binaries.

Build

To build the firmware that will be loaded in the instruction memory execute CMake in the fw directory specifying the RISC-V toolchain and build the recipe based in your selected generator (make in the following example).

cmake -DCMAKE_TOOLCHAIN_FILE=./cmake/toolchain.cmake -Bbuild
make -Cbuild

Tests

(TODO)

Benchmark

(TODO)