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

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Tue Jul 17 2007 - 01:54:46 PDT
Gord,

Thanks. A single comment: 

> > 4. Should you be able to leave off an output argument? That 
> presumably 
> > means simply discarding the output value. (Mantis 1600)
> 
> GORD:  I strongly prefer allowing defaults for outputs.  
> Silently ignoring
> GORD:  an output is very dangerous as far as I am concerned since
> GORD:  the addition of a *non-defaulted* output could be missed in
> GORD:  calling code.  If we allow explicit defaults, then there is
> GORD:  a direct mechanism for a user to add a "sink" themselves and
> GORD:  ensure that outputs are only ignored when they want them to
> GORD:  be.  If we allow defaults to be skipped, I'll be that we end
> GORD:  up adding something like "default_output_formals none" or
> GORD:  similar to have a standard mechanism for disallowing such code.
> 
> GORD:  I almost certainly oppose silently allowing outputs to 
> be unassociated.

[SB] Verilog has always had implicitly unconnected module ports, though.
Just omit them from the port connection list.

Shalom

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

This archive was generated by hypermail 2.1.8 : Tue Jul 17 2007 - 01:58:09 PDT