cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Testbench for the TCP Offload Engine (TOE) of the Network Transport Stack (NTS). More...
Enumerations | |
enum | TestingMode { RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' , RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' , RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' } |
enum | TestingMode { RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' , RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' , RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' } |
enum | TestingMode { RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' , RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' , RX_MODE ='0' , TX_MODE ='1' , BIDIR_MODE ='2' , ECHO_MODE ='3' } |
Functions | |
void | stepSim () |
Increment the simulation counter. More... | |
int | main (int argc, char *argv[]) |
Main (does use any param). More... | |
void | increaseSimTime (unsigned int cycles) |
Increase the simulation time of the testbench. More... | |
const char * | myCamAccessToString (int initiator) |
Convert an access CAM initiator into a string. More... | |
template<typename T > | |
int | drainMmioDropCounter (stream< T > &ss, string ssName) |
Empty a DropCounter stream and throw it away. More... | |
void | pEmulateCam (stream< CamSessionLookupRequest > &siTOE_SssLkpReq, stream< CamSessionLookupReply > &soTOE_SssLkpRep, stream< CamSessionUpdateRequest > &siTOE_SssUpdReq, stream< CamSessionUpdateReply > &soTOE_SssUpdRep) |
Emulate the behavior of the Content Addressable Memory (TOECAM). More... | |
void | pEmulateRxBufMem (DummyMemory *memory, int &nrError, stream< DmCmd > &siTOE_RxP_WrCmd, stream< AxisApp > &siTOE_RxP_Data, stream< DmSts > &soTOE_RxP_WrSts, stream< DmCmd > &siTOE_RxP_RdCmd, stream< AxisApp > &soTOE_RxP_Data) |
Emulate the behavior of the Receive DDR4 Buffer Memory (RXMEM). More... | |
void | pEmulateTxBufMem (DummyMemory *memory, int &nrError, stream< DmCmd > &siTOE_TxP_WrCmd, stream< AxisApp > &siTOE_TxP_Data, stream< DmSts > &soTOE_TxP_WrSts, stream< DmCmd > &siTOE_TxP_RdCmd, stream< AxisApp > &soTOE_TxP_Data) |
Emulate the behavior of the Transmit DDR4 Buffer Memory (TXMEM). More... | |
bool | setGlobalParameters (const char *callerName, unsigned int startupDelay, ifstream &inputFile) |
Parse the input test file and set the global parameters of the TB. More... | |
void | cmdSetCommandParser (const char *callerName, vector< string > stringVector) |
Parse and handle a 'COMMAND/SET' request. More... | |
void | cmdTestCommandParser (const char *callerName, vector< string > stringVector) |
Parse and handle a 'COMMAND/TEST' request. More... | |
int | pIPRX_InjectAckNumber (SimIp4Packet &ipRxPacket, map< SocketPair, TcpAckNum > &sessAckList) |
Take the ACK number of a session and inject it into the sequence number field of the current packet. More... | |
void | pIPRX_FeedTOE (deque< SimIp4Packet > &ipRxPacketizer, int &ipRxPktCounter, stream< AxisIp4 > &soTOE_Data, map< SocketPair, TcpAckNum > &sessAckList) |
Feed TOE with an IP packet. More... | |
void | pIPRX (ifstream &ifIPRX_Data, ofstream &ofTAIF_Gold, bool &testRxPath, int &ipRxPktCounter, int &tcpBytCntr_IPRX_TOE, deque< SimIp4Packet > &ipRxPacketizer, map< SocketPair, TcpAckNum > &sessAckList, StsBit &piTOE_Ready, stream< AxisIp4 > &soTOE_Data) |
Emulate the behavior of the IP Rx Path (IPRX). More... | |
bool | pIPTX_Parse (SimIp4Packet &ipTxPacket, map< SocketPair, TcpAckNum > &sessAckList, deque< SimIp4Packet > &ipRxPacketizer) |
Parse the TCP/IP packets generated by the TOE. More... | |
void | pIPTX (StsBit &piTOE_Ready, stream< AxisIp4 > &siTOE_Data, ofstream &ofIPTX_Data1, ofstream &ofIPTX_Data2, map< SocketPair, TcpAckNum > &sessAckList, int &pktCounter_TOE_IPTX, int &tcpBytCntr_TOE_IPTX, deque< SimIp4Packet > &ipRxPacketizer) |
Emulate the behavior of the IP Tx Handler (IPTX). More... | |
bool | pTcpAppListen (TcpPort lsnPortNum, set< TcpPort > &openedPorts, stream< TcpAppLsnReq > &soTOE_LsnReq, stream< TcpAppLsnRep > &siTOE_LsnRep) |
TCP Application Listen (Tal). Requests TOE to listen on a new port. More... | |
bool | pTcpAppConnect (int &nrError, SocketPair &aSocketPair, map< SocketPair, SessionId > &openSessList, stream< SockAddr > &soTOE_OpnReq, stream< TcpAppOpnRep > &siTOE_OpnRep) |
TCP Application Connect (Tac). Requests TOE to open a new connection to a HOST socket. More... | |
void | pTcpAppEcho (int &nrError, ofstream &ofIPTX_Gold2, int &apRxBytCntr, stream< TcpAppData > &soTOE_Data, stream< TcpAppSndReq > &soTOE_SndReq, stream< TcpAppSndRep > &siTOE_SndRep, stream< TcpAppData > &siTAr_Data, stream< TcpAppSndReq > &siTAr_SndReq) |
TCP Application Echo (Tae). Performs an echo loopback between the receive and send parts of the TCP Application. More... | |
void | pTAIF_Recv (int &nrError, char &testMode, ofstream &ofTAIF_Data, int &appTxBytCntr, StsBit &piTOE_Ready, stream< TcpAppLsnReq > &soTOE_LsnReq, stream< TcpAppLsnRep > &siTOE_LsnRep, stream< TcpAppNotif > &siTOE_Notif, stream< TcpAppRdReq > &soTOE_DReq, stream< TcpAppData > &siTOE_Data, stream< TcpAppMeta > &siTOE_Meta, stream< TcpAppData > &soTAs_Data, stream< TcpAppSndReq > &soTAs_SndReq) |
TCP Application Receive (TAr). Emulates the Rx process of the TAIF. More... | |
void | pTAIF_Send (int &nrError, char &testMode, bool &testTxPath, Ip4Address &toeIpAddress, ifstream &ifTAIF_Data, ofstream &ofIPTX_Gold2, int &apRxBytCntr, StsBit &piTOE_Ready, stream< TcpAppOpnReq > &soTOE_OpnReq, stream< TcpAppOpnRep > &siTOE_OpnRep, stream< TcpAppData > &soTOE_Data, stream< TcpAppSndReq > &soTOE_SndReq, stream< TcpAppSndRep > &siTOE_SndRep, stream< TcpAppClsReq > &soTOE_ClsReq, stream< TcpAppData > &siTAr_Data, stream< TcpAppSndReq > &siTAr_SndReq) |
TCP Application Send (TAs). Emulates the Tx process of the TAIF. More... | |
void | pTAIF (bool &testTxPath, char &testMode, int &nrError, Ip4Address &toeIpAddress, ifstream &ifTAIF_Data, ofstream &ofTAIF_Data, ofstream &ofIPTX_Gold2, int &appRxBytCntr, int &appTxBytCntr, StsBit &piTOE_Ready, stream< TcpAppLsnReq > &soTOE_LsnReq, stream< TcpAppLsnRep > &siTOE_LsnRep, stream< TcpAppNotif > &siTOE_Notif, stream< TcpAppRdReq > &soTOE_DReq, stream< TcpAppData > &siTOE_Data, stream< TcpAppMeta > &siTOE_Meta, stream< TcpAppOpnReq > &soTOE_OpnReq, stream< TcpAppOpnRep > &siTOE_OpnRep, stream< TcpAppData > &soTOE_Data, stream< TcpAppSndReq > &soTOE_SndReq, stream< TcpAppSndRep > &siTOE_SndRep, stream< TcpAppClsReq > &soTOE_ClsReq) |
Emulates the behavior of the TCP application interface (TAIF). More... | |
void | toe_top_wrap (Ip4Addr piMMIO_IpAddr, stream< StsBit > &soMMIO_RxMemWrErr, stream< ap_uint< 8 > > &soMMIO_NotifDropCnt, stream< ap_uint< 8 > > &soMMIO_MetaDropCnt, stream< ap_uint< 8 > > &soMMIO_DataDropCnt, stream< ap_uint< 8 > > &soMMIO_CrcDropCnt, stream< ap_uint< 8 > > &soMMIO_SessDropCnt, stream< ap_uint< 8 > > &soMMIO_OooDropCnt, StsBit &poNTS_Ready, stream< AxisIp4 > &siIPRX_Data, stream< AxisIp4 > &soIPTX_Data, stream< TcpAppNotif > &soTAIF_Notif, stream< TcpAppRdReq > &siTAIF_DReq, stream< TcpAppData > &soTAIF_Data, stream< TcpAppMeta > &soTAIF_Meta, stream< TcpAppLsnReq > &siTAIF_LsnReq, stream< TcpAppLsnRep > &soTAIF_LsnRep, stream< TcpAppData > &siTAIF_Data, stream< TcpAppSndReq > &siTAIF_SndReq, stream< TcpAppSndRep > &soTAIF_SndRep, stream< TcpAppOpnReq > &siTAIF_OpnReq, stream< TcpAppOpnRep > &soTAIF_OpnRep, stream< TcpAppClsReq > &siTAIF_ClsReq, stream< DmCmd > &soMEM_RxP_RdCmd, stream< AxisApp > &siMEM_RxP_Data, stream< DmSts > &siMEM_RxP_WrSts, stream< DmCmd > &soMEM_RxP_WrCmd, stream< AxisApp > &soMEM_RxP_Data, stream< DmCmd > &soMEM_TxP_RdCmd, stream< AxisApp > &siMEM_TxP_Data, stream< DmSts > &siMEM_TxP_WrSts, stream< DmCmd > &soMEM_TxP_WrCmd, stream< AxisApp > &soMEM_TxP_Data, stream< CamSessionLookupRequest > &soCAM_SssLkpReq, stream< CamSessionLookupReply > &siCAM_SssLkpRep, stream< CamSessionUpdateRequest > &soCAM_SssUpdReq, stream< CamSessionUpdateReply > &siCAM_SssUpdRep, stream< ap_uint< 16 > > &soDBG_SssRelCnt, stream< ap_uint< 16 > > &soDBG_SssRegCnt, stream< RxBufPtr > &soDBG_RxFreeSpace, stream< ap_uint< 32 > > &soDBG_TcpIpRxByteCnt, stream< ap_uint< 8 > > &soDBG_OooDebug) |
A wrapper for the Toplevel of the TCP Offload Engine (TOE). More... | |
Testbench for the TCP Offload Engine (TOE) of the Network Transport Stack (NTS).
#define APP_RSP_LATENCY 10 |
Definition at line 98 of file test_rx_engine.hpp.
#define APP_RSP_LATENCY 10 |
Definition at line 97 of file test_tx_engine.hpp.
#define APP_RSP_LATENCY 10 |
Definition at line 112 of file test_toe.hpp.
#define CAM_LOOKUP_LATENCY 1 |
Definition at line 108 of file test_rx_engine.hpp.
#define CAM_LOOKUP_LATENCY 1 |
Definition at line 107 of file test_tx_engine.hpp.
#define CAM_LOOKUP_LATENCY 1 |
Definition at line 122 of file test_toe.hpp.
#define CAM_UPDATE_LATENCY 10 |
Definition at line 109 of file test_rx_engine.hpp.
#define CAM_UPDATE_LATENCY 10 |
Definition at line 108 of file test_tx_engine.hpp.
#define CAM_UPDATE_LATENCY 10 |
Definition at line 123 of file test_toe.hpp.
#define DEBUG_LEVEL (TRACE_OFF) |
Definition at line 45 of file test_ack_delay.cpp.
#define DEBUG_LEVEL (TRACE_OFF) |
Definition at line 55 of file test_rx_engine.cpp.
#define DEBUG_LEVEL (TRACE_OFF) |
Definition at line 55 of file test_tx_engine.cpp.
#define DEBUG_LEVEL (TRACE_OFF) |
Definition at line 55 of file test_toe.cpp.
#define DEFAULT_FPGA_IP4_ADDR 0x0A0CC801 |
Definition at line 81 of file test_rx_engine.hpp.
#define DEFAULT_FPGA_IP4_ADDR 0x0A0CC801 |
Definition at line 80 of file test_tx_engine.hpp.
#define DEFAULT_FPGA_IP4_ADDR 0x0A0CC801 |
Definition at line 95 of file test_toe.hpp.
#define DEFAULT_FPGA_LSN_PORT 0x0057 |
Definition at line 82 of file test_rx_engine.hpp.
#define DEFAULT_FPGA_LSN_PORT 0x0057 |
Definition at line 81 of file test_tx_engine.hpp.
#define DEFAULT_FPGA_LSN_PORT 0x0057 |
Definition at line 96 of file test_toe.hpp.
#define DEFAULT_FPGA_SND_PORT TOE_FIRST_EPHEMERAL_PORT_NUM |
Definition at line 83 of file test_rx_engine.hpp.
#define DEFAULT_FPGA_SND_PORT TOE_FIRST_EPHEMERAL_PORT_NUM |
Definition at line 82 of file test_tx_engine.hpp.
#define DEFAULT_FPGA_SND_PORT TOE_FIRST_EPHEMERAL_PORT_NUM |
Definition at line 97 of file test_toe.hpp.
#define DEFAULT_HOST_IP4_ADDR 0x0A0CC832 |
Definition at line 85 of file test_rx_engine.hpp.
#define DEFAULT_HOST_IP4_ADDR 0x0A0CC832 |
Definition at line 84 of file test_tx_engine.hpp.
#define DEFAULT_HOST_IP4_ADDR 0x0A0CC832 |
Definition at line 99 of file test_toe.hpp.
#define DEFAULT_HOST_LSN_PORT 0x0058 |
Definition at line 86 of file test_rx_engine.hpp.
#define DEFAULT_HOST_LSN_PORT 0x0058 |
Definition at line 85 of file test_tx_engine.hpp.
#define DEFAULT_HOST_LSN_PORT 0x0058 |
Definition at line 100 of file test_toe.hpp.
#define DEFAULT_HOST_SND_PORT 0x8058 |
Definition at line 87 of file test_rx_engine.hpp.
#define DEFAULT_HOST_SND_PORT 0x8058 |
Definition at line 86 of file test_tx_engine.hpp.
#define DEFAULT_HOST_SND_PORT 0x8058 |
Definition at line 101 of file test_toe.hpp.
#define FPGA_CLIENT_CONNECT_TIMEOUT 250 |
Definition at line 113 of file test_rx_engine.hpp.
#define FPGA_CLIENT_CONNECT_TIMEOUT 250 |
Definition at line 112 of file test_tx_engine.hpp.
#define FPGA_CLIENT_CONNECT_TIMEOUT 250 |
Definition at line 127 of file test_toe.hpp.
#define MEM_RD_CMD_LATENCY 10 |
Definition at line 100 of file test_rx_engine.hpp.
#define MEM_RD_CMD_LATENCY 10 |
Definition at line 99 of file test_tx_engine.hpp.
#define MEM_RD_CMD_LATENCY 10 |
Definition at line 114 of file test_toe.hpp.
#define MEM_RD_DAT_LATENCY 10 |
Definition at line 101 of file test_rx_engine.hpp.
#define MEM_RD_DAT_LATENCY 10 |
Definition at line 100 of file test_tx_engine.hpp.
#define MEM_RD_DAT_LATENCY 10 |
Definition at line 115 of file test_toe.hpp.
#define MEM_RD_STS_LATENCY 10 |
Definition at line 102 of file test_rx_engine.hpp.
#define MEM_RD_STS_LATENCY 10 |
Definition at line 101 of file test_tx_engine.hpp.
#define MEM_RD_STS_LATENCY 10 |
Definition at line 116 of file test_toe.hpp.
#define MEM_WR_CMD_LATENCY 10 |
Definition at line 104 of file test_rx_engine.hpp.
#define MEM_WR_CMD_LATENCY 10 |
Definition at line 103 of file test_tx_engine.hpp.
#define MEM_WR_CMD_LATENCY 10 |
Definition at line 118 of file test_toe.hpp.
#define MEM_WR_DAT_LATENCY 10 |
Definition at line 105 of file test_rx_engine.hpp.
#define MEM_WR_DAT_LATENCY 10 |
Definition at line 104 of file test_tx_engine.hpp.
#define MEM_WR_DAT_LATENCY 10 |
Definition at line 119 of file test_toe.hpp.
#define MEM_WR_STS_LATENCY 10 |
Definition at line 106 of file test_rx_engine.hpp.
#define MEM_WR_STS_LATENCY 10 |
Definition at line 105 of file test_tx_engine.hpp.
#define MEM_WR_STS_LATENCY 10 |
Definition at line 120 of file test_toe.hpp.
#define RTT_LINK 25 |
Definition at line 111 of file test_rx_engine.hpp.
#define RTT_LINK 25 |
Definition at line 110 of file test_tx_engine.hpp.
#define RTT_LINK 25 |
Definition at line 125 of file test_toe.hpp.
#define TB_GRACE_TIME 2500 |
Definition at line 40 of file test_ack_delay.hpp.
#define TB_GRACE_TIME 2500 |
Definition at line 69 of file test_rx_engine.hpp.
#define TB_GRACE_TIME 2500 |
Definition at line 68 of file test_tx_engine.hpp.
#define TB_GRACE_TIME 2500 |
Definition at line 83 of file test_toe.hpp.
#define TB_STARTUP_DELAY 25 |
Definition at line 39 of file test_ack_delay.hpp.
#define TB_STARTUP_DELAY (TOE_SIZEOF_LISTEN_PORT_TABLE) |
Definition at line 68 of file test_rx_engine.hpp.
#define TB_STARTUP_DELAY (TOE_SIZEOF_LISTEN_PORT_TABLE) |
Definition at line 67 of file test_tx_engine.hpp.
#define TB_STARTUP_DELAY (TOE_SIZEOF_LISTEN_PORT_TABLE) |
Definition at line 82 of file test_toe.hpp.
#define TB_STARTUP_TIME 25 |
Definition at line 41 of file test_ack_delay.hpp.
#define TB_STARTUP_TIME 25 |
Definition at line 73 of file test_rx_engine.hpp.
#define TB_STARTUP_TIME 25 |
Definition at line 72 of file test_tx_engine.hpp.
#define TB_STARTUP_TIME 25 |
Definition at line 87 of file test_toe.hpp.
#define THIS_NAME "TB" |
Definition at line 39 of file test_ack_delay.cpp.
#define THIS_NAME "TB" |
Definition at line 39 of file test_rx_engine.cpp.
#define THIS_NAME "TB" |
Definition at line 39 of file test_tx_engine.cpp.
#define THIS_NAME "TB" |
Definition at line 39 of file test_toe.cpp.
#define TRACE_ALL 0xFFFF |
Definition at line 44 of file test_ack_delay.cpp.
#define TRACE_ALL 0xFFFF |
Definition at line 54 of file test_rx_engine.cpp.
#define TRACE_ALL 0xFFFF |
Definition at line 54 of file test_tx_engine.cpp.
#define TRACE_ALL 0xFFFF |
Definition at line 54 of file test_toe.cpp.
#define TRACE_CAM 1 << 1 |
Definition at line 42 of file test_rx_engine.cpp.
#define TRACE_CAM 1 << 1 |
Definition at line 42 of file test_tx_engine.cpp.
#define TRACE_CAM 1 << 1 |
Definition at line 42 of file test_toe.cpp.
#define TRACE_IPRX 1 << 2 |
Definition at line 43 of file test_rx_engine.cpp.
#define TRACE_IPRX 1 << 2 |
Definition at line 43 of file test_tx_engine.cpp.
#define TRACE_IPRX 1 << 2 |
Definition at line 43 of file test_toe.cpp.
#define TRACE_IPTX 1 << 3 |
Definition at line 44 of file test_rx_engine.cpp.
#define TRACE_IPTX 1 << 3 |
Definition at line 44 of file test_tx_engine.cpp.
#define TRACE_IPTX 1 << 3 |
Definition at line 44 of file test_toe.cpp.
#define TRACE_MAIN 1 << 4 |
Definition at line 45 of file test_rx_engine.cpp.
#define TRACE_MAIN 1 << 4 |
Definition at line 45 of file test_tx_engine.cpp.
#define TRACE_MAIN 1 << 4 |
Definition at line 45 of file test_toe.cpp.
#define TRACE_OFF 0x0000 |
Definition at line 41 of file test_ack_delay.cpp.
#define TRACE_OFF 0x0000 |
Definition at line 41 of file test_rx_engine.cpp.
#define TRACE_OFF 0x0000 |
Definition at line 41 of file test_tx_engine.cpp.
#define TRACE_OFF 0x0000 |
Definition at line 41 of file test_toe.cpp.
#define TRACE_RCV 1 << 1 |
Definition at line 42 of file test_ack_delay.cpp.
#define TRACE_RXMEM 1 << 5 |
Definition at line 46 of file test_rx_engine.cpp.
#define TRACE_RXMEM 1 << 5 |
Definition at line 46 of file test_tx_engine.cpp.
#define TRACE_RXMEM 1 << 5 |
Definition at line 46 of file test_toe.cpp.
#define TRACE_SND 1 << 2 |
Definition at line 43 of file test_ack_delay.cpp.
#define TRACE_Tac 1 << 9 |
Definition at line 50 of file test_rx_engine.cpp.
#define TRACE_Tac 1 << 9 |
Definition at line 50 of file test_tx_engine.cpp.
#define TRACE_Tac 1 << 9 |
Definition at line 50 of file test_toe.cpp.
#define TRACE_Tae 1 << 10 |
Definition at line 51 of file test_rx_engine.cpp.
#define TRACE_Tae 1 << 10 |
Definition at line 51 of file test_tx_engine.cpp.
#define TRACE_Tae 1 << 10 |
Definition at line 51 of file test_toe.cpp.
#define TRACE_TAIF 1 << 6 |
Definition at line 47 of file test_rx_engine.cpp.
#define TRACE_TAIF 1 << 6 |
Definition at line 47 of file test_tx_engine.cpp.
#define TRACE_TAIF 1 << 6 |
Definition at line 47 of file test_toe.cpp.
#define TRACE_Tal 1 << 11 |
Definition at line 52 of file test_rx_engine.cpp.
#define TRACE_Tal 1 << 11 |
Definition at line 52 of file test_tx_engine.cpp.
#define TRACE_Tal 1 << 11 |
Definition at line 52 of file test_toe.cpp.
#define TRACE_TAr 1 << 7 |
Definition at line 48 of file test_rx_engine.cpp.
#define TRACE_TAr 1 << 7 |
Definition at line 48 of file test_tx_engine.cpp.
#define TRACE_TAr 1 << 7 |
Definition at line 48 of file test_toe.cpp.
#define TRACE_TAs 1 << 8 |
Definition at line 49 of file test_rx_engine.cpp.
#define TRACE_TAs 1 << 8 |
Definition at line 49 of file test_tx_engine.cpp.
#define TRACE_TAs 1 << 8 |
Definition at line 49 of file test_toe.cpp.
#define TRACE_TXMEM 1 << 12 |
Definition at line 53 of file test_rx_engine.cpp.
#define TRACE_TXMEM 1 << 12 |
Definition at line 53 of file test_tx_engine.cpp.
#define TRACE_TXMEM 1 << 12 |
Definition at line 53 of file test_toe.cpp.
enum TestingMode |
Enumerator | |
---|---|
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE | |
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE | |
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE |
Definition at line 92 of file test_rx_engine.hpp.
enum TestingMode |
Enumerator | |
---|---|
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE | |
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE | |
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE |
Definition at line 91 of file test_tx_engine.hpp.
enum TestingMode |
Enumerator | |
---|---|
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE | |
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE | |
RX_MODE | |
TX_MODE | |
BIDIR_MODE | |
ECHO_MODE |
Definition at line 106 of file test_toe.hpp.
void cmdSetCommandParser | ( | const char * | callerName, |
vector< string > | stringVector | ||
) |
Parse and handle a 'COMMAND/SET' request.
[in] | callerName | The name of the caller process (e.g. "TB/IPRX"). |
[in] | stringVector | A tokenized vector of strings. |
A test vector file may contain commands for setting testbench parameters such as an IP address or a TCP port number. Such a 'COMMAND/SET'can be identified by the presence of a character '>' at the first position of a '.dat' file's line, followed by a space character and the string 'SET'. Examples:
SET FpgatIp4Addr 192.168.1.23
Warning: This function does not return any thing but may set a specific global variable.
Definition at line 690 of file test_rx_engine.cpp.
void cmdTestCommandParser | ( | const char * | callerName, |
vector< string > | stringVector | ||
) |
Parse and handle a 'COMMAND/TEST' request.
[in] | callerName | The name of the caller process (e.g. "TB/IPRX"). |
[in] | stringVector | A tokenized vector of strings. |
A test vector file may contain commands for setting a testbench checker such as the verification of the IPv4-Header-Checksum field or the TCP checksum field. Such a 'COMMAND/TEST' can be identified by the presence of a character '>' at the first position of a '.dat' file's line, followed by a space character and the string 'TEST'. Examples:
TEST Ip4HdrCsum false TEST RcvdIp4Packet false
Warning: This function returns nothing but may set a specific global variable.
Definition at line 787 of file test_rx_engine.cpp.
int drainMmioDropCounter | ( | stream< T > & | ss, |
string | ssName | ||
) |
Empty a DropCounter stream and throw it away.
[in/out] | ss A ref to the stream to drain. | |
[in] | ssName | The name of the stream to drain. |
Definition at line 101 of file test_rx_engine.cpp.
void increaseSimTime | ( | unsigned int | cycles | ) |
Increase the simulation time of the testbench.
[in] | The | number of cycles to increase. |
Definition at line 77 of file test_rx_engine.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main (does use any param).
Main function.
[in] | mode | The test mode (0=RX_MODE, 1=TX_MODE, 2=BIDIR_MODE, 3=ECHO_MODE). |
[in] | inpFile1 | The pathname of the input file containing the test vectors to be fed to the TOE: If (mode==0 || mode=2) inpFile1 = siIPRX_<TestName> Else inpFile1 = siTAIF_<TestName>. |
[in] | inpFile2 | The pathname of the second input file containing the test vectors to be fed to the TOE: inpFile2 == siTAIF_<TestName>. |
Definition at line 64 of file test_ack_delay.cpp.
const char * myCamAccessToString | ( | int | initiator | ) |
Convert an access CAM initiator into a string.
[in] | initiator | The ID of the CAM accessor. |
Definition at line 89 of file test_rx_engine.cpp.
void pEmulateCam | ( | stream< CamSessionLookupRequest > & | siTOE_SssLkpReq, |
stream< CamSessionLookupReply > & | soTOE_SssLkpRep, | ||
stream< CamSessionUpdateRequest > & | siTOE_SssUpdReq, | ||
stream< CamSessionUpdateReply > & | soTOE_SssUpdRep | ||
) |
Emulate the behavior of the Content Addressable Memory (TOECAM).
[in] | siTOE_SssLkpReq | Session lookup request from [TOE]. |
[out] | soTOE_SssLkpRep | Session lookup reply to [TOE]. |
[in] | siTOE_SssUpdReq | Session update request from [TOE]. |
[out] | soTOE_SssUpdRep | Session update reply to [TOE]. |
Definition at line 128 of file test_rx_engine.cpp.
void pEmulateRxBufMem | ( | DummyMemory * | memory, |
int & | nrError, | ||
stream< DmCmd > & | siTOE_RxP_WrCmd, | ||
stream< AxisApp > & | siTOE_RxP_Data, | ||
stream< DmSts > & | soTOE_RxP_WrSts, | ||
stream< DmCmd > & | siTOE_RxP_RdCmd, | ||
stream< AxisApp > & | soTOE_RxP_Data | ||
) |
Emulate the behavior of the Receive DDR4 Buffer Memory (RXMEM).
[in/out] | *memory A pointer to a dummy model of the DDR4 memory. | |
[in] | nrError | A reference to the error counter of the [TB]. |
[in] | siTOE_RxP_WrCmd | A ref to the write command stream from [TOE]. |
[in] | siTOE_RxP_Data | A ref to the data stream from [TOE]. |
[out] | soTOE_RxP_WrSts | A ref to the write status stream to [TOE]. |
[in] | siTOE_RxP_RdCmd | A ref to the read command stream from [TOE]. |
[out] | soTOE_RxP_Data | A ref to the data stream to [TOE]. |
Definition at line 238 of file test_rx_engine.cpp.
void pEmulateTxBufMem | ( | DummyMemory * | memory, |
int & | nrError, | ||
stream< DmCmd > & | siTOE_TxP_WrCmd, | ||
stream< AxisApp > & | siTOE_TxP_Data, | ||
stream< DmSts > & | soTOE_TxP_WrSts, | ||
stream< DmCmd > & | siTOE_TxP_RdCmd, | ||
stream< AxisApp > & | soTOE_TxP_Data | ||
) |
Emulate the behavior of the Transmit DDR4 Buffer Memory (TXMEM).
[in/out] | *memory A pointer to a dummy model of the DDR4 memory. | |
[in] | nrError | A reference to the error counter of the [TB]. |
[in] | siTOE_TxP_WrCmd | A ref to the write command stream from TOE. |
[in] | siTOE_TxP_Data | A ref to the data stream from TOE. |
[out] | soTOE_TxP_WrSts | A ref to the write status stream to TOE. |
[in] | siTOE_TxP_RdCmd | A ref to the read command stream from TOE. |
[out] | soTOE_TxP_Data | A ref to the data stream to TOE. |
Definition at line 391 of file test_rx_engine.cpp.
void pIPRX | ( | ifstream & | ifIPRX_Data, |
ofstream & | ofTAIF_Gold, | ||
bool & | testRxPath, | ||
int & | ipRxPktCounter, | ||
int & | tcpBytCntr_IPRX_TOE, | ||
deque< SimIp4Packet > & | ipRxPacketizer, | ||
map< SocketPair, TcpAckNum > & | sessAckList, | ||
StsBit & | piTOE_Ready, | ||
stream< AxisIp4 > & | soTOE_Data | ||
) |
Emulate the behavior of the IP Rx Path (IPRX).
[in] | ifIPRX_Data | A ref to the input file w/ IP Rx packets. |
[in] | ofTAIF_Gold | A ref to the output file w/ TCP App segments. |
[in] | testRxPath | Indicates if the test of the Rx path is enabled. |
[i/o] | ipRxPktCounter A ref to the IP Rx packet counter. (counts all kinds and from all sessions). | |
[i/o] | tcpBytCntr_IPRX_TOE A ref to the counter of TCP bytes sent from IPRX-to-TOE. (counts all kinds and from all sessions). | |
[i/o] | ipRxPacketizer A ref to the RxPacketizer (double-ended queue). | |
[in] | sessAckList | A ref to an associative container which holds the sessions as socket pair associations. |
[in] | piTOE_Ready | A reference to the ready signal of TOE. |
[out] | soTOE_Data | A reference to the data stream to TOE. |
Reads in new IPv4 packets from the Rx input file and stores them into the the IPv4 RxPacketizer (ipRxPacketizer). This ipRxPacketizer is a double-ended queue that is also fed by the process 'pIPTX' when it wants to generate ACK packets. If packets are stored in the 'ipRxPacketizer', they will be forwarded to the TOE over the 'sIRPX_Toe_Data' stream at the pace of one chunk per clock cycle.
Definition at line 1039 of file test_rx_engine.cpp.
void pIPRX_FeedTOE | ( | deque< SimIp4Packet > & | ipRxPacketizer, |
int & | ipRxPktCounter, | ||
stream< AxisIp4 > & | soTOE_Data, | ||
map< SocketPair, TcpAckNum > & | sessAckList | ||
) |
Feed TOE with an IP packet.
[in] | ipRxPacketizer | A ref to the deque w/ an IP Rx packets. |
[i/o] | ipRxPktCounter A ref to the IP Rx packet counter. (counts all kinds of packets and from all sessions). | |
[out] | soTOE_Data | A reference to the data stream to TOE. |
[in] | sessAckList | a ref to an associative container that holds the sessions as socket pair associations. |
: Empties the double-ended packetizer queue which contains the IPv4 packet chunks intended for the IPRX interface of the TOE. These chunks are written onto the 'sIPRX_Toe_Data' stream.
Definition at line 976 of file test_rx_engine.cpp.
int pIPRX_InjectAckNumber | ( | SimIp4Packet & | ipRxPacket, |
map< SocketPair, TcpAckNum > & | sessAckList | ||
) |
Take the ACK number of a session and inject it into the sequence number field of the current packet.
[in] | ipRxPacket | A ref to an IP packet. |
[in] | sessAckList | A ref to an associative container which holds the sessions as socket pair associations. |
Definition at line 893 of file test_rx_engine.cpp.
void pIPTX | ( | StsBit & | piTOE_Ready, |
stream< AxisIp4 > & | siTOE_Data, | ||
ofstream & | ofIPTX_Data1, | ||
ofstream & | ofIPTX_Data2, | ||
map< SocketPair, TcpAckNum > & | sessAckList, | ||
int & | pktCounter_TOE_IPTX, | ||
int & | tcpBytCntr_TOE_IPTX, | ||
deque< SimIp4Packet > & | ipRxPacketizer | ||
) |
Emulate the behavior of the IP Tx Handler (IPTX).
[in] | piTOE_Ready | A reference to the ready signal of TOE. |
[in] | siTOE_Data | A reference to the data stream from TOE. |
[in] | ofIPTX_Data1 | The output file to write. |
[in] | ofIPTX_Data2 | The output file to write. |
[in] | sessAckList | A ref to an associative container which holds the sessions as socket pair associations. |
[i/o] | pktCounter_TOE_IPTX A ref to the counter of packets sent from TOE-to-IPTX (counts all kinds and from all sessions). | |
[i/o] | tcpBytCntr_TOE_IPTX A ref to the TCP byte counter on the IP Tx I/F. | |
[out] | ipRxPacketizer | A ref to the IPv4 Rx packetizer. |
Drains the data from the IPTX interface of the TOE and stores them into an IPv4 Tx Packet (ipTxPacket). This ipTxPacket is a double-ended queue used to accumulate all the data chunks until a whole packet is received. This queue is further read by a packet parser which either forwards the packets to an output file, or which generates an ACK packet that is injected into the 'ipRxPacketizer' (see process 'pIPRX').
Definition at line 1434 of file test_rx_engine.cpp.
bool pIPTX_Parse | ( | SimIp4Packet & | ipTxPacket, |
map< SocketPair, TcpAckNum > & | sessAckList, | ||
deque< SimIp4Packet > & | ipRxPacketizer | ||
) |
Parse the TCP/IP packets generated by the TOE.
[in] | ipTxPacket | A ref to the packet received from the TOE. |
[in] | sessAckList | A ref to an associative container which holds the sessions as socket pair associations. |
[out] | ipRxPacketizer | A ref to dequeue w/ packets for IPRX. |
Looks for an ACK in the IP packet. If found, stores the 'ackNumber' from that packet into the 'seqNumber' deque of the Rx input stream and clears the deque containing the IP Tx packet.
Definition at line 1252 of file test_rx_engine.cpp.
void pTAIF | ( | bool & | testTxPath, |
char & | testMode, | ||
int & | nrError, | ||
Ip4Address & | toeIpAddress, | ||
ifstream & | ifTAIF_Data, | ||
ofstream & | ofTAIF_Data, | ||
ofstream & | ofIPTX_Gold2, | ||
int & | appRxBytCntr, | ||
int & | appTxBytCntr, | ||
StsBit & | piTOE_Ready, | ||
stream< TcpAppLsnReq > & | soTOE_LsnReq, | ||
stream< TcpAppLsnRep > & | siTOE_LsnRep, | ||
stream< TcpAppNotif > & | siTOE_Notif, | ||
stream< TcpAppRdReq > & | soTOE_DReq, | ||
stream< TcpAppData > & | siTOE_Data, | ||
stream< TcpAppMeta > & | siTOE_Meta, | ||
stream< TcpAppOpnReq > & | soTOE_OpnReq, | ||
stream< TcpAppOpnRep > & | siTOE_OpnRep, | ||
stream< TcpAppData > & | soTOE_Data, | ||
stream< TcpAppSndReq > & | soTOE_SndReq, | ||
stream< TcpAppSndRep > & | siTOE_SndRep, | ||
stream< TcpAppClsReq > & | soTOE_ClsReq | ||
) |
Emulates the behavior of the TCP application interface (TAIF).
[in] | testTxPath | Indicates if the Tx path is to be tested. |
[in] | testMode | Indicates the test mode of operation (0|1|2|3). |
[in] | nrError | A reference to the error counter of the [TB]. |
[in] | toeIpAddress | The local IP address used by the TOE. |
[in] | ifTAIF_Data | A ref to the input Rx application file to read from. |
[in] | ofTAIF_Data | A ref to the output Tx application file to write to. |
[in] | ofIPTX_Gold2 | A ref to the IPTX gold file to write to. |
[i/o] | appRxBytCntr A ref to the counter of bytes on the APP Rx I/F. | |
[i/o] | appTxBytCntr A ref to the counter of bytes on the APP Tx I/F. | |
[in] | piTOE_Ready | A reference to the ready signal of [TOE]. |
[out] | soTOE_LsnReq | TCP listen port request to [TOE]. |
[in] | siTOE_LsnAck | TCP listen port acknowledge from [TOE]. |
[in] | siTOE_Notif | TCP notification from [TOE]. |
[out] | soTOE_DReq | TCP data request to [TOE]. |
[in] | siTOE_Data | TCP data stream from [TOE]. |
[in] | siTOE_Meta | TCP metadata stream from [TOE]. |
[out] | soTOE_OpnReq | TCP open port request to [TOE]. |
[in] | siTOE_OpnRep | TCP open port reply from [TOE]. |
[out] | soTOE_Data | TCP data stream to [TOE]. |
[out] | soTOE_SndReq | TCP data send request to [TOE]. |
[in] | siTOE_SndRep | TCP data send reply from [TOE]. |
[out] | soTOE_ClsReq | TCP close connection request to [TOE]. |
: The TCP Application Interface (TAIF) implements two processes: 1) pTAIF_Recv (TAr) that emulates the receive part of the application. 2) pTAIF_Send (TAs) that emulates the transmit part of the application.
Definition at line 2289 of file test_rx_engine.cpp.
void pTAIF_Recv | ( | int & | nrError, |
char & | testMode, | ||
ofstream & | ofTAIF_Data, | ||
int & | appTxBytCntr, | ||
StsBit & | piTOE_Ready, | ||
stream< TcpAppLsnReq > & | soTOE_LsnReq, | ||
stream< TcpAppLsnRep > & | siTOE_LsnRep, | ||
stream< TcpAppNotif > & | siTOE_Notif, | ||
stream< TcpAppRdReq > & | soTOE_DReq, | ||
stream< TcpAppData > & | siTOE_Data, | ||
stream< TcpAppMeta > & | siTOE_Meta, | ||
stream< TcpAppData > & | soTAs_Data, | ||
stream< TcpAppSndReq > & | soTAs_SndReq | ||
) |
TCP Application Receive (TAr). Emulates the Rx process of the TAIF.
[in] | nrError | A reference to the error counter of the [TB]. |
[in] | testMode | Indicates the test mode of operation (0|1|2|3). |
[in] | ofTAIF_Data | A ref to the output Tx application file to write to. |
[i/o] | appTxBytCntr A ref to the counter of bytes on the Tx APP I/F. | |
[in] | piTOE_Ready | A reference to the ready signal of TOE. |
[out] | soTOE_LsnReq | TCP listen port request to TOE. |
[in] | siTOE_LsnAck | TCP listen port acknowledge from TOE. |
[in] | siTOE_Notif | TCP notification from TOE. |
[out] | soTOE_DReq | TCP data request to TOE. |
[in] | siTOE_Data | TCP data stream from TOE. |
[in] | siTOE_Meta | TCP metadata stream from TOE. |
[out] | soTAs_Data | TCP data stream forwarded to TcpAppSend (TAs). |
[out] | soTAs_SndReq | TCP data send request forwarded to [TAs]. |
Definition at line 1798 of file test_rx_engine.cpp.
void pTAIF_Send | ( | int & | nrError, |
char & | testMode, | ||
bool & | testTxPath, | ||
Ip4Address & | toeIpAddress, | ||
ifstream & | ifTAIF_Data, | ||
ofstream & | ofIPTX_Gold2, | ||
int & | apRxBytCntr, | ||
StsBit & | piTOE_Ready, | ||
stream< TcpAppOpnReq > & | soTOE_OpnReq, | ||
stream< TcpAppOpnRep > & | siTOE_OpnRep, | ||
stream< TcpAppData > & | soTOE_Data, | ||
stream< TcpAppSndReq > & | soTOE_SndReq, | ||
stream< TcpAppSndRep > & | siTOE_SndRep, | ||
stream< TcpAppClsReq > & | soTOE_ClsReq, | ||
stream< TcpAppData > & | siTAr_Data, | ||
stream< TcpAppSndReq > & | siTAr_SndReq | ||
) |
TCP Application Send (TAs). Emulates the Tx process of the TAIF.
[in] | nrError | A reference to the error counter of the [TB]. |
[in] | testMode | Indicates the test mode of operation (0|1|2|3). |
[in] | testTxPath | Indicates if the Tx path is to be tested. |
[in] | toeIpAddress | The local IP address used by the TOE. |
[in] | ifTAIF_Data | A ref to the input TAIF file to read. |
[in] | ofIPTX_Gold2 | A ref to the IPTX gold file to write. |
[i/o] | apRxBytCntr A ref to the counter of bytes on the APP Rx I/F. | |
[in] | piTOE_Ready | A reference to the ready signal of TOE. |
[out] | soTOE_OpnReq | TCP open port request to [TOE]. |
[in] | siTOE_OpnRep | TCP open port reply to [TOE]. |
[out] | soTOE_Data | TCP data stream to [TOE]. |
[out] | soTOE_SndReq | TCP data send request to [TOE]. |
[in] | siTOE_SndRep | TCP data send reply from [TOE]. |
[out] | soTOE_ClsReq | TCP close connection request to [TOE]. |
[in] | siTAr_Data | TCP data stream from TcpAppRecv (TAr) process. |
[in] | siTAr_SndReq | TCP data send request from [TAr]. |
: The max number of connections that can be opened is given by 'NO_TX_SESSIONS'.
Definition at line 1968 of file test_rx_engine.cpp.
bool pTcpAppConnect | ( | int & | nrError, |
SocketPair & | aSocketPair, | ||
map< SocketPair, SessionId > & | openSessList, | ||
stream< SockAddr > & | soTOE_OpnReq, | ||
stream< TcpAppOpnRep > & | siTOE_OpnRep | ||
) |
TCP Application Connect (Tac). Requests TOE to open a new connection to a HOST socket.
[in] | nrError | A reference to the error counter of the [TB]. |
[in] | aSocketPair | The socket pair of the connection to open. |
[in] | openSessList | A ref to an associative container that holds the IDs of the opened sessions. |
[out] | soTOE_OpnReq | TCP open connection request to [TOE]. |
[in] | siTOE_OpnRep | TCP open connection reply from [TOE]. |
Definition at line 1606 of file test_rx_engine.cpp.
void pTcpAppEcho | ( | int & | nrError, |
ofstream & | ofIPTX_Gold2, | ||
int & | apRxBytCntr, | ||
stream< TcpAppData > & | soTOE_Data, | ||
stream< TcpAppSndReq > & | soTOE_SndReq, | ||
stream< TcpAppSndRep > & | siTOE_SndRep, | ||
stream< TcpAppData > & | siTAr_Data, | ||
stream< TcpAppSndReq > & | siTAr_SndReq | ||
) |
TCP Application Echo (Tae). Performs an echo loopback between the receive and send parts of the TCP Application.
[in] | nrError | A reference to the error counter of the [TB]. |
[in] | ofIPTX_Gold2 | A ref to the IPTX gold file to write. |
[i/o] | apRxBytCntr A ref to the counter of bytes on the APP Rx I/F. | |
[out] | soTOE_Data | TCP data stream to [TOE]. |
[out] | soTOE_SndReq | TCP data send request to [TOE]. |
[in] | siTOE_SndRep | TCP data send reply from [TOE]. |
[in] | siTAr_Data | TCP data stream from TcpAppRecv (TAr) process. |
[in] | siTAr_SndReq | TCP data send request from [TAr]. |
Definition at line 1708 of file test_rx_engine.cpp.
bool pTcpAppListen | ( | TcpPort | lsnPortNum, |
set< TcpPort > & | openedPorts, | ||
stream< TcpAppLsnReq > & | soTOE_LsnReq, | ||
stream< TcpAppLsnRep > & | siTOE_LsnRep | ||
) |
TCP Application Listen (Tal). Requests TOE to listen on a new port.
[in] | lsnPortNum | The port # to listen to. |
[in] | openedPorts | A ref to the set of ports opened in listening mode. |
[out] | soTOE_LsnReq | TCP listen port request to TOE. |
[in] | siTOE_LsnRep | TCP listen port status from TOE. |
Definition at line 1533 of file test_rx_engine.cpp.
bool setGlobalParameters | ( | const char * | callerName, |
unsigned int | startupDelay, | ||
ifstream & | inputFile | ||
) |
Parse the input test file and set the global parameters of the TB.
[in] | callerName | The name of the caller process (e.g. "TB/IPRX"). |
[in] | startupDelay | The time it takes for TOE to be ready. |
[in] | inputFile | A ref to the input file to parse. |
: A global parameter specifies a general property of the testbench such as the minimum number of simulation cycles, the default IP address of the TOE or the default port to listen to. Such a parameter is passed to the TB via the test vector file. The line containing such a parameter must start with the single upper character 'G' followed by a space character. Examples: G PARAM SimCycles <NUM> G PARAM LocalSocket <ADDR> <PORT>
Definition at line 548 of file test_rx_engine.cpp.
void stepSim | ( | ) |
Increment the simulation counter.
Increment the simulation counter of the testbench.
Definition at line 50 of file test_ack_delay.cpp.
void toe_top_wrap | ( | Ip4Addr | piMMIO_IpAddr, |
stream< StsBit > & | soMMIO_RxMemWrErr, | ||
stream< ap_uint< 8 > > & | soMMIO_NotifDropCnt, | ||
stream< ap_uint< 8 > > & | soMMIO_MetaDropCnt, | ||
stream< ap_uint< 8 > > & | soMMIO_DataDropCnt, | ||
stream< ap_uint< 8 > > & | soMMIO_CrcDropCnt, | ||
stream< ap_uint< 8 > > & | soMMIO_SessDropCnt, | ||
stream< ap_uint< 8 > > & | soMMIO_OooDropCnt, | ||
StsBit & | poNTS_Ready, | ||
stream< AxisIp4 > & | siIPRX_Data, | ||
stream< AxisIp4 > & | soIPTX_Data, | ||
stream< TcpAppNotif > & | soTAIF_Notif, | ||
stream< TcpAppRdReq > & | siTAIF_DReq, | ||
stream< TcpAppData > & | soTAIF_Data, | ||
stream< TcpAppMeta > & | soTAIF_Meta, | ||
stream< TcpAppLsnReq > & | siTAIF_LsnReq, | ||
stream< TcpAppLsnRep > & | soTAIF_LsnRep, | ||
stream< TcpAppData > & | siTAIF_Data, | ||
stream< TcpAppSndReq > & | siTAIF_SndReq, | ||
stream< TcpAppSndRep > & | soTAIF_SndRep, | ||
stream< TcpAppOpnReq > & | siTAIF_OpnReq, | ||
stream< TcpAppOpnRep > & | soTAIF_OpnRep, | ||
stream< TcpAppClsReq > & | siTAIF_ClsReq, | ||
stream< DmCmd > & | soMEM_RxP_RdCmd, | ||
stream< AxisApp > & | siMEM_RxP_Data, | ||
stream< DmSts > & | siMEM_RxP_WrSts, | ||
stream< DmCmd > & | soMEM_RxP_WrCmd, | ||
stream< AxisApp > & | soMEM_RxP_Data, | ||
stream< DmCmd > & | soMEM_TxP_RdCmd, | ||
stream< AxisApp > & | siMEM_TxP_Data, | ||
stream< DmSts > & | siMEM_TxP_WrSts, | ||
stream< DmCmd > & | soMEM_TxP_WrCmd, | ||
stream< AxisApp > & | soMEM_TxP_Data, | ||
stream< CamSessionLookupRequest > & | soCAM_SssLkpReq, | ||
stream< CamSessionLookupReply > & | siCAM_SssLkpRep, | ||
stream< CamSessionUpdateRequest > & | soCAM_SssUpdReq, | ||
stream< CamSessionUpdateReply > & | siCAM_SssUpdRep, | ||
stream< ap_uint< 16 > > & | soDBG_SssRelCnt, | ||
stream< ap_uint< 16 > > & | soDBG_SssRegCnt, | ||
stream< RxBufPtr > & | soDBG_RxFreeSpace, | ||
stream< ap_uint< 32 > > & | soDBG_TcpIpRxByteCnt, | ||
stream< ap_uint< 8 > > & | soDBG_OooDebug | ||
) |
A wrapper for the Toplevel of the TCP Offload Engine (TOE).
[in] | piMMIO_IpAddr | IP4 Address from [MMIO]. |
[out] | soMMIO_RxMemWrErr | Reports a Rx memory write error. |
[out] | soMMIO_NotifDrop | The value of the notification drop counter. |
[out] | soMMIO_MetaDrop | The value of the metadata drop counter. |
[out] | soMMIO_DataDrop | The value of the data drop counter. |
[out] | soMMIO_CrcDrop | The value of the CRC drop counter. |
[out] | soMMIO_SessDrop | The value of the session drop counter. |
[out] | soMMIO_OooDrop | The value of the out-of-order drop counter. |
[out] | poNTS_Ready | Ready signal of TOE. |
[in] | siIPRX_Data | IP4 data stream from [IPRX]. |
[out] | soIPTX_Data | IP4 data stream to [IPTX]. |
[out] | soTAIF_Notif | APP data notification to [TAIF]. |
[in] | siTAIF_DReq | APP data request from [TAIF]. |
[out] | soTAIF_Data | APP data stream to [TAIF]. |
[out] | soTAIF_Meta | APP metadata stream to [TAIF]. |
[in] | siTAIF_LsnReq | APP listen port request from [TAIF]. |
[out] | soTAIF_LsnRep | APP listen port reply to [TAIF]. |
[in] | siTAIF_Data | APP data stream from [TAIF]. |
[in] | siTAIF_SndReq | APP request to send from [TAIF]. |
[out] | soTAIF_SndRep | APP send reply to [TAIF]. |
[in] | siTAIF_OpnReq | APP open port request from [TAIF]. |
[out] | soTAIF_OpnRep | APP open port reply to [TAIF]. |
[in] | siTAIF_ClsReq | APP close connection request from [TAIF]. |
[out] | soMEM_RxP_RdCmd | Rx memory read command to [MEM]. |
[in] | siMEM_RxP_Data | Rx memory data from [MEM]. |
[in] | siMEM_RxP_WrSts | Rx memory write status from [MEM]. |
[out] | soMEM_RxP_WrCmd | Rx memory write command to [MEM]. |
[out] | soMEM_RxP_Data | Rx memory data to [MEM]. |
[out] | soMEM_TxP_RdCmd | Tx memory read command to [MEM]. |
[in] | siMEM_TxP_Data | Tx memory data from [MEM]. |
[in] | siMEM_TxP_WrSts | Tx memory write status from [MEM]. |
[out] | soMEM_TxP_WrCmd | Tx memory write command to [MEM]. |
[out] | soMEM_TxP_Data | Tx memory data to [MEM]. |
[out] | soCAM_SssLkpReq | Session lookup request to [CAM]. |
[in] | siCAM_SssLkpRep | Session lookup reply from [CAM]. |
[out] | soCAM_SssUpdReq | Session update request to [CAM]. |
[in] | siCAM_SssUpdRep | Session update reply from [CAM]. |
[out] | soDBG_SssRelCnt | Session release count (for DEBUG). |
[out] | soDBG_SssRegCnt | Session register count (foe DEBUG). |
This process is a wrapper for the 'toe_top' entity. It instantiates such an entity and further connects it with base 'AxisRaw' streams as expected by the 'toe_top'.
Definition at line 2437 of file test_rx_engine.cpp.
const char* camAccessorStrings[] = { "RXe", "TAi" } |
Definition at line 81 of file test_rx_engine.cpp.
const char* camAccessorStrings[] = { "RXe", "TAi" } |
Definition at line 81 of file test_tx_engine.cpp.
const char* camAccessorStrings[] = { "RXe", "TAi" } |
Definition at line 81 of file test_toe.cpp.
bool gFatalError = false |
Definition at line 49 of file test_ack_delay.hpp.
bool gFatalError = false |
Definition at line 121 of file test_rx_engine.hpp.
bool gFatalError = false |
Definition at line 120 of file test_tx_engine.hpp.
bool gFatalError = false |
Definition at line 135 of file test_toe.hpp.
Ip4Addr gFpgaIp4Addr = 0x0A0CC801 |
Definition at line 126 of file test_rx_engine.hpp.
Ip4Addr gFpgaIp4Addr = 0x0A0CC801 |
Definition at line 125 of file test_tx_engine.hpp.
Ip4Addr gFpgaIp4Addr = 0x0A0CC801 |
Definition at line 140 of file test_toe.hpp.
TcpPort gFpgaLsnPort = 0x0057 |
Definition at line 127 of file test_rx_engine.hpp.
TcpPort gFpgaLsnPort = 0x0057 |
Definition at line 126 of file test_tx_engine.hpp.
TcpPort gFpgaLsnPort = 0x0057 |
Definition at line 141 of file test_toe.hpp.
TcpPort gFpgaSndPort = 0x8000 |
Definition at line 128 of file test_rx_engine.hpp.
TcpPort gFpgaSndPort = 0x8000 |
Definition at line 127 of file test_tx_engine.hpp.
TcpPort gFpgaSndPort = 0x8000 |
Definition at line 142 of file test_toe.hpp.
Ip4Addr gHostIp4Addr = 0x0A0CC832 |
Definition at line 129 of file test_rx_engine.hpp.
Ip4Addr gHostIp4Addr = 0x0A0CC832 |
Definition at line 128 of file test_tx_engine.hpp.
Ip4Addr gHostIp4Addr = 0x0A0CC832 |
Definition at line 143 of file test_toe.hpp.
TcpPort gHostLsnPort = 0x0058 |
Definition at line 130 of file test_rx_engine.hpp.
TcpPort gHostLsnPort = 0x0058 |
Definition at line 129 of file test_tx_engine.hpp.
TcpPort gHostLsnPort = 0x0058 |
Definition at line 144 of file test_toe.hpp.
unsigned int gMaxSimCycles = 25 + 2500 |
Definition at line 51 of file test_ack_delay.hpp.
unsigned int gMaxSimCycles = ( 0x8000 ) + 2500 |
Definition at line 123 of file test_rx_engine.hpp.
unsigned int gMaxSimCycles = ( 0x8000 ) + 2500 |
Definition at line 122 of file test_tx_engine.hpp.
unsigned int gMaxSimCycles = ( 0x8000 ) + 2500 |
Definition at line 137 of file test_toe.hpp.
unsigned int gSimCycCnt = 0 |
GLOBAL VARIABLES USED BY THE SIMULATION ENVIRONMENT
Definition at line 50 of file test_ack_delay.hpp.
unsigned int gSimCycCnt = 0 |
GLOBAL VARIABLES USED BY THE SIMULATION ENVIRONMENT
Definition at line 122 of file test_rx_engine.hpp.
unsigned int gSimCycCnt = 0 |
GLOBAL VARIABLES USED BY THE SIMULATION ENVIRONMENT
Definition at line 121 of file test_tx_engine.hpp.
unsigned int gSimCycCnt = 0 |
GLOBAL VARIABLES USED BY THE SIMULATION ENVIRONMENT
Definition at line 136 of file test_toe.hpp.
bool gSortTaifGold = false |
Definition at line 131 of file test_rx_engine.hpp.
bool gSortTaifGold = false |
Definition at line 130 of file test_tx_engine.hpp.
bool gSortTaifGold = false |
Definition at line 145 of file test_toe.hpp.
bool gTest_RcvdIp4HdrCsum = true |
Definition at line 135 of file test_rx_engine.hpp.
bool gTest_RcvdIp4HdrCsum = true |
Definition at line 134 of file test_tx_engine.hpp.
bool gTest_RcvdIp4HdrCsum = true |
Definition at line 149 of file test_toe.hpp.
bool gTest_RcvdIp4Packet = true |
Definition at line 133 of file test_rx_engine.hpp.
bool gTest_RcvdIp4Packet = true |
Definition at line 132 of file test_tx_engine.hpp.
bool gTest_RcvdIp4Packet = true |
Definition at line 147 of file test_toe.hpp.
bool gTest_RcvdIp4TotLen = true |
Definition at line 134 of file test_rx_engine.hpp.
bool gTest_RcvdIp4TotLen = true |
Definition at line 133 of file test_tx_engine.hpp.
bool gTest_RcvdIp4TotLen = true |
Definition at line 148 of file test_toe.hpp.
bool gTest_RcvdLy4Csum = true |
Definition at line 137 of file test_rx_engine.hpp.
bool gTest_RcvdLy4Csum = true |
Definition at line 136 of file test_tx_engine.hpp.
bool gTest_RcvdLy4Csum = true |
Definition at line 151 of file test_toe.hpp.
bool gTest_RcvdUdpLen = true |
Definition at line 136 of file test_rx_engine.hpp.
bool gTest_RcvdUdpLen = true |
Definition at line 135 of file test_tx_engine.hpp.
bool gTest_RcvdUdpLen = true |
Definition at line 150 of file test_toe.hpp.
bool gTest_SentIp4HdrCsum = true |
Definition at line 139 of file test_rx_engine.hpp.
bool gTest_SentIp4HdrCsum = true |
Definition at line 138 of file test_tx_engine.hpp.
bool gTest_SentIp4HdrCsum = true |
Definition at line 153 of file test_toe.hpp.
bool gTest_SentIp4TotLen = true |
Definition at line 138 of file test_rx_engine.hpp.
bool gTest_SentIp4TotLen = true |
Definition at line 137 of file test_tx_engine.hpp.
bool gTest_SentIp4TotLen = true |
Definition at line 152 of file test_toe.hpp.
bool gTest_SentLy4Csum = true |
Definition at line 141 of file test_rx_engine.hpp.
bool gTest_SentLy4Csum = true |
Definition at line 140 of file test_tx_engine.hpp.
bool gTest_SentLy4Csum = true |
Definition at line 155 of file test_toe.hpp.
bool gTest_SentUdpLen = true |
Definition at line 140 of file test_rx_engine.hpp.
bool gTest_SentUdpLen = true |
Definition at line 139 of file test_tx_engine.hpp.
bool gTest_SentUdpLen = true |
Definition at line 154 of file test_toe.hpp.
bool gTraceEvent = false |
HELPERS FOR THE DEBUGGING TRACES .e.g: DEBUG_LEVEL = (MDL_TRACE | IPS_TRACE)
Definition at line 48 of file test_ack_delay.hpp.
bool gTraceEvent = false |
HELPERS FOR THE DEBUGGING TRACES .e.g: DEBUG_LEVEL = (MDL_TRACE | IPS_TRACE)
Definition at line 120 of file test_rx_engine.hpp.
bool gTraceEvent = false |
HELPERS FOR THE DEBUGGING TRACES .e.g: DEBUG_LEVEL = (MDL_TRACE | IPS_TRACE)
Definition at line 119 of file test_tx_engine.hpp.
bool gTraceEvent = false |
HELPERS FOR THE DEBUGGING TRACES .e.g: DEBUG_LEVEL = (MDL_TRACE | IPS_TRACE)
Definition at line 134 of file test_toe.hpp.