Get_all_assignments, Usage, Options – Altera Quartus II Scripting User Manual
Page 323: Description, Get_all_assignments –193

Chapter 3: Tcl Packages & Commands
3–193
project
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
get_all_assignments
Usage
get_all_assignments [-entity
Options
-entity
-from
-name
-section_id
-tag : Option to tag data to this assignment
-to
matching)
-type
return
Description
Returns a collection of all matching global, instance, parameter, or default assignment ids. To iterate
through each assignment id in this collection, use the Tcl command "foreach_in_collection".
To view details for the assignment that is associated with the assignment id, use the Tcl command
"get_assignment_info".
The "get_all_assignments" command is easier to use than the deprecated commands listed in
The "-name" option is not case sensitive. The "-to" and "-from" options are case sensitive.
These options can take string patterns containing special characters from the set "*?\[]" as values. The
values are matched using Tcl string matching. Note that bus names are automatically detected and do not
need to be escaped. Bus names have the following format:
The
greater than or equal to zero or it can be the character "*" used for string matching. Notice that the
names and can be used as follows:
# To match index 0 of bus "a", type:
get_all_assignments -type instance -name LOCATION -to a[0]
# To match all indices of bus "a", type:
get_all_assignments -type instance -name LOCATION -to a[*]
Table 3–1. -type Option
Value for -type Option
Deprecated Tcl Command
Description
default
get_all_quartus_defaults
Returns only default assignments
global
get_all_global_assignments
Returns only global assignments
instance
get_all_instance_assignments Returns only instance assignments
parameter
get_all_parameters
Returns only parameter assignments