String support (was Re: minutes Verilog-AMS Committee Meeting - 19 April 2007)

From: Geoffrey.Coram <Geoffrey.Coram_at_.....>
Date: Mon Apr 23 2007 - 05:34:51 PDT
Does anyone need the indexing?  I don't think we need it for the things we were proposing to use strings for (filenames).

What about casting?   
  Integral types can be assigned to a string variable,
  but require a cast. 
I don't think this makes any sense for what we want strings for, either.

-Geoffrey



Marq Kole wrote:
> 
> Geoffrey,
> 
> If there is no access to individual characters of a string, we do not need to define the type of the individual character. As we have said that we do not support the string methods (IEEE 1800-2005, 4.7.1-15) there is no issue with these methods. Then considering the operators in 1800-2005, Table 4-2: if we decide not to support the indexing operation, all possible references/acces methods to bytes from 1800-2005 are absent and you leave out the refence to the byte type when copying the SV text.
> 
> Alternatively, if the indexing operator is considered too useful to leave out, we can restrict the interpretation of the byte data type to an ASCII value as defined in 1800-2005, Table 4-1 (so not as 2-value SystemVerilog value, nor as 8-bit signed integer, only as ASCII character). However, in my opinion this can better wait until we move to SV-AMS and accept the full package for string and byte types in AMS.
> 
> Cheers,
> Marq

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Apr 23 05:35:40 2007

This archive was generated by hypermail 2.1.8 : Mon Apr 23 2007 - 05:35:58 PDT