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

: Testbench for the Address Resolution Protocol (ARP) server. More...

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

Go to the source code of this file.

Macros

#define THIS_NAME   "TB"
 
#define TRACE_OFF   0x0000
 
#define TRACE_CAM   1 << 1
 
#define TRACE_CGF   1 << 2
 
#define TRACE_EAC   1 << 3
 
#define TRACE_EIT   1 << 4
 
#define TRACE_ALL   0xFFFF
 
#define DEBUG_LEVEL   (TRACE_OFF)
 

Functions

void stepSim ()
 Increment the simulation counter. More...
 
int createGoldenFile (string inpDAT_FileName, string outDAT_GoldName, EthAddr myMacAddress, Ip4Addr myIp4Address, map< Ip4Addr, EthAddr > &hostMap)
 Create the golden reference file from an input test file. More...
 
void pEmulateCam (stream< RtlMacLookupRequest > &siARS_MacLkpReq, stream< RtlMacLookupReply > &soARS_MacLkpRep, stream< RtlMacUpdateRequest > &siARS_MacUpdReq, stream< RtlMacUpdateReply > &soARS_MacUpdRep)
 Emulate the behavior of the Content Addressable Memory (CAM). More...
 
void arp_top_wrap (EthAddr piMMIO_MacAddress, Ip4Addr piMMIO_Ip4Address, stream< AxisEth > &siIPRX_Data, stream< AxisEth > &soETH_Data, stream< Ip4Addr > &siIPTX_MacLkpReq, stream< ArpLkpReply > &soIPTX_MacLkpRep, stream< RtlMacLookupRequest > &soCAM_MacLkpReq, stream< RtlMacLookupReply > &siCAM_MacLkpRep, stream< RtlMacUpdateRequest > &soCAM_MacUpdReq, stream< RtlMacUpdateReply > &siCAM_MacUpdRep)
 A wrapper for the Toplevel of the Address Resolution Protocol (ARP) Server. More...
 
int main (int argc, char *argv[])
 Main function. More...
 

Detailed Description

: Testbench for the Address Resolution Protocol (ARP) server.

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

Definition in file test_arp.cpp.