Coder Social home page Coder Social logo

fpga-matrix-mult's Introduction

Simulated Matrix Multiplication

In this folder you will find:

  • env.sh - A convenience script to set environment variables. Before building anytihng, call source ./env.sh
  • pure/ - A pure C implementation of the matrix multiplier. Build with make.
  • tlm/ - A SystemC + TLM 2.0 implementation. Build with make. Run with make run
  • prazor-tests/ - A test suite that runs the TLM implementation as an ARM binary on the Prazor virtual platform. Build with make. Run with make run.
  • utils/ - Utilities for energy monitoring and Zynq support.
  • vhls/ - The Prazor virtual platform code with plugin support.

VHLS is already pre-built for Linux x86_64, but to re-build VHLS, configure with:

# First time commands
aclocal
autoconf
automake

# Reconfigure command
./configure --enable-plugins

# Rebuild
make

As long as the environment variables point to the right places in env.sh, VHLS will build with TLM POWER 3 and spEEDO. To build without POWER 3 and spEEDO, configure with the following flags:

./configure --enable-plugins --with-tlm-power=no --with-speedo=no

Energy statistics

To include energy usage, build TLM simulation models with USE_ENERGYSHIM=1 make. On real hardware with a compatible energy probe connected, build with USE_ENERGYSHIM=1 NATIVE=1 make and run with USE_ENERGYSHIM=1 CURRENTPROBE=<hostname> make run where <hostname> is the network name of the probe, such as bognor.sm.cl.cam.ac.uk

For all energy statistics, energyshim must be compiled in. For energy statistics from a current probe, currentprobe-client must also be compiled in.

Since the NATIVE environment variable only affects the compilation of the energyshim, as long as matMul.o is compiled with USE_ENERGYSHIM=1, the object file can be re-used for compilation on real hardware for direct comparison.

fpga-matrix-mult's People

Contributors

cjxd avatar

Watchers

 avatar  avatar  avatar

Forkers

appledee

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.