Revision_exists, Usage, Options – Altera Quartus II Scripting User Manual

Page 364: Description, Example, Revision_exists –234

Advertising
background image

3–234

Chapter 3: Tcl Packages & Commands

project

Quartus II Scripting Reference Manual

© July 2013

Altera Corporation

revision_exists

Usage

revision_exists [-project <project_name>] <revision_name>

Options

-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

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

Advertising