cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
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/warp_transform/languages/cplusplus/include/config.h"
#include "memory_utils.hpp"
#include "network.hpp"
#include "warp_transform_hw_common.hpp"
Go to the source code of this file.
Macros | |
#define | FSM_WRITE_NEW_DATA 0 |
#define | FSM_DONE 1 |
#define | PortFsmType uint8_t |
#define | WARPTRANSFORM_CHNNEL_BITWIDTH 3 |
#define | WARPTRANSFORM_COLS_BITWIDTH 16 |
#define | WARPTRANSFORM_ROWS_BITWIDTH 16 |
#define | WARPTRANSFORM_ROWS_HIGH_BIT NETWORK_WORD_BIT_WIDTH-1 |
#define | WARPTRANSFORM_ROWS_LOW_BIT NETWORK_WORD_BIT_WIDTH-WARPTRANSFORM_ROWS_BITWIDTH |
#define | WARPTRANSFORM_COLS_HIGH_BIT WARPTRANSFORM_ROWS_LOW_BIT-1 |
#define | WARPTRANSFORM_COLS_LOW_BIT WARPTRANSFORM_ROWS_LOW_BIT-WARPTRANSFORM_COLS_BITWIDTH |
#define | WARPTRANSFORM_CHNNEL_HIGH_BIT WARPTRANSFORM_COLS_LOW_BIT-1 |
#define | WARPTRANSFORM_CHNNEL_LOW_BIT WARPTRANSFORM_COLS_LOW_BIT-WARPTRANSFORM_CHNNEL_BITWIDTH |
Functions | |
void | pPortAndDestionation (ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size, hls::stream< NodeId > &sDstNode_sig, ap_uint< 32 > *po_rx_ports) |
pPortAndDestionation - Setup the port and the destination rank. More... | |
void | pRXPath (hls::stream< NetworkWord > &siSHL_This_Data, hls::stream< NetworkMetaStream > &siNrc_meta, hls::stream< NetworkMetaStream > &sRxtoTx_Meta, hls::stream< ap_uint< INPUT_PTR_WIDTH >> &img_in_axi_stream, NetworkMetaStream meta_tmp, unsigned int *processed_word_rx, unsigned int *processed_bytes_rx, hls::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, const unsigned int max_img_size, const unsigned int cBytesPer10GbitEthAXIPckt> | |
void | pRXPathNetToStream (hls::stream< NetworkWord > &siSHL_This_Data, hls::stream< NetworkMetaStream > &siNrc_meta, hls::stream< NetworkMetaStream > &sRxtoTx_Meta, hls::stream< TMemWrd > &img_in_axi_stream, hls::stream< bool > &sMemBurstRx, img_meta_t *img_rows, img_meta_t *img_cols, img_meta_t *img_chan, hls::stream< float > &sTxMatrix) |
Receive Path - From SHELL to THIS. Function for accumulating a memory word and write it Not ready for complete parametrization. More... | |
template<typename TStreamMemWrd , typename TMemWrd , const unsigned int loop_cnt, const unsigned int bytes_per_loop> | |
void | pRXPathStreamToDDR (hls::stream< TMemWrd > &img_in_axi_stream, hls::stream< bool > &sMemBurstRx, hls::stream< DmCmd > &soMemWrCmdP0, hls::stream< DmSts > &siMemWrStsP0, hls::stream< TStreamMemWrd > &soMemWriteP0, hls::stream< bool > &sImageLoaded, img_meta_t *img_rows, img_meta_t *img_cols, img_meta_t *img_chan) |
Receive Path - From RX path stream word aligned to store towards the DDR. More... | |
void | pTXPath (hls::stream< NetworkWord > &soTHIS_Shl_Data, hls::stream< NetworkMetaStream > &soNrc_meta, hls::stream< NetworkWord > &sProcpToTxp_Data, hls::stream< NetworkMetaStream > &sRxtoTx_Meta, hls::stream< NodeId > &sDstNode_sig, unsigned int *processed_word_tx, ap_uint< 32 > *pi_rank, img_meta_t *img_rows, img_meta_t *img_cols, img_meta_t *img_chan) |
Transmit Path - From THIS to SHELL. More... | |
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.
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
Definition in file warp_transform_network_library.hpp.