Quartus® Prime Pro Edition User Guide: Programmer

ID 683039
Date 4/01/2024
Public
Document Table of Contents

1.2.3. Generating Secondary Programming Files (Settings: Programming Files Dialog Box)

Follow these steps to generate .rbf files automatically as part of a standard compilation from the Quartus® Prime GUI.

  1. In Quartus® Prime, select Assignments > Settings.
  2. In the Settings window, select Assembler > Programming Files.

  3. In the Programming Files pane, select Generate programming files.
    Selecting this check box enables the default command arguments -c .sof .rbf.
  4. (Optional) To override the default command arguments, enter your command in the Command arguments box or click Import Script to upload a script file.

    If the Command arguments box is not empty, only the command arguments in this box are run. The default command arguments are not run.

    Each argument line the Command arguments box is subject to the following conditions:
    • Lines must each begin with -c or --convert.
    • Lines must each contain at least two argument tokens.
    • Lines cannot contain pipes. For lines that contain pipes, only the first command argument before the first pipe in the command argument is executed.
    For example, -c <project_name>.sof <project_name>.rbf.

    If an argument line does not meet these conditions, you might see one of the following errors:

    Figure 10. Error message when command argument lines do not begin with -c or --convert
    Figure 11. Error message when command argument line does not contain at least two arguments
    Figure 12. Error message when command argument line contains a pipe
  5. Click Apply then click OK.
Ensure that the path to the .sof file is correct, otherwise you receive error messages similar to the following messages:
Error(22528): Programming files generation using command Error (19509):
Cannot locate file output_files/abc.sof. was unsuccessful. Check pfg.log for more info.
A pfg_commands.txt file is generated and the QSF file is updated with the following settings:
GENERATE_PROGRAMMING_FILES=ON
CONVERT_PROGRAMMING_FILES_COMMANDS /<user-project-path>/pfg_commands.txt