Data Definition Language (DDL) Reference Manual

Definition Attributes
Data Definition Language (DDL) Reference Manual529431-004
6-64
Specifying TYPE data-type
Bit Maps for TACL
The output for a bit map declared as a field definition is INT or UINT. The DDL
compiler ignores bit-length.
The output for a bit map declared in a group structure is FILLER. Both named bit fields
and filler bit fields have the same number of words as the bit map.
For a list of TACL data types that the TYPE data-type clause generates, see
Table C-5, Sample DDL/TACL Data Translation Table, on page C-9.
DEF Reused-Bits.
02 Data-Item Type Binary.
02 Bits-Layout-1
Redefines Data-Item.
03 F-11 TYPE BIT 5.
03 F-12 TYPE BIT 6.
03 F-13 TYPE BIT 4.
02 Bits-Layout-2
Redefines Data-Item.
03 F-21 TYPE BIT 4.
03 F-22 TYPE BIT 3.
End.
TYPE REUSED_BITS_DEF = RECORD
CASE INT16 OF
01: ( DATA_ITEM : INT16 );
02: ( BITS_LAYOUT_1 :
PACKED RECORD
F_11 : INT(5);
F_12 : INT(6);
F_13 : INT(4);
FILLER_1 : INT(1);
END );
03: ( BITS_LAYOUT_2 :
PACKED RECORD
F_21 : INT(4);
F_22 : INT(3);
FILLER_2 : INT(9);
END );
END;
Example 6-53. Bit Field Output for TACL (page1of2)
DDL Type TACL Type
DEF Bit-1 TYPE BIT 1. ?Section BIT^1 Struct
Begin
INT BIT^1;
End;
DEF New-Bit-1 TYPE Bit-1. ?Section NEW^BIT^1 Struct
Begin
INT NEW^BIT^1;
End;
DEF Bit-10 TYPE BIT 10 UNSIGNED. ?Section BIT^10 Struct
Begin
UINT BIT^10;
End;
Example 6-52. Bit Field Output for Pascal (page 2 of 2)
DDL Type Pascal Type