34 #include <hls_stream.h>
37 #include "../src/udp_shell_if.hpp"
38 #include "../../../../cFDK/SRA/LIB/SHELL/LIB/hls/NTS/SimNtsUtils.hpp"
52 #define DEFAULT_FPGA_IP4_ADDR 0x0A0CC801
53 #define DEFAULT_FPGA_LSN_PORT 0x2263
54 #define DEFAULT_FPGA_SND_PORT 0xA263
55 #define DEFAULT_HOST_IP4_ADDR 0x0A0CC832
56 #define DEFAULT_HOST_LSN_PORT 0x80
57 #define DEFAULT_HOST_SND_PORT 0x8080
59 #define DEFAULT_DATAGRAM_LEN 32
73 stream<UdpAppData> &siUSIF_Data,
74 stream<UdpAppMeta> &siUSIF_Meta,
76 stream<UdpAppData> &soUSIF_Data,
77 stream<UdpAppMeta> &soUSIF_Meta,
78 stream<UdpAppDLen> &soUSIF_DLen);
88 ofstream &dataGoldFile,
90 ofstream &metaGoldFile,
98 stream<UdpAppData> &soUSIF_Data,
99 stream<UdpAppMeta> &soUSIF_Meta,
100 stream<UdpAppDLen> &soUSIF_DLen,
102 stream<UdpAppData> &siUSIF_Data,
103 stream<UdpAppMeta> &siUSIF_Meta,
104 stream<UdpAppDLen> &siUSIF_DLen,
106 stream<UdpPort> &siUSIF_LsnReq,
107 stream<StsBool> &soUSIF_LsnRep,
109 stream<UdpPort> &siUSIF_ClsReq);
void stepSim()
Increment the simulation counter.
void increaseSimTime(unsigned int cycles)
Increase the simulation time of the testbench.
void pMMIO(StsBit *piSHL_Ready, CmdBit *poTSIF_Enable)
Emulate the behavior of the SHELL & MMIO.
void pUAF(stream< UdpAppData > &siUSIF_Data, stream< UdpAppMeta > &siUSIF_Meta, stream< UdpAppData > &soUSIF_Data, stream< UdpAppMeta > &soUSIF_Meta, stream< UdpAppDLen > &soUSIF_DLen)
Emulate the behavior of the ROLE/UdpAppFlash (UAF).
void pUOE(int &nrErr, ofstream &dataGoldFile, ofstream &dataFile, ofstream &metaGoldFile, ofstream &metaFile, int echoDgrmLen, SockAddr testSock, int testDgrmLen, StsBit *poMMIO_Ready, stream< UdpAppData > &soUSIF_Data, stream< UdpAppMeta > &soUSIF_Meta, stream< UdpAppDLen > &soUSIF_DLen, stream< UdpAppData > &siUSIF_Data, stream< UdpAppMeta > &siUSIF_Meta, stream< UdpAppDLen > &siUSIF_DLen, stream< UdpPort > &siUSIF_LsnReq, stream< StsBool > &soUSIF_LsnRep, stream< UdpPort > &siUSIF_ClsReq)
Emulate behavior of the SHELL/NTS/UDP Offload Engine (UOE).