Intel® Quartus® Prime Pro Edition User Guide: Scripting

ID 683432
Date 9/26/2022
Public

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

Document Table of Contents

4.1.28.25. get_project_revisions (::quartus::project)

The following table displays information for the get_project_revisions Tcl command:

Tcl Package and Version

Belongs to ::quartus::project

Syntax get_project_revisions [-h | -help] [-long_help] [ <project_name> ]
Arguments -h | -help Short help
-long_help Long help with examples and possible return values
<project_name> Project name
Description
Returns a list of revisions included in the specified project.
If the project name is not specified, the current project name
is used by default.

The first element in the list of revisions is the current
revision and is the same as the return value for the
"get_current_revision" command.
Example Usage
# Set the device family assignment to Stratix 
# for all revisions
project_open chiptrip
set original_revision [get_current_revision]

foreach revision [get_project_revisions] {
	puts "$revision"
	set_current_revision $revision
	set_global_assignment -name FAMILY Stratix
	export_assignments
}

set_current_revision $original_revision
project_close

# Open the project with the first available revision 
# and set the device family assignment to Stratix
set revision [lindex [get_project_revisions chiptrip] 0]
open_project -revision $revision chiptrip
set_global_assignment -name FAMILY Stratix
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.