Subject: Re: [sv-bc] Re: implicit instantiation of top-level modules?
From: Gordon Vreugdenhil (gvreugde@synopsys.com)
Date: Thu Jul 10 2003 - 13:50:49 PDT
Steven Sharp wrote:
>
> >Date: Thu, 10 Jul 2003 10:42:43 -0700
> >From: Greg Jaxon <Greg.Jaxon@synopsys.com>
>
> >I understand the use of upward references to module_names to be analogous to
> >C++ class references: i.e. something you'd use only to reach static data,
> typedefs,
> >local functions, or other entities shared by all instances of the module.
>
> Not necessarily. Each instance might want to reference something in their
> parent, which might be a different instance for each. If all instances
> wanted to share the same object, they would use a full name. The only
> reason for using an upward reference (aside from being too lazy to type
> the full name) is specifically to get a resolution that may be different
> for different instances.
This is even more important in the context of conditional
generate where different instances of the same parent module could
have different objects generated with the same name. In fact,
such situations could be a slightly less insane reason to use
relative upwards names.
Gord.
-- ---------------------------------------------------------------------- Gord Vreugdenhil gvreugde@synopsys.com Staff Engineer, VCS (Verification Tech. Group) (503) 547-6054 Synopsys Inc., Beaverton OR
This archive was generated by hypermail 2b28 : Thu Jul 10 2003 - 13:52:24 PDT