1)读入设计
read_design -physical_data mydesign.enc.dat mydesign
2)读入lef
read_spef -rc_corner RCmax -decoupled mydesign.spef.gz
3)设置分析模式
set_power_analysis_mode -reset
set_power_analysis_mode
-analysis_view func_wc
-write_static_currents true
-binary_db_name staticPower.db
-create_binary_db true
-method staitc
-power_grid_library Power_Grid_library.cl
4)可选,如果没有指定.lib,该命令定义insstance/cell的power
set_power -reset
set_power -cell -pin VDD 0.5
5)设置activity (可选)
set_switching_activity -reset
set_switching_activity -input_port rst -activity 0.25 -duty 0.30
set_switching_activity
-pin [get_pins -of_objects [get_cells RC_CGIC* -hierarchical] -filter "@direction == out"]
-activity 0.1
propagate_activity
检查设置的activity
get_activity -port rst
6)给unassigned nets设置默认的activities
set_defult_switching_activity
-input_activity 0.3
-period 4.0
-clock_gates_output_ratio 0.5
-seq_activity 1
set_power_output_dir static_pwr
7)运行功耗分析
report_power -outfile static_pwr.rpt