[sv-bc] D3 20.2.1: $display arguments

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Mon May 14 2007 - 07:11:20 PDT
  

In Draft 3, 20.2.1, Stu has combined 1364 and 1800 to his understanding
as follows:

The $display and $write tasks display their arguments in the same order
as they appear in the argument

list. Each argument can be a quoted string literal, an expression that
returns a value, or a null argument. The

arguments cannot be expressions of the string data type, with the
exception that the argument corresponding

to a string % format specifier (s) may have the string data type.

 

This is subtly different from 1800-2005 22.13, which says,

- The format arguments to these tasks must be string literals, i.e.,
they cannot be expressions of

string data type. The only exception is $sformat, whose second argument
can be an expression

of string data type.

- The first argument of $swrite can be a string variable.

- The integer % format specifiers (h, d, o, b, c, u, and z) may be used
with any of the

SystemVerilog integral data types, including enumerated types and packed
aggregate data

types. They shall not be used with any unpacked aggregate type.

- The argument corresponding to a string % format specifier (s) may have
the string data type.

 

This says that the *format* arguments cannot be expressions of string
data type. It does not say that about all arguments.

What about $display (string);? Does anyone claim this is not allowed?

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.



image001.gif
Received on Mon May 14 07:11:44 2007

This archive was generated by hypermail 2.1.8 : Mon May 14 2007 - 07:12:22 PDT