CMS 3D CMS Logo

Macros | Variables
vmac.h File Reference
#include "L1Trigger/CSCCommonTrigger/interface/vlib.h"

Go to the source code of this file.

Macros

#define always(par)   glc.alwaysstart(); if ((par).getchange())
 
#define assign
 
#define begin   vbegin()
 
#define begincase(par)   pushswitch((par)); if (0) {}
 
#define beginfunction   vbeginfunction();
 
#define beginmodule   vbeginmodule();
 
#define case1(par)   else if ((getswitch() == (par)).getbool())
 
#define case2(par1, par2)   else if ( (getswitch() == (par1)).getbool() || (getswitch() == (par2)).getbool())
 
#define case3(par1, par2, par3)   else if ( (getswitch() == (par1)).getbool() || (getswitch() == (par2)).getbool() || (getswitch() == (par3)).getbool())
 
#define Clock(cl)   cl.clock(#cl)
 
#define cns(b, v)   glc.constant(b,v)
 
#define comment(par)
 
#define deassign(par)   ;
 
#define Default   vdefault()
 
#define Else   else
 
#define end   vend()
 
#define endcase   vendcase()
 
#define endfunction   vendfunction(); return (result);
 
#define endmodule   vendmodule();
 
#define endperiod   glc.ResetEvents();
 
#define For(par1, par2, par3)   for ((par1); ((par2).getbool()); (par3))
 
#define functionbody
 
#define If(par)   if ((par).getbool())
 
#define initio   glc.setparent(this); glc.getparent()->setchange(0);
 
#define Inout(cl)   cl.inout(#cl)
 
#define Inout_(cl, h, l)   cl.inout(h, l, #cl)
 
#define Input(cl)   cl.input(#cl)
 
#define Input_(cl, h, l)   cl.input(h, l, #cl)
 
#define makereg   this
 
#define Module(md)   md.init(#md, #md)
 
#define Module_(md, fn)   md.init(#md, #fn)
 
#define modulebody
 
#define Output(cl)   cl.output(#cl)
 
#define Output_(cl, h, l)   cl.output(h, l, #cl)
 
#define OutReg(cl)   cl.output(#cl, makereg)
 
#define OutReg_(cl, h, l)   cl.output(h, l, #cl, makereg)
 
#define printv(par)
 
#define Reg(cl)   cl.reg(#cl)
 
#define Reg_(cl, h, l)   cl.reg(h, l, #cl)
 
#define Reg__(cl, h, l, t, b)   cl.reg(h, l, t, b, #cl);
 
#define vbegin()   { glc.alwayspush();
 
#define vdefault()   else
 
#define vend()   glc.alwayspop(); }
 
#define vendcase()   popswitch();
 
#define Wire(cl)   cl.wire(#cl)
 
#define Wire_(cl, h, l)   cl.wire(h, l, #cl)
 
#define Wire__(cl, h, l, t, b)   for (int __wi__ = b; __wi__ <= t; __wi__++) cl[__wi__].wire(h, l, #cl, __wi__)
 

Variables

globcontrol glc
 

Macro Definition Documentation

◆ always

#define always (   par)    glc.alwaysstart(); if ((par).getchange())

Definition at line 49 of file vmac.h.

◆ assign

#define assign

Definition at line 55 of file vmac.h.

◆ begin

#define begin   vbegin()

Definition at line 32 of file vmac.h.

◆ begincase

#define begincase (   par)    pushswitch((par)); if (0) {}

Definition at line 67 of file vmac.h.

◆ beginfunction

#define beginfunction   vbeginfunction();

Definition at line 142 of file vmac.h.

◆ beginmodule

#define beginmodule   vbeginmodule();

Definition at line 117 of file vmac.h.

◆ case1

#define case1 (   par)    else if ((getswitch() == (par)).getbool())

Definition at line 83 of file vmac.h.

◆ case2

#define case2 (   par1,
  par2 
)    else if ( (getswitch() == (par1)).getbool() || (getswitch() == (par2)).getbool())

Definition at line 94 of file vmac.h.

◆ case3

#define case3 (   par1,
  par2,
  par3 
)    else if ( (getswitch() == (par1)).getbool() || (getswitch() == (par2)).getbool() || (getswitch() == (par3)).getbool())

Definition at line 106 of file vmac.h.

◆ Clock

#define Clock (   cl)    cl.clock(#cl)

Definition at line 192 of file vmac.h.

◆ cns

#define cns (   b,
  v 
)    glc.constant(b,v)

Definition at line 206 of file vmac.h.

◆ comment

#define comment (   par)

Definition at line 163 of file vmac.h.

◆ deassign

#define deassign (   par)    ;

Definition at line 61 of file vmac.h.

◆ Default

#define Default   vdefault()

Definition at line 110 of file vmac.h.

◆ Else

#define Else   else

Definition at line 29 of file vmac.h.

◆ end

#define end   vend()

Definition at line 39 of file vmac.h.

◆ endcase

#define endcase   vendcase()

Definition at line 70 of file vmac.h.

◆ endfunction

#define endfunction   vendfunction(); return (result);

Definition at line 143 of file vmac.h.

◆ endmodule

#define endmodule   vendmodule();

Definition at line 118 of file vmac.h.

◆ endperiod

#define endperiod   glc.ResetEvents();

Definition at line 158 of file vmac.h.

◆ For

#define For (   par1,
  par2,
  par3 
)    for ((par1); ((par2).getbool()); (par3))

Definition at line 17 of file vmac.h.

◆ functionbody

#define functionbody

Definition at line 149 of file vmac.h.

◆ If

#define If (   par)    if ((par).getbool())

Definition at line 23 of file vmac.h.

◆ initio

#define initio   glc.setparent(this); glc.getparent()->setchange(0);

Definition at line 176 of file vmac.h.

◆ Inout

#define Inout (   cl)    cl.inout(#cl)

Definition at line 200 of file vmac.h.

◆ Inout_

#define Inout_ (   cl,
  h,
 
)    cl.inout(h, l, #cl)

Definition at line 201 of file vmac.h.

◆ Input

#define Input (   cl)    cl.input(#cl)

Definition at line 190 of file vmac.h.

◆ Input_

#define Input_ (   cl,
  h,
 
)    cl.input(h, l, #cl)

Definition at line 191 of file vmac.h.

◆ makereg

#define makereg   this

Definition at line 156 of file vmac.h.

◆ Module

#define Module (   md)    md.init(#md, #md)

Definition at line 203 of file vmac.h.

◆ Module_

#define Module_ (   md,
  fn 
)    md.init(#md, #fn)

Definition at line 204 of file vmac.h.

◆ modulebody

#define modulebody
Value:
if (glc.getpassn() != passn) \
{ \
/* cout << itern << " " << instname << std::endl; */\
itern = 0; \
} \
passn = glc.getpassn(); \
if (!glc.getparent()->getchange()) \
{ \
outregn = 0; \
return; \
} \
else \
{ \
itern++; \
}

Definition at line 123 of file vmac.h.

◆ Output

#define Output (   cl)    cl.output(#cl)

Definition at line 194 of file vmac.h.

◆ Output_

#define Output_ (   cl,
  h,
 
)    cl.output(h, l, #cl)

Definition at line 195 of file vmac.h.

◆ OutReg

#define OutReg (   cl)    cl.output(#cl, makereg)

Definition at line 197 of file vmac.h.

◆ OutReg_

#define OutReg_ (   cl,
  h,
 
)    cl.output(h, l, #cl, makereg)

Definition at line 198 of file vmac.h.

◆ printv

#define printv (   par)

Definition at line 169 of file vmac.h.

◆ Reg

#define Reg (   cl)    cl.reg(#cl)

Definition at line 182 of file vmac.h.

◆ Reg_

#define Reg_ (   cl,
  h,
 
)    cl.reg(h, l, #cl)

Definition at line 183 of file vmac.h.

◆ Reg__

#define Reg__ (   cl,
  h,
  l,
  t,
  b 
)    cl.reg(h, l, t, b, #cl);

Definition at line 184 of file vmac.h.

◆ vbegin

#define vbegin ( )    { glc.alwayspush();

Definition at line 36 of file vmac.h.

◆ vdefault

#define vdefault ( )    else

Definition at line 114 of file vmac.h.

◆ vend

#define vend ( )    glc.alwayspop(); }

Definition at line 43 of file vmac.h.

◆ vendcase

#define vendcase ( )    popswitch();

Definition at line 74 of file vmac.h.

◆ Wire

#define Wire (   cl)    cl.wire(#cl)

Definition at line 186 of file vmac.h.

◆ Wire_

#define Wire_ (   cl,
  h,
 
)    cl.wire(h, l, #cl)

Definition at line 187 of file vmac.h.

◆ Wire__

#define Wire__ (   cl,
  h,
  l,
  t,
  b 
)    for (int __wi__ = b; __wi__ <= t; __wi__++) cl[__wi__].wire(h, l, #cl, __wi__)

Definition at line 188 of file vmac.h.

Variable Documentation

◆ glc

globcontrol::getpassn
rval getpassn()
Definition: vlib.h:348
globcontrol::getparent
module * getparent()
Definition: vlib.h:333
glc
globcontrol glc
Definition: vlib.cc:5
module::getchange
int getchange()
Definition: vlib.h:222