cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
: Testbench for the UDP Offload Engine (UOE). More...
#include "test_uoe.hpp"
Go to the source code of this file.
Macros | |
#define | THIS_NAME "TB" |
#define | TRACE_OFF 0x0000 |
#define | TRACE_CGRF 1 << 1 |
#define | TRACE_CGTF 1 << 2 |
#define | TRACE_DUMTF 1 << 3 |
#define | TRACE_ALL 0xFFFF |
#define | DEBUG_LEVEL (TRACE_OFF) |
Functions | |
void | stepSim () |
Increment the simulation counter. More... | |
bool | drainUdpMetaStreamToFile (stream< UdpAppMeta > &ss, string ssName, string datFile, int &nrChunks, int &nrFrames, int &nrBytes) |
Empty an UdpMeta stream to a DAT file. More... | |
bool | drainUdpDLenStreamToFile (stream< UdpAppDLen > &ss, string ssName, string datFile, int &nrChunks, int &nrFrames, int &nrBytes) |
Empty an UdpDLen stream to a DAT file. More... | |
bool | drainMmioDropCounter (stream< ap_uint< 16 > > &ss, string ssName) |
Empty the DropCounter stream and throw it away. More... | |
int | createUdpTxTraffic (stream< AxisApp > &ssData, const string ssDataName, stream< UdpAppMeta > &ssMeta, const string ssMetaName, stream< UdpAppDLen > &ssDLen, const string ssDLenName, string datFile, queue< UdpAppMeta > &metaQueue, queue< UdpAppDLen > &dlenQueue, int &nrFeededChunks) |
Create the UDP Tx traffic as streams from an input test file. More... | |
bool | readDatagramFromFile (const char *myName, SimUdpDatagram &appDatagram, ifstream &ifsData, UdpAppMeta &udpAppMeta, queue< UdpAppMeta > &udpMetaQueue, queue< UdpAppDLen > &updDLenQueue, int &inpChunks, int &inpDgrms, int &inpBytes, char tbMode) |
Read a datagram from a DAT file. More... | |
int | createGoldenTxFiles (string inpData_FileName, string outData_GoldName, queue< UdpAppMeta > &udpMetaQueue, queue< UdpAppDLen > &updDLenQueue, char tbMode) |
Create the golden IPTX reference file from an input UAIF test file. More... | |
int | createGoldenRxFiles (string inpData_FileName, string outData_GoldName, string outMeta_GoldName, string outDLen_GoldName, set< UdpPort > &udpPorts) |
Create the golden Rx APP reference files from an input IPRX test file. More... | |
void | uoe_top_wrap (CmdBit piMMIO_En, stream< ap_uint< 16 > > &soMMIO_DropCnt, stream< StsBool > &soMMIO_Ready, stream< AxisIp4 > &siIPRX_Data, stream< AxisIp4 > &soIPTX_Data, stream< UdpAppLsnReq > &siUAIF_LsnReq, stream< UdpAppLsnRep > &soUAIF_LsnRep, stream< UdpAppClsReq > &siUAIF_ClsReq, stream< UdpAppClsRep > &soUAIF_ClsRep, stream< UdpAppData > &soUAIF_Data, stream< UdpAppMeta > &soUAIF_Meta, stream< UdpAppDLen > &soUAIF_DLen, stream< UdpAppData > &siUAIF_Data, stream< UdpAppMeta > &siUAIF_Meta, stream< UdpAppDLen > &siUAIF_DLen, stream< AxisIcmp > &soICMP_Data) |
A wrapper for the Toplevel of the UDP Offload Engine (UOE) More... | |
int | main (int argc, char *argv[]) |
Main function. More... | |
: Testbench for the UDP Offload Engine (UOE).
System: : cloudFPGA Component : Shell, Network Transport Stack (NTS) Language : Vivado HLS
Definition in file test_uoe.cpp.