Get_project_revisions, Usage, Options – Altera Quartus II Scripting User Manual
Page 347: Description, Example, Get_project_revisions –217
Chapter 3: Tcl Packages & Commands
3–217
project
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
get_project_revisions
Usage
get_project_revisions <project_name>
Options
<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
# 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