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 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

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
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.

Did you find the information on this page useful?

Characters remaining:

Feedback Message