Return to Support Page
 homesearchagentssupportask xilinxmap

Answers Database


What format is the .PRG file?


Record #221

Product Family:  Software

Product Line:  EPLD Core

Problem Title:
What format is the .PRG file?


Problem Description:
The MAKEPRG program makes a .PRG file, which is an Intel extended format file.


Solution 1:

The exact format is Intel-86 Hex Obj.

Below are the first few lines of a typical .prg file for an XC7336Q:

:01FFFF000EF3
:01FFFE0004FE
:020000020000FC
:05001800F2F0F0F2F22D
:05002000F2F0F0F2F225
:05002800F2F0F0F2F21D
:05003000F2F0F0F2F215

The format specification for each record is as follows:
: <# of data bytes in record><data address><data type><data><record checksum>

Description of each record field:

<# of data bytes in record> is a 2-digit field
<data address> is a 4-digit field
<data type> is a 2-digit field:
     00 = data
     01 = EOF
     02 = extended record type
<record checksum> is a 2-digit field

The records in a .prg file may appear in any order because the data address is
contained within each record.  Xilinx reserves the device addresses "FFFF"
and "FFFE" to denote the product code and package code respectively.  The
programmer relies on these records to ensure that the correct part has been
selected by the user.

The last record marks the end of the file:
:00000001FF



End of Record #221

For the latest news, design tips, and patch information on the Xilinx design environment, check out the Xilinx Expert Journals!

© 1998 Xilinx, Inc. All rights reserved
Trademarks and Patents