GithubHelp home page GithubHelp logo

balthasar-m / snap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-power/snap

0.0 1.0 0.0 3.62 MB

CAPI SNAP Framework Hardware and Software

License: Apache License 2.0

Makefile 5.52% Shell 10.54% VHDL 19.55% C 33.48% C++ 11.63% SystemVerilog 6.09% Verilog 2.30% Tcl 8.51% Python 2.39%

snap's Introduction

SNAP Framework Hardware and Software

The SNAP Framework enables programmers and computer engineers to quickly create FPGA-based acceleration actions that work on server host data, as well as data from storage, flash, Ethernet, or other connected resources. SNAP, therefore, is an acronym for “Storage, Network, and Analytics Programming”. The SNAP framework makes it easy to create accelerated actions utilizing the IBM Coherent Accelerator Processor Interface (CAPI).

The framework hardware consists of a AXI-to-CAPI bridge unit, memory-mapped register I/O, host DMA, and a job management unit. It interfaces with a user-written action (a.k.a. kernel) through an AXI-lite control interface, and gives coherent access to host memory through AXI. Optionally, it also provides access to the on-card DRAM via AXI. A NVMe host controller-AXI bridge complements the framework for storage or database applications as an independent unit. Software gets access to the action through the libsnap library, allowing applications to call a "function" instead of programming an accelerator. The framework supports multi-process applications as well as multiple instantiated hardware actions in parallel.

This project is an initiative of the OpenPOWER Foundation Accelerator Workgroup. Please see here for more details:

For detailed design information, please refer to the SNAP Workbook (available soon).

Getting started

Simulating the design and generating the bitstream

The resources for generating a simulation model and an FPGA image using the SNAP framework are located in the hardware subdirectory of this repository. For information on how to use them please refer to the documentation in the

file within that directory.

Flashing the bitstream

The tools flash the card bitstream are available on github:

Call the capi-flash script with the generated bitstream: $ sudo capi-flash-script.sh <your-bitstream.bin>

Dependencies

This code uses libcxl to access the CAPI hardware. Install it with the package manager of your Linux distribution, e.g. sudo apt-get install libcxl-dev for Ubuntu.
For more information, please see

Access to CAPI from the FPGA card requires the Power Service Layer (PSL). For the latest PSL checkpoint download, visit the CAPI section of the IBM Portal for OpenPOWER at

For simulation, SNAP relies on the PSL Simulation Environment (PSLSE) which is available on github:

SNAP currently supports Xilinx FPGA devices, exclusively. For synthesis, simulation model and image build, SNAP requires the Xilinx Vivado 2016.4 tool suite.

As of now, two FPGA cards can be used with SNAP:

Contributing

Before contributing to this project, please read and agree to the rules in

To simplify the sign-off, create a ".gitconfig" file in you home by executing:

$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]

Then, for every commit, use git commit -s to add the "signed-off by ..." message.

The master branch is protected, so you can't commit directly into the master branch. To contribute changes, please create a branch, make the changes there and issue a pull request.

By default the git repository is read-only. Users can fork the snap repository, make the changes there and issue a pull request.

Pull requests to merge into the master branch must be reviewed before they will be merged.

snap's People

Contributors

fhaverkamp avatar boekholt avatar thomasfuchs avatar ibm-genwqe avatar joergkayser avatar luyong6 avatar reinerrieke avatar jsvogt avatar bmesnet avatar tlupick avatar balthasar-m avatar bohde avatar

Watchers

 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.