Git Product home page Git Product logo

spinalhdl_cnn_accelerator's Introduction

About SpinalHDL_CNN_Accelerator

GitHub

中文说明

Implementing accelerator supporting various neural networks in SpinalHDL

  • This repository is implementing common operators in CNN in SpinalHDL 1.7.0.It can be guided by compiler to generate accelerators for various neural networks.
  • This repository aims to implement a general accelerator at the SpinalHDL level and a special accelerator at the Verilog level.
  • This repository implements an Npu module, which can be put into the project,as shown in the figure.

block_design

  • The resource occupation in FPGA is shown in the figure below:

resource.png

Description

This repository hosts a CNN Accelerator implementation written in SpinalHDL. Here are some specs :

  • Easy to use
  • Complete implementation of convolution, quantization and shape
  • Configurable parametric interface
  • Optional convolution kernel type
  • The FPGA resource occupation is optimized at the code level
  • Implementation of rich tool class code
  • Access control of DMA and AXI
  • Automatically generate TCL files for instantiating Xilinx IP
  • Top-level files are easy to run
  • Implementation of the simulation of convolution

RTL code generation

You can find three runnable top modules in:

  • src/main/scala/top.scala
  • src/main/scala/Npu.scala
  • src/test/scala/TbConv.scala

NOTES:

  • It could take time when you run it.
  • top.scala is used to implement convolution.
  • Npu.scala is used to implement complete project process.
  • TbConv.scala is used to implement the simulation of convolution.
  • Before you run the TbConv.scala,you should prepare files with feature and weight in advance.

spinalhdl_cnn_accelerator's People

Contributors

liuwei9 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.