Welcome Notice

Register Log in

64 Bit Integers...

R

Rick C

Guest
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
 
K

KJ

Guest
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
 
K

KJ

Guest
On Thursday, October 1, 2020 at 6:39:42 AM UTC-4, KJ wrote:
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
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
 
R

Rick C

Guest
On Thursday, October 1, 2020 at 7:43:55 AM UTC-4, KJ wrote:
On Thursday, October 1, 2020 at 6:39:42 AM UTC-4, KJ wrote:
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

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
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
 
Toggle Sidebar

Welcome to EDABoard.com

Sponsor

Top