51 #define THIS_NAME "TB_TAF"
61 int main(
int argc,
char *argv[]) {
72 #if defined TAF_USE_NON_FIFO_IO
73 ap_uint<2> sMMIO_TAF_EchoCtrl;
82 stream<TcpAppData> ssTSIF_TAF_Data (
"ssTSIF_TAF_Data");
83 stream<TcpSessId> ssTSIF_TAF_SessId (
"ssTSIF_TAF_SessId");
84 stream<TcpDatLen> ssTSIF_TAF_DatLen (
"ssTSIF_TAF_DatLen");
85 stream<TcpAppData> ssTAF_TSIF_Data (
"ssTAF_TSIF_Data");
86 stream<TcpSessId> ssTAF_TSIF_SessId (
"ssTAF_TSIF_SessId");
87 stream<TcpDatLen> ssTAF_TSIF_DatLen (
"ssTAF_TSIF_DatLen");
95 printInfo(
THIS_NAME,
"############################################################################\n");
97 printInfo(
THIS_NAME,
"############################################################################\n");
98 printInfo(
THIS_NAME,
"This testbench will be executed with the following parameters: \n");
99 for (
int i=1; i<argc; i++) {
114 #
if defined TAF_USE_NON_FIFO_IO
130 #
if defined TAF_USE_NON_FIFO_IO
163 printError(
THIS_NAME,
"#### TEST BENCH FAILED : TOTAL NUMBER OF ERROR(S) = %2d ####\n", nrErr);
166 printInfo(
THIS_NAME,
"FYI - You may want to check for \'ERROR\' and/or \'WARNING\' alarms in the LOG file...\n\n");
169 printInfo(
THIS_NAME,
"#############################################################\n");
171 printInfo(
THIS_NAME,
"#############################################################\n");
void stepSim()
Increment the simulation counter.
#define printError(callerName, format,...)
A macro to print an error message.
#define printInfo(callerName, format,...)
A macro to print an information message.
int main(int argc, char *argv[])
Main function for the test of the TCP Application Flash (TAF).
unsigned int gMaxSimCycles
void tcp_app_flash(stream< TcpAppData > &siTSIF_Data, stream< TcpSessId > &siTSIF_SessId, stream< TcpDatLen > &siTSIF_DataLen, stream< TcpAppData > &soTSIF_Data, stream< TcpSessId > &soTSIF_SessId, stream< TcpDatLen > &soTSIF_DatLen)
Main process of the TCP Application Flash (TAF)
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.
: Testbench for TCP Application Flash.