globals and name searching


Subject: globals and name searching
From: Stuart Sutherland (stuart@sutherland-hdl.com)
Date: Tue Mar 19 2002 - 22:44:37 PST


In March 18th's phone conference, I expressed concern that Verilog's rules
for upward name searching might conflict with referencing globals. I've
reviewed the SystemVerilog and Verilog-2001 LRM's, and still feel a
clarification is needed. The attached PDF file shows the name search
rules, as defined in the 1364-2001 standard. It seems indicate that under
some circumstances, name searching can extend beyond the module boundary
into parent modules within the hierarchy. In the draft 4 SystemVerilog
description of the $root global name space (section 12), I do not find any
explanation on when a name will be searched for in the global space. When
does the searching switch from Verilog's upward searching to looking in the
global space?

The name search rule for globals needs to be defined, and in such a way as
to be compatible with the Verilog-2001 standard's name search rules. Can
someone propose wording for the SystemVerilog LRM for global name searching?

Stu

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stuart Sutherland Sutherland HDL Inc.
stuart@sutherland-hdl.com 22805 SW 92nd Place
phone: 503-692-0898 Tualatin, OR 97062
www.sutherland-hdl.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




This archive was generated by hypermail 2b28 : Tue Mar 19 2002 - 22:44:12 PST