Re: [sv-bc] Mantis 1602: task/function default inout arguments

From: Greg Jaxon <Greg.Jaxon_at_.....>
Date: Tue Jul 17 2007 - 10:09:52 PDT
Of course you're right there.
But those conventions have already been modified for subprograms 12.4.4 of 1800-2005 says:

"If the arguments have default values, they are treated like parameters to module instances.
 If the arguments do not have a default, then they must be given, or the compiler shall issue an error."

The missing call site arguments (those not supplied by name binding) are
presumably being supplied positionally, and so they need placeholders.
If these placeholders are vacant, I claim the user is specifying a disconnect.

Bresticker, Shalom wrote:
> Greg, 
> 
>> Unconnected ports to an instance always have a corresponding 
>> vacant position in the port list - a position delimited by 
>> commas or parentheses.
> 
> Not if you connect ports by name.
> 
> Example:
> 
> module top;
> 
> m m (.a(a));
> 
> endmodule
> 
> module m(a,b);
> input a;
> output b;
> endmodule
> 
> In fact, this is a frequent usage.
> E.g., if you have a FF cell with Q and Q_INV outputs and you only
> connect one of them.
> 
> Shalom


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Jul 17 10:10:09 2007

This archive was generated by hypermail 2.1.8 : Tue Jul 17 2007 - 10:10:21 PDT