文章目录
- primetime 常用的debug命令及注意事项
- 前言
- 一、report_timing
- 二、get_cells
- 三、all_fanin/out
- 四、get_attribute
-
- 1. get_attribute [get_clocks $clk] period
- 2. get_attribute [get_pins $reg/CP] clocks
- 3. get_attribute [get_ports $port] is_clock_source
- 4. get_attribute [get_clocks $clk] sources
- 5. get_attribute [get_pins $cell/*] is_clock_used_as_clock
- 6. get_attribute [get_pins u_top/u_trx/mux/S] case_value
- 7. get_attribute [get_pins $reg/CD] constant_value
- 8. get_attribute [get_timing_paths -pba_mode exhaustive -delay_type min -to $reg/D] endpoint_hold_time_value
- 五、change_selection
primetime 常用的debug命令及注意事项
前言
PrimeTime(PT)一般是用来sign-off 的静态时序分析工具。静态时序分析(STA)是设计流程中最重要的一步,它决定了设计能否在所要求的速度下工作。
一、report_timing
下面的指令会报出从startpoint到endpoint timing最差的一条path。
1. report setup timing violations
report_timing -transition_time -crosstalk_delta -cap -nets -derate -significant_digits 4 -nosplit -nworst 1 -path_type full_clock_expanded -pba_mode exhaustive -delay_type max -from $start_point -to $endpoint
2. report hold timing violations
report_timing -transition_time -crosstalk_delta -cap -nets -derate -significant_digits 4 -nosplit -nworst 1 -path_type full_clock_expanded -pba_mode exhaustive -delay_type min -from $start_point -to $endpoint
注意事项:
- 如果不想看clock tree,可以去掉-path_type full_clock_expanded, 这样可以把clock tree折叠起来;
- 如果想报gba timing, 则需要去掉-pba_mode exhaustive;
- 如果想要报不同clock domain下面timing最差的path, 需要加-sort_by group;
- 如果想要指定startpoint和endpoint的clock,可以用-from [get_clocks $startpoint_clock] -th $start_point -th $endpoint -to [get_clocks $endpoint_clock].
二、get_cells
1. get_cells -hier *d0nt*
Returns名字有d0nt的cell
2. get_cells -filter “ref_name=~TS6N05LVTB256X42M1WBZHODCP” -hier
Returns ref_name为TS6N05LVTB256X42M1WBZHODCP的cell