|
cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
: Simulation environment for the TCP Application Flash (TAF). More...
#include <stdio.h>#include <fstream>#include <iostream>#include <hls_stream.h>#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 | MAX_SIM_CYCLES 500 |
| #define | TB_GRACE_TIME 1000 |
| #define | STARTUP_DELAY 25 |
| #define | VALID true |
| #define | UNVALID false |
| #define | DONE true |
| #define | NOT_YET_DONE false |
| #define | ENABLED (ap_uint<1>)1 |
| #define | DISABLED (ap_uint<1>)0 |
| #define | DEFAULT_SESS_ID 42 |
| #define | DEFAULT_DATAGRAM_LEN 32 |
| #define | DEFAULT_FPGA_IP4_ADDR 0x0A0CC801 |
| #define | DEFAULT_FPGA_LSN_PORT 0x2263 |
| #define | DEFAULT_FPGA_SND_PORT 0xA263 |
| #define | DEFAULT_HOST_IP4_ADDR 0x0A0CC832 |
| #define | DEFAULT_HOST_LSN_PORT 0x80 |
| #define | DEFAULT_HOST_SND_PORT 0x8080 |
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... | |
: Simulation environment for the TCP Application Flash (TAF).
System: : cloudFPGA Component : cFp_HelloKale/ROLE/TcpApplicationFlash (TAF) Language : Vivado HLS
Definition in file simu_tcp_app_flash_env.hpp.