Data Definition Language (DDL) Reference Manual

SPI Tokens
Data Definition Language (DDL) Reference Manual529431-004
7-25
Standard SPI Definitions in Token-Map Definitions
In Example 7-25 on page 7-25, NOVERSION is incorrect for field z-2 because the
DDL compiler puts z-2 in the same byte as field z-1, and bit fields in the same byte
must have the same product version number.
1 0 1 New product version specification follows
17162 C 10 Product version C10
511 1 255 Null value for bits-2
1 0 1 New product version specification follows
17172 C 20 Product version C20
767 2 255 Null value for bits-5 and bits-4
1 0 1 New product version specification follows
0 0 0 NOVERSION
767 2 255 Null value for bits-7 and bit FILLER
Example 7-24. Incorrect Use of SPI-NULL Value for Bit Fields
DEF bits-layout-z.
02 z-1 Type BIT 4 SPI-Null 0.
02 z-2 Type BIT 3 SPI-Null 1.
02 z-3 Type BIT 10.
02 z-4 Type BIT 4.
END.
*** ERROR *** SPI-NULL value on a bit field must be 255 - Z-1
*** ERROR *** SPI-NULL value on a bit field must be 255 - Z-2
Example 7-25. Incorrect Use of Product Version Numbers for Bit Fields
DEF bits-layout-z.
02 z-1 Type BIT 4 SPI-Null 255.
02 z-2 Type BIT 3 SPI-Null 255.
02 z-3 Type BIT 10.
02 z-4 Type BIT 4.
END.
TOKEN-MAP map-bits-z VALUE is 20 DEF is bits-layout-z.
VERSION "C00" FOR z-1.
NOVERSION FOR z-2.
VERSION "C10" FOR z-3 THRU z-4.
END.
*** ERROR *** Inconsistent VERSION within byte - Z-2
Table 7-2. Structure of a Bit Map
Value in Word Byte 1 Byte 2 Meaning of Value