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

: Testbench for the IP Transmit frame handler (IPTX). More...

#include "test_iptx.hpp"
Include dependency graph for test_iptx.cpp:

Go to the source code of this file.

Macros

#define THIS_NAME   "TB"
 
#define TRACE_OFF   0x0000
 
#define TRACE_CGF   1 << 1
 
#define TRACE_ARP   1 << 2
 
#define TRACE_ALL   0xFFFF
 
#define DEBUG_LEVEL   (TRACE_OFF)
 

Functions

void stepSim ()
 Increment the simulation counter. More...
 
void pEmulateArp (stream< Ip4Addr > &siIPTX_LookupReq, stream< ArpLkpReply > &soIPTX_LookupRep, EthAddr piMacAddress, Ip4Addr piIp4Address, Ip4Addr piSubNetMask, Ip4Addr piGatewayAddr)
 Emulate the behavior of the Address Resolution Process (ARP). More...
 
int createGoldenFile (string inpDAT_FileName, string outDAT_GoldName, EthAddr myMacAddress, Ip4Addr myIp4Address, Ip4Addr mySubNetMask, Ip4Addr myGatewayAddr)
 Create the golden reference file from an input test file. More...
 
void iptx_top_wrap (EthAddr piMMIO_MacAddress, Ip4Addr piMMIO_SubNetMask, Ip4Addr piMMIO_GatewayAddr, stream< AxisIp4 > &siL3MUX_Data, stream< AxisEth > &soL2MUX_Data, stream< Ip4Addr > &soARP_LookupReq, stream< ArpLkpReply > &siARP_LookupRep)
 A wrapper for the Toplevel of IP the IP Transmitter Handler (IPTX). More...
 
int main (int argc, char *argv[])
 Main function. More...
 

Detailed Description

: Testbench for the IP Transmit frame handler (IPTX).

System: : cloudFPGA Component : Shell, Network Transport Stack (NTS) Language : Vivado HLS

Definition in file test_iptx.cpp.