CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes
globcontrol Class Reference

#include <vlib.h>

Public Member Functions

int alwaysget ()
 
void alwayspop ()
 
void alwayspush ()
 
void alwaysstart ()
 
char * constant (int bits, char *val)
 
char * constant (int bits, int val)
 
int getalwaysn ()
 
int getce ()
 
int getchange ()
 
int getfunction ()
 
modulegetparent ()
 
rval getpassn ()
 
 globcontrol ()
 
void passn_inc ()
 
int setce (int c)
 
void setchange (int i)
 
void setfunction (int i)
 
void setparent (module *rparent)
 

Protected Attributes

int alwayscnt
 
int alwaysn
 
int ce
 
int change
 
char constring [2 *32+32]
 
int functiondecl
 
moduleparent
 
rval passn
 
int VFileOpen
 

Detailed Description

Definition at line 266 of file vlib.h.

Constructor & Destructor Documentation

◆ globcontrol()

globcontrol::globcontrol ( )

Definition at line 1127 of file vlib.cc.

1127  {
1128 #ifdef VGEN
1129  nomargin = 0;
1130  ndio = 0;
1131  npar = 0;
1132  ndecl = 0;
1133  indpos = 0;
1134  pa = 1;
1135  zeromargin = "";
1136  VFileOpen = 0;
1137 #endif
1138  alwayscnt = -1;
1139  alwaysn = 1;
1140  change = 0;
1141 }

References alwayscnt, alwaysn, change, and VFileOpen.

Member Function Documentation

◆ alwaysget()

int globcontrol::alwaysget ( )
inline

Definition at line 327 of file vlib.h.

327 { return (alwayscnt > 0); };

References alwayscnt.

◆ alwayspop()

void globcontrol::alwayspop ( )
inline

Definition at line 321 of file vlib.h.

321  {
322  if (alwayscnt > 0)
323  alwayscnt--;
324  if (alwayscnt == 0)
325  alwayscnt = -1;
326  };

References alwayscnt.

◆ alwayspush()

void globcontrol::alwayspush ( )
inline

Definition at line 317 of file vlib.h.

317  {
318  if (alwayscnt >= 0)
319  alwayscnt++;
320  };

References alwayscnt.

◆ alwaysstart()

void globcontrol::alwaysstart ( )
inline

Definition at line 311 of file vlib.h.

311  {
312  alwayscnt = 0;
313  alwaysn++;
314  if (alwaysn == 0 || alwaysn == -1)
315  alwaysn = 1;
316  };

References alwayscnt, and alwaysn.

◆ constant() [1/2]

char * globcontrol::constant ( int  bits,
char *  val 
)

Definition at line 1208 of file vlib.cc.

1208  {
1209  sprintf(constring, "%d%s", bits, value);
1210  return constring;
1211 }

References bits, and constring.

◆ constant() [2/2]

char * globcontrol::constant ( int  bits,
int  val 
)

Definition at line 1213 of file vlib.cc.

1213  {
1214  sprintf(constring, "%d'd%u", bits, (unsigned)value);
1215  return constring;
1216 }

References bits, and constring.

◆ getalwaysn()

int globcontrol::getalwaysn ( )
inline

Definition at line 328 of file vlib.h.

328 { return (alwayscnt > 0) ? alwaysn : (-1); };

References alwayscnt, and alwaysn.

Referenced by Signal::asgn(), Signal::getval(), and Signal::operator=().

◆ getce()

int globcontrol::getce ( )
inline

Definition at line 340 of file vlib.h.

340 { return ce; };

References ce.

◆ getchange()

int globcontrol::getchange ( )
inline

Definition at line 331 of file vlib.h.

331 { return change; };

References change.

Referenced by function::vbeginfunction().

◆ getfunction()

int globcontrol::getfunction ( )
inline

Definition at line 335 of file vlib.h.

335  {
336  int t = functiondecl;
337  functiondecl = 0;
338  return t;
339  };

References functiondecl, and OrderedSet::t.

◆ getparent()

module* globcontrol::getparent ( )
inline

Definition at line 333 of file vlib.h.

333 { return parent; };

References parent.

Referenced by Signal::clock(), Signal::initreg(), Signal::input(), and Signal::wire().

◆ getpassn()

rval globcontrol::getpassn ( )
inline

Definition at line 348 of file vlib.h.

348 { return passn; }

References passn.

◆ passn_inc()

void globcontrol::passn_inc ( )
inline

Definition at line 347 of file vlib.h.

347 { passn++; };

References passn.

◆ setce()

int globcontrol::setce ( int  c)
inline

Definition at line 341 of file vlib.h.

341  {
342  ce = c;
343  return 1;
344  };

References HltBtagPostValidation_cff::c, and ce.

Referenced by module::negedge(), and module::posedge().

◆ setchange()

void globcontrol::setchange ( int  i)

Definition at line 1206 of file vlib.cc.

1206 { change = i; }

References change, and mps_fire::i.

Referenced by Signal::asgn(), and function::vendfunction().

◆ setfunction()

void globcontrol::setfunction ( int  i)
inline

Definition at line 334 of file vlib.h.

334 { functiondecl = i; };

References functiondecl, and mps_fire::i.

Referenced by function::vbeginfunction(), and module::vbeginmodule().

◆ setparent()

void globcontrol::setparent ( module rparent)
inline

Definition at line 332 of file vlib.h.

332 { parent = rparent; };

References parent.

Member Data Documentation

◆ alwayscnt

int globcontrol::alwayscnt
protected

Definition at line 371 of file vlib.h.

Referenced by alwaysget(), alwayspop(), alwayspush(), alwaysstart(), getalwaysn(), and globcontrol().

◆ alwaysn

int globcontrol::alwaysn
protected

Definition at line 372 of file vlib.h.

Referenced by alwaysstart(), getalwaysn(), and globcontrol().

◆ ce

int globcontrol::ce
protected

Definition at line 378 of file vlib.h.

Referenced by getce(), and setce().

◆ change

int globcontrol::change
protected

Definition at line 374 of file vlib.h.

Referenced by getchange(), globcontrol(), and setchange().

◆ constring

char globcontrol::constring[2 *32+32]
protected

Definition at line 379 of file vlib.h.

Referenced by constant().

◆ functiondecl

int globcontrol::functiondecl
protected

Definition at line 369 of file vlib.h.

Referenced by getfunction(), and setfunction().

◆ parent

module* globcontrol::parent
protected

◆ passn

rval globcontrol::passn
protected

Definition at line 380 of file vlib.h.

Referenced by getpassn(), and passn_inc().

◆ VFileOpen

int globcontrol::VFileOpen
protected

Definition at line 377 of file vlib.h.

Referenced by globcontrol().

mps_fire.i
i
Definition: mps_fire.py:355
globcontrol::change
int change
Definition: vlib.h:374
globcontrol::ce
int ce
Definition: vlib.h:378
globcontrol::VFileOpen
int VFileOpen
Definition: vlib.h:377
globcontrol::functiondecl
int functiondecl
Definition: vlib.h:369
OrderedSet.t
t
Definition: OrderedSet.py:90
globcontrol::constring
char constring[2 *32+32]
Definition: vlib.h:379
globcontrol::alwayscnt
int alwayscnt
Definition: vlib.h:371
value
Definition: value.py:1
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
globcontrol::parent
module * parent
Definition: vlib.h:375
globcontrol::passn
rval passn
Definition: vlib.h:380
globcontrol::alwaysn
int alwaysn
Definition: vlib.h:372
bits
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
Definition: EventSelector-behavior.doc:35