cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
toecam.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2016 -- 2021 IBM Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 
30 #ifndef _TOECAM_H_
31 #define _TOECAM_H_
32 
33 #include "../../../NTS/nts.hpp"
34 #include "../../../NTS/nts_utils.hpp"
35 #include "../../../NTS/SimNtsUtils.hpp"
36 
37 
38 
42 //=========================================================
43 //== KEY-VALUE PAIR
44 //=========================================================
45 class KeyValuePair {
46  public:
47  FourTuple key; // 96 bits
48  RtlSessId value; // 14 bits
52  key(key), value(value), valid(valid) {}
53 };
54 
55 
56 
61 void toecam_top(
62  //------------------------------------------------------
63  //-- MMIO Interfaces
64  //------------------------------------------------------
65  StsBit *poMMIO_CamReady,
66  //------------------------------------------------------
67  //-- CAM / This / Session Lookup & Update Interfaces
68  //------------------------------------------------------
69  stream<CamSessionLookupRequest> &siTOE_SssLkpReq,
70  stream<CamSessionLookupReply> &soTOE_SssLkpRep,
71  stream<CamSessionUpdateRequest> &siTOE_SssUpdReq,
72  stream<CamSessionUpdateReply> &soTOE_SssUpdRep
73 );
74 
75 #endif
76 
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).
Definition: toecam.cpp:414
ap_uint< 1 > StsBit
Definition: nts_types.hpp:116
bool ValBool
Definition: nts_types.hpp:131
ap_uint< 14 > RtlSessId
Definition: nts_types.hpp:378
ValBool valid
Definition: toecam.hpp:49
RtlSessId value
Definition: toecam.hpp:48
KeyValuePair()
Definition: toecam.hpp:50
KeyValuePair(FourTuple key, RtlSessId value, ValBool valid)
Definition: toecam.hpp:51
bool valid
Definition: cam16.hpp:46
FourTuple key
Definition: toecam.hpp:47