Examples, Hexout, Hexout –21 isc –21 – Altera Quartus II Scripting User Manual

Page 47

Advertising
background image

Chapter 2: Command-line Executables

2–21

quartus_cpf

© July 2013

Altera Corporation

Quartus II Scripting Reference Manual

in which keyfile is a valid Key File (.key), keyid is a valid id for a key in the specified file, and keyid2 is a
valid id for a key in the specified file.

Examples

# To convert .sof to a secured configuration bitstream .rbf
# using a single key file
quartus_cpf --key <keyfile>:<keyid1>:<keyid2> <input_sof_file> <output_rbf_file>

# To generate an Encryption Key Programming File (.ekp)
# using two key files
quartus_cpf --key <keyfile1>:<keyid1> --key <keyfile2>:<keyid2> <input_sof_file>
<output_ekp_file>

hexout

To generate a Hexadecimal (Intel-Format) Output File (.hexout), specify the input file name and output file
name. Make sure the file extension of the output file is .hexout. The input file can be either an SRAM
Object File (.sof) or a Programmer Object File (.pof).

You can use optional arguments to specify the data start address and count direction. These arguments are
not legal if you are trying to convert an enhanced configuration device .pof to a .hexout.

Optional arguments are as follows:

Examples

# To convert .sof to .hexout
quartus_cpf -c <input_file> <output_hexout_file>

#start address = 0x200, data count direction = up
quartus_cpf -c -u up -a 0x200 <input_file> <output_hexout_file>

#start address = 0x0fffff, data count direction = down
quartus_cpf -c -u down -a 0x0fffff <input_file> <output_hexout_file>

# To use a Conversion Setup File (.cof) created with
# the Convert Programming Files dialog box in the UI
quartus_cpf -c <input_cof_file>

isc

To generate an In System Configuration File (.isc), specify the input file name and output file name. The
ISC File is generated for IEEE-1532 compliant or compatible devices. Make sure the file extension of the
output file is .isc. The input file can be either a Programmer Object File (.pof) or a Chain Description File
(.cdf).

Examples

quartus_cpf -c <input_pof_file> <output_isc_file>
quartus_cpf -c <input_cdf_file> <output_isc_file>

String

Description

-u | --count_dir

Specifies the count direction for the data.

-a | --start_address

Specifies the start address of the data. Make sure to enter the address as a
hexadecimal number.

Advertising