Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 2 KB

README.md

File metadata and controls

67 lines (42 loc) · 2 KB

RISCVBusiness

Design documents and project information for the RISC-V Business project can be found here:

RISCV-Business Documentation

Current User-Level ISA Spec : v2.1 Current Privileged ISA Spec : v1.11

Getting Started

Getting started with RISCV Business consists of three steps: setting up the RISCV tool-chain, setting up the WAF build system, and finally interacting with the RISCV Business project itself.

Generating RISC-V tool-chain

Refer to the following link for instructions on installing the RISC-V software tools:

RISC-V Software Installation

Execute the following commands to download the correct version of the RISC-V tools:

git clone https://github.com/riscv/riscv-tools.git
git checkout 4635ab67966c763a84f7217bc2c20b65dcabc7ec
git submodule update --init --recursive

Change the line to build the riscv-gnu-toolchain tools to:

build_project riscv-gnu-toolchain --prefix=$RISCV --with-xlen="$with_xlen" --with-arch=RV32IM

Then run after setting the environment variable "RISCV" to your install location:

./build.sh

Installing the build environment

RISCVBusiness uses SoCFoundationFlow, built off of the waf build system. The following repository contains the source for waf:

SoCFoundationFlow

Refer to SoCFoundationFlow for installation instructions.

Setup and Run RISCV Business

First, clone the repository

git clone [email protected]:JakeStevens/RISCVBusiness.git

Once the directory is cloned, the configuration for a core must be generated before the project can be simulated/synthesized. This can be done using the example.yml configuration provided, or using a modification of that file.

./scripts/config_core.py example.yml

Run the following command to run the regression test on RISCV-Business. All tests should pass:

./run_tests.py

Refer to the LICENSE file for licensing information.