RE: UDF description

From: Marq Kole <marq.kole_at_.....>
Date: Mon Nov 16 2009 - 00:49:32 PST
Hi Xavier,

Without an input argument you could still perform extra calculations on the outputs of any of the system functions or perform some generic output to the log-file. Syntactically it will look like a variable or a parameter, though.

Cheers,
Marq


-----Original Message-----
From: owner-verilog-ams@server.eda.org [mailto:owner-verilog-ams@server.eda.org] On Behalf Of Xavier Bestel
Sent: Monday 16 November 2009 9:38
To: Bresticker, Shalom
Cc: David Miller; Paul Floyd; Verilog-AMS LRM Committee
Subject: RE: UDF description

Just out of curiosity, can a function with only output arguments be
something else than a constant ?

	Xav

On Sun, 2009-11-15 at 16:22 +0200, Bresticker, Shalom wrote:
> In digital, Verilog required a function to have at least one argument. All arguments were inputs, so the function was required to have at least one input argument.
> 
> In SystemVerilog, a function is not required to have any arguments and arguments can be input, output, inout, or ref.
> 
> In any case, if the statement means to say that the block item declaration declares whether the arguments are input, output, or inout, it would be better to call this the "direction" of the argument rather than the "type". "type" is something else.
> 
> Shalom
>  
> 
> > -----Original Message-----
> > From: owner-verilog-ams@server.eda.org 
> > [mailto:owner-verilog-ams@server.eda.org] On Behalf Of David Miller
> > Sent: Tuesday, November 10, 2009 4:29 PM
> > To: Paul Floyd
> > Cc: Verilog-AMS LRM Committee
> > Subject: Re: UDF description
> > 
> > Hello Paul,
> > 
> > Yes, sorry. I saw your original email and noted this down as 
> > part of the clean 
> > up items I am doing. I just forgot to send a response.
> > Yes that bullet is confusing - all we really wanted to say 
> > was the UDF must 
> > have at least one formal argument.
> > 
> > Your modification is a lot clearer - I will use that as the 
> > replacement.
> > 
> > Regards
> > Dave
> > 
> > 
> > Paul Floyd wrote:
> > > Hi
> > > 
> > > I sent this a while back, but never received it from the listserver.
> > > 
> > > The LRM 2.3.1 has this to say about UDFs.
> > > 
> > > An analog user defined function:
> > > ...
> > > - shall have at least one input declared; the block item declaration
> > > shall declare the type of the inputs
> > > (whether they are input, output, inout)
> > > 
> > > This doesn't seem to be clear English to me, implying that 
> > an UDF can
> > > have an "input" that is an "output". Unless I've 
> > misunderstood, wouldn't
> > > 
> > > - shall have at least one formal argument declared; the block item
> > > declaration shall declare the type of the formal arguments
> > > (whether they are input, output, inout).
> > > 
> > > be clearer? (Assuming that "formal argument" doesn't need defining).
> > > 
> > > Regards
> > > Paul Floyd
> > 
> > -- 
> > ==============================================
> > -- It's a beautiful day
> > -- Don't let it get away
> > --
> > -- David Miller
> > -- Design Technology (Austin)
> > -- Freescale Semiconductor
> > -- Ph : 512 996-7377 Fax: x7755
> > ==============================================
> > 
> > -- 
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> > 
> > 
> ---------------------------------------------------------------------
> Intel Israel (74) Limited
> 
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> 
> 


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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Nov 16 00:52:51 2009

This archive was generated by hypermail 2.1.8 : Mon Nov 16 2009 - 00:54:01 PST