 |
Belle II Software
release-05-01-25
|
14 static double roundInt(
double value);
17 static double arbToDouble(std::string in,
int inRadix);
19 static std::string
doubleToArb(
double in,
int outRadix,
int numberOfDigits = -1);
21 static std::string
arbToArb(std::string& in,
int inRadix,
int outRadix,
int numberOfDigits = -1);
28 static void writeSignals(std::string outFilePath, std::map<std::string, std::vector<signed long long> >& data);
30 static void multipleWriteCoe(
int lutInBitsize, std::map<std::string, std::vector<signed long long> >& data,
31 std::string fileDirectory);
33 static void writeCoe(std::string outFilePath,
int lutInBitsize, std::vector<signed long long>& data);
35 static void readCoe(std::string inFilePath, std::vector<signed long long>& data,
bool twoscomplement = 0);
static double roundInt(double value)
Round double value.
static std::string twosComplementToSigned(std::string in)
Changes string two complements to string signed binary(-sign).
static void multipleWriteCoe(int lutInBitsize, std::map< std::string, std::vector< signed long long > > &data, std::string fileDirectory)
Writes multiple signal values to a file in coe format.
A class that holds FPGA related functions.
static std::string doubleToArb(double in, int outRadix, int numberOfDigits=-1)
Change octal to string.
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.
static double arbToDouble(std::string in, int inRadix)
Radix changing functions.
static std::string signedToTwosComplement(std::string in, int numberOfDigits)
Changes string signed binary(-sign) to two complements.
static std::string arbToArb(std::string &in, int inRadix, int outRadix, int numberOfDigits=-1)
Change string number to another string number depending on radix.
static void writeSignals(std::string outFilePath, std::map< std::string, std::vector< signed long long > > &data)
COE file functions.
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.