Forum Discussion

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

Convert jic file to jam file with command line

I know that I can converta Jic file from the UI but I want to integrate this into our build server by using command line.

To convert the Jic to Jam I go to the programmer, add the jic file, Go to menu Create JAM, JBC etc and select jam type.

I'm already using the quatus_cpf to convert from SOF to JIC...

But didn't found the binary to convert jic to jam that the programmer windows offers??

Anyone know how to?

Best Regards,

-KA

2 Replies

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

    Doesn't quartus_cpf perform all available programming file conversion when called with a respective setting file?

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

    I thought that the quartus_cpf was related only to Convert Programming File window that only offers Output programming file of types: .hexout, .pof, .rbf, .ttf, .pof, .rpd, .jic, .pmsf, .rbf

    EX: quartus_cpf File.jic -c ConfigFileSofToJic.cof

    hmm I was always typing the command without the --help that was my mistake :( my bad...

    kap@kap:~/altera/12.1/quartus/bin$ ./quartus_cpf --help

    Quartus II 32-bit Convert_programming_file

    Version 12.1 Build 177 11/07/2012 SJ Web Edition

    Copyright (C) 1991-2012 Altera Corporation

    Usage:

    ------

    quartus_cpf [-h | --help[=<option|topic>] | -v]

    quartus_cpf -c [options] <input_file> <output_file> --- to convert file

    quartus_cpf -w <option_filename> --- to create option file for configuration device

    quartus_cpf -p <input_msf_file> <input_sof_file> <output_pmsf_file> -- to generate the pmsf file for partial reconfiguration

    quartus_cpf -e -k <keyfile>:<key_id>[:<key_id>] <input_sof_file> <output_ekp_file> --- to generate an encryption key programming file

    Description:

    ------------

    Options:

    --------

    -f <argument file>

    -a <hexadecimal number> | --start_address=<hexadecimal number>

    -c | --convert

    -d <device name> | --device=<device name>

    -g <voltage> | --voltage=<voltage>

    -i | --info

    -k <filename and key id> | --key=<filename and key id>

    -m <PS|AP|FPP|PPA|PPS> | --configuration_mode=<PS|AP|FPP|PPA|PPS>

    -n <pb|v|p> | --operation=<pb|v|p>

    -o <filename> | --option=<filename>

    -p <msf_filename> | --genpmsf=<msf_filename>

    -q <frequency with units> | --frequency=<frequency with units>

    -s <device name> | --sfl_device=<device name>

    -u <up|down> | --count_dir=<up|down>

    -w | --write

    --64bit

    --cvp

    --hps=<value>

    --lower_priority

    --verify_invariance=<invariant_msf and static_sof and pr_sof>

    Help Topics:

    ------------

    arguments

    design_security

    hexout

    isc

    jam

    jbc

    jic

    makefiles

    pof

    rbf

    return_codes

    rpd

    svf

    ttf

    For more information on specific options, use --help=<option|topic>.

    ./quartus_cpf --help=jam

    Topic: jam

    To generate a JEDEC STAPL Format File (.jam), specify the

    input file name and output file name. Make sure the file

    extension of the output file is .jam. The input file must be

    either an SRAM Object File (.sof), a Programmer Object File

    (.pof), a Chain Description File (.cdf), a JTAG Indirect

    Configuration Device Programming File (.jic), or an

    Encryption Key Programming File (.ekp). Use a .cdf to

    generate the .jam for a multi-device chain.

    ---------

    Examples:

    ---------

    quartus_cpf -c <input_pof_file> <output_jam_file>

    quartus_cpf -c <input_sof_file> <output_jam_file>

    quartus_cpf -c <input_cdf_file> <output_jam_file>

    quartus_cpf -c <input_jic_file> <output_jam_file>

    quartus_cpf -c <input_ekp_file> <output_jam_file>

    ./quartus_cpf -c /home/kap/File.jic /home/kap/file.jam

    Info: *******************************************************************

    Info: Running Quartus II 32-bit Convert_programming_file

    Info: Version 12.1 Build 177 11/07/2012 SJ Web Edition

    Info: Copyright (C) 1991-2012 Altera Corporation. All rights reserved.

    Info: Your use of Altera Corporation's design tools, logic functions

    Info: and other software and tools, and its AMPP partner logic

    Info: functions, and any output files from any of the foregoing

    Info: (including device programming or simulation files), and any

    Info: associated documentation or information are expressly subject

    Info: to the terms and conditions of the Altera Program License

    Info: Subscription Agreement, Altera MegaCore Function License

    Info: Agreement, or other applicable license agreement, including,

    Info: without limitation, that your use is for the sole purpose of

    Info: programming logic devices manufactured by Altera and sold by

    Info: Altera or its authorized distributors. Please refer to the

    Info: applicable agreement for further details.

    Info: Processing started: Wed Apr 3 08:28:43 2013

    Info: Command: quartus_cpf -c /home/kap/File.jic /home/kap/File.jam

    Info (210117): Created JAM or JBC file for the specified chain:

    Device 1 (EP4CE115; /home/kap/File.jic)

    Info: Quartus II 32-bit Convert_programming_file was successful. 0 errors, 0 warnings

    Info: Peak virtual memory: 131 megabytes

    Info: Processing ended: Wed Apr 3 08:29:00 2013

    Info: Elapsed time: 00:00:17

    Info: Total CPU time (on all processors): 00:00:17

    Thanks,

    -KA