Git Product home page Git Product logo

burst's Introduction

burst

A C++ template library for FPGAs on top of Xilinx Vivado HLS

Note that the current version of burst is an early preview. At this stage, the framework, including the API, are likely to undergo frequent changes.

This library is currently at a proof of concept stage. It will (hopefully, and soon) help you to port existing C++ code that relies on templates and dynamic memory.

Why "burst"?

Because of "burst reads" from AXI-Master interfaces, and because it differs from "boost" by only two characters.

Use burst like this:

#include <algorithm>
#include <utility>

#include <burst/memory.h>

int test(volatile uint8_t* a, size_t n)
{
#pragma HLS INTERFACE s_axilite port=return bundle=CTRL_BUS
#pragma HLS INTERFACE m_axi depth=256 port=a offset=slave bundle=MASTER_BUS

    burst::memory::init(a, n);

    auto a_begin = burst::memory::allocate<int>(8);
    auto a_end = a_begin + 8;

    std::fill(a_begin, a_end, 24);

    int arr[] = { 5, 2, 4, 9, 1, -1, 0, 12 };
    std::copy(arr, arr + 8, a_begin);

    std::make_heap(a_begin, a_end);
    std::sort_heap(a_begin, a_end);
    std::swap(a_begin[0], a_begin[1]);
    std::fill(a_begin + 2, a_begin + 6, 23);
    std::rotate(a_begin, a_begin + 2, a_end);

    burst::memory::deallocate(a_begin);

    return 0;
}

License

Burst is licensed under the MIT License (MIT)

burst's People

Contributors

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