ISSUE 41

Number 41
Category errata
Synopsis 17.2.3: Is $sformat a task or a function ?
State lrmdraft
Class errata-simple
Arrival-DateOct 07 2001
Originator Charles Dawson <chas@cadence.com>
Release 2001b: 17.2.3
Environment

Description

In section 17.2.3 (page 295), there is a system task/function specified
called "$sformat". As you know, you cannot use the same name to specify
both a system task and a system function. Further, the rest of the text
talks as if $sformat is a system task.

I would suggest removing the second syntax line (listed below):

$sformat(output_reg, format_string, list_of_arguments);
length = $sformat(output_reg, format_string, list_of_arguments);

Fix
Passed 10/7/02:

Section 17.2.3 (delete line):

REPLACE:
$sformat(output_reg, format_string, list_of_arguments );
length = $sformat(output_reg, format_string, list_of_arguments );

WITH:
$sformat(output_reg, format_string, list_of_arguments );

Audit-Trail

From: Shalom Bresticker <Shalom.Bresticker@motorola.com>
To: btf-bugs@boyd.com
Cc:
Subject: Re: errata/41: 17.2.3: Is $sformat a task or a function ?
Date: Thu, 11 Oct 2001 17:07:56 +0200

--------------6F50A5FD2FA7A602B537FF92
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I just noticed that the last part of this errata is the same as errata/34.

Since the rest of errata/34 is editorial errors and this is a technical content error,
I would prefer to keep them separate.

Shalom


Shalom Bresticker wrote:

> >Originator: Charles Dawson <chas@cadence.com>
>
> In section 17.2.3 (page 295), there is a system task/function specified
> called "$sformat". As you know, you cannot use the same name to specify
> both a system task and a system function. Further, the rest of the text
> talks as if $sformat is a system task.
>
> I would suggest removing the second syntax line (listed below):
>
> $sformat(output_reg, format_string, list_of_arguments);
> length = $sformat(output_reg, format_string, list_of_arguments);

--
**************************************************************************
Shalom Bresticker Shalom.Bresticker@motorola.com
Motorola Semiconductor Israel, Ltd. Tel #: +972 9 9522268
P.O.B. 2208, Herzlia 46120, ISRAEL Fax #: +972 9 9522890
**************************************************************************



--------------6F50A5FD2FA7A602B537FF92
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

 I just noticed that the last part of this errata is the same as errata/34.

 

 Since the rest of errata/34 is editorial errors and this is a
technical content error,

 I would prefer to keep them separate.

Shalom

 

Shalom Bresticker wrote:
<blockquote TYPE=CITE>>Originator:     Charles Dawson
<chas@cadence.com>

In section 17.2.3 (page 295), there is a system task/function specified

called "$sformat".  As you know, you cannot use the same name
to specify

both a system task and a system function.  Further, the rest of
the text

talks as if $sformat is a system task.

I would suggest removing the second syntax line (listed below):

  $sformat(output_reg, format_string, list_of_arguments);

  length =  $sformat(output_reg, format_string, list_of_arguments);

-- 
 **************************************************************************
 Shalom Bresticker                           Shalom.Bresticker@motorola.com
 Motorola Semiconductor Israel, Ltd.                  Tel #: +972 9 9522268
 P.O.B. 2208, Herzlia 46120, ISRAEL                   Fax #: +972 9 9522890
 **************************************************************************

 

--------------6F50A5FD2FA7A602B537FF92--


From: Shalom Bresticker <Shalom.Bresticker@motorola.com>
To: btf-bugs@boyd.com
Cc:
Subject: Re: errata/41: 17.2.3: Is $sformat a task or a function ?
Date: Thu, 11 Oct 2001 17:29:31 +0200

--------------8750D7EE864E75014518C5D1
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I found in the archives that I asked a similar question in April 2000.
I got the answer that the following SHOULD have been in the last paragraph of the section:

"Optionally, the system task can be redefined (or additionally defined)
as a function that returns the number of characters in the resulting
string before any truncation that would occur if the reg to hold the
result is not large enough."

So the example syntax:

length = $sformat(output_reg, format_string, list_of_arguments);

Shows usage as a system function that returns the number of characters
that should be assigned to 'output_reg'.

Shalom


Shalom Bresticker wrote:

> >Originator: Charles Dawson <chas@cadence.com>
>
> In section 17.2.3 (page 295), there is a system task/function specified
> called "$sformat". As you know, you cannot use the same name to specify
> both a system task and a system function. Further, the rest of the text
> talks as if $sformat is a system task.
>
> I would suggest removing the second syntax line (listed below):
>
> $sformat(output_reg, format_string, list_of_arguments);
> length = $sformat(output_reg, format_string, list_of_arguments);

--
**************************************************************************
Shalom Bresticker Shalom.Bresticker@motorola.com
Motorola Semiconductor Israel, Ltd. Tel #: +972 9 9522268
P.O.B. 2208, Herzlia 46120, ISRAEL Fax #: +972 9 9522890
**************************************************************************



--------------8750D7EE864E75014518C5D1
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">

I found in the archives that I asked a similar question in April
2000.

I got the answer that the following SHOULD have been in the 
last paragraph of the section:

"Optionally, the system task can be redefined (or additionally defined)

as a function that returns the number of characters in the resulting

string before any truncation that would occur if the reg to hold the

result is not large enough."

So the example syntax:

length = $sformat(output_reg, format_string, list_of_arguments);

Shows usage as a system function that returns the number of characters

that should be assigned to 'output_reg'.

Shalom

 

Shalom Bresticker wrote:
<blockquote TYPE=CITE>>Originator:     Charles Dawson
<chas@cadence.com>

In section 17.2.3 (page 295), there is a system task/function specified

called "$sformat".  As you know, you cannot use the same name
to specify

both a system task and a system function.  Further, the rest of
the text

talks as if $sformat is a system task.

I would suggest removing the second syntax line (listed below):

  $sformat(output_reg, format_string, list_of_arguments);

  length =  $sformat(output_reg, format_string, list_of_arguments);

-- 
 **************************************************************************
 Shalom Bresticker                           Shalom.Bresticker@motorola.com
 Motorola Semiconductor Israel, Ltd.                  Tel #: +972 9 9522268
 P.O.B. 2208, Herzlia 46120, ISRAEL                   Fax #: +972 9 9522890
 **************************************************************************

 

--------------8750D7EE864E75014518C5D1--

Unformatted


Hosted by Boyd Technology