RE: [sv-bc] FW: [sv-ec] Question on compilation units & compiler directives

From: Rich, Dave <Dave_Rich_at_.....>
Date: Wed Jan 25 2006 - 08:20:33 PST
Sorry, I forgot about that change to generate.

But I think the parameterization of values and types makes it difficult
enough to do pattern matching of types.

> -----Original Message-----
> From: Paul Graham [mailto:pgraham@cadence.com]
> Sent: Wednesday, January 25, 2006 8:15 AM
> To: Rich, Dave
> Cc: sv-bc@eda.org
> Subject: Re: [sv-bc] FW: [sv-ec] Question on compilation units &
compiler
> directives
> 
> > But its get's even more complicated with generate statements.
> >
> > module foo;
> >   parameter W=4;
> >   generate if (W <4)
> >     class bar;
> >       int A[W];
> >     endclass
> >   else
> >     class bar;
> >       string B[W];
> >     endclass
> >  endgenerate
> >   bar B=new;
> > endmodule
> 
> Is 'bar' visible outside the generate block in which
> it is declared?  I thought a generate created a new
> scope.
> 
> Paul
Received on Wed Jan 25 08:43:48 2006

This archive was generated by hypermail 2.1.8 : Wed Jan 25 2006 - 08:44:11 PST