list_property
-type obj_type
该命令的功能是列出选中obj的所有属性,-type后的属性有cell,clock ,design, lib,lib_cell, lib_pg_pin,lib_pin ,lib_timing_arc,net , path_group,pg_net, pg_pin, pin , port, si_attacker , si_victim, timing_arc, timing_path ,timing_point。
eg:
>list_property -type cell
property | return_type
area | float
clock_gating_integrated_cell | string
early_cell_check_derate_factor | float
early_cell_check_mean_derate_factor | float
is_always_on | boolean
is_black_box | boolean
is_buffer | boolean
is_clock_gating_check | boolean
is_combinational | boolean
is_disable_timing | boolean
is_dont_touch | boolean
is_hierarchical | boolean
is_inverter | boolean
is_isolation_cell | boolean
is_level_shifter | boolean
is_macro_cell | boolean
is_memory_cell | boolean
is_power_switch | boolean
is_retention | boolean
is_rise_edge_triggered | boolean
在使用这个命令获取到cell的属性之后,就可以通过属性来匹配你想抓取的任何obj。比如说想要抓取设计中的所有macro,可以通过命令dbget [dbget top.insts.cell.subClass block -p2].name来抓取,也可以通过如下命令来抓取:get_object_name [get_cells -hierarchical -filter "is_macro_cell== true"],如果想要使抓取的结果清晰的呈现在terminal上,需要加上foreach循环。
>foreach macro [get_object_name [get_cells -hierarchical -filter "is_macro_cell== true"]] {echo $macro}