cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
NetworkWord Struct Reference

#include <network.hpp>

Public Member Functions

 NetworkWord ()
 
 NetworkWord (ap_uint< 64 > tdata, ap_uint< 8 > tkeep, ap_uint< 1 > tlast)
 
 NetworkWord (ap_uint< 64 > single_data)
 
ap_uint< 64 > getTData ()
 
ap_uint< 8 > getTKeep ()
 
ap_uint< 1 > getTLast ()
 
void setTData (ap_uint< 64 > new_data)
 
void setTKeep (ap_uint< 8 > new_keep)
 
void setTLast (ap_uint< 1 > new_last)
 

Public Attributes

ap_uint< 64 > tdata
 
ap_uint< 8 > tkeep
 
ap_uint< 1 > tlast
 

Detailed Description

Definition at line 48 of file network.hpp.

Constructor & Destructor Documentation

◆ NetworkWord() [1/3]

NetworkWord::NetworkWord ( )
inline

Definition at line 52 of file network.hpp.

52 {}

◆ NetworkWord() [2/3]

NetworkWord::NetworkWord ( ap_uint< 64 >  tdata,
ap_uint< 8 >  tkeep,
ap_uint< 1 >  tlast 
)
inline

Definition at line 53 of file network.hpp.

53  :
ap_uint< 64 > tdata
Definition: network.hpp:49
ap_uint< 8 > tkeep
Definition: network.hpp:50
ap_uint< 1 > tlast
Definition: network.hpp:51

◆ NetworkWord() [3/3]

NetworkWord::NetworkWord ( ap_uint< 64 >  single_data)
inline

Definition at line 55 of file network.hpp.

55 : tdata(single_data), tkeep(0xFFF), tlast(1) {}

Member Function Documentation

◆ getTData()

ap_uint<64> NetworkWord::getTData ( )
inline

Definition at line 56 of file network.hpp.

56  {
57  return tdata;
58  }

◆ getTKeep()

ap_uint<8> NetworkWord::getTKeep ( )
inline

Definition at line 59 of file network.hpp.

59  {
60  return tkeep;
61  }

◆ getTLast()

ap_uint<1> NetworkWord::getTLast ( )
inline

Definition at line 62 of file network.hpp.

62  {
63  return tlast;
64  }

◆ setTData()

void NetworkWord::setTData ( ap_uint< 64 >  new_data)
inline

Definition at line 65 of file network.hpp.

65  {
66  tdata = new_data;
67  }

◆ setTKeep()

void NetworkWord::setTKeep ( ap_uint< 8 >  new_keep)
inline

Definition at line 68 of file network.hpp.

68  {
69  tkeep = new_keep;
70  }

◆ setTLast()

void NetworkWord::setTLast ( ap_uint< 1 >  new_last)
inline

Definition at line 71 of file network.hpp.

71  {
72  tlast = new_last;
73  }

Member Data Documentation

◆ tdata

ap_uint<64> NetworkWord::tdata

Definition at line 49 of file network.hpp.

◆ tkeep

ap_uint<8> NetworkWord::tkeep

Definition at line 50 of file network.hpp.

◆ tlast

ap_uint<1> NetworkWord::tlast

Definition at line 51 of file network.hpp.


The documentation for this struct was generated from the following file: