[sv-bc] Sysfunc to ask about signedness?

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Tue Feb 07 2006 - 09:45:15 PST
Should there be a standard system function to ask during conditional
generate whether a type parameter (for example) is signed?  It's not
strictly necessary, because a simple macro will do the job -

 

     `define IS_SIGNED(x) (type(x)'('1) < type(x)'('0))

 

but it's still surprising that there's no standard system function for
this.

 

-- Brad

 

 
Received on Tue Feb 7 09:45:27 2006

This archive was generated by hypermail 2.1.8 : Tue Feb 07 2006 - 09:45:53 PST