cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Testbench for the Content-Addressable Memory (CAM) for the TCP Offload Engine (TOE) of the Network Transport Stack (NTS). More...
Macros | |
#define | THIS_NAME "TB" |
#define | TRACE_OFF 0x0000 |
#define | TRACE_TOE 1 << 1 |
#define | TRACE_ALL 0xFFFF |
#define | DEBUG_LEVEL (TRACE_OFF) |
#define | TB_MAX_SIM_CYCLES 250 |
#define | TB_STARTUP_DELAY 0 |
#define | TB_GRACE_TIME 500 |
#define | CAM_LOOKUP_LATENCY 2 |
#define | CAM_UPDATE_LATENCY 10 |
#define | DEFAULT_FPGA_IP4_ADDR 0x0A0CC813 |
#define | DEFAULT_FPGA_TCP_PORT 0x2263 |
#define | DEFAULT_HOST_IP4_ADDR 0x0A0CC832 |
#define | DEFAULT_HOST_TCP_PORT 0xa263 |
#define | DEFAULT_SESSION_ID 42 |
#define | CAM_SIZE 2 |
Functions | |
void | stepSim () |
Increment the simulation counter. More... | |
void | pTOE (int &nrErr, stream< CamSessionLookupRequest > &soCAM_SssLkpReq, stream< CamSessionLookupReply > &siCAM_SssLkpRep, stream< CamSessionUpdateRequest > &soCAM_SssUpdReq, stream< CamSessionUpdateReply > &siCAM_SssUpdRep) |
Emulate the behavior of the TCP Offload Engine (TOE). More... | |
int | main (int argc, char *argv[]) |
Main function. More... | |
Variables | |
const Ip4Addr | RESERVED_SENDER_PROTOCOL_ADDRESS = 0xCAFEFADE |
bool | gTraceEvent |
bool | gFatalError |
unsigned int | gSimCycCnt |
unsigned int | gMaxSimCycles |
Testbench for the Content-Addressable Memory (CAM) for the TCP Offload Engine (TOE) of the Network Transport Stack (NTS).
#define CAM_LOOKUP_LATENCY 2 |
Definition at line 55 of file test_toecam.hpp.
#define CAM_SIZE 2 |
Definition at line 83 of file test_toecam.hpp.
#define CAM_UPDATE_LATENCY 10 |
Definition at line 56 of file test_toecam.hpp.
#define DEBUG_LEVEL (TRACE_OFF) |
Definition at line 45 of file test_toecam.cpp.
#define DEFAULT_FPGA_IP4_ADDR 0x0A0CC813 |
Definition at line 76 of file test_toecam.hpp.
#define DEFAULT_FPGA_TCP_PORT 0x2263 |
Definition at line 77 of file test_toecam.hpp.
#define DEFAULT_HOST_IP4_ADDR 0x0A0CC832 |
Definition at line 78 of file test_toecam.hpp.
#define DEFAULT_HOST_TCP_PORT 0xa263 |
Definition at line 79 of file test_toecam.hpp.
#define DEFAULT_SESSION_ID 42 |
Definition at line 81 of file test_toecam.hpp.
#define TB_GRACE_TIME 500 |
Definition at line 53 of file test_toecam.hpp.
#define TB_MAX_SIM_CYCLES 250 |
Definition at line 51 of file test_toecam.hpp.
#define TB_STARTUP_DELAY 0 |
Definition at line 52 of file test_toecam.hpp.
#define THIS_NAME "TB" |
Definition at line 39 of file test_toecam.cpp.
#define TRACE_ALL 0xFFFF |
Definition at line 43 of file test_toecam.cpp.
#define TRACE_OFF 0x0000 |
Definition at line 41 of file test_toecam.cpp.
#define TRACE_TOE 1 << 1 |
Definition at line 42 of file test_toecam.cpp.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main function.
Definition at line 247 of file test_toecam.cpp.
void pTOE | ( | int & | nrErr, |
stream< CamSessionLookupRequest > & | soCAM_SssLkpReq, | ||
stream< CamSessionLookupReply > & | siCAM_SssLkpRep, | ||
stream< CamSessionUpdateRequest > & | soCAM_SssUpdReq, | ||
stream< CamSessionUpdateReply > & | siCAM_SssUpdRep | ||
) |
Emulate the behavior of the TCP Offload Engine (TOE).
[in] | nrErr | A ref to the error counter of main. //– TOE / Lookup Request Interfaces |
[out] | soCAM_SssLkpReq | Session lookup request to CAM, |
[in] | siCAM_SssLkpRep | Session lookup reply from CAM. //– TOE / Update Request Interfaces |
[out] | soCAM_SssUpdReq | Session update request to CAM. |
[in] | siCAM_SssUpdRep | Session update reply from CAM. |
Definition at line 73 of file test_toecam.cpp.
void stepSim | ( | ) |
Increment the simulation counter.
Definition at line 50 of file test_toecam.cpp.
bool gFatalError |
Definition at line 66 of file test_toecam.hpp.
unsigned int gMaxSimCycles |
Definition at line 68 of file test_toecam.hpp.
unsigned int gSimCycCnt |
GLOBAL VARIABLES USED BY THE SIMULATION ENVIRONMENT
Definition at line 67 of file test_toecam.hpp.
bool gTraceEvent |
HELPERS FOR THE DEBUGGING TRACES .e.g: DEBUG_LEVEL = (MDL_TRACE | IPS_TRACE)
Definition at line 65 of file test_toecam.hpp.
const Ip4Addr RESERVED_SENDER_PROTOCOL_ADDRESS = 0xCAFEFADE |
Definition at line 58 of file test_toecam.hpp.