36 #include <hls_stream.h>
40 #include "../src/tcp_shell_if.hpp"
41 #include "../../../../cFDK/SRA/LIB/SHELL/LIB/hls/NTS/SimNtsUtils.hpp"
42 #include "../../../../cFDK/SRA/LIB/SHELL/LIB/hls/NTS/SimAppData.hpp"
61 #define DEFAULT_FPGA_IP4_ADDR 0x0A0CC801
62 #define DEFAULT_FPGA_LSN_PORT 0x0057
63 #define DEFAULT_HOST_IP4_ADDR 0x0A0CC832
64 #define DEFAULT_HOST_TCP_SRC_PORT 0x80
66 #define DEFAULT_SESSION_ID 0
67 #define DEFAULT_SESSION_LEN 32
84 stream<TcpAppData> &siTSIF_Data,
85 stream<TcpSessId> &siTSIF_SessId,
86 stream<TcpDatLen> &siTSIF_DatLen,
87 stream<TcpAppData> &soTAF_Data,
88 stream<TcpSessId> &soTAF_Meta,
89 stream<TcpSessId> &soTAF_DLen);
106 stream<TcpAppNotif> &soTSIF_Notif,
107 stream<TcpAppRdReq> &siTSIF_DReq,
108 stream<TcpAppData> &soTSIF_Data,
109 stream<TcpAppMeta> &soTSIF_Meta,
111 stream<TcpAppLsnReq> &siTSIF_LsnReq,
112 stream<TcpAppLsnRep> &soTSIF_LsnRep,
114 stream<TcpAppData> &siTSIF_Data,
115 stream<TcpAppSndReq> &siTSIF_SndReq,
116 stream<TcpAppSndRep> &soTSIF_SndRep,
118 stream<TcpAppOpnReq> &siTSIF_OpnReq,
119 stream<TcpAppOpnRep> &soTSIF_OpnRep);
void pTOE(int &nrErr, stream< TcpAppNotif > &soTRIF_Notif, stream< TcpAppRdReq > &siTRIF_DReq, stream< TcpAppData > &soTRIF_Data, stream< TcpAppMeta > &soTRIF_SessId, stream< TcpAppLsnReq > &siTRIF_LsnReq, stream< TcpAppLsnRep > &soTRIF_LsnAck, stream< TcpAppData > &siTRIF_Data, stream< TcpAppSndReq > &siTRIF_SndReq, stream< TcpAppSndRep > &soTRIF_SndRep, stream< TcpAppOpnReq > &siTRIF_OpnReq, stream< TcpAppOpnRep > &soTRIF_OpnRep)
void stepSim()
Increment the simulation counter.
void increaseSimTime(unsigned int cycles)
Increase the simulation time of the testbench.
bool drainDebugSpaceCounter(stream< ap_uint< 16 > > &ss, string ssName)
Empty the DebugSpaceCounter stream and check its last value.
const int cSimToeStartupDelay
void pMMIO(StsBit *piSHL_Ready, CmdBit *poTSIF_Enable)
Emulate the behavior of the SHELL & MMIO.
bool drainDebugSinkCounter(stream< ap_uint< 32 > > &ss, string ssName)
Empty the DebugSinkCounter stream and throw it away.
void pTAF(ofstream &ofTAF_Data, stream< TcpAppData > &siTSIF_Data, stream< TcpSessId > &siTSIF_SessId, stream< TcpDatLen > &siTSIF_DatLen, stream< TcpAppData > &soTSIF_Data, stream< TcpSessId > &soTSIF_Meta, stream< TcpSessId > &soTSIF_DLen)
Emulate the behavior of the ROLE/TcpAppFlash (TAF).