Altera Quartus II Scripting Instrukcja Użytkownika Strona 364

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 634
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 363
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
Przeglądanie stron 363
1 2 ... 359 360 361 362 363 364 365 366 367 368 369 ... 633 634

Komentarze do niniejszej Instrukcji

Brak uwag