drichmond / RISC-V-On-PYNQ

RISC-V Integration for PYNQ
Other
165 stars 57 forks source link

RISC-V-On-PYNQ

This repository demonstrates a library for evaluating RISC-V Projects from the paper "Everyone's a Critic: A Tool for Evaluating RISC-V Projects".

This repository is a python package for the PYNQ 2.1+ distribution on the PYNQ-Z1 board. You can install this package by running the following command:


sudo -H pip3.6 install https://github.com/drichmond/RISC-V-On-PYNQ/

This will install:

riscvonpynq Package

The riscvonpynq package contains:

There are two RISC-V Processor Drivers: One driver for RISC-V Processors with BRAM-only Memory, and one driver for RISC-V Processors with BRAM and DDR Mixed Memory.

More examples and demonstrations are available in the notebooks installed by this package.

RISC-V-Tutorial Notebooks

The RISC-V Tutorial Notebooks are a set of notebooks describing how to set up the RISC-V Toolchain, and then build RISC-V processor overlays. There are five notebooks:

  1. Downloading Dependencies
  2. Creating a FPGA Bitstream
  3. Compiling the RISC-V GCC Toolchain
  4. Packaging a RISC-V Overlay

Completing these notebooks require:

  1. A PYNQ-Z1 with a 16 GB MicroSD Card
  2. A Host (Windows or Linux) with Vivado 2017.4
  3. An Internet Connection on both computers

RISC-V-Demo Notebooks

The RISC-V Demonstration notebooks show examples of existing processor overlays. We provide two example overlays using processors from one RISC-V Processor Projects.

Each notebook demonstrates how to upload programs using the Jupyter Notebook Magics we have provided. Each processor has a set of build files (a makefile, init.S file for initialization, and a .ld linker script) and we briefly describe these in each notebook.

We have internally tested other processors and will be adding them as we clean up the code.

We welcome pull requests!