[Tutorial] Obtain Objects in the collection in Genus Using Tcl

Published: by Creative Commons Licence (Last updated: )

Obtain Objects in the collection in Genus Using Tcl

Introduction

collection is an extension provided by EDA vendors like Synopsys to support a list of objects in their Tcl API. Usually, most database query operations in Cadence and Synopsys would return a collection object.

For instance, the following Cadence Genus command would return a hex value, which is assigned to the variable $reg_collection.

genus> set reg_collection [all_registers -clock clk]
0x123

Access collection

To access the objects of the collection, these commands could be used in Cadence Genus:

get_cell get_cells get_db

Examples

Complex query operations with filters may be slow in large design. Pre-store the query results might reduce runtime when it will be used in multiple places.

set reg_collection [all_registers -clock clk]
report_timing -from [all_inputs] -to [get_db $reg_collection]
report_timing -from [get_db $reg_collection] -to [get_db $reg_collection]
report_timing -from [get_db $reg_collection] -to [all_outputs]