|
Signal | asgn (Signal) |
|
void | clock (const char *rname) |
|
void | create () |
|
int | getalwaysn () |
|
bool | getbool () |
|
int | getchange () |
|
int | geth () |
|
int | getint () |
|
int | getl () |
|
rval | getmask () |
|
int | getnegedge () |
|
int | getposedge () |
|
rval | getr () |
|
rval | getval () |
|
void | init (int, int, const char *) |
|
void | init (const char *rname) |
|
void | init (Signal *shost, int h, int l, const char *rname) |
|
void | initreg (int, int, const char *) |
|
void | inout (int, int, const char *) |
|
void | inout (const char *rname) |
|
void | input (int, int, const char *) |
|
void | input (const char *rname) |
|
void | makemask () |
|
Signal | operator! () |
|
Signal | operator!= (Signal) |
|
Signal | operator% (Signal) |
|
Signal | operator& (Signal) |
|
Signal * | operator& () |
|
Signal | operator&& (Signal) |
|
Signal | operator() (Signal, Signal) |
|
Signal | operator() (Signal) |
|
Signal | operator* (Signal) |
|
Signal | operator+ (Signal) |
|
Signal | operator++ () |
|
Signal | operator++ (int) |
|
Signal | operator, (Signal) |
|
Signal | operator- (Signal) |
|
Signal | operator-- () |
|
Signal | operator-- (int) |
|
Signal | operator/ (Signal) |
|
Signal | operator< (Signal) |
|
Signal | operator<< (Signal) |
|
Signal | operator<= (Signal) |
|
Signal | operator= (Signal) |
|
Signal | operator== (Signal) |
|
Signal | operator> (Signal) |
|
Signal | operator>= (Signal) |
|
Signal | operator>> (Signal) |
|
Signal | operator^ (Signal) |
|
Signal | operator| (Signal) |
|
Signal | operator|| (Signal) |
|
Signal | operator~ () |
|
void | output (int, int, const char *) |
|
void | output (const char *rname) |
|
void | output (int high, int low, const char *rname, module *parent) |
|
void | output (const char *rname, module *parent) |
|
void | reg (int, int, const char *) |
|
void | reg (const char *rname) |
|
Signal | set (Signal) |
|
void | setalwaysn (int n) |
|
void | setchange (int ch) |
|
void | sethlmask (int high, int low, rval imask) |
|
void | setnegedge (int ch) |
|
void | setposedge (int ch) |
|
void | setprintable (int p) |
|
void | setr (rval rv) |
|
void | setrc (rval rv) |
|
| Signal () |
|
| Signal (rval) |
|
| Signal (int) |
|
| Signal (unsigned int) |
|
| Signal (const char *) |
|
| Signal (int bits, rval value) |
|
void | wire (int, int, const char *) |
|
void | wire (int, int, const char *, int) |
|
void | wire (const char *rname) |
|
Description: A simple implementation of the signal/slot pattern
Usage: This is a simple version of the signal/slot pattern and is used by the Framework. It is safe to call 'emit' from multiple threads simultaneously. Assumptions: -The attached slots have a life-time greater than the last 'emit' call issued from the Signal. -'connect' is not called simultaneously with any other methods of the class.
Definition at line 39 of file vlib.h.
Signal::Signal |
( |
const char * |
sval | ) |
|
Definition at line 61 of file vlib.cc.
References bits, create(), mps_fire::i, init(), mask, mnum, mode, r, rc, AlCaHLTBitMon_QueryRunRegistry::string, heppy_batch::val, and relativeConstraints::value.
72 sscanf(val.c_str(),
"%d'%c", &
bits, &radix);
78 for (i = 0; val[
i] !=
'h' && val[
i] !=
'H'; ++
i);
79 for (; i < val.length(); ++
i)
101 dig = val[
i] -
'a' + 10;
109 dig = val[
i] -
'A' + 10;
126 sscanf (val.c_str(),
"%d'%c%d", &
bits, &radix,
reinterpret_cast<int *
>(&
value));
131 for (i = 0; val[
i] !=
'o' && val[
i] !=
'O'; ++
i);
132 for (; i < val.length(); ++
i)
162 for (i = 0; val[
i] !=
'b' && val[
i] !=
'B'; ++
i);
163 for (; i < val.length(); ++
i)
void init(int, int, const char *)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision bits
unsigned long long int rval
Definition at line 533 of file vlib.cc.
References ca1, ca2, change, gather_cfg::cout, globcontrol::getalwaysn(), getl(), getval(), h, host, hostl, AnalysisDataFormats_SUSYBSMObjects::hr, l, mask, minout, mode, moutput, dataset::name, nedge, outhost, outreg, pedge, r, rc, set(), setalwaysn(), globcontrol::setchange(), and protons_cff::t.
Referenced by operator=(), set(), and setprintable().
538 t.name = lb +
name + rb +
" = " + other.getcatname();
539 if (
glc.printassign())
std::cout <<
glc.getmargin() << t.name <<
";\n" << flush;
541 rval hr, portionr, portionmask, otr;
558 portionr =
rc << shn;
559 portionmask =
mask << shn;
560 host->
set((hr & (~portionmask)) | portionr);
563 if (
ca1 !=
nullptr &&
ca2 !=
nullptr)
585 glc.setprintassign(1);
unsigned long long int rval
void Signal::clock |
( |
const char * |
rname | ) |
|
Definition at line 677 of file vlib.cc.
References module::AddOutReg(), change, dbgmsg, TauDecayModes::dec, globcontrol::getparent(), h, host, init(), inited, l, minput, mode, dataset::name, nedge, obnames, outhost, outreg, pedge, printable, r, rc, module::setchange(), setr(), and setrc().
Referenced by input().
680 if (lb ==
"{")
glc.AddIO(lb +
name + rb);
686 dbgmsg(
"Different port length for clock argument: declared [" << 0 <<
":" << 0 <<
"], passed: [" <<
h <<
":" <<
l <<
"]. ");
697 if (
h ==
l) ln << obname <<
name <<
";\n";
698 else ln << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] " << name <<
";\n";
699 glc.AddDeclarator(ln.str());
void init(int, int, const char *)
Signal * AddOutReg(Signal arg)
Definition at line 25 of file vlib.cc.
References alwaysn, ca1, ca2, change, h, host, hostl, inited, l, mask, mode, dataset::name, nedge, outhost, outreg, pedge, printable, r, rc, and Sizeofrval.
Referenced by module::module(), and Signal().
unsigned long long int rval
void Signal::init |
( |
int |
high, |
|
|
int |
low, |
|
|
const char * |
rname |
|
) |
| |
Definition at line 239 of file vlib.cc.
References h, inited, l, makemask(), dataset::name, and source.
Referenced by clock(), function::function(), init(), parameter::init(), initreg(), inout(), input(), module::negedge(), parameter::operator int(), operator()(), module::operator()(), operator,(), operator||(), output(), module::posedge(), rand(), ror(), rxor(), Signal(), and wire().
void Signal::input |
( |
int |
high, |
|
|
int |
low, |
|
|
const char * |
rname |
|
) |
| |
Definition at line 625 of file vlib.cc.
References module::AddOutReg(), change, dbgmsg, TauDecayModes::dec, getmask(), globcontrol::getparent(), getr(), h, host, init(), inited, l, minput, mode, dataset::name, nedge, obnames, outhost, outreg, pedge, printable, r, module::setchange(), setr(), and setrc().
Referenced by operator--().
628 if (lb ==
"{")
glc.AddIO(lb +
name + rb);
634 dbgmsg(
"Different port length for input argument: declared [" << high <<
":" << low <<
"], passed: [" <<
h <<
":" <<
l <<
"]. ");
654 if (
h ==
l) ln << obname <<
name <<
";\n";
655 else ln << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] " << name <<
";\n";
656 glc.AddDeclarator(ln.str());
void init(int, int, const char *)
Signal * AddOutReg(Signal arg)
void Signal::output |
( |
int |
high, |
|
|
int |
low, |
|
|
const char * |
rname |
|
) |
| |
Definition at line 722 of file vlib.cc.
References dbgmsg, TauDecayModes::dec, h, hostl, init(), l, mode, moutput, mreg, dataset::name, obnames, and printable.
Referenced by input(), and output().
725 if (lb ==
"{")
glc.AddIO(lb +
name + rb);
731 dbgmsg(
"Different port length for output argument: declared [" << high <<
":" << low <<
"], passed: [" <<
h <<
":" <<
l <<
"]. ");
735 dbgmsg(
"Using reg as output.");
756 if (
h ==
l) ln << obname <<
name <<
";\n";
757 else ln << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] " << name <<
";\n";
758 glc.AddDeclarator(ln.str());
void init(int, int, const char *)
void Signal::wire |
( |
int |
high, |
|
|
int |
low, |
|
|
const char * |
rname |
|
) |
| |
Definition at line 885 of file vlib.cc.
References change, gather_cfg::cout, TauDecayModes::dec, globcontrol::getparent(), h, init(), l, mode, mwire, dataset::name, nedge, obnames, outhost, pedge, r, rc, and module::setchange().
Referenced by reg(), and wire().
897 if (
h ==
l)
cout <<
glc.getmargin() << obname <<
name <<
";\n" << flush;
898 else std::cout <<
glc.getmargin() << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] "<<
name <<
";\n" << flush;
void init(int, int, const char *)