I see a possible source of the confusion.
Verilog-2001 and Verilog-2005 said, "$sscanf reads from the reg str."
"rev" was not meant to exclude constants.
SV-2005 said, "The first argument of $sscanf can be a string variable."
That just extends the possibilities. Apparently in making V-AMS, someone interpreted "can be" as "shall be", and wrote, "$sscanf reads from the string variable, str."
SV-2009, combining SV-2005 and Verilog-2005, says, "$sscanf reads from the argument str, which may be an expression of integral, unpacked array of byte, or string data type."
That allows regular parameters, string parameters, string literals, and many other types.
Regards,
Shalom
From: owner-verilog-ams@eda.org [mailto:owner-verilog-ams@eda.org] On Behalf Of Marq Kole
Sent: Tuesday, March 15, 2011 2:34 PM
To: Verilog-AMS LRM Committee
Subject: $sscanf first argument
Hi All,
According to the LRM 2.3.1 the first argument of the $sscanf system function should be a string variable. Is there any particular reason why this cannot be a string parameter? I've just encountered the situation that I have to copy a string parameter to a string variable in order for this function to work. That seems to be a too strong restriction on this function. I just wanted to ask if I missed anything before making a Mantis item...
Cheers,
Marq
Marq Kole
Product Manager AMSRF Simulation
NXP Semiconductors / Central R&D / Foundation Technology
-- This message has been scanned for viruses and dangerous content by MailScanner<http://www.mailscanner.info/>, and is believed to be clean. --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Tue Mar 15 06:05:44 2011
This archive was generated by hypermail 2.1.8 : Tue Mar 15 2011 - 06:05:46 PDT