RE: [sv-cc] Reg. escaped identifiers..


Subject: RE: [sv-cc] Reg. escaped identifiers..
From: Joao Geada (Joao.Geada@synopsys.com)
Date: Thu Feb 13 2003 - 08:27:02 PST


Raghuraman,

As far as I know, vpi_get_str and vpi_handle_by_name provide/expect the
leading '\' for escaped names. Also note that "\foo<space>" is not considered
identical to "foo", since escaped identifiers always include the closing space.

The wording of the IEEE standard is unclear at best in this regard. The general
rule adopted by all vendors is that VPI reports/expects the same exact strings
for identifiers as the Verilog parser itself requires.

Joao
==============================================================================
Joao Geada, PhD Principal Engineer Verif Tech Group
Synopsys, Inc TEL: (508) 263-8083
344 Simarano Drive, Suite 300, FAX: (508) 263-8069
Marlboro, MA 01752, USA
==============================================================================

-----Original Message-----
From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org]On Behalf Of
Raghuraman R
Sent: Thursday, February 13, 2003 4:56 AM
To: sv-ec@eda.org; sv-cc@eda.org
Subject: [sv-cc] Reg. escaped identifiers..

I dont know whether this document reflects the latest version of the
Verilog syntax.

  http://www.ece.uci.edu/eceware/cadence_docs/vlogref/appA.html

<IDENTIFIER>
    An identifier is any sequence of letters, digits, dollar signs
    ($), and underscore (_) symbol, except that the first must be
    a letter or the underscore; the first character may not be a digit
    or $. Upper and lower case letters are considered to be different.
    Identifiers may be up to 1024 characters long. Verilog-XL,
    Veritime and Verifault-XL do not recognize identifier characters
    beyond the 1024th as a significant part of the identifier.
    Escaped identifiers start with the backslash character (\) and
    may include any printable ASCII character. An escaped identifier
    ends with white space. The leading backslash character is not
    considered to be part of the identifier.

Assume that there is a register (reg \test/_reg ; in Verilog)

So if there is a netlist parser, which returns the name of the signal
what should it return (\test/_reg or test/_reg). The above definition
seems to say that it is the latter but if there is some other
application working on this, is it the prerogative of the application to
find whether the signal has to be escaped or not?

What is the position of vpi on this (vpi_get_str function)?

Thanks.

-- 
Regds,

Raghuraman R ASIC Texas Instruments (India) Ltd. Phone : +91-80-5099113 http://www.india.ti.com/~raghu

* Think. *



This archive was generated by hypermail 2b28 : Thu Feb 13 2003 - 08:28:22 PST