Skip to content

Constellation-FPGA/vcode-rocc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.