|
| TRGCDCJLUT (const std::string &name="no_name") |
| Contructor.
|
|
| TRGCDCJLUT (const TRGCDCJLUT &in) |
| Copy constructor.
|
|
virtual | ~TRGCDCJLUT () |
| Destructor.
|
|
std::string | name (void) const |
| Operators.
|
|
std::string | version (void) const |
| returns version.
|
|
void | setData (int inputBitsize, int outputBitSize, const std::string &filename, bool twoscomplement=0) |
| set LookUpTable(LUT) data.
|
|
void | setFunction (std::function< int(int)> function) |
| set LUT function directly using int values.
|
|
int | setFloatFunction (std::function< double(double)> function, TRGCDCJSignal const &input, TRGCDCJSignal const &minInv, TRGCDCJSignal const &maxInv, double outputToReal, int lutInputBitwidth, int lutOutputBitwidth) |
| set LUT function using JSignals.
|
|
void | setOutputFlag (int outputFlag) |
| set output flag.
|
|
void | setBitsize (int inputBitsize, int outputBitsize) |
| set input & output bitsize.
|
|
void | setInputBitsize (int inputBitsize) |
| set input bitsize.
|
|
void | setOutputBitsize (int outputBitsize) |
| set output bitsize.
|
|
std::string | getFileName () const |
| get LUT filename
|
|
int | getInputBitsize () const |
| get input bitsize
|
|
int | getOutputBitsize () const |
| get output bitsize
|
|
std::function< int(int)> | getFunction () |
| get LUT function using int values.
|
|
std::function< double(double)> | getFloatFunction () |
| get LUT function using float values.
|
|
int | getOutputFlag () const |
| get output type.
|
|
int | getOutputType () const |
| get output type.
|
|
int | getOutput (int) const |
| get output using int values.
|
|
double | getFloatOutput (double) const |
| get output using float values.
|
|
void | dump () |
| Print variables for LUT.
|
|
void | makeCOE (const std::string &fileName="") |
| make COE file.
|
|
std::string | operate (std::string out, std::string in, std::map< std::string, std::map< std::string, double > * > &m_intStorage) |
| Operate on LUT. (Will be deprecated.)
|
|
TRGCDCJSignal const | operate (const TRGCDCJSignal &in, TRGCDCJSignal &out) |
| Returns LUT value. Out is LUT value + offset. (LUT value + offset do not obey addition bitsize rules.)
|
|
void | operateNoOffset (TRGCDCJSignal const &in, TRGCDCJSignal &out) const |
| Output is LUT Out + offset. Input is non offset input.
|
|
std::string const | lutVhdlCode (std::string const &shiftOffsetInput) const |
| Creates vhdlCode for lut.
|
|
A class to use LUTs for TRGCDC.
Definition at line 35 of file JLUT.h.