Hi,
What about 16'h00 + (8'hFF + 8'h01)?
Thanks,
Andy
--- "Sircar, Ayan" <Ayan_Sircar@mentorg.com> wrote:
> 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:28:06 2004
This archive was generated by hypermail 2.1.8 : Fri Sep 17 2004 - 11:28:11 PDT