CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions
parameter Class Reference

#include <vlib.h>

Inheritance diagram for parameter:
Signal

Public Member Functions

 operator int ()
 
 parameter (const char *rname, Signal arg)
 
- Public Member Functions inherited from Signal
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)
 
Signaloperator& ()
 
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)
 

Protected Member Functions

void init (int, int, const char *)
 
void operator= (Signal arg)
 

Additional Inherited Members

- Protected Attributes inherited from Signal
int alwaysn
 
Signalca1
 
Signalca2
 
int change
 
int h
 
Signalhost
 
int hostl
 
int inited
 
int l
 
rval mask
 
int mode
 
int nedge
 
Signalouthost
 
Signaloutreg
 
int pedge
 
int printable
 
rval r
 
rval rc
 
Signalsource
 

Detailed Description

Definition at line 174 of file vlib.h.

Constructor & Destructor Documentation

parameter::parameter ( const char *  rname,
Signal  arg 
)

Definition at line 853 of file vlib.cc.

References init(), operator=(), and Sizeofrval.

853  : Signal()
854 {
855 #ifdef VGEN
856  obname = "parameter ";
857 #endif
858  init(Sizeofrval * 8 - 1, 0, rname);
859  operator=(arg);
860 }
void init(int, int, const char *)
Definition: vlib.cc:863
#define Sizeofrval
Definition: vlib.h:23
void operator=(Signal arg)
Definition: vlib.cc:873
Signal()
Definition: vlib.cc:43

Member Function Documentation

void parameter::init ( int  h,
int  l,
const char *  rname 
)
protected

Definition at line 863 of file vlib.cc.

References Signal::change, gather_cfg::cout, Signal::init(), mergeVDriftHistosByStation::name, Signal::nedge, and Signal::pedge.

Referenced by parameter().

864 {
865  Signal::init(h, l, rname);
866  change = pedge = nedge = 0;
867 
868 #ifdef VGEN
869  cout << glc.getmargin() << obname << name << flush;
870 #endif
871 }
void init(int, int, const char *)
Definition: vlib.cc:239
int pedge
Definition: vlib.h:163
int h
Definition: vlib.h:150
int nedge
Definition: vlib.h:163
globcontrol glc
Definition: vlib.cc:6
int l
Definition: vlib.h:150
tuple cout
Definition: gather_cfg.py:145
int change
Definition: vlib.h:163
parameter::operator int ( )
inline

Definition at line 178 of file vlib.h.

References Signal::r.

178 {return (unsigned int)r;};
rval r
Definition: vlib.h:144
void parameter::operator= ( Signal  arg)
protected

Definition at line 873 of file vlib.cc.

References gather_cfg::cout, Signal::getr(), and Signal::r.

Referenced by parameter().

874 {
875  r = arg.getr();
876 #ifdef VGEN
877  cout << " = " << arg.getname() << ";\n" << flush;
878 #endif
879 }
rval r
Definition: vlib.h:144
rval getr()
Definition: vlib.h:61
tuple cout
Definition: gather_cfg.py:145