64 Bit Integers

34 views
Skip to first unread message

Rick C

unread,
Sep 29, 2020, 12:03:42 PM9/29/20
to
I know the standard requires 32 bit signed integer range, but does not restrict vendors from supplying larger ranges. However extending the range of "integer" may break existing code. Is there any consideration to a new data type which would be larger integers? Then the usages would be independent and not subject to breaking existing code.

I think the same thing applies to the REAL type. It's just that many languages allow simple indication of the size of integer and real you wish to work with. Why is this so hard to figure out in HDL?

--

Rick C.

- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209

KJ

unread,
Oct 1, 2020, 6:39:42 AM10/1/20
to
On Tuesday, September 29, 2020 at 12:03:42 PM UTC-4, gnuarm.del...@gmail.com wrote:
> I know the standard requires 32 bit signed integer range, but does not restrict vendors from supplying larger ranges. However extending the range of "integer" may break existing code. Is there any consideration to a new data type which would be larger integers? Then the usages would be independent and not subject to breaking existing code.

Larger integers were added to VHDL-2019

Kevin Jennings

KJ

unread,
Oct 1, 2020, 7:43:55 AM10/1/20
to
Specifically, VHDL-2019 defines...
The range of INTEGER is implementation dependent and shall include the range –(2^63) to (2^63)–1 inclusive.

Kevin Jennings

Rick C

unread,
Oct 1, 2020, 11:02:07 AM10/1/20
to
Ok, that's great. Now we just need to wait for the various vendors to embrace the new standard.

Thanks, I'm not sure how I was not aware this standard had been approved. I'm sure it was mentioned here. I see in searches it covers some new aspects of interfaces. I should read up on that to see if it is useful for me.

--

Rick C.

+ Get 1,000 miles of free Supercharging
+ Tesla referral code - https://ts.la/richard11209
Reply all
Reply to author
Forward
0 new messages