RepositoryAssemblyPKPakistan
merledu

merledu/nucleusrv

NucleusRV (RV32-IMAFC) - A 32-bit 5 staged pipelined risc-v core.

79stars
40forks
14issues
5views

NucleusRV

Join the chat at https://gitter.im/merledu/nucleusrv

A chisel based riscv 5-stage pipelined cpu design, implementing 32-bit version of the ISA (incomplete).

Dependencies

Getting Started

Clone

git clone --recurse-submodules https://github.com/merledu/nucleusrv.git

Running RISC-V assembly

sbt "nucleusrv.components.NRVDriver --imem /path/to/imem/hex/file --dmem /path/to/dmem/hex/file --target-dir /path/to/output/dir"
export NRV_ROOT=$PWD
cd /path/to/output/dir
verilator --cc --exe --build --trace --no-timing $NRV_ROOT/tb_Top.cpp Top.v
./obj_dir/VTop

Waveform will can be found at /path/to/output/dir/logs.

Running RISC-V Architectural Tests

  • Make sure to have the RISC-V GNU Toolchain and Verilator in your PATH.
  • Create a python virtual environment and setup riscv-arch-test.
python3 -m venv .venv
source .venv/bin/activate
pip3 install -e riscof/riscv-arch-test/riscv-ctg riscof/riscv-arch-test/riscv-isac
pip3 install git+https://github.com/riscv/riscof.git
  • Run run_riscv_arch_tests.py in root directory.
python3 run_riscv_arch_tests.py

Building C Programs

  • In tools/tests directory, create a folder and write c program in the main.c file

  • Run make PROGRAM=<your_newly_created_test_folder_name> inside tools directory

  • Build the program with sbt command listed above. Make sure you are in root directory

  • Optionally, you can skip writing/building c program and directly write hex instructions to program.hex file in tools/out directory.

Similar Projects

Discover other similar projects and AI models.

RepositoryAssembly
SpinalHDL/VexRiscv

A FPGA friendly 32 bit RISC-V CPU implementation

3.3k
Oct 13, 2026
RepositoryVerilog
darklife/darkriscv

opensouce RISC-V cpu core implemented in Verilog from scratch in one night!

2.6k
Nov 23, 2026
RepositoryAssembly
openhwfoundation/cva6

The CORE-V CVA6 is a highly configurable, 6-stage RISC-V core for both application and embedded applications. Application class configurations are capable of booting Linux.

3.2k
Nov 30, 2026
RepositoryScala
chipsalliance/chisel

Chisel: A Modern Hardware Design Language

4.8k
Nov 25, 2026
RepositoryScala
chipsalliance/rocket-chip

Rocket Chip Generator

3.9k
Nov 24, 2026
RepositoryScala
ucb-bar/chipyard

An Agile RISC-V SoC Design Framework with in-order cores, out-of-order cores, accelerators, and more

2.5k
Nov 10, 2026
RepositoryVHDL
stnolting/neorv32

🖥️ A small, customizable and extensible MCU-class 32-bit RISC-V soft-core CPU and microcontroller-like SoC written in platform-independent VHDL.

2.3k
Nov 29, 2026
RepositoryScala
riscv-boom/riscv-boom

SonicBOOM: The Berkeley Out-of-Order Machine

2.3k
Nov 24, 2026
RepositoryVerilog
splinedrive/kianRiscV

RISC-V XV6/Linux SoC, marchID: 0x2b, 0x34

1.1k
Nov 24, 2026