RE: [sv-bc] RE: [sv-ec] Query Related to package instantiation

From: Rich, Dave <Dave_Rich_at_.....>
Date: Wed Jul 25 2007 - 09:23:21 PDT
Doesn't matter because package names and module names are in different
namespaces. It's OK to have a package name the same as a module. You
should get an error that there is no module named bottom. 

> -----Original Message-----
> From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org]
On
> Behalf Of Bresticker, Shalom
> Sent: Wednesday, July 25, 2007 9:17 AM
> To: Vreugdenhil, Gordon
> Cc: sv-bc
> Subject: [sv-bc] RE: [sv-ec] Query Related to package instantiation
> 
> And if the two are in the same file?
> 
> Shalom
> 
> 
> > -----Original Message-----
> > From: owner-sv-ec@server.eda.org
> > [mailto:owner-sv-ec@server.eda.org] On Behalf Of Gordon Vreugdenhil
> > Sent: Wednesday, July 25, 2007 5:09 PM
> > To: Moumita
> > Cc: sv-bc; sv-ec; sv-ac
> > Subject: Re: [sv-ec] Query Related to package instantiation
> >
> >
> > This would be valid at compile time since the system could
> > not guarantee that the user would not subsequently compile
> > "bottom" as a module and there is no requirement that
> > *modules* exist at compile time.
> >
> > However, if this is the entire design, it should produce
> > errors on elaboration.
> >
> > Gord.
> >
> >
> > Moumita wrote:
> > > Hello,
> > >
> > > Accroding to LRM package can not be instantiated but most of the
> > > simulator passing package instantiation.
> > >
> > > So plesae let me know whether following testcase is  valid or not?
> > >
> > > Example::
> > >
> > > package bottom;
> > > endpackage
> > >
> > > module top;
> > > bottom M1(); // package  instantiation  is correct ?
> > > endmodule
> > >
> > > Thanks ,
> > >
> > > Moumita
> > >
> > >
> > >
> >
> > --
> > --------------------------------------------------------------------
> > Gordon Vreugdenhil                                503-685-0808
> > Model Technology (Mentor Graphics)                gordonv@model.com
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Jul 25 09:23:50 2007

This archive was generated by hypermail 2.1.8 : Wed Jul 25 2007 - 09:23:58 PDT