UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 221

What format is the .PRG file?

Description

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

Solution

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

AR# 221
Date Created 09/20/1995
Last Updated 01/12/2016
Status Obsolete
Type General Article
Tools
  • ISE