quartus::close_project (::quartus::project2)
The following table displays information for the quartus::close_project Tcl command:
| Tcl Package and Version |
Belongs to ::quartus::project2 1.0 |
|||
| Syntax | quartus::close_project [-h | -help] [-long_help] [-dont_export_assignments] | |||
| Arguments | -h | -help | Short help | ||
| -long_help | Long help with examples and possible return values | |||
| -dont_export_assignments | Do not export assignments to file | |||
| Description |
Closes an open project. The assignments created or modified during an open project are committed to the Quartus Prime Settings File (.qsf) during a "project_close", unless you use the "-dont_export_assignments" option. |
|||
| Example Usage |
## Close the project if open
if [is_project_open] {
quartus::close_project
}
## Close the project if open
## and do not export the assignments
if [is_project_open] {
quartus::close_project -dont_export_assignments
}
|
|||
| 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: Failed when attempting to write assignments back to QSF. | ||
| 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. | ||