BTF Draft 3 Requested Change

From: Adam Krolnik (krolnik@lsil.com)
Date: Fri Nov 19 1999 - 09:50:12 PST


Good morning:

<p>I am clarifying some specific details about this section.

Section 17.10.2 "$value$plusargs(user_string, variable)

WAS:
If no string is found matching, the function returns the integer
value zero and the variable provided is not modified.

Proposed:

If no string is found matching, the function returns the integer
value zero and the variable provided is not modified. No warnings
shall be generated when the function returns 0.

Proposed change:
Clarify intention about use of function. Nonexistance of plusarg string
is define by return value of function; not by warning message issued.

<p><p>WAS:
The remainder string of the matching plusarg (the remainder is
the part of the plusarg string after the portion that matches the users
plusarg_string) will be converted from a string into the format
indicated by the format string and stored in the variable provided.

Proposed:
<Same>. If there is no remainding string, the value stored into the
variable should either be a zero or an empty string value.

Proposed change:
Clarify corner case for implementation. One could say the variable
should not be changed - however one is not left with an option
to produce an empty string if required.

<p>WAS:

This system function searches the list of plusargs (like the
$test$plusargs system function) for a user specified plusarg string.

Proposed:

<Same> The string is specified in the first argument to the system
function as either a string, or a register which will be intepreted
as a string.

Proposed change is:
Allow functionality in this example...

<user command line addition>
+TEST12

<example code>
reg [64*8:1] pstring;

...
pstring = "+TEST%d";
if ($value$plusargs(pstring, test[31:0))
  begin
  $display("Running test number %0d.", test);
  startTest();
  end

<output of example>
Running test number 12

The variable 'test' would get the value 'd12.

<p><p> Adam Krolnik
    Verification Mgr.
    LSI Logic, Inc.
    Plano TX. 75074

<p>Also, add example to section.



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:53:31 PDT and
sponsored by Boyd Technology, Inc.