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

: Content-Addressable Memory (CAM) for TCP Offload Engine (TOE) More...

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

Go to the source code of this file.

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
 

Detailed Description

: Content-Addressable Memory (CAM) for TCP Offload Engine (TOE)

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

Note
: This is a fake implementation of a CAM that is used for debugging purposes. This CAM implements 8 entries in FF and consumes a total of 2K LUTs.

Definition in file toecam.cpp.