Coder Social home page Coder Social logo

convnetasic's Introduction

ConvNetAsic

This is an on-going project to develop the ASIC generator for a specific neural network architecture provided by the Caffe Prototxt file.

Installation

The dependency for the current project includes the SystemC and the Google Protocol Buffers.

The Makfile is provided for GCC compilation on Linux. The variable $SYSTEMC_ROOT shoud be changed accordingly based on the installation location of SystemC on your system. There are 2 more vairables $DATA_PATH and $DEBUG, which can be turned off to compile a faster version, but without the data path information in the system.

Usage

After compilation, an executable file main will be generated in the current path. You need provide a configuration file to define the basic configuration of the system, e.g. bit width, CNN prototxt file, etc. A sampled configuration is provided in the main directory, named "config.prototxt".

The program can be invoked by typing the following command in the console:

$ ./main -c config.prototxt

During execution, the system will first analyzes the Caffe network and does the basic analysis on the operation complexity on each layer. The ASIC system will be generated based on a naive algorithm (should be improved later). A thorough cycle accurate simulation will be conducted to obtain the performance metric. By far, the system will bypass the trivial layers, such as ReLU, normalization, etc. It can support for a wide range of neural network architectures including inception-v4 except ResNet.

A trace file (*.vcd) with the specified name will be generated during the simulation, which can be viewed through common waveform viewers, such as Modelsim and VCS.

At the end of simulation, a detailed throughput and area breakdown the generated system will be exported.

The RTL model will be dumped to the hard coded projects file.

TODO list

  • Analysis of throughput, buffer, area, power relationship.
  • Optimization of hardware resource allocations.
  • Right now, the SystemC mode has been disabled temporarily in the main file. Currently, the Program is in the RTL compiler mode.

convnetasic's People

Contributors

zhujingyang520 avatar

Watchers

James Cloos avatar Alex Zhang 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.