Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 12/04/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.1.27.6. generate_project_tcl (::quartus::project)

The following table displays information for the generate_project_tcl Tcl command:

Tcl Package and Version

Belongs to ::quartus::project

Syntax generate_project_tcl [-h | -help] [-long_help] -filename <filename> [-include_default_assignments] [-overwrite]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-filename <filename> Tcl Filename
-include_default_assignments Option to include default assignments in the tcl file.
-overwrite Option to overwrite an existing tcl file
Description
With currently opened, write a tcl file that can create the
        project and populate it current set of assignments in the qsf.
Example Usage
## Generate a tcl file to create the current project. 
generate_project_tcl -filename create_project.tcl

        ## Generate a tcl file to create the current project and
        ## also include the default assignments. 
generate_project_tcl -filename create_project.tcl -include_default_assignments
Return Value Code Name Code String Return
TCL_OK 0 INFO: Operation successful
TCL_ERROR 1 ERROR: Failed when attempting to read qsf file.
TCL_ERROR 1 ERROR: Failed when attempting to write tcl file.
TCL_ERROR 1 ERROR: Project is not open, and path and project name was not specified. Open an existing project, or specify the path and project name in the command.
TCL_ERROR 1 ERROR: Tcl file already exist. Please use -overwrite option to overwrite