SPI Tokens
Data Definition Language (DDL) Reference Manual — 426798-002
7- 23
TOKEN-MAP Statement
02 bits-3 Type BIT 3.
02 FILLER Type BIT 10.
02 bits-2 Type BIT 2.
02 bits-5 Type BIT 5.
02 FILLER Type BIT 4.
02 bits-4 Type BIT 4.
02 bits-7 Type BIT 7.
END.
TOKEN-MAP bit-map-ex-c VALUE 111 DEF bit-ddl-ex-c.
VERSION "C00" FOR char-3 THRU bits-3.
VERSION "C10" FOR bits-2.
VERSION "C20" FOR bits-5 THRU bits-4.
NOVERSION FOR bits-7.
END.
DDL produces the following pTAL or TAL language output from the preceding
definitions and TOKEN-MAP statements for bit fields:
?SECTION BITS^LAYOUT^X
STRUCT BITS^LAYOUT^X^DEF (*);
BEGIN
UNSIGNED(5) X^1;
UNSIGNED(3) X^FILLER;
UNSIGNED(7) X^2;
BIT_FILLER 1;
END;
?SECTION MAP^BITS^X
DEFINE MAP^BITS^X = [ 2303, 1, 2, 17152, 767 ]#;
LITERAL MAP^BITS^X^WLN = 5;
?SECTION BITS^LAYOUT^Y
STRUCT BITS^LAYOUT^Y^DEF (*);
BEGIN
UNSIGNED(4) Y^1;
UNSIGNED(8) Y^2;
BIT_FILLER 4;
UNSIGNED(6) Y^3;
BIT_FILLER 10;
END;
?SECTION MAP^BITS^Y
DEFINE MAP^BITS^Y = [2303,32740,4,10000,767,1,15000,511,1,0,
511 ]#;
LITERAL MAP^BITS^Y^WLN = 11;
?SECTION BIT^DDL^EX^A
STRUCT BIT^DDL^EX^A^DEF (*);
BEGIN
UNSIGNED(8) BITS^8;
UNSIGNED(3) BITS^3;
UNSIGNED(2) BITS^2;
BIT_FILLER 3;
UNSIGNED(10) BITS^10;
UNSIGNED(1) BITS^1;