Get_registers, Usage, Options – Altera Quartus II Scripting User Manual
Page 462: Description, Example, Get_registers –332

3–332
Chapter 3: Tcl Packages & Commands
sdc_ext
Quartus II Scripting Reference Manual
© July 2013
Altera Corporation
get_registers
Usage
get_registers [-no_duplicates] [-nocase] [-nowarn]
Options
-no_duplicates: Do not match duplicated register names
-nocase: Specifies the matching of node names to be case-insensitive
-nowarn: Do not issue warnings messages about unmatched patterns
Description
Returns a collection of registers in the design.
The default matching scheme returns not only registers whose names match the specified filter, but also
returns registers duplicated from these registers (cells automatically generated from these registers by the
Quartus II software). Use the -no_duplicates option to exclude duplicated registers.
The filter for the collection is a Tcl list of wildcards, and must follow standard Tcl or TimeQuest-extension
substitution rules. See help for the use_timequest_style_escaping command for details.
Example
project_open chiptrip
create_timing_netlist
set regs [get_registers *reg*]
foreach_in_collection reg $regs {
puts [get_object_info -name $reg]
}
delete_timing_netlist
project_close