cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
iptx.hpp
Go to the documentation of this file.
1 
17 
43 
56 #ifndef _IPTX_H_
57 #define _IPTX_H_
58 
59 #include "../../../NTS/nts.hpp"
60 #include "../../../NTS/nts_utils.hpp"
61 #include "../../../NTS/SimNtsUtils.hpp"
62 #include "../../AxisEth.hpp"
63 #include "../../AxisIp4.hpp"
64 
65 
66 
71 #if HLS_VERSION == 2017
72 
73  void iptx_top(
74  //------------------------------------------------------
75  //-- MMIO Interfaces
76  //------------------------------------------------------
77  EthAddr piMMIO_MacAddress,
78  Ip4Addr piMMIO_SubNetMask,
79  Ip4Addr piMMIO_GatewayAddr,
80 
81  //------------------------------------------------------
82  //-- L3MUX Interface
83  //------------------------------------------------------
84  stream<AxisIp4> &siL3MUX_Data,
85 
86  //------------------------------------------------------
87  //-- L2MUX Interface
88  //------------------------------------------------------
89  stream<AxisEth> &soL2MUX_Data,
90 
91  //------------------------------------------------------
92  //-- ARP Interface
93  //------------------------------------------------------
94  stream<Ip4Addr> &soARP_LookupReq,
95  stream<ArpLkpReply> &siARP_LookupRep
96  );
97 
98 #else
99 
100  void iptx_top(
101  //------------------------------------------------------
102  //-- MMIO Interfaces
103  //------------------------------------------------------
104  EthAddr piMMIO_MacAddress,
105  Ip4Addr piMMIO_SubNetMask,
106  Ip4Addr piMMIO_GatewayAddr,
107 
108  //------------------------------------------------------
109  //-- L3MUX Interface
110  //------------------------------------------------------
111  stream<AxisRaw> &siL3MUX_Data,
112 
113  //------------------------------------------------------
114  //-- L2MUX Interface
115  //------------------------------------------------------
116  stream<AxisRaw> &soL2MUX_Data,
117 
118  //------------------------------------------------------
119  //-- ARP Interface
120  //------------------------------------------------------
121  stream<Ip4Addr> &soARP_LookupReq,
122  stream<ArpLkpReply> &siARP_LookupRep
123  );
124 
125 #endif // HLS_VERSION
126 
127 #endif
128 
void iptx_top(EthAddr piMMIO_MacAddress, Ip4Addr piMMIO_SubNetMask, Ip4Addr piMMIO_GatewayAddr, stream< AxisRaw > &siL3MUX_Data, stream< AxisRaw > &soL2MUX_Data, stream< Ip4Addr > &soARP_LookupReq, stream< ArpLkpReply > &siARP_LookupRep)
Top of IP Transmitter Handler (IPTX)
Definition: iptx.cpp:676
ap_uint< 48 > EthAddr
Definition: AxisEth.hpp:120
ap_uint< 32 > Ip4Addr
Definition: AxisIp4.hpp:169