1.setOptMode -opt_leakage_to_dynamic_ratio
调整漏电与动态功耗的优化权重( 1.0
表示仅优化漏电)。
需指定-opt_power_effort(none | low | high),同时使用
2.set_ccopt_property max_source_to_sink_net_length $vars(cts_length)
设置cts长tree时,inv之间的距离
3.attachTerm的用法
attachTerm inst instTerm Net
4.设置cell的状态
dbSet [dbGet top.insts.name WELLTAP* -p].pstatus placed
5.选中G2层属性为notype类型的net
select_obj [dbget [dbget [dbget top.pgNets.name $pgNet -p ].swires.layer.name G2 -p2 ].shape notype -p ]
6。消除由于report_narrow_channel去除marker的命令
set horizon_channels [report_narrow_channel -width 11 -direction x ]
sleep 5
violationBrowserHide -tool Other
violationBrowserHide -tool checkFPlan
violationBrowserHide -tool checkFPlan -type narrowChannels
7.join和expr配合计算和
expr [join $single_driver_net_list +]
8.get_db 得到pin的load或者driver cell的名字
get_db [get_db ports $signal_btsv_port] .net.drivers.inst.base_cell.name
10.检查tie cell的fanout及distance
setTieHiLoMode -maxFanout 1 -maxDistance 30。随后再verifyTieCell命令,在当前目录下查看报告即可
11.将小数变为百分数
set ulvt_ratio_2 [format "%.2f%%" [expr {$ulvt_ratio * 100}]]
12.sting match的使用
if {[string match "TIE*" $driver_cell_type] || [string match "DLY*" $driver_cell_type]}
13.获取design中cts上的buf或者inv
set inv_buf_names [get_db [get_db [get_db [get_db nets -if .is_clock ] .drivers -if .obj_type==pin] .inst -if {.is_inverter || .is_buffer}] .name]
14.如何根据via的名字得到via的横向个数与纵向个数
set cut_column [get_db [get_db [get_db nets -if .is_clock ] .vias.via_def $clock_via_name] .cut_columns]
set cut_row [get_db [get_db [get_db nets -if .is_clock ].vias.via_def $clock_via_name] .cut_rows]