Query_collection, Usage, Options – Altera Quartus II Scripting User Manual
Page 553: Description, Example, Query_collection –423
Chapter 3: Tcl Packages & Commands
3–423
sta
© July 2013
Altera Corporation
Quartus II Scripting Reference Manual
query_collection
Usage
query_collection [-all] [-limit <limit_value>] [-list_format] [-report_format]
<collection>
Options
-all: Return all the collection objects.
-limit <limit_value>: Set number of collection objects to return.
-list_format: Return collection objects in a list format.
-report_format: Return collection objects in a format of one element per line.
<collection>: Object collection
Description
Query collection objects.
Collections can be obtained by Tcl commands such as get_clocks, get_ports, get_cells. If neither the -limit
nor the -all option is specified, then first 20 objects (if the collection has more than 20 objects) or all objects
(if the collection has less than or equal to 20 objects) are returned.
Example
project_open chiptrip
create_timing_netlist
set nodes [get_nodes Reg*]
# Get the first 100 nodes in the collection.
query_collection $nodes -limit 100
delete_timing_netlist
project_close