|
cloudFPGA (cF) API
1.0
The documentation of the source code of cloudFPGA (cF)
|
This is the accelerated functions of Vitis Quantitative Finance sub-library from Vitis Open Source Library. More...
Modules | |
| MCEuropeanEngine | |
| This is the MCEuropeanEngine accelerated function from Vitis Quantitative Finance Open Source Library. | |
Macros | |
| #define | THIS_NAME "TB" |
| #define | TRACE_OFF 0x0000 |
| #define | TRACE_URIF 1 << 1 |
| #define | TRACE_UAF 1 << 2 |
| #define | TRACE_MMIO 1 << 3 |
| #define | TRACE_ALL 0xFFFF |
| #define | DEBUG_LEVEL (TRACE_ALL) |
| #define | OK true |
| #define | KO false |
| #define | VALID true |
| #define | UNVALID false |
| #define | DEBUG_TRACE true |
| #define | ENABLED (ap_uint<1>)1 |
| #define | DISABLED (ap_uint<1>)0 |
Functions | |
| bool | setInputDataStream (stream< UdpWord > &sDataStream, const std::string dataStreamName, const std::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... | |
| bool | dumpDataToFile (UdpWord *udpWord, std::ofstream &outFileStream) |
| Dump a data word to a file. More... | |
| bool | dumpFileToString (const std::string inpFileName, std::string strOutput, int simCnt) |
| Initialize an input data stream from a file. More... | |
| bool | getOutputDataStream (stream< UdpWord > &sDataStream, const std::string dataStreamName, const std::string outFileName, int simCnt) |
| Fill an output file with data from an output stream. More... | |
| bool | dumpStructToFile (varin *s, const std::string outFileName, int simCnt) |
| Fill an output file with data from an output stream. More... | |
| bool | setInputDataStream (stream< UdpWord > &sDataStream, const string dataStreamName, const string inpFileName, int simCnt) |
| Initialize an input data stream from a file. 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... | |
This is the accelerated functions of Vitis Quantitative Finance sub-library from Vitis Open Source Library.
| #define DEBUG_LEVEL (TRACE_ALL) |
Definition at line 54 of file common.hpp.
| #define DEBUG_TRACE true |
Definition at line 64 of file common.hpp.
| #define DISABLED (ap_uint<1>)0 |
Definition at line 67 of file common.hpp.
| #define ENABLED (ap_uint<1>)1 |
Definition at line 66 of file common.hpp.
| #define KO false |
Definition at line 61 of file common.hpp.
| #define OK true |
Definition at line 60 of file common.hpp.
| #define THIS_NAME "TB" |
Definition at line 46 of file common.hpp.
| #define TRACE_ALL 0xFFFF |
Definition at line 52 of file common.hpp.
| #define TRACE_MMIO 1 << 3 |
Definition at line 51 of file common.hpp.
| #define TRACE_OFF 0x0000 |
Definition at line 48 of file common.hpp.
| #define TRACE_UAF 1 << 2 |
Definition at line 50 of file common.hpp.
| #define TRACE_URIF 1 << 1 |
Definition at line 49 of file common.hpp.
| #define UNVALID false |
Definition at line 63 of file common.hpp.
| #define VALID true |
Definition at line 62 of file common.hpp.
| bool dumpDataToFile | ( | UdpWord * | udpWord, |
| ofstream & | outFileStream | ||
| ) |
Dump a data word to a file.
| [in] | udpWord,a | pointer to the data word to dump. |
| [in] | outFileStream,the | output file stream to write to. |
Definition at line 150 of file common.cpp.
| bool dumpDataToFile | ( | UdpWord * | udpWord, |
| std::ofstream & | outFileStream | ||
| ) |
Dump a data word to a file.
| [in] | udpWord,a | pointer to the data word to dump. |
| [in] | outFileStream,the | output file stream to write to. |
| bool dumpFileToArray | ( | const string | inpFileName, |
| double * | out, | ||
| int | simCnt | ||
| ) |
Initialize an input data stream from a file.
| [in] | inpFileName | the name of the input file to read from. |
| [out] | strOutput | the output string to set. |
Definition at line 332 of file common.cpp.
| bool dumpFileToString | ( | const std::string | inpFileName, |
| std::string | strOutput, | ||
| int | simCnt | ||
| ) |
Initialize an input data stream from a file.
| [in] | inpFileName | the name of the input file to read from. |
| [out] | strOutput | the output string to set. |
| bool dumpStructToFile | ( | varin * | instruct, |
| const string | outFileName, | ||
| int | simCnt | ||
| ) |
Fill an output file with data from an image.
| [in] | sDataStream | the input image in xf::cv::Mat format. |
| [in] | outFileName | the name of the output file to write to. |
Definition at line 217 of file common.cpp.
| bool dumpStructToFile | ( | varin * | s, |
| const std::string | outFileName, | ||
| int | simCnt | ||
| ) |
Fill an output file with data from an output stream.
| [in] | s | the struct with configuration parameters for MCEuropeanEngine. |
| [in] | outFileName | the name of the output file to write to. |
| bool getOutputDataStream | ( | stream< UdpWord > & | sDataStream, |
| const std::string | dataStreamName, | ||
| const std::string | outFileName, | ||
| int | simCnt | ||
| ) |
Fill an output file with data from an output stream.
| [in] | sDataStream | the output data stream to set. |
| [in] | dataStreamName | the name of the data stream. |
| [in] | outFileName | the name of the output file to write to. |
| bool getOutputDataStream | ( | stream< UdpWord > & | sDataStream, |
| const string | dataStreamName, | ||
| const string | outFileName, | ||
| int | simCnt | ||
| ) |
Fill an output file with data from an output stream.
| [in] | sDataStream,the | output data stream to set. |
| [in] | dataStreamName,the | name of the data stream. |
| [in] | outFileName,the | name of the output file to write to. |
Definition at line 173 of file common.cpp.
| 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.
| [in] | buffer | A pointer to an array of 8 x ap_uint<8> |
Definition at line 113 of file common.cpp.
Read data from a stream.
| [in] | sDataStream,the | output data stream to read. |
| [in] | dataStreamName,the | name of the data stream. |
| [out] | udpWord,a | pointer to the storage location of the data to read. |
Definition at line 100 of file common.cpp.
| bool setInputDataStream | ( | stream< UdpWord > & | sDataStream, |
| const std::string | dataStreamName, | ||
| const std::string | inpFileName, | ||
| int | simCnt | ||
| ) |
Initialize an input data stream from a file.
| [in] | sDataStream | the input data stream to set. |
| [in] | dataStreamName | the name of the data stream. |
| [in] | inpFileName | the name of the input file to read from. |
| bool setInputDataStream | ( | stream< UdpWord > & | sDataStream, |
| const string | dataStreamName, | ||
| const string | inpFileName, | ||
| int | simCnt | ||
| ) |
Initialize an input data stream from a file.
| [in] | sDataStream | the input data stream to set. |
| [in] | dataStreamName | the name of the data stream. |
| [in] | inpFileName | the name of the input file to read from. |
Definition at line 45 of file common.cpp.
| 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>.
| [in] | buffer | A pointer to an ap_uint<64> word |
Definition at line 136 of file common.cpp.