#include <imath.h>
Public Member Functions | |
void | local_passes (std::map< const VarBase *, std::vector< bool > > &passes, const std::map< const VarBase *, std::vector< bool > > *const previous_passes=nullptr) const |
double | lower_cut () const |
VarFlag * | parent_flag () |
void | print (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 (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 | set_cut_var (VarBase *cut_var, const bool call_add_cut=true) |
void | set_parent_flag (VarFlag *parent_flag, const bool call_add_cut) |
double | upper_cut () const |
VarCut (imathGlobals *globals, double lower_cut, double upper_cut) | |
VarCut (imathGlobals *globals, VarBase *cut_var, double lower_cut, double upper_cut) | |
~VarCut () override=default | |
Public Member Functions inherited from trklet::VarBase | |
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 |
virtual void | local_calculate () |
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 () |
virtual void | print (std::ofstream &fs, Verilog, int l1=0, int l2=0, int l3=0) |
virtual void | print (std::ofstream &fs, HLS, int l1=0, int l2=0, int l3=0) |
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 | |
double | lower_cut_ |
VarFlag * | parent_flag_ |
double | upper_cut_ |
Protected Attributes inherited from trklet::VarBase | |
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 Public Member Functions inherited from trklet::VarBase | |
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 Public Attributes inherited from trklet::VarBase | |
static struct trklet::VarBase::HLS | hls |
static struct trklet::VarBase::Verilog | verilog |
|
inline |
Definition at line 1056 of file imath.h.
References trklet::VarBase::op_.
|
inline |
Definition at line 1064 of file imath.h.
References set_cut_var().
|
overridedefault |
void VarCut::local_passes | ( | std::map< const VarBase *, std::vector< bool > > & | passes, |
const std::map< const VarBase *, std::vector< bool > > *const | previous_passes = nullptr |
||
) | const |
Definition at line 304 of file imath.cc.
References trklet::VarBase::cut_var_, trklet::VarBase::ival(), trklet::VarBase::K(), lower_cut(), lower_cut_, trklet::VarBase::passes(), upper_cut(), and upper_cut_.
Referenced by trklet::VarFlag::passes().
|
inline |
Definition at line 1070 of file imath.h.
References lower_cut_.
Referenced by trklet::VarBase::local_passes(), local_passes(), trklet::VarBase::passes(), print(), and trklet::VarBase::print_cuts().
|
inline |
void VarCut::print | ( | 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 |
Definition at line 26 of file imath_Verilog.cc.
References trklet::VarBase::cut_var_, trklet::VarBase::itos(), trklet::VarBase::K(), cmsLHEtoEOSManager::l, trklet::VarBase::latency(), lower_cut(), lower_cut_, trklet::VarBase::name(), trklet::VarBase::step(), AlCaHLTBitMon_QueryRunRegistry::string, upper_cut(), and upper_cut_.
Referenced by trklet::VarFlag::print().
void VarCut::print | ( | 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 |
Definition at line 23 of file imath_HLS.cc.
References cms::cuda::assert(), trklet::VarBase::cut_var_, trklet::VarBase::itos(), trklet::VarBase::K(), lower_cut(), lower_cut_, trklet::VarBase::name(), AlCaHLTBitMon_QueryRunRegistry::string, upper_cut(), and upper_cut_.
void VarCut::set_cut_var | ( | VarBase * | cut_var, |
const bool | call_add_cut = true |
||
) |
Definition at line 365 of file imath.cc.
References trklet::VarBase::add_cut(), trklet::VarFlag::calculate_step(), trklet::VarBase::cut_var(), trklet::VarBase::cut_var_, and parent_flag_.
Referenced by trklet::VarBase::add_cut(), and VarCut().
void VarCut::set_parent_flag | ( | VarFlag * | parent_flag, |
const bool | call_add_cut | ||
) |
Definition at line 382 of file imath.cc.
References trklet::VarFlag::add_cut(), parent_flag(), and parent_flag_.
Referenced by trklet::VarFlag::add_cut().
|
inline |
Definition at line 1071 of file imath.h.
References upper_cut_.
Referenced by trklet::VarBase::local_passes(), local_passes(), trklet::VarBase::passes(), print(), and trklet::VarBase::print_cuts().
|
protected |
Definition at line 1090 of file imath.h.
Referenced by local_passes(), lower_cut(), and print().
|
protected |
Definition at line 1092 of file imath.h.
Referenced by parent_flag(), set_cut_var(), and set_parent_flag().
|
protected |
Definition at line 1091 of file imath.h.
Referenced by local_passes(), print(), and upper_cut().