RE: [sv-bc] .name, .* implicit port connections

From: Rich, Dave <Dave_Rich_at_.....>
Date: Mon May 21 2007 - 16:31:40 PDT
  

I agree with your interpretation. The implicit net declaration is why we
have define before use rules for nets.

 

________________________________

From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On
Behalf Of Bresticker, Shalom
Sent: Sunday, May 20, 2007 12:10 AM
To: sv-bc@server.eda.org
Subject: [sv-bc] .name, .* implicit port connections

 

Hi,

Regarding .name and .* port connections, I have a question.

These forms do not create implicit declarations.

I want to ask about a few cases:

 

Case 0:

mod1 mod1(.a(a));

wire a;

This does not work because the mod1 instantiation implicitly declares a,
and the explicit declaration becomes a duplicate declaration.

 

Case 1:

mod1 mod1 ( .a(a) );

mod2 mod2 ( .a);

This should work because the mod1 instantiation implicitly declares a.

 

Case 2:

mod1 mod1 (.a);

wire a;

This does not work because a is not yet declared when the mod1
instantiation is encountered?

 

Case 3:

mod1 mod1(.a);

mod2 mod2(.a(a));

This does not work because a is not yet declared when the mod1
instantiation is encountered?

 

Have I got this right?

 

Thanks,

Shalom

 

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033 

 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner <http://www.mailscanner.info/> , and is

believed to be clean. 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



image001.gif
Received on Mon May 21 16:32:02 2007

This archive was generated by hypermail 2.1.8 : Mon May 21 2007 - 16:32:18 PDT