44 #undef UAF_USE_AP_FIFO
45 #undef UAF_USE_NON_FIFO_IO
64 #if HLS_VERSION == 2016
69 #
if defined UAF_USE_NON_FIFO_IO
70 ap_uint<2> piSHL_Mmio_EchoCtrl,
71 ap_uint<1> piSHL_Mmio_PostPktEn,
72 ap_uint<1> piSHL_Mmio_CaptPktEn,
77 stream<UdpAppData> &siUSIF_Data,
78 stream<UdpAppMeta> &siUSIF_Meta,
79 stream<UdpAppDLen> &siUSIF_DLen,
83 stream<UdpAppData> &soUSIF_Data,
84 stream<UdpAppMeta> &soUSIF_Meta,
85 stream<UdpAppDLen> &soUSIF_DLen)
88 #pragma HLS INTERFACE ap_ctrl_none port=return
94 #if defined UAF_USE_NON_FIFO_IO
95 #pragma HLS INTERFACE ap_stable port=piSHL_Mmio_EchoCtrl
96 #pragma HLS INTERFACE ap_stable port=piSHL_Mmio_PostPktEn
97 #pragma HLS INTERFACE ap_stable port=piSHL_Mmio_CaptPktEn
99 #pragma HLS resource core=AXI4Stream variable=siUSIF_Data metadata="-bus_bundle siUSIF_Data"
100 #pragma HLS resource core=AXI4Stream variable=siUSIF_Meta metadata="-bus_bundle siUSIF_Meta"
101 #pragma HLS DATA_PACK variable=siUSIF_Meta
102 #pragma HLS resource core=AXI4Stream variable=siUSIF_DLen metadata="-bus_bundle siUSIF_DLen"
104 #pragma HLS resource core=AXI4Stream variable=soUSIF_Data metadata="-bus_bundle soUSIF_Data"
105 #pragma HLS resource core=AXI4Stream variable=soUSIF_Meta metadata="-bus_bundle soUSIF_Meta"
106 #pragma HLS DATA_PACK variable=soUSIF_Meta
107 #pragma HLS resource core=AXI4Stream variable=soUSIF_DLen metadata="-bus_bundle soUSIF_DLen"
115 #
if defined UAF_USE_NON_FIFO_IO
117 piSHL_Mmio_PostPktEn,
118 piSHL_Mmio_CaptPktEn,
135 #
if defined UAF_USE_NON_FIFO_IO
136 ap_uint<2> piSHL_Mmio_EchoCtrl,
137 ap_uint<1> piSHL_Mmio_PostPktEn,
138 ap_uint<1> piSHL_Mmio_CaptPktEn,
143 stream<UdpAppData> &siUSIF_Data,
144 stream<UdpAppMeta> &siUSIF_Meta,
145 stream<UdpAppDLen> &siUSIF_DLen,
149 stream<UdpAppData> &soUSIF_Data,
150 stream<UdpAppMeta> &soUSIF_Meta,
151 stream<UdpAppDLen> &soUSIF_DLen)
154 #pragma HLS INTERFACE ap_ctrl_none port=return
156 #if defined TAF_USE_NON_FIFO_IO
157 #pragma HLS INTERFACE ap_stable register port=piSHL_Mmio_EchoCtrl name=piSHL_Mmio_EchoCtrl
158 #pragma HLS INTERFACE ap_stable port=piSHL_Mmio_PostPktEn
159 #pragma HLS INTERFACE ap_stable port=piSHL_Mmio_CaptPktEn
162 #if defined (UAF_USE_AP_FIFO)
164 #pragma HLS INTERFACE ap_fifo port=siUSIF_Data name=siUSIF_Data
165 #pragma HLS DATA_PACK variable=siUSIF_Data
166 #pragma HLS INTERFACE ap_fifo port=siUSIF_Meta name=siUSIF_Meta
167 #pragma HLS DATA_PACK variable=siUSIF_Meta
168 #pragma HLS INTERFACE ap_fifo port=siUSIF_DLen name=siUSIF_DLen
170 #pragma HLS INTERFACE ap_fifo port=soUSIF_Data name=soUSIF_Data
171 #pragma HLS DATA_PACK variable=soUSIF_Data
172 #pragma HLS INTERFACE ap_fifo port=soUSIF_Meta name=soUSIF_Meta
173 #pragma HLS DATA_PACK variable=soUSIF_Meta
174 #pragma HLS INTERFACE ap_fifo port=soUSIF_DLen name=soUSIF_DLen
177 #pragma HLS INTERFACE axis off port=siUSIF_Data name=siUSIF_Data
178 #pragma HLS INTERFACE axis off port=siUSIF_Meta name=siUSIF_Meta
179 #pragma HLS DATA_PACK variable=siUSIF_Meta
180 #pragma HLS INTERFACE axis off port=siUSIF_DLen name=siUSIF_DLen
182 #pragma HLS INTERFACE axis off port=soUSIF_Data name=soUSIF_Data
183 #pragma HLS INTERFACE axis off port=soUSIF_Meta name=soUSIF_Meta
184 #pragma HLS DATA_PACK variable=soUSIF_Meta
185 #pragma HLS INTERFACE axis off port=soUSIF_DLen name=soUSIF_DLen
189 #if HLS_VERSION == 2017
192 #pragma HLS DATAFLOW disable_start_propagation
194 #pragma HLS INTERFACE ap_ctrl_none port=return
200 #
if defined UAF_USE_NON_FIFO_IO
202 piSHL_Mmio_PostPktEn,
203 piSHL_Mmio_CaptPktEn,
void udp_app_flash(CmdBit *piSHL_Mmio_En, stream< UdpAppData > &siUSIF_Data, stream< UdpAppMeta > &siUSIF_Meta, stream< UdpAppDLen > &siUSIF_DLen, stream< UdpAppData > &soUSIF_Data, stream< UdpAppMeta > &soUSIF_Meta, stream< UdpAppDLen > &soUSIF_DLen)
Main process of the UDP Application Flash (UAF)
void udp_app_flash_top(CmdBit *piSHL_Mmio_En, stream< UdpAppData > &siUSIF_Data, stream< UdpAppMeta > &siUSIF_Meta, stream< UdpAppDLen > &siUSIF_DLen, stream< UdpAppData > &soUSIF_Data, stream< UdpAppMeta > &soUSIF_Meta, stream< UdpAppDLen > &soUSIF_DLen)
Top of UDP Application Flash (UAF)
: UDP Application Flash (UAF)