[sv-bc] Specs for atoi(), atohex(), ...,atoreal(), itoa(), ...?


Subject: [sv-bc] Specs for atoi(), atohex(), ...,atoreal(), itoa(), ...?
From: Rishiyur S. Nikhil (nikhil@bluespec.com)
Date: Tue Feb 10 2004 - 09:38:20 PST


The string methods in Sections 3.7.9 thru 3.7.15, i.e., the 'atoi()'-like
methods and the 'itoa()' like methods seem underspecified.

In the 'atoi()'-like methods (atoi, atohex, atooct, atobin, atoreal),
should they be specified to parse the full Verilog integer and real
constant syntax?

(I don't think we can appeal to the C standard for atoi() because
  C's numeric constants have different syntax from Verilog's).

Similarly, do the 'itoa()'-like methods produce a full Verilog-syntax
integer constant (including the width, tick, base, ....)?

Nikhil



This archive was generated by hypermail 2b28 : Tue Feb 10 2004 - 09:45:05 PST