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


Subject: Re: [sv-ac] 17.9: System functions: $onehot/$onehot0
From: Surrendra Dudani (Surrendra.Dudani@synopsys.com)
Date: Tue Apr 22 2003 - 10:58:02 PDT


Hi Connie,
Please note that in SV, we also have countones, which is more general.
Surrendra
At 11:49 AM 4/22/2003 -0600, you wrote:
>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
>

**********************************************
Surrendra A. Dudani
Synopsys, Inc.
377 Simarano Drive, Suite 300
Marlboro, MA 01752

Tel: 508-263-8072
Fax: 508-263-8123
email: Surrendra.Dudani@synopsys.com
**********************************************



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