cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
Content-Addressable Memory (CAM) for the TCP Offload Engine (TOE) of the Network Transport Stack (NTS). More...
Modules | |
TOECAM_TEST | |
Testbench for the Content-Addressable Memory (CAM) for the TCP Offload Engine (TOE) of the Network Transport Stack (NTS). | |
Files | |
file | test_toecam.cpp |
: Testbench for the Content-Addressable Memory (CAM). | |
Classes | |
class | KeyValuePair< K, V > |
Macros | |
#define | THIS_NAME "TOECAM" |
#define | TRACE_OFF 0x0000 |
#define | TRACE_CAM 1 << 1 |
#define | TRACE_ALL 0xFFFF |
#define | DEBUG_LEVEL (TRACE_OFF) |
#define | MAX_CAM_LATENCY 0 |
#define | CAM_ARRAY_SIZE 2 |
Functions | |
bool | camLookup (FourTuple key, RtlSessId &value) |
Search the CAM array for a key. More... | |
bool | camInsert (KeyValuePair kVP) |
Insert a new key-value pair in the CAM array. More... | |
bool | camDelete (FourTuple key) |
Remove a key-value pair from the CAM array. More... | |
void | toecam (ap_uint< 1 > *poMMIO_CamReady, stream< CamSessionLookupRequest > &siTOE_SssLkpReq, stream< CamSessionLookupReply > &soTOE_SssLkpRep, stream< CamSessionUpdateRequest > &siTOE_SssUpdReq, stream< CamSessionUpdateReply > &soTOE_SssUpdRep) |
Main process of the Content-Addressable Memory (TOECAM). More... | |
void | toecam_top (ap_uint< 1 > *poMMIO_CamReady, stream< CamSessionLookupRequest > &siTOE_SssLkpReq, stream< CamSessionLookupReply > &soTOE_SssLkpRep, stream< CamSessionUpdateRequest > &siTOE_SssUpdReq, stream< CamSessionUpdateReply > &soTOE_SssUpdRep) |
Top of Content-Addressable Memory (TOECAM). More... | |
Variables | |
bool | gTraceEvent |
Content-Addressable Memory (CAM) for the TCP Offload Engine (TOE) of the Network Transport Stack (NTS).
#define CAM_ARRAY_SIZE 2 |
GLOBAL VARIABLES & DEFINES
Definition at line 62 of file toecam.cpp.
#define DEBUG_LEVEL (TRACE_OFF) |
Definition at line 52 of file toecam.cpp.
#define MAX_CAM_LATENCY 0 |
Definition at line 57 of file toecam.cpp.
#define THIS_NAME "TOECAM" |
Definition at line 46 of file toecam.cpp.
#define TRACE_ALL 0xFFFF |
Definition at line 50 of file toecam.cpp.
#define TRACE_CAM 1 << 1 |
Definition at line 49 of file toecam.cpp.
#define TRACE_OFF 0x0000 |
Definition at line 48 of file toecam.cpp.
bool camDelete | ( | FourTuple | key | ) |
Remove a key-value pair from the CAM array.
[in] | key | The key of the entry to be removed. |
Definition at line 174 of file toecam.cpp.
bool camInsert | ( | KeyValuePair | kVP | ) |
Insert a new key-value pair in the CAM array.
[in] | KeyValuePair | The key-value pair to insert. |
Definition at line 126 of file toecam.cpp.
Search the CAM array for a key.
[in] | key | The key to lookup. |
[out] | value | The value corresponding to that key. |
Definition at line 80 of file toecam.cpp.
void toecam | ( | ap_uint< 1 > * | poMMIO_CamReady, |
stream< CamSessionLookupRequest > & | siTOE_SssLkpReq, | ||
stream< CamSessionLookupReply > & | soTOE_SssLkpRep, | ||
stream< CamSessionUpdateRequest > & | siTOE_SssUpdReq, | ||
stream< CamSessionUpdateReply > & | soTOE_SssUpdRep | ||
) |
Main process of the Content-Addressable Memory (TOECAM).
[out] | poMMIO_CamReady | A pointer to a CAM ready signal. |
[in] | siTOE_SssLkpReq | Session lookup request from TCP Offload Engine (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 233 of file toecam.cpp.
void toecam_top | ( | ap_uint< 1 > * | poMMIO_CamReady, |
stream< CamSessionLookupRequest > & | siTOE_SssLkpReq, | ||
stream< CamSessionLookupReply > & | soTOE_SssLkpRep, | ||
stream< CamSessionUpdateRequest > & | siTOE_SssUpdReq, | ||
stream< CamSessionUpdateReply > & | soTOE_SssUpdRep | ||
) |
Top of Content-Addressable Memory (TOECAM).
[out] | poMMIO_CamReady | A pointer to a CAM ready signal. |
[in] | siTOE_SssLkpReq | Session lookup request from TCP Offload Engine (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. |
ENTITY - CONTENT ADDRESSABLE MEMORY (TOECAM)
Definition at line 414 of file toecam.cpp.
|
extern |
HELPERS FOR THE DEBUGGING TRACES .e.g: DEBUG_LEVEL = (MDL_TRACE | IPS_TRACE)
Definition at line 151 of file tb_nal.cpp.