rust_hls_macro 0.2.0

High level synthesis support for rust-hdl
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// There can only be one HLS function per module
use rust_hls::hls;

#[hls]
pub mod adder {
    #[hls]
    pub extern "C" fn adder(a: u32, b: u32) -> u32 {
        a + b
    }

    #[hls]
    pub extern "C" fn adderTwo(a: u32, b: u32) -> u32 {
        a + b
    }
}

fn main() {}