Create via on thin p/g pin (ICC)

#Please run verify_pg_nets -std_cell_pin_connection ignore -macro_pin_connection all -pad_pin_connection ignore firstly
#Use the following command to capture all the bbox where the corresponding floating pin-shape happens.
    ##Users need to change the power.err for {CELL_NAME}.err
    ##Users can modify the Gnd-1-Pin to the other typr if needed. 
set where_drc_error_happens [get_attribute -class drc_error [get_drc_errors -type  {Pwr-1-Pin} -error_view sa_xsw.err] bbox] 
#set where_drc_error_happens [get_attribute -class drc_error [get_drc_errors -type  {Gnd-1-Pin} -error_view sa_xsw.err] bbox] 
foreach origin_bbox $where_drc_error_happens {
   ##The origin bbox is not recongnized as a bbox list, so need to convert to a list form.
   ##And enlarge the origin pin shape bbox by 0.05 on all four sides for change_selection within a region later (Line 16)
   if {[regexp {\{\{(\S+)\s+(\S+)\}\s+\{(\S+)\s+(\S+)\}\}} $origin_bbox match xx0 yy0 xx1 yy1]}  { 
              set x0 [expr $xx0 - 0.05]
              set y0 [expr $yy0 - 0.05]       
              set x1 [expr $xx1 + 0.05]
              set y1 [expr $yy1 + 0.05]
   }
  set bbox [list [list $x0 $y0] [list $x1 $y1]]
  change_selection [get_pin_shape * -within $bbox ] 
  set cel [get_attribute [get_cells -of [get_selection]] full_name]
  set orientation [get_attribute [get_cells $cel] orientation]
  set cel_bbox [get_attribute [get_cells $cel] bbox]
  set cel_y0 [expr [lindex [lindex $cel_bbox 0] 1] - 0.05]
  set cel_y1 [expr [lindex [lindex $cel_bbox 1] 1] + 0.05]
  set pin_shape [get_pin_shape [get_selection]]
  set bbox [get_attribute $pin_shape bbox]
  set layer [get_attribute  $pin_shape layer]
  #Do not forget the -all which will cause Error when meet VDD/VSS
  set net [get_flat_net -of [get_pin -of [get_pin_shape $pin_shape] -all] -all] 
  set x0 [lindex [lindex $bbox 0] 0] 
  set y0 [lindex [lindex $bbox 0] 1]
  set x1 [lindex [lindex $bbox 1] 0]
  set y1 [lindex [lindex $bbox 1] 1]
  set pin_length [expr $x1 - $x0]
  set width [expr $y1 - $y0]   
  #All the drc errors are the same , only need to strap the pin shape 3.82 towards the right direction. So the length is 3.82
  ## modify by jasons 2016/08/15
  if {$orientation == "S" || $orientation == "FN"}  {
    set s_x0 [expr $x0 - 2.86]
    set s_x1 $x1
    set s_bbox [list [list $s_x0 $cel_y0] [list $s_x1 $cel_y1]]
    set ss_x0 [get_attribute [get_net_shapes -of $net -within $s_bbox -filter "length > $pin_length"] bbox_llx]
    set ss_x1 [get_attribute [get_net_shapes -of $net -within $s_bbox -filter "length > $pin_length"] bbox_urx]
    set length_1 [expr $x0 - $ss_x0]
    set origin_x $ss_x0
    set origin_y [expr ($y0 + $y1) * 0.5]
    set origin [list $origin_x $origin_y]
    set via_x0 [expr $ss_x0 -0.05]
    set via_y0 [expr $y0 - 0.05]
    set via_x1 [expr $ss_x1 + 0.05]
    set via_y1 [expr $y1 + 0.05]
  } elseif {$orientation == "N" || $orientation == "FS"} {
    set s_x0 $x1
    set s_x1 [expr $x1 + 2.86]
    set s_bbox [list [list $s_x0 $cel_y0] [list $s_x1 $cel_y1]]

    set ss_x1 [get_attribute [get_net_shapes -of $net -within $s_bbox -filter "length > $pin_length"] bbox_urx]
    set ss_x0 [get_attribute [get_net_shapes -of $net -within $s_bbox -filter "length > $pin_length"] bbox_llx]
    set length_1 [expr $ss_x1 - $x1]
    set origin_x $x1
    set origin_y [expr ($y0 + $y1) * 0.5]
    set origin [list $origin_x $origin_y]
    set via_x0 [expr $ss_x0 - 0.05]
    set via_y0 [expr $y0 - 0.05]
    set via_x1 [expr $ss_x1 + 0.05]
    set via_y1 [expr $y1 + 0.05]
  }
  
  create_net_shape -no_snap -type wire -net $net -layer $layer -datatype 0 -path_type 0 -width $width -route_type user_enter -length $length_1 -origin $origin 
  ###sally add on 2014/09/11 to specify via type and disable drc check when create vias#########
  set_preroute_advanced_via_rule -move_via_to_center -x_offset 0.0 -y_offset 0.0 \
-x_step 0.0 -y_step 0.0 -contact_code VIA45_FBD20 \
-rotation_mode off
  set_preroute_drc_strategy -ignore_metal_blockage_layer -ignore_via_blockage_layer -no_design_rule  -min_layer M1 -max_layer AP 
  set via_bbox [list [list $via_x0 $via_y0] [list $via_x1 $via_y1]]
  create_preroute_vias  -from_layer $layer -from_object_strap -from_object_std_pin_connection -from_object_macro_io_pin -from_object_ring -from_object_user -from_object_std_pin -from_object_macro_io_pin_connection -from_object_bus -to_layer M5 -to_object_strap -to_object_std_pin_connection -to_object_macro_io_pin -to_object_ring -to_object_user -to_object_std_pin -to_object_macro_io_pin_connection -to_object_bus -within $via_bbox -advanced_via_rules           
}
###sally add -advanced_via_rules to use specified vias on 2014/09/11####### 
#set origin_bbox {{{1956.590 3519.700} {1958.540 3519.820}}}
#check if fixed
verify_pg_nets -std_cell_pin_connection ignore -macro_pin_connection all -pad_pin_connection ignore > ./reports/verify_pg_after_power_fix.rpt

save_mw_cel -as power_fix
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市移国,隨后出現(xiàn)的幾起案子秤标,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 221,820評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件腮介,死亡現(xiàn)場離奇詭異靠闭,居然都是意外死亡,警方通過查閱死者的電腦和手機塞琼,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,648評論 3 399
  • 文/潘曉璐 我一進店門菠净,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人彪杉,你說我怎么就攤上這事毅往。” “怎么了派近?”我有些...
    開封第一講書人閱讀 168,324評論 0 360
  • 文/不壞的土叔 我叫張陵攀唯,是天一觀的道長。 經(jīng)常有香客問我渴丸,道長侯嘀,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 59,714評論 1 297
  • 正文 為了忘掉前任谱轨,我火速辦了婚禮残拐,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘碟嘴。我一直安慰自己溪食,他們只是感情好,可當我...
    茶點故事閱讀 68,724評論 6 397
  • 文/花漫 我一把揭開白布娜扇。 她就那樣靜靜地躺著错沃,像睡著了一般。 火紅的嫁衣襯著肌膚如雪雀瓢。 梳的紋絲不亂的頭發(fā)上枢析,一...
    開封第一講書人閱讀 52,328評論 1 310
  • 那天,我揣著相機與錄音刃麸,去河邊找鬼醒叁。 笑死,一個胖子當著我的面吹牛泊业,可吹牛的內(nèi)容都是我干的把沼。 我是一名探鬼主播,決...
    沈念sama閱讀 40,897評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼吁伺,長吁一口氣:“原來是場噩夢啊……” “哼饮睬!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起篮奄,我...
    開封第一講書人閱讀 39,804評論 0 276
  • 序言:老撾萬榮一對情侶失蹤捆愁,失蹤者是張志新(化名)和其女友劉穎割去,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體昼丑,經(jīng)...
    沈念sama閱讀 46,345評論 1 318
  • 正文 獨居荒郊野嶺守林人離奇死亡呻逆,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,431評論 3 340
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了菩帝。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片咖城。...
    茶點故事閱讀 40,561評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖胁附,靈堂內(nèi)的尸體忽然破棺而出酒繁,到底是詐尸還是另有隱情,我是刑警寧澤控妻,帶...
    沈念sama閱讀 36,238評論 5 350
  • 正文 年R本政府宣布州袒,位于F島的核電站,受9級特大地震影響弓候,放射性物質(zhì)發(fā)生泄漏郎哭。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,928評論 3 334
  • 文/蒙蒙 一菇存、第九天 我趴在偏房一處隱蔽的房頂上張望夸研。 院中可真熱鬧,春花似錦依鸥、人聲如沸亥至。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,417評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽姐扮。三九已至,卻和暖如春衣吠,著一層夾襖步出監(jiān)牢的瞬間茶敏,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,528評論 1 272
  • 我被黑心中介騙來泰國打工缚俏, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留惊搏,地道東北人。 一個月前我還...
    沈念sama閱讀 48,983評論 3 376
  • 正文 我出身青樓忧换,卻偏偏與公主長得像恬惯,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子包雀,可洞房花燭夜當晚...
    茶點故事閱讀 45,573評論 2 359

推薦閱讀更多精彩內(nèi)容