Re: [sv-bc] top-level package item declarations

From: Dave Rich <David.Rich@synopsys.com>
Date: Fri Apr 23 2004 - 14:17:07 PDT

The old $root was not completely removed.

It was restricted and renamed $unit.

The restriction is that only items that can be declared in a package can
be declared outside a module, etc.

Dave

Paul Graham wrote:

>I notice that a package item is allowed as a declaration outside of
>any module, interface, or package. This means that, according to
>the bnf, the following file would be a legal sv description, or should
>I say, three legal sv descriptions:
>
>foo.v:
> parameter p = 3;
> ;
> wire x;
>
>What's the point of allowing these miscellaneous declarations outside
>of a containing package? Is this a leftover from the old $root
>implicit package?
>
>Paul
>
>
>
>

-- 
--
David.Rich@Synopsys.com
Technical Marketing Consultant and/or
Principal Product Engineer
http://www.SystemVerilog.org
tele:  650-584-4026
cell:  510-589-2625
Received on Fri Apr 23 14:18:24 2004

This archive was generated by hypermail 2.1.8 : Fri Apr 23 2004 - 14:18:53 PDT