Belle II Software
release-08-01-10
|
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. More... | |
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. More... | |
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 |
Radix changing functions.
Change string to octal. Possible radix=[2,26].
Definition at line 60 of file FpgaUtility.cc.
|
static |