Altera Quartus II Scripting Instrukcja Użytkownika Strona 327

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 634
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 326
Chapter 3: Tcl Packages & Commands 3–197
project
© July 2013 Altera Corporation Quartus II Scripting Reference Manual
For entity-specific assignments, use the "-entity" option to retrieve the assignment(s) from the specified
entity. If the "-entity" option is not specified, the value for the FOCUS_ENTITY_NAME assignment is
used. If the FOCUS_ENTITY_NAME value is not found, the revision name is used.
Example
## Print out all the registered source files
## using the foreach_in_collection method
set file_asgn_col [get_all_global_assignments -name SOURCE_FILE]
foreach_in_collection file_asgn $file_asgn_col {
## Each element in the collection has the following
## format: {} {SOURCE_FILE} {<file_name>} {} {}
puts [lindex $file_asgn 2]
}
## Print out all global assignments
set asgn_col [get_all_global_assignments -name *]
foreach_in_collection asgn $asgn_col {
## Each element in the collection has the following
## format: { {} {<Assignment name>} {<Assignment value>} {<Entity
# name>} {<Tag data>} }
set name [lindex $asgn 1]
set value [lindex $asgn 2]
set entity [lindex $asgn 3]
set tag [lindex $asgn 4]
puts "$entity: $name = $value"
}
Przeglądanie stron 326
1 2 ... 322 323 324 325 326 327 328 329 330 331 332 ... 633 634

Komentarze do niniejszej Instrukcji

Brak uwag