From: Dennis Marsa (drm@xilinx.com)
Date: Fri Mar 01 2002 - 07:57:10 PST
Precedence: bulk
Shalom.Bresticker@motorola.com wrote:
>
> Dennis,
>
> I remember looking at this some time ago.
>
> I thought I sent an email about it, but I can not find it, so maybe I did not.
>
> Anyway, my conclusion was that the paragraph is badly worded, and where it says
> "integer", it means a variable of type "integer".
> Where it says "signed", it means a signed reg or a signed constant.
> "Unsigned" means an unsigned reg or an unsigned constant.
>
> Then in your case, 2**5, both operands are unsigned constants, so the result is
> of type ihteger.
But, unsized (with no base specifier) integer constants are signed,
aren't they? I believe that is what section 2.5.1 on Integer Constants
says.
So, even with your modified wording, 2**5 would still be real.
One would have to do something like 'd2**'d5 to get an integer
result.
That still seems really awkward.
Dennis Marsa
Xilinx, Inc.
This archive was generated by hypermail 2.1.4
: Mon Jul 08 2002 - 12:55:35 PDT
and
sponsored by Boyd Technology, Inc.