From: Dennis Marsa (drm@xilinx.com)
Date: Fri Mar 01 2002 - 09:13:49 PST
Precedence: bulk
Kurt Baty wrote:
>
> 2**5
>
> should be the
> (unsigned constant 2) ** (unsigned constant 5)
No, 2 and 5 are signed. See section 2.5.1, page 8, 7th
paragraph (not counting the NOTE):
"Simple decimal numbers without the size and the base
format shall be treated as signed integers..."
> and thus unsigned constant 32
but since 2 and 5 are signed, by the written rules, the
result would be a real 32.0.
Thus, declarations such as:
reg [2**5-1:0] data;
would be illegal.
Dennis
This archive was generated by hypermail 2.1.4
: Mon Jul 08 2002 - 12:55:35 PDT
and
sponsored by Boyd Technology, Inc.