cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
port_table.hpp
Go to the documentation of this file.
1 
17 
43 
56 #ifndef _TOE_PRT_H_
57 #define _TOE_PRT_H_
58 
59 #include "../../../../NTS/nts_utils.hpp"
60 #include "../../../../NTS/toe/src/toe.hpp"
61 
62 using namespace hls;
63 
64 
65 typedef AckBit PortState;
66 #define ACT_FREE_PORT false
67 #define ACT_USED_PORT true
68 
69 #define ACTIVE_PORT false
70 #define LISTEN_PORT true
71 
72 #define PortRange bool
73 
74 
75 
80 void port_table(
81  //-- Ready Signal
82  StsBool &poTOE_Ready,
83  //-- RXe / Rx Engine Interface
84  stream<TcpPort> &siRXe_GetPortStateReq,
85  stream<RepBit> &soRXe_GetPortStateRep,
86  //-- RAi / Rx Application Interface
87  stream<TcpPort> &siRAi_OpenLsnPortReq,
88  stream<AckBit> &soRAi_OpenLsnPortAck,
89  //-- TAi / Tx Application Interface
90  stream<ReqBit> &siTAi_GetFreePortReq,
91  stream<TcpPort> &siTAi_GetFreePortRep,
92  //-- SLc / Session Lookup Controller Interface
93  stream<TcpPort> &siSLc_ClosePortCmd
94 );
95 
96 #endif
97 
bool StsBool
Definition: nal.hpp:246
AckBit PortState
Definition: port_table.hpp:65
void port_table(StsBool &poTOE_Ready, stream< TcpPort > &siRXe_GetPortStateReq, stream< RepBit > &soRXe_GetPortStateRep, stream< TcpPort > &siRAi_OpenLsnPortReq, stream< AckBit > &soRAi_OpenLsnPortAck, stream< ReqBit > &siTAi_GetFreePortReq, stream< TcpPort > &soTAi_GetFreePortRep, stream< TcpPort > &siSLc_CloseActPortCmd)
Port Table (PRt)
Definition: port_table.cpp:453
ap_uint< 1 > AckBit
Definition: nts_types.hpp:107