|
cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Testbench for the Internet Control Message Protocol server (ICMP) of the Network Transport Stack (NTS). More...
Macros | |
| #define | THIS_NAME "TB" |
| #define | TRACE_OFF 0x0000 |
| #define | TRACE_CGF 1 << 1 |
| #define | TRACE_ALL 0xFFFF |
| #define | DEBUG_LEVEL (TRACE_OFF) |
| #define | TB_MAX_SIM_CYCLES 25000 |
| #define | TB_STARTUP_DELAY 0 |
| #define | TB_GRACE_TIME 5000 |
Functions | |
| void | stepSim () |
| Increment the simulation counter. More... | |
| int | createGoldenFile (string inpDAT_FileName, string outDAT_GoldName, Ip4Addr myIp4Address) |
| Create the golden reference file from an input test file. More... | |
| void | icmp_top_wrap (Ip4Addr piMMIO_Ip4Address, stream< AxisIp4 > &siIPRX_Data, stream< AxisIp4 > &siIPRX_Derr, stream< AxisIcmp > &siUOE_Data, stream< AxisIp4 > &soIPTX_Data) |
| A wrapper for Toplevel of Internet Control Message Protocol (ICMP). More... | |
| int | main (int argc, char *argv[]) |
| Main function. More... | |
Variables | |
| bool | gTraceEvent |
| bool | gFatalError |
| unsigned int | gSimCycCnt |
| unsigned int | gMaxSimCycles |
Testbench for the Internet Control Message Protocol server (ICMP) of the Network Transport Stack (NTS).
| #define DEBUG_LEVEL (TRACE_OFF) |
Definition at line 45 of file test_icmp.cpp.
| #define TB_GRACE_TIME 5000 |
Definition at line 48 of file test_icmp.hpp.
| #define TB_MAX_SIM_CYCLES 25000 |
Definition at line 46 of file test_icmp.hpp.
| #define TB_STARTUP_DELAY 0 |
Definition at line 47 of file test_icmp.hpp.
| #define THIS_NAME "TB" |
Definition at line 39 of file test_icmp.cpp.
| #define TRACE_ALL 0xFFFF |
Definition at line 43 of file test_icmp.cpp.
| #define TRACE_CGF 1 << 1 |
Definition at line 42 of file test_icmp.cpp.
| #define TRACE_OFF 0x0000 |
Definition at line 41 of file test_icmp.cpp.
| int createGoldenFile | ( | string | inpDAT_FileName, |
| string | outDAT_GoldName, | ||
| Ip4Addr | myIp4Address | ||
| ) |
Create the golden reference file from an input test file.
| [in] | inpDAT_FileName | The input DAT file to generate from. |
| [in] | outDAT_GoldName | The output DAT gold file to create. |
| [in] | myIp4Address | The IPv4 address of the FPGA. |
Definition at line 70 of file test_icmp.cpp.
| void icmp_top_wrap | ( | Ip4Addr | piMMIO_Ip4Address, |
| stream< AxisIp4 > & | siIPRX_Data, | ||
| stream< AxisIp4 > & | siIPRX_Derr, | ||
| stream< AxisIcmp > & | siUOE_Data, | ||
| stream< AxisIp4 > & | soIPTX_Data | ||
| ) |
A wrapper for Toplevel of Internet Control Message Protocol (ICMP).
| [in] | piMMIO_MacAddress | The MAC address from MMIO (in network order). |
| [in] | siIPRX_Data | The data stream from the IP Rx handler (IPRX). |
| [in] | siIPRX_Derr | Erroneous IP data stream from [IPRX]. |
| [in] | siUOE_Data | A copy of the first IPv4 bytes that caused the error. |
| [out] | soIPTX_Data | The data stream to the IpTxHandler (IPTX). |
This process is a wrapper for the 'icmp_top' entity. It instantiates such an entity and further connects it with base 'AxisRaw' streams as expected by the 'icmp_top'.
Definition at line 243 of file test_icmp.cpp.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Main function.
| [in] | inpFile | The pathname of the input test vector file. |
Definition at line 287 of file test_icmp.cpp.
| void stepSim | ( | ) |
Increment the simulation counter.
Definition at line 50 of file test_icmp.cpp.
| bool gFatalError |
Definition at line 56 of file test_icmp.hpp.
| unsigned int gMaxSimCycles |
Definition at line 58 of file test_icmp.hpp.
| unsigned int gSimCycCnt |
GLOBAL VARIABLES USED BY THE SIMULATION ENVIRONMENT
Definition at line 57 of file test_icmp.hpp.
| bool gTraceEvent |
HELPERS FOR THE DEBUGGING TRACES .e.g: DEBUG_LEVEL = (MDL_TRACE | IPS_TRACE)
Definition at line 55 of file test_icmp.hpp.