Integer value range

A

alivingstone

Does anyone know what the range of values the standard 'integer' type
can hold? I've looked through most of the libraries and haven't found
the answer yet.

Thanks in advance.
 
F

Filip Miletic

alivingstone said:
Does anyone know what the range of values the standard 'integer' type
can hold? I've looked through most of the libraries and haven't found
the answer yet.

Ashenden's "Designer Guide to VHDL", 2nd edition says, at bottom of page 33:
"...An example of an integer type is the predefined type integer, which
includes all the whole numbers representable on a particular host
computer. The language standard requires that the type integer include
at least the numbers -2,147,483,647 to +2,147,483,647 (-2^31+1 to
2^31-1), but VHDL implementations may extend the range."

My $0.02 is that the range of the values is integer'low to integer'high.

f
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,563
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top