cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
median_blur.cpp File Reference

The Role for a MedianBlur Example application (UDP or TCP) More...

Include dependency graph for median_blur.cpp:

Go to the source code of this file.

Macros

#define TRANSFERS_PER_CHUNK_LAST_BURST   TRANSFERS_PER_CHUNK
 

Functions

void pPortAndDestionation (ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size, ap_uint< 32 > *po_rx_ports)
 
void storeWordToArray (uint64_t input, ap_uint< 8 > img[1024 *1024/((64/8))], unsigned int *processed_word, unsigned int *image_loaded)
 Store a net word to local memory. More...
 
void storeWordToAxiStream (NetworkWord word, stream< ap_uint< 8 >> &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...
 
void pRXPathDDROLD (stream< NetworkWord > &siSHL_This_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< DmCmd > &soMemWrCmdP0, stream< DmSts > &siMemWrStsP0, stream< Axis< 512 > > &soMemWriteP0, NetworkMetaStream meta_tmp, unsigned int *processed_bytes_rx, stream< bool > &sImageLoaded)
 Receive Path - From SHELL to THIS. More...
 
void pRXPathNetToStream (stream< NetworkWord > &siSHL_This_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< ap_uint< 512 >> &img_in_axi_stream, stream< bool > &sMemBurstRx)
 Receive Path - From SHELL to THIS. More...
 
void pRXPathStreamToDDR (stream< ap_uint< 512 >> &img_in_axi_stream, stream< bool > &sMemBurstRx, stream< DmCmd > &soMemWrCmdP0, stream< DmSts > &siMemWrStsP0, stream< Axis< 512 > > &soMemWriteP0, stream< bool > &sImageLoaded)
 Receive Path - From SHELL to THIS. More...
 
void pRXPath (stream< NetworkWord > &siSHL_This_Data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &sRxtoTx_Meta, stream< ap_uint< 8 >> &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. More...
 
void pProcPath (stream< NetworkWord > &sRxpToTxp_Data, membus_t *lcl_mem0, membus_t *lcl_mem1, stream< bool > &sImageLoaded)
 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 median_blur (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 MedianBlur Application directives. More...
 

Variables

uint8_t enqueueRxToStrFSM = 0
 
uint8_t enqueueStrToDdrFSM = 0
 
uint8_t enqueueFSM = 0
 
uint8_t dequeueFSM = 0
 
uint8_t MedianBlurFSM = 0
 
unsigned int sRxpToTxp_DataCounter = 0
 

Detailed Description

The Role for a MedianBlur Example application (UDP or TCP)

Copyright 2016 – 2022 IBM Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Author
FAB, WEI, NGL, DID

@date Oct 2021

This application implements a UDP/TCP-oriented Vitis function.

Deprecated:
For the time being, we continue designing with the DEPRECATED directives because the new PRAGMAs do not work for us.

Definition in file median_blur.cpp.