|
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 (const char *rname) |
|
void | init (int, int, const char *) |
|
void | init (Signal *shost, int h, int l, const char *rname) |
|
void | initreg (int, int, const char *) |
|
void | inout (const char *rname) |
|
void | inout (int, int, const char *) |
|
void | input (const char *rname) |
|
void | input (int, int, const char *) |
|
void | makemask () |
|
Signal | operator! () |
|
Signal | operator!= (Signal) |
|
Signal | operator% (Signal) |
|
Signal * | operator& () |
|
Signal | operator& (Signal) |
|
Signal | operator&& (Signal) |
|
Signal | operator() (Signal) |
|
Signal | operator() (Signal, 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 (const char *rname) |
|
void | output (const char *rname, module *parent) |
|
void | output (int high, int low, const char *rname, module *parent) |
|
void | output (int, int, const char *) |
|
void | reg (const char *rname) |
|
void | reg (int, int, const char *) |
|
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 (const char *) |
|
| Signal (int bits, rval value) |
|
| Signal (int) |
|
| Signal (rval) |
|
| Signal (unsigned int) |
|
void | wire (const char *rname) |
|
void | wire (int, int, const char *) |
|
void | wire (int, int, const char *, int) |
|
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 28 of file vlib.h.
Signal::Signal |
( |
const char * |
sval | ) |
|
Definition at line 43 of file vlib.cc.
53 sscanf(
val.c_str(),
"%d'%c", &
bits, &radix);
58 for (
i = 0;
val[
i] !=
'h' &&
val[
i] !=
'H'; ++
i)
60 for (;
i <
val.length(); ++
i) {
80 dig =
val[
i] -
'a' + 10;
88 dig =
val[
i] -
'A' + 10;
103 sscanf(
val.c_str(),
"%d'%c%d", &
bits, &radix, reinterpret_cast<int*>(&
value));
108 for (
i = 0;
val[
i] !=
'o' &&
val[
i] !=
'O'; ++
i)
110 for (;
i <
val.length(); ++
i) {
137 for (
i = 0;
val[
i] !=
'b' &&
val[
i] !=
'B'; ++
i)
139 for (;
i <
val.length(); ++
i) {
References bits, create(), mps_fire::i, init(), mask, mnum, mode, r, rc, AlCaHLTBitMon_QueryRunRegistry::string, and heppy_batch::val.
Definition at line 459 of file vlib.cc.
463 t.name = lb +
name + rb +
" = " +
other.getcatname();
464 if (
glc.printassign())
467 rval hr, portionr, portionmask, otr;
485 portionr =
rc << shn;
486 portionmask =
mask << shn;
487 host->
set((hr & (~portionmask)) | portionr);
490 if (
ca1 !=
nullptr &&
ca2 !=
nullptr)
510 glc.setprintassign(1);
References ca1, ca2, change, gather_cfg::cout, globcontrol::getalwaysn(), getl(), glc, h, host, hostl, l, mask, minout, mode, moutput, Skims_PA_cff::name, nedge, trackingPlots::other, outhost, outreg, pedge, r, rc, set(), setalwaysn(), globcontrol::setchange(), and OrderedSet::t.
Referenced by operator=(), and set().
void Signal::clock |
( |
const char * |
rname | ) |
|
Definition at line 603 of file vlib.cc.
614 dbgmsg(
"Different port length for clock argument: declared [" << 0 <<
":" << 0 <<
"], passed: [" <<
h <<
":" <<
l
627 ln << obname <<
name <<
";\n";
629 ln << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] " <<
name <<
";\n";
630 glc.AddDeclarator(ln.str());
637 if (
rc == 1 &&
r == 0)
641 if (
rc == 0 &&
r == 1)
References module::AddOutReg(), change, dbgmsg, TauDecayModes::dec, globcontrol::getparent(), glc, host, init(), inited, l, minput, mode, Skims_PA_cff::name, nedge, obnames, outhost, outreg, pedge, printable, r, rc, rname, module::setchange(), setr(), and setrc().
Definition at line 13 of file vlib.cc.
References alwaysn, ca1, ca2, change, host, hostl, inited, l, mask, mode, Skims_PA_cff::name, nedge, outhost, outreg, pedge, printable, r, rc, and Sizeofrval.
Referenced by Signal().
void Signal::inout |
( |
int |
high, |
|
|
int |
low, |
|
|
const char * |
rname |
|
) |
| |
Definition at line 717 of file vlib.cc.
726 dbgmsg(
"Different port length for inout argument: declared [" <<
high <<
":" <<
low <<
"], passed: [" <<
h <<
":"
746 ln << obname <<
name <<
";\n";
748 ln << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] " <<
name <<
";\n";
749 glc.AddDeclarator(ln.str());
References dbgmsg, TauDecayModes::dec, glc, LaserClient_cfi::high, hostl, init(), l, LaserClient_cfi::low, minout, mode, Skims_PA_cff::name, obnames, printable, and rname.
void Signal::input |
( |
int |
high, |
|
|
int |
low, |
|
|
const char * |
rname |
|
) |
| |
Definition at line 545 of file vlib.cc.
556 dbgmsg(
"Different port length for input argument: declared [" <<
high <<
":" <<
low <<
"], passed: [" <<
h <<
":"
575 ln << obname <<
name <<
";\n";
577 ln << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] " <<
name <<
";\n";
578 glc.AddDeclarator(ln.str());
References module::AddOutReg(), change, dbgmsg, TauDecayModes::dec, getmask(), globcontrol::getparent(), getr(), glc, LaserClient_cfi::high, host, init(), inited, l, LaserClient_cfi::low, minput, mode, Skims_PA_cff::name, nedge, obnames, outhost, outreg, pedge, printable, r, rname, module::setchange(), setr(), and setrc().
void Signal::output |
( |
int |
high, |
|
|
int |
low, |
|
|
const char * |
rname |
|
) |
| |
Definition at line 655 of file vlib.cc.
664 dbgmsg(
"Different port length for output argument: declared [" <<
high <<
":" <<
low <<
"], passed: [" <<
h <<
":"
668 dbgmsg(
"Using reg as output.");
687 ln << obname <<
name <<
";\n";
689 ln << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] " <<
name <<
";\n";
690 glc.AddDeclarator(ln.str());
References dbgmsg, TauDecayModes::dec, glc, LaserClient_cfi::high, hostl, init(), l, LaserClient_cfi::low, mode, moutput, mreg, Skims_PA_cff::name, obnames, printable, and rname.
Referenced by output().
void Signal::wire |
( |
int |
high, |
|
|
int |
low, |
|
|
const char * |
rname |
|
) |
| |
Definition at line 808 of file vlib.cc.
821 cout <<
glc.getmargin() << obname <<
name <<
";\n" << flush;
823 std::cout <<
glc.getmargin() << obname <<
"[" <<
dec <<
h <<
":" <<
l <<
"] " <<
name <<
";\n" << flush;
References change, gather_cfg::cout, TauDecayModes::dec, globcontrol::getparent(), glc, LaserClient_cfi::high, init(), l, LaserClient_cfi::low, mode, mwire, Skims_PA_cff::name, nedge, obnames, outhost, pedge, r, rc, rname, and module::setchange().
Referenced by wire().