[sv-ac] 17.9: System functions: $onehot/$onehot0


Subject: [sv-ac] 17.9: System functions: $onehot/$onehot0
From: Connie ODell (c.odell@ieee.org)
Date: Tue Apr 22 2003 - 10:49:52 PDT


SV-AC participants,
        I wonder about the following in the new system function section
within 17.9:

- $onehot (<expression>) returns true if only one bit of the expression
is high.
- $onehot0(<expression>) returns true if at most one bit of the expression
is low.

Note that there are not one but two differences between these; I do not know
if both are intentional.

I hoped by sending this via email we could obtain feedback from the customer
community whether these two particular functions were proposed because they
are the most useful ones of the possible onehot variants (as compared to
OVL, where there are at least 4 variants either by name or parameter, for
instance). Or, will SV also later need:

- $something1 (<expression>) returns true if only one and only one bit of
the expression is low.
- $something2 (<expression>) returns true if at most one bit of the
expression is high.

If SV will need them, then we probably want different names or definitions
for $onehot and $onehot0 to allow a more consistent naming scheme. If we
will not need them, the existing scheme may be OK.

Cheers,
Connie L. O'Dell
EDA Technical Marketing / Support Engineer
c.odell@ieee.org
(303)641-5191
Boulder, CO
Resume: http://connie.odell.home.attbi.com/Connie_L_ODell.pdf
 



This archive was generated by hypermail 2b28 : Tue Apr 22 2003 - 10:49:03 PDT