cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
: Simulation environment for the TCP Shell Interface (TSIF). More...
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <hls_stream.h>
#include <map>
#include <set>
#include "../src/tcp_shell_if.hpp"
#include "../../../../cFDK/SRA/LIB/SHELL/LIB/hls/NTS/SimNtsUtils.hpp"
#include "../../../../cFDK/SRA/LIB/SHELL/LIB/hls/NTS/SimAppData.hpp"
Go to the source code of this file.
Macros | |
#define | DEFAULT_FPGA_IP4_ADDR 0x0A0CC801 |
#define | DEFAULT_FPGA_LSN_PORT 0x0057 |
#define | DEFAULT_HOST_IP4_ADDR 0x0A0CC832 |
#define | DEFAULT_HOST_TCP_SRC_PORT 0x80 |
#define | DEFAULT_SESSION_ID 0 |
#define | DEFAULT_SESSION_LEN 32 |
Functions | |
void | stepSim () |
Increment the simulation counter. More... | |
void | increaseSimTime (unsigned int cycles) |
Increase the simulation time of the testbench. More... | |
bool | drainDebugSinkCounter (stream< ap_uint< 32 > > &ss, string ssName) |
Empty the DebugSinkCounter stream and throw it away. More... | |
bool | drainDebugSpaceCounter (stream< ap_uint< 16 > > &ss, string ssName) |
Empty the DebugSpaceCounter stream and check its last value. More... | |
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). More... | |
void | pMMIO (StsBit *piSHL_Ready, CmdBit *poTSIF_Enable) |
Emulate the behavior of the SHELL & MMIO. More... | |
void | pTOE (int &nrErr, ofstream &ofTAF_Gold, ofstream &ofTOE_Gold, ofstream &ofTOE_Data, TcpDatLen echoDatLen, SockAddr testSock, TcpDatLen testDatLen, StsBit *poMMIO_Ready, stream< TcpAppNotif > &soTSIF_Notif, stream< TcpAppRdReq > &siTSIF_DReq, stream< TcpAppData > &soTSIF_Data, stream< TcpAppMeta > &soTSIF_Meta, stream< TcpAppLsnReq > &siTSIF_LsnReq, stream< TcpAppLsnRep > &soTSIF_LsnRep, stream< TcpAppData > &siTSIF_Data, stream< TcpAppSndReq > &siTSIF_SndReq, stream< TcpAppSndRep > &soTSIF_SndRep, stream< TcpAppOpnReq > &siTSIF_OpnReq, stream< TcpAppOpnRep > &soTSIF_OpnRep) |
Emulate behavior of the SHELL/NTS/TCP Offload Engine (TOE). More... | |
Variables | |
const int | cSimToeStartupDelay = 1000 |
const int | cGraceTime = 2500 |
const int | cNrSegToSend = 5 |
const int | cNrSessToSend = 2 |
const int | cMinWAIT = cMaxSessions |
: Simulation environment for the TCP Shell Interface (TSIF).
System: : cloudFPGA Component : cFp_HelloKale/ROLE/TcpShellInterface (TSIF) Language : Vivado HLS
Definition in file simu_tcp_shell_if_env.hpp.