cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
common.cpp File Reference
Include dependency graph for common.cpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool setInputDataStream (stream< UdpWord > &sDataStream, const string dataStreamName, const string inpFileName, int simCnt)
 Initialize an input data stream from a file. More...
 
bool readDataStream (stream< UdpWord > &sDataStream, UdpWord *udpWord)
 Read data from a stream. More...
 
ap_uint< 64 > pack_ap_uint_64_ (ap_uint< 8 > *buffer)
 Pack an array of 8 x ap_uint<8> into a ap_uint<64> word. More...
 
void unpack_ap_uint_64_ (ap_uint< 64 > value, ap_uint< 8 > *buffer)
 Unpack an ap_uint<64> word to an array of 8 x ap_uint<8>. More...
 
bool dumpDataToFile (UdpWord *udpWord, ofstream &outFileStream)
 Dump a data word to a file. More...
 
bool getOutputDataStream (stream< UdpWord > &sDataStream, const string dataStreamName, const string outFileName, int simCnt)
 Fill an output file with data from an output stream. More...
 
bool dumpStructToFile (varin *instruct, const string outFileName, int simCnt)
 Fill an output file with data from an image. More...
 
bool dumpFileToArray (const string inpFileName, double *out, int simCnt)
 Initialize an input data stream from a file. More...