cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
sobel_network_library.hpp File Reference

A library for some common Network-Related functionalities. More...

#include <stdio.h>
#include <iostream>
#include <hls_stream.h>
#include "ap_int.h"
#include <stdint.h>
#include "../../../../../HOST/vision/sobel/languages/cplusplus/include/config.h"
#include "memory_utils.hpp"
#include "network.hpp"
Include dependency graph for sobel_network_library.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FSM_WRITE_NEW_DATA   0
 
#define FSM_DONE   1
 
#define PortFsmType   uint8_t
 
#define PORTS_OPENED   0x1F
 

Functions

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...
 

Detailed Description

A library for some common Network-Related functionalities.

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, DCO

@date September 2021

Implementations of library example Network-Related functionalities Network-Related for setting the cluster port destination receiving(RX) some commands (generally data) receiving(RX) image and send to stream receiving(RX) streaming of data (image) and store it to ddr through stream interface (if) transmitting(TX) the test results back

Deprecated:

Definition in file sobel_network_library.hpp.