Subject: Re: [sv-bc] Comments on proposed changes to $root and addition of packages
From: Francoise Martinolle (fm@cadence.com)
Date: Fri Nov 07 2003 - 13:13:04 PST
I also agree with Stuart in removing the root declaration space completely.
The package design unit should be the unique way which provides facilities
of declaring items to be shared between different modules.
Francoise
'
At 03:01 PM 11/4/2003 -0800, Stuart Sutherland wrote:
>All,
>
>After reviewing the proposed changes to section 18 on $root and the
>addition of packages, I'd like say Thanks! I am very pleased with how the
>proposed package concept cleans up my concerns how the SV 3.0 $root could
>be misused. I would like to make two suggestions before these changes are
>made in the SV 3.1a LRM:
>
>1) Swap the order of section 18.2 on local root and section 18.3 on
>packages. That is, introduce the concept of packages first.
>
>2) In the beginning of the description of local root, make it clear that
>"local root" (aka "compilation unit") is an inferred package, and that it
>follows the same rules and restrictions of packages (with any exceptions,
>if there are any). The inferred name for this package is $unit, and
>objects within the inferred package can be directly referenced using
>$unit::. I suppose there is also an inferred import of this inferred package.
>
>There have been a number of e-mails on what to call this "local root"
>space and its inferred name. My only concern on what to call it is that
>there is consistency. Calling the declaration space "local root" and
>referencing it as "$unit" is not consistent.
>
>I cannot resist adding that with the addition of packages, I see no reason
>for a root declaration space at all. It is just more ammunition for lazy
>engineers to shoot themselves in the foot with. I would support pulling
>the concept of a root declaration space from the standard completely.
>
>Stu
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Stuart Sutherland Sutherland HDL Inc.
>stuart@sutherland-hdl.com 22805 SW 92nd Place
>phone: 503-692-0898 Tualatin, OR 97062
>
>Sutherland HDL, Inc. -- Training Engineers to be Verilog, SystemVerilog
>and VHDL Wizards! www.sutherland-hdl.com
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
This archive was generated by hypermail 2b28 : Fri Nov 07 2003 - 13:15:13 PST