TAL Reference Manual
Data Representation
TAL Reference Manual—526371-001
3-3
Specifying Data Types
Specifying Data Types
The format for specifying data types in declarations is:
width
is a constant expression that specifies the width, in bits, of the variable. The
constant expression can include LITERALs and DEFINEs (previously declared
constants and text). The result of the constant expression must be one of the
following values:
fpoint
is the implied fixed-point setting of a FIXED variable. fpoint is an integer in the
range –19 through 19. If you omit fpoint, the default fpoint is 0 (no decimal places).
A positive fpoint specifies the number of decimal places to the right of the decimal
point. A negative fpoint specifies a number of integer places to the left of the
decimal point.
* (asterisk)
is a FIXED data type notation. The asterisk prevents scaling of the initialization
value.
Data Type Prefix width, in bit
INT 16 * , 32, or 64 *
REAL 32 * or 64
UNSIGNED, simple variable, parameter,
or function result
A value in the range 1 through 31
UNSIGNED - array element 1, 2, 4, or 8
* INT(16), INT(64), and REAL(32) are data type aliases, as described in Data Type Aliases on
page 3-4
STRING
INT
REAL
UNSIGNED
FIXED
width
width
fpoint
(
(
(
)
)
)
*
VST0301.vsd