[sv-bc] Manti 1589, 1651 $sprintf

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon Aug 20 2007 - 00:22:28 PDT
Hi,

I just noticed in the July 23 minutes that there were objections to
closing 1651 as a duplicate of 1589. I would like to explain why they
are indeed duplicates.

1651 requests to standardize $psprintf, as exists in VCS and QuestaSim
and described in the VMM book. 

The VMM book says, "VCS provides the $psprintf() function that returns
the formatted string instead of writing it into a string, like
$sformat() does."

The Questa documentation says, 
"The $psprintf() system function behaves like the $sformat() file I/O
task except that the string result is passed back to the user as the
function return value for $psprintf(), not placed in the first argument
as for $sformat(). "

Mantis 1651 also includes the comment,
"The first p in the name might be omitted, since it has nothing to do
with the description of the function."

Mantis 1589 says, "The request is for a function to return a formatted
string...What Mike wants is essentially Vera's psprintf() function".

The Mantis 1589 proposal says, "The system function $sformatf  behaves
like $sformat except that the string result is passed back as the
function result value for $sformatf, not placed in the first argument as
for $sformat." 

This is essentially the same wording as the Questa documentation, except
for the function name, which was chosen to be more Verilog-like instead
of Vera-like.

I hope this answers all the doubts.

Thanks,
Shalom

Shalom Bresticker
Intel Jerusalem LAD DA
+972 2 589-6852
+972 54 721-1033


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Aug 20 00:23:29 2007

This archive was generated by hypermail 2.1.8 : Mon Aug 20 2007 - 00:24:08 PDT