Altera Quartus II Scripting User Manual
Page 303

Chapter 3: Tcl Packages & Commands
3–173
misc
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
puts "Section ID ($sect_id)"
puts "Assignment Name ($name)"
puts "Assignment Value ($value)"
}
## Get a collection of instance assignments
set collection_of_instance_assignments \
[get_all_instance_assignments -name *]
## Display the collection string representation
puts $collection_of_instance_assignments
## Iterate through the collection and display
## the information for each instance assignment
foreach_in_collection instance $collection_of_instance_assignments {
set sect_id [lindex $instance 0]
set src [lindex $instance 1]
set dest [lindex $instance 2]
set name [lindex $instance 3]
set value [lindex $instance 4]
## Now, display the content of the instance assignment
puts "Section ID ($sect_id)"
puts "Source ($src)"
puts "Destination ($dest)"
puts "Assignment Name ($name)"
puts "Assignment Value ($value)"
}
## Get a collection of parameters
set collection_of_parameters [get_all_parameters -name *]
## Display the collection string representation
puts $collection_of_parameters
## Iterate through the collection and display
## the information for each parameter
foreach_in_collection parameter $collection_of_parameters {
set dest [lindex $parameter 0]
set name [lindex $parameter 1]
set value [lindex $parameter 2]
## Now, display the content of the parameter
puts "Destination ($dest)"
puts "Parameter Name ($name)"
puts "Parameter Value ($value)"
}
## Get a collection of all node name ids from a successful
## compilation
set collection_of_name_ids [get_names -filter *]
## Display the collection string representation
puts $collection_of_name_ids
## Iterate through the collection and display
## the information for each name id
foreach_in_collection name_id $collection_of_name_ids {
set parent_name_id [get_name_info -info parent_name_id $name_id]
set base_name [get_name_info -info base_name $name_id]
set entity_name [get_name_info -info entity_name $name_id]
set instance_name [get_name_info -info instance_name $name_id]
set full_path [get_name_info -info full_path $name_id]
set short_full_path [get_name_info -info short_full_path $name_id]
set node_type [get_name_info -info node_type $name_id]
set creator [get_name_info -info creator $name_id]
set signaltapii [get_name_info -info signaltapii $name_id]