cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
simu_tcp_app_flash_env.cpp File Reference

: Simulation environment for the TCP Application Flash (TAF). More...

Include dependency graph for simu_tcp_app_flash_env.cpp:

Go to the source code of this file.

Macros

#define THIS_NAME   "SIM"
 
#define TRACE_OFF   0x0000
 
#define TRACE_TSs   1 << 1
 
#define TRACE_TSr   1 << 2
 
#define TRACE_TAF   1 << 3
 
#define TRACE_MMIO   1 << 4
 
#define TRACE_ALL   0xFFFF
 
#define DEBUG_LEVEL   (TRACE_OFF)
 

Functions

void stepSim ()
 Increment the simulation counter. More...
 
void increaseSimTime (unsigned int cycles)
 Increase the simulation time of the testbench. More...
 
bool pTSIF_Recv (int &nrErr, stream< TcpAppData > &siTAF_Data, stream< TcpSessId > &siTAF_SessId, stream< TcpDatLen > &siTAF_DatLen, ofstream &rawFileStream, ofstream &tcpFileStream, int &nrSegments)
 Emulate the receiving part of the TSIF process. More...
 
bool pTSIF_Send (int &nrError, stream< TcpAppData > &soTAF_Data, stream< TcpSessId > &soTAF_SessId, stream< TcpDatLen > &soTAF_DatLen, ifstream &inpFileStream, ofstream &outGoldStream, int &nrSegments)
 Emulate the sending part of the TSIF process. More...
 
void pTSIF (int &nrErr, stream< TcpAppData > &soTAF_Data, stream< TcpSessId > &soTAF_SessId, stream< TcpDatLen > &soTAF_DatLen, stream< TcpAppData > &siTAF_Data, stream< TcpSessId > &siTAF_SessId, stream< TcpDatLen > &siTAF_DatLen)
 Emulate the behavior of TSIF. More...
 

Variables

unsigned int gSimCycCnt
 
bool gTraceEvent
 
bool gFatalError
 
unsigned int gMaxSimCycles
 

Detailed Description

: Simulation environment for the TCP Application Flash (TAF).

System: : cloudFPGA Component : cFp_HelloKale/ROLE/TcpApplicationFlash (TAF) Language : Vivado HLS

          +-----------------------+
          |  UdpApplicationFlash  |     +--------+
          |        (TAF)          <-----+  MMIO  |
          +-----/|\------+--------+     +--------+
                 |       |
                 |       ||
          +------+------\|/-------+
          |   UdpShellInterface   |
          |       (TSIF)          |
          +-----/|\------+--------+
                 |       |
                 |      \|/

Definition in file simu_tcp_app_flash_env.cpp.