27 #ifndef _CF_NETWORK_USER_UTILS_
28 #define _CF_NETWORK_USER_UTILS_
36 #include <hls_stream.h>
45 #define NETWORK_WORD_BYTE_WIDTH 8
46 #define NETWORK_WORD_BIT_WIDTH 64
53 NetworkWord(ap_uint<64> tdata, ap_uint<8> tkeep, ap_uint<1> tlast) :
54 tdata(tdata), tkeep(tkeep), tlast(tlast) {}
55 NetworkWord(ap_uint<64> single_data) : tdata(single_data), tkeep(0xFFF), tlast(1) {}
85 #define MAX_CF_NODE_ID (64-1)
87 #define NAL_THIS_FPGA_PSEUDO_NID (MAX_CF_NODE_ID + 1)
89 #define NAL_RX_MIN_PORT 2718
90 #define NAL_RX_MAX_PORT 2749
104 dst_rank(d_id), dst_port(d_port), src_rank(s_id), src_port(s_port), len(length) {}
ap_uint< 16 > NetworkDataLength
void setTData(ap_uint< 64 > new_data)
void setTLast(ap_uint< 1 > new_last)
void setTKeep(ap_uint< 8 > new_keep)
NetworkWord(ap_uint< 64 > single_data)
NetworkWord(ap_uint< 64 > tdata, ap_uint< 8 > tkeep, ap_uint< 1 > tlast)