当ECO插入buffer后导致hold违例,如何用incr_eco重新平衡?

解读

国内28 nm及以下工艺节点普遍采用“先修setup,后修hold”的ECO流程。

  1. 插入buffer本意是修max-transition或max-cap,但buffer本征延迟+连线延迟会把launch clock path拉长,导致capture edge采样过晚,从而在相同时钟周期内出现hold负裕量。
  2. incr_eco是Synopsys ICC2/Innovus等P&R工具提供的增量式ECO命令,它只动局部netlist+layout,不动base layer,保证mask成本最低。
  3. 面试官真正想听的,是“你能不能在增量模式下,把hold修掉,同时不破坏setup、DRC、功耗和面积”。因此答案必须给出“诊断→定位→修复→验证”四步闭环,并说明每一步用到的工具选项与脚本写法。

知识点

  1. hold违例机理:T_hold < T_capture_arrival – T_launch_arrival。插入buffer后T_launch_arrival增大,差值变小。
  2. incr_eco命令族:
    – create_eco_bundle / delete_eco_objects
    – eco_add_buffer / eco_resize_cell / eco_clone_cell
    – set_eco_options –target_hold –effort high –preserve_setup true
    – eco_route –incr –hold_fix
  3. 常用hold修复手段:
    – 在data path插delay cell(BUFX8、CLKBUF、甚至LVT→SVT换高阈值)
    – 在capture clock path插buffer,把capture edge往后推
    – 换驱动强度、换金属层、走长绕线(detour)
    – 若hold余量>150 ps,优先用eco_clone_cell复制现有buffer,减少新cell类型
  4. 约束优先级:
    set_eco_options –priority “DRC,hold,setup,area,power”
  5. 验证命令:
    report_timing –hold –nworst 10 –significant_digits 4
    verify_zrt_route –check_short –check_open
    check_physical_design –all

答案

step 1 诊断
report_timing –hold –collection [get_timing_paths –max_paths 1000 –slack_lesser_than 0]
找到slack最差的一条path,确认launch clock path中确实多了刚插的BUFX4。

step 2 定位
set eco_path [get_timing_paths –from launchFF/CP–tolaunchFF/CP –to captureFF/D]
set violators [get_cells –of [get_nets –of $eco_path –filter “full_name =~ eco”]]

step 3 修复(incr_eco脚本)
set_eco_options –target_hold –effort high –preserve_setup true –max_buffer_levels 4
eco_add_buffer –to $violators –cell_type CLKBUFX12 –legalize –incr_route

若仍欠40 ps,则在capture clock path加一级delay

eco_add_buffer –from [get_pins $captureFF/CP] –cell_type BUFX8 –clock_path true
eco_route –incr –hold_fix –target_slack 0.020

step 4 验证
report_timing –hold –path_type full_clock –slack_lesser_than 0.010
verify_zrt_route –check_short
write_changes –format icc2 –output eco_hold_fix.tcl

step 5 收敛
若setup出现-0.005 ns,用eco_resize_cell把data path的BUFX12降回BUFX8,再跑一次incr_eco,直到setup/hold双pass。

拓展思考

  1. 若hold违例出现在跨时钟域(CDC)路径,incr_eco能否自动识别false path?
    答:不能。必须先在SDC里set_false_path或set_max_delay –datapath_only,否则工具会盲目插buffer,可能把本来安全的CDC变成setup违例。

  2. 低功耗设计已插入大量ICG(Integrated Clock Gating),incr_eco插buffer时如何避免打断ICG后的clock tree平衡?
    答:用set_eco_options –preserve_clock_gate true,并在eco_add_buffer时加选项 –dont_touch_subtrees [get_cells –hierarchical –filter “is_integrated_clock_gating==true”]。

  3. 若芯片已进入taping-out阶段,金属层mask已冻结,只能用Metal-5及以上层做ECO,如何确保incr_eco不占用Metal-14?
    答:在lef里把Metal-1
    4设成FIXED,或在incr_eco前执行set_route_blockage –layers {M1 M2 M3 M4} –bbox {0 0 1000 1000} –pg_net false;同时eco_route加选项 –reroute changed_nets –layer_range {M5 M8}。