CMS 3D CMS Logo

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 168 of file vlib.h.

Constructor & Destructor Documentation

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

Definition at line 782 of file vlib.cc.

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

782  : Signal() {
783 #ifdef VGEN
784  obname = "parameter ";
785 #endif
786  init(Sizeofrval * 8 - 1, 0, rname);
787  operator=(arg);
788 }
void init(int, int, const char *)
Definition: vlib.cc:790
#define Sizeofrval
Definition: vlib.h:22
void operator=(Signal arg)
Definition: vlib.cc:799
const G4String rname[NREG]
Signal()
Definition: vlib.cc:29

Member Function Documentation

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

Definition at line 790 of file vlib.cc.

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

Referenced by parameter().

790  {
791  Signal::init(h, l, rname);
792  change = pedge = nedge = 0;
793 
794 #ifdef VGEN
795  cout << glc.getmargin() << obname << name << flush;
796 #endif
797 }
void init(int, int, const char *)
Definition: vlib.cc:208
int pedge
Definition: vlib.h:158
globcontrol glc
Definition: vlib.cc:5
int h
Definition: vlib.h:145
int nedge
Definition: vlib.h:158
int l
Definition: vlib.h:145
const G4String rname[NREG]
int change
Definition: vlib.h:158
parameter::operator int ( )
inline

Definition at line 171 of file vlib.h.

References Signal::init(), Signal::operator=(), and Signal::r.

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

Definition at line 799 of file vlib.cc.

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

Referenced by parameter().

799  {
800  r = arg.getr();
801 #ifdef VGEN
802  cout << " = " << arg.getname() << ";\n" << flush;
803 #endif
804 }
rval r
Definition: vlib.h:140
rval getr()
Definition: vlib.h:52