Giter Site home page Giter Site logo

zjzkff / barvinn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hossein1387/barvinn

0.0 0.0 0.0 9.09 MB

BARVINN: A Barrel RISC-V Neural Network Accelerator: https://barvinn.readthedocs.io/en/latest/

License: MIT License

Shell 0.13% Python 23.81% C 1.62% Tcl 40.99% Assembly 5.10% Forth 1.97% SystemVerilog 25.39% Makefile 0.99% Filebench WML 0.01%

barvinn's Introduction

BARVINN: A Barrel RISC-V Neural Network Accelerator:

alt text

How to Use:

You first need to clone the repository and update the submodules:

git clone https://github.com/hossein1387/BARVINN.git
cd BARVINN
git submodule update --init

Now that you cloned the BARVINN repository, you can run a sample code. First make sure the Vivado is sourced, example for Vivado 2019.1:

source /opt/Xilinx/Vivado/2019.1/settings64.sh

Then make sure you have fusesoc installed:

python3 -m pip install fusesoc

Then add mvu, pito and barvinn to your fusesoc libraries (NOTE: if you have used FuseSoC with any of the following projects, you can skip adding it to FuseSoC) :

fusesoc library add barvinn .

Then run simulation (No GUI):

fusesoc run --target=sim barvinn

For synthesis:

fusesoc run --target=synth barvinn

To open sim in GUI mode:

cd build/pito_0/sim-vivado/ 
make run-gui

And for synthesis:

cd build/pito_0/synth-vivado/ 
make build-gui

This should open the project for you. Make sure you have run simulation or synthesis atleast once, otherwise fusesoc would not create a project file for you.

Documentation:

BARVINN documentation is available in docs/ folder. However, you can follow this url for an online version of documentation hosted on readthedocs. This url will ocassionally gets updated. You can build the lates docs using the following:

cd docs
python pip -r install requirements
make html

Then, you can open ./docs/_build/html/index.html file.

Publications

If you liked this project, please consider citing our paper:

@Article{barvinn_aspdac,
  author={AskariHemmat, MohammadHossein and Bilaniuk, Olexa and Wagner, Sean and Hariri, Yassine and Savaria, Yvon and David, Jean-Pierre},
  journal= {28th Asia and South Pacific Design Automation Conference ASP-DAC 2023},
  title  = {BARVINN: Arbitrary Precision DNN Accelerator Controlled by a RISC-V CPU},
  year   = {2023},
  doi    = {10.1145/3566097.3567872}
}

Link to our paper on arXiv.

barvinn's People

Contributors

hossein1387 avatar wagnersj avatar hossein-dl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.