学习日记 sort_collection

innovus 命令 sort_collection

sort_collection
[-help]
collection
[-dictionary]
{ property_or_list_of_properties }
[-descending]
返回基于属性的排序 objects 集合。
命令选项:
collection  : 指定要排序的集合。该集合必须是以下任何一种 object types 的同构集合:cell、clock、design、lib、lib_cell、lib_pin、lib_timing_arc、net、path_group、pin、port、timing_arc、timing_path 或 timing_point ;
-descending  : 按降序对集合中的 object 进行排序;  Default: 对集合按升序进行排序;
-dictionary  : 按字典顺序对集合中的 object 进行排序;
property | list_of_properties  : 按指定属性对集合进行排序。您可以指定与 object type 关联的任何属性;
示例:
抓U开头的 instance ,并按照 pin 数量降序排列:
set col1 [get_cells -hierarchical -filter "hierarchical_name =~ U*"] 
sort_collection $col1  pin_count -descending
按名称顺序排列名字带 172 的 instance:
set col2 [get_cell -filter "hierarchical_name =~ *172*"]
sort_collection $col2  hierarchical_name -dictionary
按照 cell arcs 的数量对 10 条 path 降序排列,并列出 capture point :
set rep [report_timing -collection -max_paths 10]
get_db [sort_collection $rep num_cell_arcs -descending ] .capturing_point.name

命令 sizeof_collection

sizeof_collection collection
返回指定集合中包含的 object 总数。如果集合包含不同类型的 object,则 sizeof_collection 返回集合中所有不同类型的 object 的总和。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值