Re: [sv-bc] RE: [sv-ac] New keywords in SV-AC proposals

From: Steven Sharp <sharp_at_.....>
Date: Thu Mar 13 2008 - 16:54:53 PDT
>From: "Stuart Sutherland" <stuart@sutherland-hdl.com>

>I am also mildly concerned about the use of $ as the first character in new
>functions like $inferred_clock.  Is it appropriate to us a system function
>for this functionality?  I don't have an answer...I just to make sure the
>usage of $-type names is appropriate.

One problem with this is that users are allowed to define their own
system function names with PLI.  If the name matches something built-in,
then the user definition overrides it.

I assume that users can define system functions with no arguments, and
that the syntax for a call to such a system function would not need to
have parentheses.  If a user defined such a system function named
$inferred_clock, then the syntax $inferred_clock used in an expression
would refer to that system function, not to the special meaning in
this proposal.  That seems like a problem.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Mar 13 16:55:54 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 13 2008 - 16:59:09 PDT