Skip to content

Constellation-FPGA/vcode-rocc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

03e448e · Feb 25, 2025
Feb 28, 2024
Oct 5, 2023
Feb 25, 2025
Jan 24, 2025
Aug 8, 2022
Jul 27, 2022
Aug 11, 2022
Oct 26, 2023
Jul 31, 2024
Apr 3, 2024
Apr 3, 2024
Oct 19, 2023

Repository files navigation

vcode-rocc

Repository that holds the implementation for a VCODE RoCC accelerator.

Prerequisites

  1. SBT
  2. Scala
  3. Chipyard
  4. A working RISC-V toolchain installation

See https://github.com/Constellation-FPGA/notes/blob/main/vcode-rocc-chipyard-setup.org for how to set everything up.

Usage

This repository can stand alone for testing. But it should be used integrated with either rocket-chip, or even better, Chipyard.

Unit Testing

Many of the modules used have unit tests to verify functionality. SBT is required to run the unit tests.

To test them, you have two options:

$ sbt test

or

sbt:projectRoot> test

Building Whole-Program Tests

Whole-program tests are small C programs which test functionality of the built design for correctness. They must be compiled with a working RISC-V toolchain.

To build the tests:

$ cd tests
$ make

If you do not have $RISCV set to the root of your RISC-V toolchain installation in your environment, a warning will be printed.