-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.h
More file actions
executable file
·34 lines (27 loc) · 858 Bytes
/
Copy pathexample.h
File metadata and controls
executable file
·34 lines (27 loc) · 858 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/******************************************************************************
*
* Authors: Giulio Gambardella <giuliog@xilinx.com>
* \file dma.h
*
* Library of templated HLS functions for BNN deployment.
* This file lists a set of functions to access memory mapped values into
* streams.
*
*****************************************************************************/
#ifndef DMA_HPP
#define DMA_HPP
#include <ap_int.h>
#include <hls_stream.h>
/*!
* \brief DMA block accessing memory and output streams
*
*
* \tparam DataWidth Width, in number of bits
* \tparam numBytes Number of bytes to be read
*
* \param in Input memory pointer
* \param out Output HLS stream
*/
template<unsigned int DataWidth, unsigned int numBytes>
void FunctionExample(ap_uint<DataWidth> * in, hls::stream<ap_uint<DataWidth> > & out);
#endif