Re: [sv-bc] 5.7.1 sign extension

From: Steven Sharp <sharp_at_.....>
Date: Mon Mar 10 2008 - 17:04:34 PDT
>From: "Bresticker, Shalom" <shalom.bresticker@intel.com>

>Hi, 5.7.1 says,
>Sized negative literal constant numbers and sized signed literal
>constant numbers are sign-extended when assigned to a logic data type,
>regardless of whether the logic itself is signed.
>
>Isn't that true whenever the right-hand side of an assignment is signed
>and for any data type on the left-hand side?

Yes.

>If so, why make a special case for this?

I suppose it can be justified because the full rules are so complex,
and this one simple case is likely to be so common.

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 Mon Mar 10 17:05:14 2008

This archive was generated by hypermail 2.1.8 : Mon Mar 10 2008 - 17:05:43 PDT