Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

BIN/HEX to POF Convertion

Like many other people I've got a problem because I need to program some MAX7000s devices but only have a Intel HEX file which is not supported by the Quartus Standalone programmer. I've been working on an application to convert HEX to POF and have it almost completed.

I am looking for information in regards to the "Logical Address and Data 32 (Tag=17)" packet used in the POF Format. The documentation I have found states as follows:

"This packet defines a group of logical addresses in the target device and

associates logical data with these addresses. The addresses comprise a

linear region in the logical address space, bounded on the low end by the

starting address and extending upward by the address count specified in

the packet.

The starting address and address count are each specified by 4-byte

fields (32 bits)."

The problem is that studying various POF files I have compiled with Quartus I see that there are three 4-byte fields and not two like mentioned above.

Does anybody have any information to what these fields are used for and how the "address count" field is handled?

Thanks.

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The reponse may be too late for you, but maybe others (like me) are interested in this topic, too. Here is what I found out:

    For a MAX10 device (10M08SA) the first 12 bytes are

    00 00 00 00 00 00 00 40 27 00 01 00

    This 32 bit value contains the length of the binary in bits (274000h/8=321536bytes):

    __ __ __ __ __ __ 00 40 27 00 __ __