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

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Wed Jan 25 2006 - 08:38:32 PST
Dave's messages seem to not be getting out to sv-bc so I am
forwarding this response on his behalf.

Gord.

-------- Original Message --------
Subject: FW: [sv-bc] FW: [sv-ec] Question on compilation units & compiler directives
Date: Wed, 25 Jan 2006 08:35:07 -0800
From: Rich, Dave <Dave_Rich@mentor.com>
To: Vreugdenhil, Gordon <gordon_vreugdenhil@mentor.com>



> -----Original Message-----
> From: Rich, Dave
> Sent: Wednesday, January 25, 2006 8:21 AM
> To: 'pgraham@cadence.com'
> Cc: sv-bc@eda.org
> Subject: RE: [sv-bc] FW: [sv-ec] Question on compilation units &  compiler
> directives
> 
> 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


-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com
Received on Wed Jan 25 08:43:48 2006

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