Intel® Quartus® Prime Pro Edition User Guide: Scripting
A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: reference_TCL_tcl_pkg_project_ver_7_0_cmd_revision_exists
Ixiasoft
Visible to Intel only — GUID: reference_TCL_tcl_pkg_project_ver_7_0_cmd_revision_exists
Ixiasoft
4.1.27.45. revision_exists (::quartus::project)
The following table displays information for the revision_exists Tcl command:
Tcl Package and Version | Belongs to ::quartus::project |
||
Syntax | revision_exists [-h | -help] [-long_help] [-project <project_name> ] <revision_name> | ||
Arguments | -h | -help | Short help | |
-long_help | Long help with examples and possible return values | ||
-project <project_name> | Project name | ||
<revision_name> | Revision name | ||
Description | Checks whether the revision exists for the specified project or currently open project. Returns 1, if the revision exists; returns 0, otherwise. |
||
Example Usage | ## Check if the specified revision exists ## in the specified project if [revision_exists -ARG(project) chiptrip speed_ch] { puts "Revision exists" } else { puts "Revision does not exist" } ## Create revision for the currently open ## project if it does not exist ## Set the current revision otherwise project_open chiptrip if [revision_exists speed_ch] { set_current_revision speed_ch } else { create_revision speed_ch } project_close |
||
Return Value | Code Name | Code | String Return |
TCL_OK | 0 | INFO: Operation successful | |
TCL_ERROR | 1 | ERROR: Project does not exist or has illegal name characters: <string>. Specify a legal project name. | |
TCL_ERROR | 1 | ERROR: Project name was not specified or open project does not exist. Open an existing project or specify the project name. |