cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)

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

#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <string.h>
#include <math.h>
#include <hls_stream.h>
#include "ap_int.h"
#include <stdint.h>
#include "network.hpp"
#include "kernel_mceuropeanengine.hpp"
Include dependency graph for mceuropeanengine.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFAULT_TX_PORT   2718
 
#define DEFAULT_RX_PORT   2718
 
#define INPUT_PTR_WIDTH   64
 
#define OUTPUT_PTR_WIDTH   64
 
#define INSIZE   sizeof(varin)
 
#define OUTSIZE   sizeof(DtUsed)*OUTDEP
 
#define BITS_PER_10GBITETHRNET_AXI_PACKET   64
 
#define BYTES_PER_10GBITETHRNET_AXI_PACKET   (BITS_PER_10GBITETHRNET_AXI_PACKET/8)
 
#define IN_PACKETS   INSIZE/(BYTES_PER_10GBITETHRNET_AXI_PACKET)
 
#define OUT_PACKETS   OUTSIZE/(BYTES_PER_10GBITETHRNET_AXI_PACKET)
 
#define MIN_RX_LOOPS   IN_PACKETS*(BITS_PER_10GBITETHRNET_AXI_PACKET/INPUT_PTR_WIDTH)
 
#define MIN_TX_LOOPS   OUT_PACKETS*(BITS_PER_10GBITETHRNET_AXI_PACKET/OUTPUT_PTR_WIDTH)
 
#define WAIT_FOR_META   0
 
#define WAIT_FOR_STREAM_PAIR   1
 
#define PROCESSING_PACKET   2
 
#define PROCESSING_WAIT   3
 
#define MCEUROPEANENGINE_RETURN_RESULTS   4
 
#define PacketFsmType   uint8_t
 

Functions

void mceuropeanengine (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 MCEuropeanEngine Application directives. More...
 

Detailed Description

The Role for a MCEuropeanEngine 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 October 2020

: This application implements a set of UDP-oriented tests and functions which are embedded into the Flash of the cloudFPGA role.

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

Definition in file mceuropeanengine.hpp.