[sv-cc] String concatenation as dumpfile argument

From: Radosław Nawrot <Radoslaw.Nawrot@aldec.com.pl>
Date: Thu Dec 19 2013 - 00:46:41 PST
Hi All,
I have question about string concatenation as $dumpfile argument.
Is it legal ?
 
LRM says:
"

21.7.1.1 Specifying name of dump file ($dumpfile)

The $dumpfile task shall be used to specify the name of the VCD file. The
syntax for the task is given in

Syntax 21-14.

dumpfile_task ::=

$dumpfile ( filename ) ;

Syntax 21-14-Syntax for $dumpfile task (not in Annex A)

The filename is an expression that is a string literal, string data type, or
an integral data type containing a

character string that names the file to be opened. The filename is optional
and defaults to the string literal

"dump.vcd" if not specified.

"

And whant about string concatenation?

It would be very usefull ;

example;

string path,file

$dumpfile({path,file});

 

 

Path can be hardcoded and file can he parameter of plusarg argument.

I propose to change:

 

"

The filename is an expression that is a string literal, string data type, or
an integral data type containing a

character string that names the file to be opened. The filename is optional
and defaults to the string literal

"dump.vcd" if not specified.

"

 

to:

 

"

The filename is an expression that is a string literal, string data type,
an integral data type or concatenation and replication of above.

 Such expression  contains a character string that names the file to be
opened. The filename is optional and defaults to the string literal

"dump.vcd" if not specified.

"

 

 
Regards,
Radek
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Dec 19 00:46:54 2013

This archive was generated by hypermail 2.1.8 : Thu Dec 19 2013 - 00:46:57 PST