Francoise Martinolle wrote:
> Can you confirm whether or not my interpretation of the import
> visibility rules are correct or not.
> See the examples below:
>
> import q::c;
> module top;
> ...
> p::c = ... I think it is legal, c from q is imported in the module
> and if there were a direct reference to c, it would refer to q::c
> endmodule
Yes, I agree. p::c does not get imported into the namespace of top
>
> import q::c;
> module top;
> import p::c; I think that this is illegal as c is now multiply defined
> even though there is no
> use of c in module top, the parser should create an
> error.
> endmodule
Yes, I agree. import q::c; import q::c; behave like local declarations.
>
>
> Thanks
> Francoise
> '
>
>
-- -- David.Rich@Synopsys.com Technical Marketing Consultant and/or Principal Product Engineer http://www.SystemVerilog.org tele: 650-584-4026 cell: 510-589-2625Received on Mon Jun 21 13:46:48 2004
This archive was generated by hypermail 2.1.8 : Mon Jun 21 2004 - 13:46:51 PDT