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 (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)
 
Signaloperator& ()
 
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)
 

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::parameter ( const char *  rname,
Signal  arg 
)

Definition at line 782 of file vlib.cc.

782  : Signal() {
783 #ifdef VGEN
784  obname = "parameter ";
785 #endif
786  init(Sizeofrval * 8 - 1, 0, rname);
787  operator=(arg);
788 }

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

Member Function Documentation

◆ init()

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

Definition at line 790 of file vlib.cc.

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 }

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

Referenced by parameter().

◆ operator int()

parameter::operator int ( )
inline

Definition at line 171 of file vlib.h.

171 { return (unsigned int)r; };

References Signal::r.

◆ operator=()

void parameter::operator= ( Signal  arg)
protected

Definition at line 799 of file vlib.cc.

799  {
800  r = arg.getr();
801 #ifdef VGEN
802  cout << " = " << arg.getname() << ";\n" << flush;
803 #endif
804 }

References gather_cfg::cout, and Signal::r.

Referenced by parameter().

Signal::pedge
int pedge
Definition: vlib.h:158
Signal::change
int change
Definition: vlib.h:158
parameter::operator=
void operator=(Signal arg)
Definition: vlib.cc:799
gather_cfg.cout
cout
Definition: gather_cfg.py:144
Signal::nedge
int nedge
Definition: vlib.h:158
Signal::Signal
Signal()
Definition: vlib.cc:29
Signal::l
int l
Definition: vlib.h:145
h
rname
const G4String rname[NREG]
Definition: ParametrisedEMPhysics.cc:46
glc
globcontrol glc
Definition: vlib.cc:5
Signal::r
rval r
Definition: vlib.h:140
Sizeofrval
#define Sizeofrval
Definition: vlib.h:22
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
parameter::init
void init(int, int, const char *)
Definition: vlib.cc:790
Signal::init
void init(int, int, const char *)
Definition: vlib.cc:208
funct::arg
A arg
Definition: Factorize.h:36