81 #define UDP_HEADER_LEN 8
149 ap_uint<4> swapNibble(ap_uint<4> nibble) {
150 return (nibble.range(0,3));
153 ap_uint<8> swapByte(ap_uint<8>
byte) {
154 return (
byte.range(0,7));
157 ap_uint<16> swapWord(ap_uint<16> word) {
158 return (word.range(7,0), word.range(15, 8));
161 ap_uint<32> swapDWord(ap_uint<32> dword) {
162 return (dword.range( 7, 0), dword.range(15, 8),
163 dword.range(23,16), dword.range(31, 24));
: A generic class used by the Network-Transport-Stack (NTS) to to transfer a chunk of data over an AX...
LE_tKeep getLE_TKeep(int leHi=64/8-1, int leLo=0) const
LE_tData getLE_TData(int leHi=64 -1, int leLo=0) const
LE_tLast getLE_TLast() const
void setUdpSrcPort(UdpPort port)
LE_UdpPort getLE_UdpSrcPort()
void setUdpDstPort(UdpPort port)
LE_UdpPort getLE_UdpDstPort()
AxisUdp(LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
void setUdpCsum(UdpCsum csum)
void setUdpLen(UdpLen length)
AxisUdp(const AxisUdp &axisUdp)
ap_uint< 16 > LE_UdpSrcPort
ap_uint< 16 > LE_UdpDstPort
ap_uint< 64/2 > tDataHalf