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

From: Steven Sharp <sharp_at_.....>
Date: Tue Nov 21 2006 - 17:36:31 PST
>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 Tue Nov 21 17:36:38 2006

This archive was generated by hypermail 2.1.8 : Tue Nov 21 2006 - 17:36:43 PST