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

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Sun May 20 2007 - 00:10:04 PDT
  

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, and is
believed to be clean.



image001.gif
Received on Sun May 20 00:10:37 2007

This archive was generated by hypermail 2.1.8 : Sun May 20 2007 - 00:12:04 PDT