![]() |
![]() |
#include <imath.h>
Public Types | |
enum | mode { pos, neg, both } |
Public Member Functions | |
int | addr_to_ival (int addr) |
int | gen_inv (int i) |
void | initLUT (double offset) |
double | Ioffset () |
int | ival_to_addr (int ival) |
void | local_calculate () override |
double | offset () |
void | print (std::ofstream &fs, Verilog, int l1=0, int l2=0, int l3=0) override |
void | print (std::ofstream &fs, HLS, int l1=0, int l2=0, int l3=0) override |
void | set_mode (mode m) |
VarInv (imathGlobals *globals, std::string name, VarBase *p1, double offset, int nbits, int n, unsigned int shift, mode m, int nbaddr=-1) | |
void | writeLUT (std::ofstream &fs) const |
void | writeLUT (std::ofstream &fs, Verilog) const |
void | writeLUT (std::ofstream &fs, HLS) const |
~VarInv () override | |
![]() | |
void | add_cut (VarCut *cut, const bool call_set_cut_var=true) |
void | add_delay (int i) |
void | add_latency (unsigned int l) |
void | analyze () |
bool | calculate (int debug_level) |
bool | calculate () |
VarBase * | cut_var () |
std::string | dump () |
void | dump_msg () |
double | fval () const |
bool | has_delay (int i) |
void | inputs (std::vector< VarBase * > *vd) |
long int | ival () const |
double | K () const |
std::map< std::string, int > | Kmap () const |
std::string | kstring () const |
int | latency () const |
bool | local_passes () const |
void | makeready () |
double | maxval () const |
double | minval () const |
std::string | name () const |
int | nbits () const |
std::string | op () const |
VarBase * | p1 () const |
VarBase * | p2 () const |
VarBase * | p3 () const |
void | passes (std::map< const VarBase *, std::vector< bool > > &passes, const std::map< const VarBase *, std::vector< bool > > *const previous_passes=nullptr) const |
int | pipe_counter () |
std::string | pipe_delays (const int step) |
void | pipe_increment () |
void | print_all (std::ofstream &fs, Verilog) |
void | print_all (std::ofstream &fs, HLS) |
void | print_cuts (std::map< const VarBase *, std::set< std::string > > &cut_strings, const int step, Verilog, const std::map< const VarBase *, std::set< std::string > > *const previous_cut_strings=nullptr) const |
void | print_cuts (std::map< const VarBase *, std::set< std::string > > &cut_strings, const int step, HLS, const std::map< const VarBase *, std::set< std::string > > *const previous_cut_strings=nullptr) const |
void | print_step (int step, std::ofstream &fs, Verilog) |
void | print_step (int step, std::ofstream &fs, HLS) |
void | print_truncation (std::string &t, const std::string &o1, const int ps, Verilog) const |
void | print_truncation (std::string &t, const std::string &o1, const int ps, HLS) const |
double | range () const |
void | reset () |
int | shift () const |
int | step () const |
VarBase (imathGlobals *globals, std::string name, VarBase *p1, VarBase *p2, VarBase *p3, int l) | |
virtual | ~VarBase () |
Protected Attributes | |
unsigned int | ashift_ |
int * | LUT |
mode | m_ |
unsigned int | mask_ |
int | n_ |
int | nbaddr_ |
int | Nelements_ |
double | offset_ |
unsigned int | shift_ |
![]() | |
VarBase * | cut_var_ |
std::vector< VarBase * > | cuts_ |
double | fval_ |
imathGlobals * | globals_ |
long int | ival_ |
double | K_ |
std::map< std::string, int > | Kmap_ |
int | latency_ |
double | maxval_ |
double | minval_ |
std::string | name_ |
int | nbits_ |
std::string | op_ |
VarBase * | p1_ |
VarBase * | p2_ |
VarBase * | p3_ |
int | pipe_counter_ |
std::vector< int > | pipe_delays_ |
bool | readytoanalyze_ |
bool | readytoprint_ |
int | step_ |
bool | usedasinput_ |
double | val_ |
Additional Inherited Members | |
![]() | |
static void | design_print (const std::vector< VarBase * > &v, std::ofstream &fs, Verilog) |
static void | design_print (const std::vector< VarBase * > &v, std::ofstream &fs, HLS) |
static void | hls_print (const std::vector< VarBase * > &v, std::ofstream &fs) |
static std::string | itos (int i) |
static std::string | pipe_delay (VarBase *v, int nbits, int delay) |
static std::string | pipe_delay_wire (VarBase *v, std::string name_delayed, int nbits, int delay) |
static void | verilog_print (const std::vector< VarBase * > &v, std::ofstream &fs) |
![]() | |
static struct trklet::VarBase::HLS | hls |
static struct trklet::VarBase::Verilog | verilog |
enum trklet::VarInv::mode |
Enumerator | |
---|---|
pos | |
neg | |
both |
|
inline |
Definition at line 959 of file imath.h.
References addr_to_ival(), ashift_, reco::HaloData::both, gen_inv(), mps_fire::i, trklet::VarBase::K(), trklet::VarBase::K_, trklet::VarBase::Kmap(), trklet::VarBase::Kmap_, visualization-live-secondInstance_cfg::m, m_, mask_, dqmiodumpmetadata::n, n_, nbaddr_, trklet::VarBase::nbits(), trklet::VarBase::nbits_, Nelements_, offset(), offset_, trklet::VarBase::op_, trklet::VarBase::p1_, funct::pow(), trklet::VarBase::shift(), and shift_.
|
inline |
Definition at line 1012 of file imath.h.
References ashift_, cms::cuda::assert(), reco::HaloData::both, m_, Nelements_, and shift_.
Referenced by initLUT(), and VarInv().
|
inline |
Definition at line 1023 of file imath.h.
References mps_fire::i, n_, trklet::VarBase::nbits_, and shift_.
Referenced by initLUT(), and VarInv().
void VarInv::initLUT | ( | double | offset | ) |
Definition at line 142 of file imath.cc.
References addr_to_ival(), gen_inv(), mps_fire::i, trklet::VarBase::K(), Nelements_, offset(), offset_, and trklet::VarBase::p1_.
Referenced by trklet::IMATH_TrackletCalculator::IMATH_TrackletCalculator(), trklet::IMATH_TrackletCalculatorDisk::IMATH_TrackletCalculatorDisk(), and trklet::IMATH_TrackletCalculatorOverlap::IMATH_TrackletCalculatorOverlap().
|
inline |
Definition at line 1002 of file imath.h.
References trklet::VarBase::K(), offset_, and trklet::VarBase::p1_.
|
inline |
|
overridevirtual |
Reimplemented from trklet::VarBase.
Definition at line 189 of file imath_calculate.cc.
References trklet::VarBase::fval(), trklet::VarBase::fval_, trklet::VarBase::ival(), trklet::VarBase::ival_, ival_to_addr(), offset_, and trklet::VarBase::p1_.
|
inline |
|
overridevirtual |
Reimplemented from trklet::VarBase.
Definition at line 287 of file imath_Verilog.cc.
References cms::cuda::assert(), trklet::VarBase::itos(), mask_, trklet::VarBase::name(), trklet::VarBase::name_, nbaddr_, trklet::VarBase::nbits_, Nelements_, trklet::VarBase::p1_, shift_, AlCaHLTBitMon_QueryRunRegistry::string, and submitPVValidationJobs::t.
|
overridevirtual |
Reimplemented from trklet::VarBase.
Definition at line 260 of file imath_HLS.cc.
References cms::cuda::assert(), trklet::VarBase::itos(), mask_, trklet::VarBase::name(), trklet::VarBase::name_, nbaddr_, trklet::VarBase::nbits_, Nelements_, trklet::VarBase::p1_, shift_, AlCaHLTBitMon_QueryRunRegistry::string, and submitPVValidationJobs::t.
|
inline |
Definition at line 999 of file imath.h.
References visualization-live-secondInstance_cfg::m, and m_.
Referenced by trklet::IMATH_TrackletCalculatorDisk::IMATH_TrackletCalculatorDisk(), and trklet::IMATH_TrackletCalculatorOverlap::IMATH_TrackletCalculatorOverlap().
|
inline |
Definition at line 1007 of file imath.h.
References trklet::VarBase::verilog, and writeLUT().
Referenced by trklet::TrackletCalculator::TrackletCalculator(), and writeLUT().
void VarInv::writeLUT | ( | std::ofstream & | fs, |
Verilog | |||
) | const |
Definition at line 5 of file imath_Verilog.cc.
References TauDecayModes::dec, mps_fire::i, trklet::VarBase::nbits_, and Nelements_.
void VarInv::writeLUT | ( | std::ofstream & | fs, |
HLS | |||
) | const |
Definition at line 5 of file imath_HLS.cc.
References TauDecayModes::dec, mps_fire::i, trklet::VarBase::nbits_, and Nelements_.
|
protected |
Definition at line 1047 of file imath.h.
Referenced by addr_to_ival(), and VarInv().
|
protected |
|
protected |
Definition at line 1044 of file imath.h.
Referenced by addr_to_ival(), set_mode(), and VarInv().
|
protected |
Definition at line 1046 of file imath.h.
Referenced by ival_to_addr(), print(), and VarInv().
|
protected |
|
protected |
|
protected |
Definition at line 1048 of file imath.h.
Referenced by addr_to_ival(), initLUT(), print(), VarInv(), and writeLUT().
|
protected |
|
protected |
Definition at line 1045 of file imath.h.
Referenced by addr_to_ival(), gen_inv(), ival_to_addr(), print(), and VarInv().