RE: [sv-bc] import p::*

From: Rich, Dave <Dave_Rich_at_.....>
Date: Tue May 23 2006 - 16:03:45 PDT
You are correct because in your second example, q::c is not imported, so
there is no conflict.

 

________________________________

From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On
Behalf Of Brad Pierce
Sent: Tuesday, May 23, 2006 4:00 PM
To: sv-bc@server.eda.org
Subject: Re: [sv-bc] import p::*

 

According to 19.2.2, the following is illegal

 

module foo;

      import q::*;

      wire a = c; // This statement forces the import of q::c;

      import p::c; // The conflict with q::c and p::c creates an error.

endmodule

 

But the following is still legal, isn't it?

 

module foo;

      import q::*;

      import p::c;

      wire a = c;

endmodule

 

Thanks,

 

-- Brad

 

 
Received on Tue May 23 16:03:32 2006

This archive was generated by hypermail 2.1.8 : Tue May 23 2006 - 16:03:37 PDT