export_assignments (::quartus::project)
The following table displays information for the export_assignments Tcl command:
Tcl Package and Version |
Belongs to ::quartus::project 6.0 |
|||
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 | |||
Description |
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 export_assignments ## Now, call quartus_map qexec "[file join $::quartus(binpath) quartus_map] $project_name" |
|||
Return Value | Code Name | Code | String Return | |
TCL_OK | 0 | INFO: Operation successful | ||
TCL_ERROR | 1 | ERROR: Can't find active revision name. Make sure there is an open, active revision name. | ||
TCL_ERROR | 1 | ERROR: Entity does not exist or uses illegal name characters: <string>. Specify a legal entity name. | ||
TCL_ERROR | 1 | ERROR: Can't write settings file *.qsf. Make sure the *.qsf file is writeable. | ||
TCL_ERROR | 1 | ERROR: Can't run Tcl command while a process is in progress: <string>. To run the command, stop the compilation or simulation; or wait for the compilation or simulation to complete. | ||
TCL_ERROR | 1 | ERROR: You must open a project before you can use this command. |