Re: [sv-bc] Task function identifier searching rule

From: Steven Sharp <sharp_at_.....>
Date: Mon Jan 12 2009 - 17:03:51 PST
Oops, I think I went too far in trying to illustrate a point, and said
something wrong...


>From: Steven Sharp <sharp@cadence.com>

>if (1) begin : b
>initial y = f(); // my new line
>import p::*; // line 3
>initial x = f(); // line 2
>end
>
>That the f in my new line will also resolve to p::f.  The reference
>to f() after the import causes the name f to be imported into top.b.
>Then the hierarchical resolution for the f in my new line will find
>that name f first in the search up the hierarchy.

I think I am wrong on this.  I think it was decided that you cannot
make a hierarchical reference to a name in a scope where it was merely
imported.  So hierarchical name resolution would not consider the f
imported into top.b.  So the f in my new line would resolve to top.f.

Sorry about adding further confusion to the subject.


Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Jan 12 17:04:30 2009

This archive was generated by hypermail 2.1.8 : Mon Jan 12 2009 - 17:04:54 PST