RE: [sv-ec] $psprintf $psdisplay // In VCS not in P1800

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Wed Nov 22 2006 - 02:16:34 PST
Regarding the p in the name, some people wrote:

1. It is called psprintf for no reason other than "that's what it was
called in Vera".
2. The customer who asked for that feature to be added to Vera, he asked
for "Perl's sprintf()" function. Hence "psprintf()".

Shalom

> -----Original Message-----
> From: Steven Sharp [mailto:sharp@cadence.com]
> Sent: Wednesday, November 22, 2006 3:37 AM
> To: vhdlcohen@aol.com; sv-ec@eda-stds.org; Bresticker, Shalom
> Subject: RE: [sv-ec] $psprintf $psdisplay // In VCS not in P1800
> 
> 
> >From: "Bresticker, Shalom" <shalom.bresticker@intel.com>
> 
> >What about $psdisplay?
> 
> It is a more consistent name than $psprintf.  There is no $printf
> in Verilog.  $psdisplay would presumably add a newline at the end.
> The version that did not add a newline (which is presumably what
> you want most of the time) would be called $pswrite.  But what does
> the p stand for anyway?  How does p imply function instead of task?
> 
> If we want to add this functionality to Verilog, we should make the
> names consistent with the existing system tasks.  I see a couple of
> choices:
> 
> 1. $swritef (where the f stands for function) and possibly $sdisplayf,
>    which would work like $swrite and $sdisplay.
> 
> 2. $sformatf, which would work like $sformat.
> 
> 
> Steven Sharp
> sharp@cadence.com
Received on Wed Nov 22 02:16:51 2006

This archive was generated by hypermail 2.1.8 : Wed Nov 22 2006 - 02:18:32 PST