Reto Zimmermann wrote:
> The reason why not to use integer is that it is defined as a 32 bit
> signed vector.
I wrote:
> No, it isn't. It is defined as an integer with a range of at least
> -2147483647 to +2147483647.
Mike Treseler wrote:
> That's the spec, but a top integer port has to default to something
> for synthesis, if no range is specified.
> That something is a 32 bit signed vector for all synthesis tools I
> know of.
As soon as you start depending on using an integer type and having it
syntheisze to a 32-bit signed vector, someone somewhere will release
a synthesis tool that produced a 64-bit vector, or a 37-bit vector,
or soemthing else that meets the spec but isn't what you expect.
If you want a 32-bit vector, write it that way. Don't count on
behavior that is implementation-specific.
|