Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 10/04/2021

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

Document Table of Contents export_assignments (::quartus::project)

The following table displays information for the export_assignments Tcl command:

Tcl Package and Version

Belongs to ::quartus::project

Syntax export_assignments [-h | -help] [-long_help] [-reorganize] [-report_write_failure]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
-reorganize Option to reorganize the Quartus Prime Settings File (.qsf)
-report_write_failure Option to report error if write fail

Exports assignments for the current revision to the Quartus Prime Settings File (.qsf). Assignments created or modified during an open project are not saved to the Quartus Prime Settings File (.qsf) unless you explicitly call one of the following two Tcl commands: 1) export_assignments 2) project_close (unless "-dont_export_assignments" is specified) These two Tcl commands reside in the ::quartus::project Tcl package. You must save assignment changes before you run Quartus Prime command-line executables. Note, however, that the Tcl commands "execute_flow" and "execute_module" (part of the ::quartus::flow Tcl package) automatically call "export_assignments" before they run command-line executables.

Example Usage
## The most common use of export_assignments is to
## call it before doing a system call
## to call a compiler command-line executable
project_open $project_name
set_global_assignment -name FAMILY Stratix

## Before calling quartus_map, 
## write out the FAMILY assignment

## Now, call quartus_map
qexec "[file join $::quartus(binpath) quartus_map] $project_name"