cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
This is a subgroup of Gammacorrection accelerated function with only synthesizable (Vivado HLS) functions/classes. More...
Files | |
file | gammacorrection.hpp |
The Role for a Gammacorrection Example application (UDP or TCP) | |
file | xf_config_params.h |
The Gammacorrection IP configuration header. | |
file | gammacorrection.cpp |
The Role for a Gammacorrection Example application (UDP or TCP) | |
file | xf_gammacorrection_accel.cpp |
The Gammacorrection top-level. | |
Macros | |
#define | WAIT_FOR_META 0 |
#define | WAIT_FOR_STREAM_PAIR 1 |
#define | PROCESSING_PACKET 2 |
#define | GAMMACORRECTION_RETURN_RESULTS 3 |
#define | PacketFsmType uint8_t |
#define | DEFAULT_TX_PORT 2718 |
#define | DEFAULT_RX_PORT 2718 |
#define | MEMDW 64 |
#define | BPERDW (MEMDW/8) |
#define | MAX_NB_OF_ELMT_READ 16 |
#define | MAX_NB_OF_WORDS_READ (MAX_NB_OF_ELMT_READ*sizeof(mat_elmt_t)/BPERDW) |
#define | MAX_NB_OF_ELMT_PERDW (BPERDW/sizeof(mat_elmt_t)) |
#define | RO 0 |
#define | NO 1 |
#define | FILTER_WIDTH 3 |
#define | BLOCK_WIDTH 3 |
#define | NMS_RADIUS 1 |
#define | MAXCORNERS 1024 |
#define | XF_USE_URAM false |
#define | Data_t ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> |
Typedefs | |
typedef uint8_t | mat_elmt_t |
Functions | |
void | gammacorrection (ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size, stream< NetworkWord > &siSHL_This_Data, stream< NetworkWord > &soTHIS_Shl_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &soNrc_meta, ap_uint< 32 > *po_rx_ports) |
Main process of the Gammacorrection Application directives. More... | |
void | storeWordToArray (uint64_t input, ap_uint< 64 > img[256 *256/(64/8)], unsigned int *processed_word, unsigned int *image_loaded) |
Store a word from ethernet to local memory. More... | |
void | storeWordToAxiStream (NetworkWord word, stream< ap_axiu< 64, 0, 0, 0 > > &img_in_axi_stream, unsigned int *processed_word_rx, unsigned int *image_loaded) |
Store a word from ethernet to a local AXI stream. More... | |
void | pRXPath (stream< NetworkWord > &siSHL_This_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< ap_axiu< 64, 0, 0, 0 > > &img_in_axi_stream, NetworkMetaStream meta_tmp, unsigned int *processed_word_rx, unsigned int *image_loaded) |
Receive Path - From SHELL to THIS. More... | |
void | pProcPath (stream< NetworkWord > &sRxpToTxp_Data, stream< ap_axiu< 64, 0, 0, 0 > > &img_in_axi_stream, stream< ap_axiu< 64, 0, 0, 0 > > &img_out_axi_stream, unsigned int *processed_word_rx, unsigned int *image_loaded) |
Processing Path - Main processing FSM for Vitis kernels. More... | |
void | pTXPath (stream< NetworkWord > &soTHIS_Shl_Data, stream< NetworkMetaStream > &soNrc_meta, stream< NetworkWord > &sRxpToTxp_Data, stream< NetworkMetaStream > &sRxtoTx_Meta, unsigned int *processed_word_tx, ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size) |
Transmit Path - From THIS to SHELL. More... | |
void | gammacorrection_accel (xf::cv::Mat< XF_8UC1, 256, 256, XF_NPPC1 > &imgInput1, xf::cv::Mat< XF_8UC1, 256, 256, XF_NPPC1 > &imgOutput, float gammaval) |
Top-level accelerated function of the Gammacorrection Application with xf::cv I/F. More... | |
void | GammacorrectionAccelArray (ap_uint< 64 > *img_inp, ap_uint< 64 > *img_out, int rows, int cols, int threshold, int k) |
Top-level accelerated function of the Gammacorrection Application with array I/F. More... | |
void | GammacorrectionAccelStream (hls::stream< ap_axiu< 64, 0, 0, 0 > > &img_in_axi_stream, hls::stream< ap_axiu< 64, 0, 0, 0 > > &img_out_axi_stream, int rows, int cols, int threshold, int k) |
Top-level accelerated function of the Gammacorrection Application with array I/F. More... | |
Variables | |
uint8_t | enqueueFSM = 0 |
uint8_t | dequeueFSM = 1 |
uint8_t | GammacorrectionFSM = 0 |
This is a subgroup of Gammacorrection accelerated function with only synthesizable (Vivado HLS) functions/classes.
This is a subgroup of Gammacorrection accelerated function with only synthesizable (HLS) functions/classes.
#define BLOCK_WIDTH 3 |
Definition at line 36 of file xf_config_params.h.
#define BPERDW (MEMDW/8) |
Definition at line 52 of file gammacorrection.hpp.
#define Data_t ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> |
Definition at line 35 of file gammacorrection.cpp.
#define DEFAULT_RX_PORT 2718 |
Definition at line 48 of file gammacorrection.hpp.
#define DEFAULT_TX_PORT 2718 |
Definition at line 47 of file gammacorrection.hpp.
#define FILTER_WIDTH 3 |
Definition at line 35 of file xf_config_params.h.
#define GAMMACORRECTION_RETURN_RESULTS 3 |
Definition at line 42 of file gammacorrection.hpp.
#define MAX_NB_OF_ELMT_PERDW (BPERDW/sizeof(mat_elmt_t)) |
Definition at line 58 of file gammacorrection.hpp.
#define MAX_NB_OF_ELMT_READ 16 |
Definition at line 54 of file gammacorrection.hpp.
#define MAX_NB_OF_WORDS_READ (MAX_NB_OF_ELMT_READ*sizeof(mat_elmt_t)/BPERDW) |
Definition at line 57 of file gammacorrection.hpp.
#define MAXCORNERS 1024 |
Definition at line 39 of file xf_config_params.h.
#define MEMDW 64 |
Definition at line 51 of file gammacorrection.hpp.
#define NMS_RADIUS 1 |
Definition at line 37 of file xf_config_params.h.
#define NO 1 |
Definition at line 33 of file xf_config_params.h.
#define PacketFsmType uint8_t |
Definition at line 44 of file gammacorrection.hpp.
#define PROCESSING_PACKET 2 |
Definition at line 41 of file gammacorrection.hpp.
#define RO 0 |
Definition at line 32 of file xf_config_params.h.
#define WAIT_FOR_META 0 |
Definition at line 39 of file gammacorrection.hpp.
#define WAIT_FOR_STREAM_PAIR 1 |
Definition at line 40 of file gammacorrection.hpp.
#define XF_USE_URAM false |
Definition at line 41 of file xf_config_params.h.
typedef uint8_t mat_elmt_t |
Definition at line 55 of file gammacorrection.hpp.
void gammacorrection | ( | ap_uint< 32 > * | pi_rank, |
ap_uint< 32 > * | pi_size, | ||
stream< NetworkWord > & | siSHL_This_Data, | ||
stream< NetworkWord > & | soTHIS_Shl_Data, | ||
stream< NetworkMetaStream > & | siNrc_meta, | ||
stream< NetworkMetaStream > & | soNrc_meta, | ||
ap_uint< 32 > * | po_rx_ports | ||
) |
Main process of the Gammacorrection Application directives.
Definition at line 366 of file gammacorrection.cpp.
void gammacorrection_accel | ( | xf::cv::Mat< XF_8UC1, 256, 256, XF_NPPC1 > & | imgInput1, |
xf::cv::Mat< XF_8UC1, 256, 256, XF_NPPC1 > & | imgOutput, | ||
float | gammaval | ||
) |
Top-level accelerated function of the Gammacorrection Application with xf::cv I/F.
Definition at line 38 of file xf_gammacorrection_accel.cpp.
void GammacorrectionAccelArray | ( | ap_uint< 64 > * | img_inp, |
ap_uint< 64 > * | img_out, | ||
int | rows, | ||
int | cols, | ||
int | threshold, | ||
int | k | ||
) |
Top-level accelerated function of the Gammacorrection Application with array I/F.
Definition at line 53 of file xf_gammacorrection_accel.cpp.
void GammacorrectionAccelStream | ( | hls::stream< ap_axiu< 64, 0, 0, 0 > > & | img_in_axi_stream, |
hls::stream< ap_axiu< 64, 0, 0, 0 > > & | img_out_axi_stream, | ||
int | rows, | ||
int | cols, | ||
int | threshold, | ||
int | k | ||
) |
Top-level accelerated function of the Gammacorrection Application with array I/F.
Definition at line 99 of file xf_gammacorrection_accel.cpp.
void pProcPath | ( | stream< NetworkWord > & | sRxpToTxp_Data, |
stream< ap_axiu< 64, 0, 0, 0 > > & | img_in_axi_stream, | ||
stream< ap_axiu< 64, 0, 0, 0 > > & | img_out_axi_stream, | ||
unsigned int * | processed_word_rx, | ||
unsigned int * | image_loaded | ||
) |
Processing Path - Main processing FSM for Vitis kernels.
[out] | sRxpToTxp_Data | |
[in] | img_in_axi_stream | |
[in] | img_out_axi_stream | |
[out] | processed_word_rx | |
[in] | image_loaded |
Definition at line 179 of file gammacorrection.cpp.
void pRXPath | ( | stream< NetworkWord > & | siSHL_This_Data, |
stream< NetworkMetaStream > & | siNrc_meta, | ||
stream< NetworkMetaStream > & | sRxtoTx_Meta, | ||
stream< ap_axiu< 64, 0, 0, 0 > > & | img_in_axi_stream, | ||
NetworkMetaStream | meta_tmp, | ||
unsigned int * | processed_word_rx, | ||
unsigned int * | image_loaded | ||
) |
Receive Path - From SHELL to THIS.
[in] | siSHL_This_Data | |
[in] | siNrc_meta | |
[out] | sRxtoTx_Meta | |
[out] | img_in_axi_stream | |
[out] | meta_tmp | |
[out] | processed_word | |
[out] | image_loaded |
Definition at line 115 of file gammacorrection.cpp.
void pTXPath | ( | stream< NetworkWord > & | soTHIS_Shl_Data, |
stream< NetworkMetaStream > & | soNrc_meta, | ||
stream< NetworkWord > & | sRxpToTxp_Data, | ||
stream< NetworkMetaStream > & | sRxtoTx_Meta, | ||
unsigned int * | processed_word_tx, | ||
ap_uint< 32 > * | pi_rank, | ||
ap_uint< 32 > * | pi_size | ||
) |
Transmit Path - From THIS to SHELL.
[out] | soTHIS_Shl_Data | |
[out] | soNrc_meta | |
[in] | sRxpToTxp_Data | |
[in] | sRxtoTx_Meta | |
[in] | pi_rank | |
[in] | pi_size |
Definition at line 262 of file gammacorrection.cpp.
void storeWordToArray | ( | uint64_t | input, |
ap_uint< 64 > | img[256 *256/(64/8)], | ||
unsigned int * | processed_word, | ||
unsigned int * | image_loaded | ||
) |
Store a word from ethernet to local memory.
Definition at line 47 of file gammacorrection.cpp.
void storeWordToAxiStream | ( | NetworkWord | word, |
stream< ap_axiu< 64, 0, 0, 0 > > & | img_in_axi_stream, | ||
unsigned int * | processed_word_rx, | ||
unsigned int * | image_loaded | ||
) |
Store a word from ethernet to a local AXI stream.
Definition at line 71 of file gammacorrection.cpp.
uint8_t dequeueFSM = 1 |
Definition at line 38 of file gammacorrection.cpp.
uint8_t enqueueFSM = 0 |
Definition at line 37 of file gammacorrection.cpp.
uint8_t GammacorrectionFSM = 0 |
Definition at line 39 of file gammacorrection.cpp.