SLVSJ99 July 2025 TPLD2001-Q1
ADVANCE INFORMATION
InterConnect Studio generates the configuration bits in Intel HEX format. The .hex file can be parsed to extract the datastream to configure the TPLD device. The Intel HEX record, or line of text, structure is shown below.
: | 10 | 0200 | 00 | 000102030405060708090A0B0C0D0E0F | 76 |
Start code | Byte count | Address | Record type | Data | Checksum |
Start code: one character, an ASCII colon (:).
Byte count: two hex digits to indicate the number of bytes in the Data field.
Address: four hex digits to represent the starting address offset of the first Data byte.
Record type: two hex digits defining the meaning of the Data field. While Intel HEX has six standard record types, only two are used in the .hex file generation.
Hex code 00: indicates Data record type; the example record structure above results in a Byte count of 0x10 (16 bytes), starting Address of 0x0200, and Data (0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, and 0x0F).
Hex code 01: indicates an End of File record type; the Byte count is 0x00, the Address is typically 0x0000, and the Data field is omitted.
Data: contains the sequence of Byte count bytes of data.
Checksum: two hex digits computed by taking the summation of each byte preceding the Checksum and computing the two's complement of the sum's least significant byte. This value can be used to verify the record has no errors.