40 #ifndef _CF_NETWORK_UTILS_
41 #define _CF_NETWORK_UTILS_
54 #include <hls_stream.h>
57 #include "../../../hls/network.hpp"
92 ap_uint<8>
lenToKeep (ap_uint<4> noValidBytes);
94 ap_uint<4>
keepToLen (ap_uint<8> keepValue);
: A generic class used by the Network-Transport-Stack (NTS) to to transfer a chunk of data over an AX...
ap_uint< 8 > lenToKeep(ap_uint< 4 > noValidBytes)
Returns the 'tkeep' field of an AxiWord as a function of the number of valid bytes in that word.
ap_uint< 4 > keepToLen(ap_uint< 8 > keepValue)
Swap the two bytes of a word (.i.e, 16 bits).
ap_uint< 32 > bigEndianToInteger(ap_uint< 8 > *buffer, int lsb)
void integerToBigEndian(ap_uint< 32 > n, ap_uint< 8 > *bytes)
: Definition of the Network Transport Stack (NTS) component as if it was an HLS IP core.
: Configuration parameters for the Network Transport Stack (NTS) component and sub-components.
: Definition of the types used by the Network Transport Stack (NTS) component of the cloudFPGA shell.
: Utilities and helpers for the Network-Transport-Stack (NTS) components.