Giter VIP home page Giter VIP logo

convfpga's Introduction

ConvFPGA

This is a project intended to run convolutional neural nets on an FPGA. Convolutional neural nets are MAC-heavy computations with a well defined structure lots of data parallelism. The end result of the computation is progressively higher-level feature maps that describe what's going on in the image, in a machine-learnable format.

Unfortunately, we did not achieve our goal of running our project on the zedboard. We mainly ran into issues running and interfacing with linux.

Despite the integration failure, our project has achieved success in three major components:

Accelerator

We have convolutions working in sim and synthesized (in a low-power form) on the nexys-3. The accelerator itself works great -- if you can get data to it.

Driver

The driver is a C program that connects to an imaginary interface with the board, and manages loading data and running operations. It loads the image and weights from the filesystem, and passes that data to the FPGA. The driver also implements the FC, LRN, and MAXPOOL layers that are not computed on the FPGA.

Network

We trained a neural network to classify images with 18-bit fixed point operations. The network is based around the AlexNet architecture, and involves 6 convolution operations.

Directory Structure

Neural_Nets -- Modified AlexNet implementation

brambur/brambur.sdk/brambur0 -- Transfer data (weights) from processor memory to block RAM on programmable logic

dataip2_1.0 -- Custom IP to interface with DMA. Its purpose is to get data stream from DMA, broadcast as needed, and stream data back to DMA. It implements read and write through AXI4 Stream protocol

dma2/dma2.sdk/poll -- Transfer data (image and intermediate results) from processor memory to programmable logic for broadcast, via the DMA

dma2/dma2.sdk/eth -- Transfer data from external source to processor memory

driver -- See description above

python_architecture, python_weightdump -- Python simulations

verilog -- Accelerator implementation

axiModule, bramtest, data0, dataip, verilog/Filter -- Experiment and development files

convfpga's People

Contributors

antonpaquin avatar chauhankaranraj avatar danieloved avatar gvikram31 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.