27 #ifndef _ROLE_TRIANGLE_H_
28 #define _ROLE_TRIANGLE_H_
35 #include <hls_stream.h>
46 #define WAIT_FOR_META 0
47 #define WAIT_FOR_STREAM 1
48 #define PROCESSING_PACKET 2
50 #define PacketFsmType uint8_t
52 #define FSM_WRITE_NEW_DATA 0
54 #define PortFsmType uint8_t
56 #define DEFAULT_TX_PORT 2718
57 #define DEFAULT_RX_PORT 2718
66 stream<NetworkWord> &siNrc_data,
67 stream<NetworkWord> &soNrc_data,
68 stream<NetworkMetaStream> &siNrc_meta,
69 stream<NetworkMetaStream> &soNrc_meta,
70 ap_uint<32> *po_rx_ports
void triangle_app(ap_uint< 32 > *pi_rank, ap_uint< 32 > *pi_size, stream< NetworkWord > &siNrc_data, stream< NetworkWord > &soNrc_data, stream< NetworkMetaStream > &siNrc_meta, stream< NetworkMetaStream > &soNrc_meta, ap_uint< 32 > *po_rx_ports)
Main process of the UDP/TCP Triangle Application. This HLS IP receives a packet and forwards it to th...