Re: [sv-bc] Sysfunc to ask about signedness?

From: Steven Sharp <sharp_at_.....>
Date: Sat Jul 29 2006 - 21:42:41 PDT
>From: "Brad Pierce" <Brad.Pierce@synopsys.com>

>So in V2K you could also select the Nth-most-significant bit of x by
>
>      `define MSB(x,N) ($signed((x) << (N)) < 0)

Yes, but in this case, you need to replace the "0" with "1'sb0", to
correctly handle x less than 32 bits wide.

Steven Sharp
sharp@cadence.com
Received on Sat Jul 29 21:42:45 2006

This archive was generated by hypermail 2.1.8 : Sat Jul 29 2006 - 21:43:09 PDT