VHDL Data TypesScalar Types (Cont.)
ARCHITECTURE test_real OF test IS
Real
- Minimum range for any implementation as defined by standard: -1.0E38 to 1.0E38
- Example assignments to a variable of type real :
Notes:
A second simple example is the real data type. This type consists of the real numbers within a simulator-specific (but with a VHDL standard imposed minimum) range. The variable assignment lines marked OK are valid assignments. The first illegal statement above attempts to assign an integer to a real type variable, and the second illegal statement is not allowed since the unit “ns” denotes a physical data type.