RE: [sv-bc] Question about shortint'(8'hFF + 8'h01)

From: Karen Pieper <Karen.Pieper@synopsys.com>
Date: Fri Sep 17 2004 - 11:45:25 PDT

Bounced message
K

>From: "Sircar, Ayan" <Ayan_Sircar@mentorg.com>
>To: Andy Tsay <andytsay@yahoo.com>, sv-bc@server.eda.org
>X-Mailer: Internet Mail Service (5.5.2653.19)
>Message-ID: <1339F5FE86233D4584E6CDA7A0DC6319E6D6ED@SVR-CAS-EXC-02.mgc.mentorg.com>
>Subject: RE: [sv-bc] Question about shortint'(8'hFF + 8'h01)
>Date: Fri, 17 Sep 2004 14:18:30 -0400
>MIME-Version: 1.0
>X-Mailer: Internet Mail Service (5.5.2653.19)
>Content-Type: text/plain;
> charset="iso-8859-1"
>X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a
> on server
>X-Virus-Status: Clean
>
>It should be 16'h0000, as the result type is not 16 bit unless the type
>casting has been applied - an that is only after the computation is done.
>
> _____
>
>From: owner-sv-bc@eda.org on behalf of Andy Tsay
>Sent: Fri 9/17/2004 11:13 AM
>To: sv-bc@eda.org
>Subject: [sv-bc] Question about shortint'(8'hFF + 8'h01)
>
>
>
>Hi,
>
>Please help to clarify the evaluation of the expression below:
> shortint'(8'hFF + 8'h01)
>
>Is the result value (16'h0000) or (16'h0100)?
>
>Thanks,
>Andy
Received on Fri Sep 17 11:45:29 2004

This archive was generated by hypermail 2.1.8 : Fri Sep 17 2004 - 11:45:38 PDT