98 #define PSD4_HEADER_LEN 12
221 ap_uint<4> swapNibble(ap_uint<4> nibble) {
222 return (nibble.range(0,3));
225 ap_uint<16> swapWord(ap_uint<16> inpWord) {
226 return (inpWord.range(7,0), inpWord.range(15, 8));
229 ap_uint<32> swapDWord(ap_uint<32> inpDWord) {
230 return (inpDWord.range( 7, 0), inpDWord.range(15, 8),
231 inpDWord.range(23,16), inpDWord.range(31, 24));
234 ap_uint<64> swapQWord(ap_uint<64> inpQWord) {
235 return (inpQWord.range( 7, 0), inpQWord.range(15, 8),
236 inpQWord.range(23,16), inpQWord.range(31, 24),
237 inpQWord.range(39,32), inpQWord.range(47, 40),
238 inpQWord.range(55,48), inpQWord.range(63, 56));
: A generic class used by the Network-Transport-Stack (NTS) to to transfer a chunk of data over an AX...
: A class to access TCP header fields within data chunks transmitted over an AXI4-Stream interface.
void setTcpWindow(TcpWindow win)
TcpOptLen getTcpOptLend()
AxisPsd4(LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
void setTcpResBits(TcpResBits res)
void setTcpCtrlPsh(TcpCtrlBit bit)
void setTcpUrgPtr(TcpUrgPtr ptr)
void setTcpChecksum(TcpChecksum csum)
void setTcpDstPort(TcpPort port)
TcpCtrlBit getTcpCtrlCwr()
void setUdpDstPort(UdpPort port)
TcpCtrlBit getTcpCtrlPsh()
void setPsd4Len(Ly4Len len)
void setPsd4DstAddr(Ip4Addr addr)
void setTcpCtrlAck(TcpCtrlBit bit)
void setTcpCtrlEce(TcpCtrlBit bit)
void setTcpSrcPort(TcpPort port)
void setUdpLen(UdpLen len)
LE_TcpPort getLE_TcpDstPort()
LE_TcpPort getLE_TcpSrcPort()
TcpCtrlBit getTcpCtrlAck()
TcpCtrlBit getTcpCtrlEce()
TcpCtrlBit getTcpCtrlNs()
AxisPsd4(AxisRaw &axisRaw)
TcpCtrlBit getTcpCtrlFin()
void setTcpOptKind(TcpOptKind val)
void setTcpCtrlUrg(TcpCtrlBit bit)
void setTcpCtrlSyn(TcpCtrlBit bit)
void setUdpCsum(UdpCsum csum)
void setTcpAckNum(TcpAckNum num)
TcpDataOff getTcpDataOff()
TcpResBits getTcpResBits()
void setTcpOptMss(TcpOptMss val)
void setPsd4ResBits(Psd4Res res)
TcpOptKind getTcpOptKind()
void setTcpDataOff(TcpDataOff offset)
void setTcpCtrlFin(TcpCtrlBit bit)
void setTcpCtrlRst(TcpCtrlBit bit)
void setPsd4Prot(Ip4Prot prot)
TcpCtrlBit getTcpCtrlUrg()
AxisPsd4(const AxisPsd4 &axisPsd4)
TcpCtrlBit getTcpCtrlRst()
void setTcpSeqNum(TcpSeqNum num)
void setTcpCtrlNs(TcpCtrlBit bit)
void setTcpCtrlCwr(TcpCtrlBit bit)
TcpChecksum getTcpChecksum()
TcpCtrlBit getTcpCtrlSyn()
void setTcpOptLen(TcpOptLen len)
void setUdpSrcPort(UdpPort port)
void setPsd4SrcAddr(Ip4Addr addr)
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
ap_uint< 16 > TcpChecksum