Giter VIP home page Giter VIP logo

riscv-ml's Introduction

riscv-ml

Machine Learning project using RISC-V and NVDLA on Linux

ricv-ml project contains FPGA prototype of functional RISCV core able to :

  • run Linux rootfs build with riscv toolchain ( from SDCARD )
  • connect to SDCARD core
  • connect to DDR3
  • connect to NVDLA core ( not tested )
  • run nvdla driver on Linux ( not implemented )
  • run ml projects ( not implemented )

RISCV core was generated with https://bar.eecs.berkeley.edu/projects/rocket_chip.html and was configured for RochetChip version with virtual memory , i$ and d$.

Github project for RocketChip : https://github.com/chipsalliance/rocket-chip/blob/master/README.md

Github project for NVDLA : https://github.com/nvdla

Content

  • gen_linux_img - steps to build Linux for RocketChip
  • img - diagrams
  • ip-cores - ip cores teste with RocketChip
  • nvdla - rtl for NVIDIA Deep Learning Accelerator ( NOT connected to RocketChip )
  • qmtech_board - Vivado board configuration
  • vivado_proj - RocketChip project ( constraints & ip cores )

HARDWARE

  • board Qmtech Wukong :
    • fpga - XILINX XC7A100T ( 101,440 LC )
    • ddr3 - MICRON MT41K128M16JT-125:K, 256M
    • spi - S25FL128L,16M
    • eth - RealTek RTL8211EG
    • clk - 50 MHz

SOFTWARE

  • EDA - Vivado/Vitis

IP CORES

  • axi4-uart - AXI4 UART
  • sdc - AXI4 SDC controller
  • ddr3 - AXI4 Xilinx MIG / from Github project DDR

BUILD Linux

BUILD Vivado Project

  • Add wukong target to Vivado

  • Project contains following components :

    • RocketChip cpu
    • DDR controller
    • IO : SPI & SDC & UART
    • PLL
    • BSCAN
  • Generate project

    • cd /vivado_proj
    • vivado -mode batch -source riscv-ml.tcl
  • Check memory address :

IP core ADDRESS
RocketChip/DMA 0x0000_0000
IO/SPI 0x44A0_0000
IO/UART 0x6001_0000
IO/SDC 0x6000_0000
DDR/mig_7 0x8000_0000 - 0xFFFF_FFFF
  • Block Design : bd
  • Top design is riscv-wrapper.v
  • Generate bistream bd

RUN Linux

  • Check folder gen_linux_imgto build Linux and create sdcard
  • Boot log :

boot_log

NVDLA

riscv-ml's People

Contributors

imocanu avatar igamelot avatar

Stargazers

 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.