Belle II Software development
|
A class that holds FPGA related functions. More...
#include <FpgaUtility.h>
Static Public Member Functions | |
static double | roundInt (double value) |
Round double value. | |
static double | arbToDouble (std::string in, int inRadix) |
Radix changing functions. | |
static std::string | doubleToArb (double in, int outRadix, int numberOfDigits=-1) |
Change octal to string. | |
static std::string | arbToArb (const std::string &in, int inRadix, int outRadix, int numberOfDigits=-1) |
Change string number to another string number depending on radix. | |
static std::string | signedToTwosComplement (std::string in, int numberOfDigits) |
Changes string signed binary(-sign) to two complements. | |
static std::string | twosComplementToSigned (std::string in) |
Changes string two complements to string signed binary(-sign). | |
static void | writeSignals (std::string outFilePath, std::map< std::string, std::vector< signed long long > > &data) |
COE file functions. | |
static void | multipleWriteCoe (int lutInBitsize, std::map< std::string, std::vector< signed long long > > &data, const std::string &fileDirectory) |
Writes multiple signal values to a file in coe format. | |
static void | writeCoe (std::string outFilePath, int lutInBitsize, std::vector< signed long long > &data) |
Writes a signal's values to a file in coe format. | |
static void | readCoe (std::string inFilePath, std::vector< signed long long > &data, bool twoscomplement=0) |
Reads a coe format file and stores the values in vector. | |
A class that holds FPGA related functions.
Definition at line 16 of file FpgaUtility.h.
|
static |
Change string number to another string number depending on radix.
Definition at line 114 of file FpgaUtility.cc.
|
static |
Radix changing functions.
Change string to octal. Possible radix=[2,26].
Definition at line 60 of file FpgaUtility.cc.
|
static |
Change octal to string.
Definition at line 82 of file FpgaUtility.cc.
|
static |
Writes multiple signal values to a file in coe format.
Definition at line 220 of file FpgaUtility.cc.
|
static |
Reads a coe format file and stores the values in vector.
Definition at line 251 of file FpgaUtility.cc.
|
static |
Round double value.
Definition at line 38 of file FpgaUtility.cc.
|
static |
Changes string signed binary(-sign) to two complements.
Definition at line 120 of file FpgaUtility.cc.
|
static |
Changes string two complements to string signed binary(-sign).
Definition at line 163 of file FpgaUtility.cc.
|
static |
Writes a signal's values to a file in coe format.
Definition at line 229 of file FpgaUtility.cc.
|
static |
COE file functions.
Writes values to a file.
Definition at line 202 of file FpgaUtility.cc.