21  static double roundInt(
double value);
 
   24  static double arbToDouble(std::string in, 
int inRadix);
 
   26  static std::string 
doubleToArb(
double in, 
int outRadix, 
int numberOfDigits = -1);
 
   28  static std::string 
arbToArb(
const std::string& in, 
int inRadix, 
int outRadix, 
int numberOfDigits = -1);
 
   35  static void writeSignals(std::string outFilePath, std::map<std::string, std::vector<signed long long> >& data);
 
   37  static void multipleWriteCoe(
int lutInBitsize, std::map<std::string, std::vector<signed long long> >& data,
 
   38                               const std::string& fileDirectory);
 
   40  static void writeCoe(std::string outFilePath, 
int lutInBitsize, std::vector<signed long long>& data);
 
   42  static void readCoe(std::string inFilePath, std::vector<signed long long>& data, 
bool twoscomplement = 0);
 
A class that holds FPGA related functions.
static std::string doubleToArb(double in, int outRadix, int numberOfDigits=-1)
Change octal to string.
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 double arbToDouble(std::string in, int inRadix)
Radix changing functions.
static void writeSignals(std::string outFilePath, std::map< std::string, std::vector< signed long long > > &data)
COE file functions.
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 twosComplementToSigned(std::string in)
Changes string two complements to string signed binary(-sign).
static double roundInt(double value)
Round double value.
static std::string signedToTwosComplement(std::string in, int numberOfDigits)
Changes string signed binary(-sign) to two complements.
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 readCoe(std::string inFilePath, std::vector< signed long long > &data, bool twoscomplement=0)
Reads a coe format file and stores the values in vector.