Re: [sv-bc] Final blocks in packages

From: Gordon Vreugdenhil <gordonv_at_.....>
Date: Wed May 10 2006 - 10:15:12 PDT
Brad Pierce wrote:

> Do variable declaration assignments in a package occur only if the 
> variable is imported?


If the "variable" is imported?  No - that would be far to fine a
granularity to handle.  Package dependencies are determined
at the "package" level -- as far as I am concerned, if a package
is used in the design (referenced in an import or included via
some other vendor mechanism) then all of its initializations
occur.  A reference to the package is sufficient -- no actual
import needs to occur.  Obviously, as with any declaration, if the
effect of the initialization is not observable in the design,
an implementation can optimize such initialization away.


Gord.


> 
>  
> 
> -- Brad
> 
>  
> 
> ------------------------------------------------------------------------
> 
> From: Rich, Dave [mailto:Dave_Rich@mentor.com]
> Sent: Tuesday, May 09, 2006 6:40 PM
> To: Brad Pierce; sv-bc@eda.org
> Subject: RE: [sv-bc] Final blocks in packages
> 
>  
> 
> Does someone have to import the package or refer to an item in a packed 
> for the final block to execute? I would think so; otherwise it would be 
> difficult to manage the exclusion of packages that you did not want to 
> execute.
> 
>  
> 
> Independently of whether final blocks in packages are a “good idea”, I 
> don’t think it is a priority worth discussing right now.
> 
>  
> 
> Dave
> 
>  
> 
>  
> 
> ------------------------------------------------------------------------
> 
> From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On 
> Behalf Of Brad Pierce
> Sent: Tuesday, May 09, 2006 6:29 PM
> To: sv-bc@server.eda.org
> Subject: Re: [sv-bc] Final blocks in packages
> 
>  
> 
> Following up on http://www.eda.org/sv-bc/hm/4421.html , does any extra 
> text need to be added to explain how final blocks in packages execute?
> 
>  
> 
> In my opinion, no.  I think it would be sufficient for a proposal only 
> to add final blocks to the 19.2 list of items that can be shared via 
> packages and in the BNF to move “final_construct” out of its current 
> locations and into “package_or_generate_item_declaration”.
> 
>  
> 
> Independently of whether final blocks in packages is a “good idea”, does 
> the above seem like a sufficient way to modify the LRM if it were?
> 
>  
> 
> -- Brad
> 
>  
> 
>  
> 
>  
> 

-- 
--------------------------------------------------------------------
Gordon Vreugdenhil                                503-685-0808
Model Technology (Mentor Graphics)                gordonv@model.com
Received on Wed May 10 10:15:09 2006

This archive was generated by hypermail 2.1.8 : Wed May 10 2006 - 10:15:13 PDT