cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
This is a subgroup of Sobel accelerated function with only synthesizable (HLS) functions/classes. More...
Files | |
file | sobel.hpp |
The Role for a Sobel Example application (UDP or TCP) | |
file | sobel_hw_common.hpp |
A library for some common functionalities: Memory interaction Performance Counters. | |
file | sobel_network_library.hpp |
A library for some common Network-Related functionalities. | |
file | sobel_processing.hpp |
The processing function for the sobel filte. | |
file | xf_config_params.h |
The Sobel IP configuration header. | |
file | sobel.cpp |
The Role for a Sobel Example application (UDP or TCP) | |
file | xf_sobel_accel.cpp |
The Sobel top-level. | |
Classes | |
struct | Axis< D > |
Typedefs | |
typedef uint8_t | mat_elmt_t |
typedef ap_uint< 512 > | membus_512_t |
typedef membus_512_t | membus_t |
Enumerations | |
enum | EchoCtrl { ECHO_PATH_THRU = 0 , ECHO_STORE_FWD = 1 , ECHO_OFF = 2 , ECHO_PATH_THRU = 0 , ECHO_STORE_FWD = 1 , ECHO_OFF = 2 , ECHO_PATH_THRU = 0 , ECHO_STORE_FWD = 1 , ECHO_OFF = 2 , ECHO_PATH_THRU = 0 , ECHO_STORE_FWD = 1 , ECHO_OFF = 2 , ECHO_PATH_THRU = 0 , ECHO_STORE_FWD = 1 , ECHO_OFF = 2 , ECHO_PATH_THRU = 0 , ECHO_STORE_FWD = 1 , ECHO_OFF = 2 , ECHO_PATH_THRU = 0 , ECHO_STORE_FWD = 1 , ECHO_OFF = 2 , ECHO_STORE_FWD = 0 , ECHO_PATH_THRU = 1 , ECHO_CTRL_DISABLED = 0 , ECHO_PATH_THRU = 1 , ECHO_STORE_FWD = 2 , ECHO_OFF = 3 } |
Functions | |
void | sobel (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, stream< DmCmd > &soMemWrCmdP0, stream< DmSts > &siMemWrStsP0, stream< Axis< 512 > > &soMemWriteP0, membus_t *lcl_mem0, membus_t *lcl_mem1) |
Main process of the Sobel Application directives. More... | |
template<typename Tin , typename Tout , unsigned int arraysize> | |
void | pMyMemtestMemCpy (Tin *in, Tout *out) |
Copy a fixed compile time amount of data to another array. More... | |
template<typename Tin , typename Tout , const unsigned int arraysize> | |
void | pMemCpyCircularBuff (Tin *buff, Tout *out_mem, unsigned int elems, unsigned int offset_buff) |
Copy a run-time variable amount of data to another array employing the src as circular buffer i.e., handling overflow. More... | |
template<typename Tin , typename Tout , const unsigned int burstsize> | |
void | pReadAxiMemMapped2HlsStream (Tin *main_mem, hls::stream< Tout > &sOut, unsigned int elems) |
Copy a run-time variable amount of data to an hls stream with a given max. More... | |
template<typename Tin , typename Tout , const unsigned int burstsize, typename Tcntr > | |
void | pReadAxiMemMapped2HlsStreamCountFirst (Tin *main_mem, hls::stream< Tout > &sOut, unsigned int elems, hls::stream< Tcntr > &cmd) |
Copy a run-time variable amount of data to an hls stream with a given max it assumes also the initialization of a perf counter of "perfCounterMultipleCounts" function. More... | |
template<typename Tin , typename Tout , const unsigned int burstsize, typename Tcntr > | |
void | pReadAxiMemMapped2HlsStreamCountActivated (Tin *main_mem, hls::stream< Tout > &sOut, unsigned int elems, hls::stream< Tcntr > &cmd) |
Copy a run-time variable amount of data to an hls stream with a given max it assumes "perfCounterMultipleCounts" function already initialized so it just incr. More... | |
template<typename Tin , const unsigned int loop_cnt, const unsigned int bytes_per_loop, const unsigned int max_data_transfer> | |
void | storeWordToAxiStream (NetworkWord word, Tin &img_in_axi_stream, unsigned int *processed_word_rx, unsigned int *processed_bytes_rx, stream< bool > &sImageLoaded) |
Store a net word to a local AXI stream. More... | |
template<typename TInImg , const unsigned int img_pckts> | |
void | storeWordToArray (uint64_t input, TInImg img[img_pckts], unsigned int *processed_word, unsigned int *image_loaded) |
Store a net word to local memory. More... | |
template<typename Tin , typename Tout , unsigned int counter_precision = 64> | |
void | perfCounterProc (hls::stream< Tin > &cmd, hls::stream< Tout > &out, int direction, int burst_length, int nmbr_outstanding) |
template<typename Tin , typename Tout , unsigned int counter_precision = 64> | |
void | perfCounterProc2Mem (hls::stream< Tin > &cmd, Tout *out, int direction, int burst_length, int nmbr_outstanding) |
template<typename Tin , typename Tout , unsigned int counter_precision = 64> | |
void | perfCounterProc2MemCountOnly (hls::stream< Tin > &cmd, Tout *out) |
Count Clock Cycles between two events, the first event init the counter the second stop the count. More... | |
template<typename Tin , typename Tout , unsigned int counter_precision = 64> | |
void | perfCounterProc2MemCountIncremental (hls::stream< Tin > &cmd, Tout *out) |
Count Clock Cycles between two events, the first event init the counter the second stop the count and increment the out register TODO: seems not working at the csim lvl (never tested below) when executing single DUT step, hanging stream values. More... | |
template<typename Tin , typename Tout , unsigned int counter_precision = 64> | |
void | perfCounterMultipleCounts (hls::stream< Tin > &cmd, Tout *out) |
Count Clock Cycles between two events, the first event init the counter the second stop the count, a 0 after the init stop definitevely the counter. More... | |
template<typename Tevent = bool, const unsigned int counter_width = 32, const unsigned int maximum_counter_value_before_reset = 4000000> | |
void | pCountClockCycles (hls::stream< Tevent > &sOfEnableCCIncrement, hls::stream< Tevent > &sOfResetCounter, hls::stream< Tevent > &sOfGetTheCounter, hls::stream< ap_uint< counter_width > > &oSClockCounter) |
Count Clock Cycles between two events first sketch TODO: make it working without counting with the stream or reshaping as FSM. More... | |
void | pPortAndDestionation (ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size, stream< NodeId > &sDstNode_sig, ap_uint< 32 > *po_rx_ports) |
pPortAndDestionation - Setup the port and the destination rank. More... | |
void | pRXPath (stream< NetworkWord > &siSHL_This_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< ap_uint< INPUT_PTR_WIDTH >> &img_in_axi_stream, NetworkMetaStream meta_tmp, unsigned int *processed_word_rx, unsigned int *processed_bytes_rx, stream< bool > &sImageLoaded) |
Receive Path - From SHELL to THIS. FIXME: never checked, just substitute this one from DID. More... | |
template<typename TMemWrd , const unsigned int loop_cnt, const unsigned int cTransfers_Per_Chunk> | |
void | pRXPathNetToStream (stream< NetworkWord > &siSHL_This_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< ap_uint< TMemWrd >> &img_in_axi_stream, stream< bool > &sMemBurstRx) |
Receive Path - From SHELL to THIS. Function for accumulating a memory word and write it Not ready for complete parametrization. More... | |
template<typename TMemWrd , const unsigned int loop_cnt, const unsigned int bytes_per_loop> | |
void | pRXPathStreamToDDR (stream< ap_uint< TMemWrd >> &img_in_axi_stream, stream< bool > &sMemBurstRx, stream< DmCmd > &soMemWrCmdP0, stream< DmSts > &siMemWrStsP0, stream< Axis< TMemWrd > > &soMemWriteP0, stream< bool > &sImageLoaded) |
Receive Path - From RX path stream word aligned to store towards the DDR. More... | |
void | pTXPath (stream< NetworkWord > &soTHIS_Shl_Data, stream< NetworkMetaStream > &soNrc_meta, stream< NetworkWord > &sProcpToTxp_Data, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< NodeId > &sDstNode_sig, unsigned int *processed_word_tx, ap_uint< 32 > *pi_rank) |
Transmit Path - From THIS to SHELL. More... | |
template<const unsigned int counter_width = 64> | |
void | pTHISProcessingData (stream< NetworkWord > &sRxpToProcp_Data, stream< NetworkWord > &sProcpToTxp_Data, stream< NetworkMetaStream > &sRxtoProc_Meta, stream< NetworkMetaStream > &sProctoTx_Meta, bool *start_stop) |
THIS processing the data once recieved a start command Template function for custom processing. More... | |
template<typename TimgIn = ap_uint<INPUT_PTR_WIDTH>, typename TimgOut = ap_uint<OUTPUT_PTR_WIDTH>> | |
void | pProcPath (stream< NetworkWord > &sRxpToTxp_Data, stream< TimgIn > &img_in_axi_stream, stream< TimgOut > &img_out_axi_stream, stream< bool > &sImageLoaded) |
Processing Path - Main processing FSM for Vitis kernels. More... | |
void | medianBlurAccelStream (hls::stream< ap_uint< 256 >> &img_in_axi_stream, hls::stream< ap_uint< 256 >> &img_out_axi_stream, int rows, int cols) |
Top-level accelerated function of the Sobel Application with array I/Fadd SOBEL. More... | |
void | sobelAccelMem (membus_t *img_inp, membus_t *img_out1, membus_t *img_out2, int rows, int cols) |
Top-level accelerated function of the Sobel Application with memory mapped interfaces. More... | |
Variables | |
const unsigned long int | max_counter_cc = 4000000 |
This is a subgroup of Sobel accelerated function with only synthesizable (HLS) functions/classes.
#define BYTE_PER_MEM_WORD BPERMDW_512 |
#define CHECK_CHUNK_SIZE 0x1000 |
#define Data_t_in ap_axiu<INPUT_PTR_WIDTH, 0, 0, 0> |
#define Data_t_out ap_axiu<OUTPUT_PTR_WIDTH, 0, 0, 0> |
#define FILTER_SIZE_3 1 |
Definition at line 58 of file xf_config_params.h.
#define FILTER_SIZE_5 0 |
Definition at line 59 of file xf_config_params.h.
#define FILTER_SIZE_7 0 |
Definition at line 60 of file xf_config_params.h.
#define FSM_DONE 1 |
Definition at line 56 of file sobel_network_library.hpp.
#define FSM_PROCESSING_BURST_READING 4 |
Definition at line 42 of file sobel_processing.hpp.
#define FSM_PROCESSING_CONTINUOUS_RUN 12 |
Definition at line 50 of file sobel_processing.hpp.
#define FSM_PROCESSING_DATAFLOW_READ 6 |
Definition at line 44 of file sobel_processing.hpp.
#define FSM_PROCESSING_DATAFLOW_WRITE 5 |
Definition at line 43 of file sobel_processing.hpp.
#define FSM_PROCESSING_OUTPUT 7 |
Definition at line 45 of file sobel_processing.hpp.
#define FSM_PROCESSING_OUTPUT_2 8 |
Definition at line 46 of file sobel_processing.hpp.
#define FSM_PROCESSING_OUTPUT_3 9 |
Definition at line 47 of file sobel_processing.hpp.
#define FSM_PROCESSING_OUTPUT_4 10 |
Definition at line 48 of file sobel_processing.hpp.
#define FSM_PROCESSING_OUTPUT_5 11 |
Definition at line 49 of file sobel_processing.hpp.
#define FSM_PROCESSING_PCKT_PROC 1 |
Definition at line 39 of file sobel_processing.hpp.
#define FSM_PROCESSING_START 3 |
Definition at line 41 of file sobel_processing.hpp.
#define FSM_PROCESSING_STOP 2 |
Definition at line 40 of file sobel_processing.hpp.
#define FSM_PROCESSING_WAIT_FOR_DDR_CONTROLLER_EMPTYNESS 13 |
Definition at line 51 of file sobel_processing.hpp.
#define FSM_PROCESSING_WAIT_FOR_META 0 |
Definition at line 38 of file sobel_processing.hpp.
#define FSM_WRITE_NEW_DATA 0 |
Definition at line 55 of file sobel_network_library.hpp.
#define GRAY 1 |
Definition at line 62 of file xf_config_params.h.
#define INPUT_PTR_WIDTH 256 |
Definition at line 65 of file xf_config_params.h.
#define KWPERMDW_512 (BPERMDW_512/sizeof(TYPE)) |
#define MAX_NB_OF_ELMT_PERDW (BPERDW/sizeof(mat_elmt_t)) |
#define MAX_NB_OF_WORDS_READ (MAX_NB_OF_ELMT_READ*sizeof(mat_elmt_t)/BPERDW) |
#define NO 1 |
Definition at line 55 of file xf_config_params.h.
#define OUTPUT_PTR_WIDTH 256 |
Definition at line 66 of file xf_config_params.h.
#define PortFsmType uint8_t |
Definition at line 57 of file sobel_network_library.hpp.
#define PORTS_OPENED 0x1F |
Definition at line 61 of file sobel_network_library.hpp.
#define ProcessingFsmType uint8_t |
Definition at line 52 of file sobel_processing.hpp.
#define RGBA 0 |
Definition at line 63 of file xf_config_params.h.
#define RO 0 |
Definition at line 54 of file xf_config_params.h.
#define TOTMEMDW_512 (1 + (IMGSIZE - 1) / BPERMDW_512) |
#define TRANSFERS_PER_CHUNK (CHECK_CHUNK_SIZE/BYTE_PER_MEM_WORD) |
#define TRANSFERS_PER_CHUNK_DIVEND (TOTMEMDW_512-(TOTMEMDW_512/TRANSFERS_PER_CHUNK)*TRANSFERS_PER_CHUNK) |
#define XF_USE_URAM false |
Definition at line 68 of file xf_config_params.h.
typedef uint8_t mat_elmt_t |
typedef ap_uint< 512 > membus_512_t |
typedef membus_512_t membus_t |
enum EchoCtrl |
SHELL/MMIO/EchoCtrl - Config Register
Definition at line 60 of file sobel.hpp.
void medianBlurAccelStream | ( | hls::stream< ap_uint< 256 >> & | img_in_axi_stream, |
hls::stream< ap_uint< 256 >> & | img_out_axi_stream, | ||
int | rows, | ||
int | cols | ||
) |
Top-level accelerated function of the Sobel Application with array I/Fadd SOBEL.
Definition at line 71 of file xf_sobel_accel.cpp.
void pCountClockCycles | ( | hls::stream< Tevent > & | sOfEnableCCIncrement, |
hls::stream< Tevent > & | sOfResetCounter, | ||
hls::stream< Tevent > & | sOfGetTheCounter, | ||
hls::stream< ap_uint< counter_width > > & | oSClockCounter | ||
) |
Count Clock Cycles between two events first sketch TODO: make it working without counting with the stream or reshaping as FSM.
[in] | sOfEnableCCIncrement | |
[in] | sOfResetCounter | |
[in] | sOfGetTheCounter | |
[in] | oSClockCounter | |
[in] | Tevent | the event datatype |
[in] | counter_width | the counter precision |
[in] | maximum_counter_value_before_reset | the maxmimum amount of cc count before auto reset |
Definition at line 486 of file sobel_hw_common.hpp.
void perfCounterMultipleCounts | ( | hls::stream< Tin > & | cmd, |
Tout * | out | ||
) |
Count Clock Cycles between two events, the first event init the counter the second stop the count, a 0 after the init stop definitevely the counter.
[in] | cmd | the performance counter cmd stream, first is init second stop(0)/continue(everything else) |
[out] | out | the output register of where store the incremental counter value |
[in] | Tin | the input datatype |
[in] | Tout | the output datatype |
[in] | counter_precision | the maxmimum amount of data |
Definition at line 439 of file sobel_hw_common.hpp.
void perfCounterProc | ( | hls::stream< Tin > & | cmd, |
hls::stream< Tout > & | out, | ||
int | direction, | ||
int | burst_length, | ||
int | nmbr_outstanding | ||
) |
Definition at line 302 of file sobel_hw_common.hpp.
void perfCounterProc2Mem | ( | hls::stream< Tin > & | cmd, |
Tout * | out, | ||
int | direction, | ||
int | burst_length, | ||
int | nmbr_outstanding | ||
) |
Definition at line 337 of file sobel_hw_common.hpp.
void perfCounterProc2MemCountIncremental | ( | hls::stream< Tin > & | cmd, |
Tout * | out | ||
) |
Count Clock Cycles between two events, the first event init the counter the second stop the count and increment the out register TODO: seems not working at the csim lvl (never tested below) when executing single DUT step, hanging stream values.
[in] | cmd | the performance counter cmd stream, first is init second stop |
[out] | out | the output register of where increment the counter value |
[in] | Tin | the input datatype |
[in] | Tout | the output datatype |
[in] | counter_precision | the maxmimum amount of data |
Definition at line 407 of file sobel_hw_common.hpp.
void perfCounterProc2MemCountOnly | ( | hls::stream< Tin > & | cmd, |
Tout * | out | ||
) |
Count Clock Cycles between two events, the first event init the counter the second stop the count.
[in] | cmd | the performance counter cmd stream, first is init second stop |
[out] | out | the output register of where store the counter value |
[in] | Tin | the input datatype |
[in] | Tout | the output datatype |
[in] | counter_precision | the maxmimum amount of data |
Definition at line 371 of file sobel_hw_common.hpp.
void pMemCpyCircularBuff | ( | Tin * | buff, |
Tout * | out_mem, | ||
unsigned int | elems, | ||
unsigned int | offset_buff | ||
) |
Copy a run-time variable amount of data to another array employing the src as circular buffer i.e., handling overflow.
[out] | out_mem | the dst ptr |
[in] | buff | the src ptr, or the circular buffer |
[in] | elems | the current amount of data to tx |
[in] | offset_buff | the initial offest in the circular buffer |
[in] | Tin | the input datatype |
[in] | Tout | the output datatype |
[in] | arraysize | the maxmimum amount of data |
Definition at line 108 of file sobel_hw_common.hpp.
void pMyMemtestMemCpy | ( | Tin * | in, |
Tout * | out | ||
) |
Copy a fixed compile time amount of data to another array.
[out] | out | the dst ptr |
[in] | in | the src ptr |
[in] | Tin | the input datatype |
[in] | Tout | the output datatype |
[in] | arraysize | the fixed amount of data |
Definition at line 83 of file sobel_hw_common.hpp.
void pPortAndDestionation | ( | ap_uint< 32 > * | pi_rank, |
ap_uint< 32 > * | pi_size, | ||
stream< NodeId > & | sDstNode_sig, | ||
ap_uint< 32 > * | po_rx_ports | ||
) |
pPortAndDestionation - Setup the port and the destination rank.
[in] | pi_rank | |
[in] | pi_size | |
[out] | sDstNode_sig | |
[out] | po_rx_ports |
Definition at line 86 of file sobel_network_library.hpp.
void pProcPath | ( | stream< NetworkWord > & | sRxpToTxp_Data, |
stream< TimgIn > & | img_in_axi_stream, | ||
stream< TimgOut > & | img_out_axi_stream, | ||
stream< bool > & | sImageLoaded | ||
) |
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] | sImageLoaded |
Definition at line 451 of file sobel_processing.hpp.
void pReadAxiMemMapped2HlsStream | ( | Tin * | main_mem, |
hls::stream< Tout > & | sOut, | ||
unsigned int | elems | ||
) |
Copy a run-time variable amount of data to an hls stream with a given max.
[out] | main_mem | the src ptr to read |
[in] | sOut | the dst hls stream |
[in] | elems | the current amount of data to tx |
[in] | Tin | the input datatype |
[in] | Tout | the output datatype |
[in] | burstsize | the maxmimum amount of data |
Definition at line 142 of file sobel_hw_common.hpp.
void pReadAxiMemMapped2HlsStreamCountActivated | ( | Tin * | main_mem, |
hls::stream< Tout > & | sOut, | ||
unsigned int | elems, | ||
hls::stream< Tcntr > & | cmd | ||
) |
Copy a run-time variable amount of data to an hls stream with a given max it assumes "perfCounterMultipleCounts" function already initialized so it just incr.
[out] | main_mem | the src ptr to read |
[in] | sOut | the dst hls stream |
[in] | elems | the current amount of data to tx |
[in] | cmd | the performance counter cmd stream |
[in] | Tin | the input datatype |
[in] | Tout | the output datatype |
[in] | burstsize | the maxmimum amount of data |
[in] | Tcntr | the cmd perf counter datatype |
Definition at line 201 of file sobel_hw_common.hpp.
void pReadAxiMemMapped2HlsStreamCountFirst | ( | Tin * | main_mem, |
hls::stream< Tout > & | sOut, | ||
unsigned int | elems, | ||
hls::stream< Tcntr > & | cmd | ||
) |
Copy a run-time variable amount of data to an hls stream with a given max it assumes also the initialization of a perf counter of "perfCounterMultipleCounts" function.
[out] | main_mem | the src ptr to read |
[in] | sOut | the dst hls stream |
[in] | elems | the current amount of data to tx |
[in] | cmd | the performance counter cmd stream |
[in] | Tin | the input datatype |
[in] | Tout | the output datatype |
[in] | burstsize | the maxmimum amount of data |
[in] | Tcntr | the cmd perf counter datatype |
Definition at line 171 of file sobel_hw_common.hpp.
void pRXPath | ( | stream< NetworkWord > & | siSHL_This_Data, |
stream< NetworkMetaStream > & | siNrc_meta, | ||
stream< NetworkMetaStream > & | sRxtoTx_Meta, | ||
stream< ap_uint< INPUT_PTR_WIDTH >> & | img_in_axi_stream, | ||
NetworkMetaStream | meta_tmp, | ||
unsigned int * | processed_word_rx, | ||
unsigned int * | processed_bytes_rx, | ||
stream< bool > & | sImageLoaded | ||
) |
Receive Path - From SHELL to THIS. FIXME: never checked, just substitute this one from DID.
[in] | siSHL_This_Data | |
[in] | siNrc_meta | |
[out] | sRxtoTx_Meta | |
[out] | img_in_axi_stream | |
[out] | meta_tmp | |
[out] | processed_word | |
[out] | sImageLoaded |
Definition at line 139 of file sobel_network_library.hpp.
void pRXPathNetToStream | ( | stream< NetworkWord > & | siSHL_This_Data, |
stream< NetworkMetaStream > & | siNrc_meta, | ||
stream< NetworkMetaStream > & | sRxtoTx_Meta, | ||
stream< ap_uint< TMemWrd >> & | img_in_axi_stream, | ||
stream< bool > & | sMemBurstRx | ||
) |
Receive Path - From SHELL to THIS. Function for accumulating a memory word and write it Not ready for complete parametrization.
[in] | siSHL_This_Data | the data rx from network |
[in] | siNrc_meta | meta from network |
[out] | sRxtoTx_Meta | meta to the tx path |
[out] | img_in_axi_stream | the image data packed in 512 bits |
[out] | sMemBurstRx | assessing the burst is ready |
Definition at line 206 of file sobel_network_library.hpp.
void pRXPathStreamToDDR | ( | stream< ap_uint< TMemWrd >> & | img_in_axi_stream, |
stream< bool > & | sMemBurstRx, | ||
stream< DmCmd > & | soMemWrCmdP0, | ||
stream< DmSts > & | siMemWrStsP0, | ||
stream< Axis< TMemWrd > > & | soMemWriteP0, | ||
stream< bool > & | sImageLoaded | ||
) |
Receive Path - From RX path stream word aligned to store towards the DDR.
[in] | img_in_axi_stream | |
[in] | sMemBurstRx | |
[out] | soMemWrCmdP0 | |
[out] | siMemWrStsP0 | |
[out] | soMemWriteP0 | |
[out] | sImageLoaded |
Definition at line 287 of file sobel_network_library.hpp.
void pTHISProcessingData | ( | stream< NetworkWord > & | sRxpToProcp_Data, |
stream< NetworkWord > & | sProcpToTxp_Data, | ||
stream< NetworkMetaStream > & | sRxtoProc_Meta, | ||
stream< NetworkMetaStream > & | sProctoTx_Meta, | ||
bool * | start_stop | ||
) |
THIS processing the data once recieved a start command Template function for custom processing.
[in] | sRxpToProcp_Data | stream of data from rx to proc interface |
[out] | sProcpToTxp_Data | stream of data from proc to tx interface |
[in] | start_stop | start and stop command |
[in] | lcl_mem0 | shell-role mp1 memory mapped interfce virtual ptr 0 |
[in] | lcl_mem1 | shell-role mp1 memory mapped interfce virtual ptr 1 |
Definition at line 92 of file sobel_processing.hpp.
void pTXPath | ( | stream< NetworkWord > & | soTHIS_Shl_Data, |
stream< NetworkMetaStream > & | soNrc_meta, | ||
stream< NetworkWord > & | sProcpToTxp_Data, | ||
stream< NetworkMetaStream > & | sRxtoTx_Meta, | ||
stream< NodeId > & | sDstNode_sig, | ||
unsigned int * | processed_word_tx, | ||
ap_uint< 32 > * | pi_rank | ||
) |
Transmit Path - From THIS to SHELL.
[out] | soTHIS_Shl_Data | |
[out] | soNrc_meta | |
[in] | sProcpToTxp_Data | |
[in] | sRxtoTx_Meta | |
[in] | pi_rank | |
[in] | sDstNode_sig |
Definition at line 513 of file sobel_network_library.hpp.
void sobel | ( | 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, | ||
stream< DmCmd > & | soMemWrCmdP0, | ||
stream< DmSts > & | siMemWrStsP0, | ||
stream< Axis< 512 > > & | soMemWriteP0, | ||
membus_t * | lcl_mem0, | ||
membus_t * | lcl_mem1 | ||
) |
Main process of the Sobel Application directives.
Definition at line 51 of file sobel.cpp.
void sobelAccelMem | ( | membus_t * | img_inp, |
membus_t * | img_out1, | ||
membus_t * | img_out2, | ||
int | rows, | ||
int | cols | ||
) |
Top-level accelerated function of the Sobel Application with memory mapped interfaces.
Definition at line 160 of file xf_sobel_accel.cpp.
void storeWordToArray | ( | uint64_t | input, |
TInImg | img[img_pckts], | ||
unsigned int * | processed_word, | ||
unsigned int * | image_loaded | ||
) |
Store a net word to local memory.
Definition at line 269 of file sobel_hw_common.hpp.
void storeWordToAxiStream | ( | NetworkWord | word, |
Tin & | img_in_axi_stream, | ||
unsigned int * | processed_word_rx, | ||
unsigned int * | processed_bytes_rx, | ||
stream< bool > & | sImageLoaded | ||
) |
Store a net word to a local AXI stream.
Definition at line 222 of file sobel_hw_common.hpp.
const unsigned long int max_counter_cc = 4000000 |
Definition at line 296 of file sobel_hw_common.hpp.