所需文件

標(biāo)準(zhǔn)流程產(chǎn)生的文件

  • spef(start_rc 提取)
  • netlist(布局布線后的網(wǎng)表,以及邏輯綜合后的網(wǎng)表)
  • sdc(邏輯綜合和布局布線)

自定義的文件提取

  • pt時(shí)序報(bào)告(邏輯綜合和布局布線后锰提,獲取每個(gè)寄存器數(shù)據(jù)路徑處的slack值的值)
  report_timing -max_paths 100 -slack_lesser_than 100 -nworst 1 -nets -transition_time -capacitance -input_pins -delay_type max -significant_digits 7 -rise_to [all_registers -data_pins]
  • 布局信息(邏輯綜合和布線后试躏,獲取數(shù)據(jù)集)
    1.導(dǎo)入特征提取函數(shù)(布局布線后的特征提取函數(shù))
proc format_float {number {format_str "%.6f"}} {
        switch -exact -- $number {
        UNINIT { }
        INFINITY { }
             default {set number [format $format_str $number]}
           }
           return $number;
}

proc show_paths {args} {
           echo [format "%-20s %-20s %7s" "From" "To" "Slack"]
           echo "--------------------------------------------------------"
           foreach_in_collection path [get_timing_paths -nworst 1] {
             set slack [get_attribute $path slack]
             set startpoint [get_attribute $path startpoint]
             set endpoint [get_attribute $path endpoint]
             set point [get_attribute $path points]
         echo [llength $point]

         foreach_in_collection cell $point  {
            echo $cell
            echo [format "%s " [get_attribute $cell full_name] ]        
        }
           }
         }

proc show_arcs {args} {

           set arcs [eval [concat get_timing_arcs $args]]
           echo [format "%15s    %-15s  %8s %8s  %s" "from_pin" "to_pin" \
                     "rise" "fall" "is_cellarc"]
           echo [format "%15s    %-15s  %8s %8s  %s" "--------" "------" \
                     "----" "----" "----------"]

           foreach_in_collection arc $arcs {
             set is_cellarc [get_attribute $arc is_cellarc]
             set fpin [get_attribute $arc from_pin]
             set tpin [get_attribute $arc to_pin]
             set rise [get_attribute $arc delay_max_rise]
             set fall [get_attribute $arc delay_max_fall]

             set from_pin_name [get_attribute $fpin full_name]

             set to_pin_name [get_attribute $tpin full_name]
             echo [format "%15s -> %-15s  %8s %8s  %s  %s %s %s" \
                 $from_pin_name\
                 $to_pin_name \
                 [format_float $rise]\
                 [format_float $fall] \
                 $is_cellarc\
                 [get_attribute $arc is_disabled]\
                 [get_attribute $arc when]\
                 [get_attribute $arc sense]\
                 ]
           }
         }

proc export_timing {} { 
  #Inport
  set count 0
  echo "Inport" 
  echo [sizeof_collection [get_ports * -filter "direction==in"]]
  foreach_in_collection inPort [get_ports * -filter "direction==in"] {
    echo [format "%s %s %s"\
    [get_attribute $inPort full_name] \
    [get_attribute $inPort x_coordinate]\
    [get_attribute $inPort y_coordinate]\
    ]
}
  #Outport
  echo "Outport"
  echo [sizeof_collection [get_ports * -filter "direction==out"] ]
  foreach_in_collection outPort [get_ports * -filter "direction==out"] {
    echo [format "%s %s %s"\
    [get_attribute $outPort full_name]\
    [get_attribute $outPort x_coordinate]\
    [get_attribute $outPort y_coordinate]\
    ]
}
  set count 0
    #com_cell
  echo "com_cell"
  echo [sizeof_collection [get_cells -hierarchical * \
  -filter "is_combinational==true" ]]
  foreach_in_collection cell [get_cells -hierarchical * \
  -filter is_combinational==true] {
      if {  [get_attribute $cell is_hierarchical] ==false \
           && [get_attribute $cell number_of_pins] >1} {
             echo [format "%s" [get_attribute $cell full_name]  ]
             foreach_in_collection pin [get_pins -of_objects $cell \
             -filter "direction==in"] {
               foreach_in_collection pinOut [get_pins -of_objects $cell \
               -filter  "direction==out"] {
                # name  slew  capacitance location1 location2 delay
                  echo [format "%s %s %s %s %s %s %s,%s %s %s %s %s,%s | %s,%s"\
                  [get_attribute $pin full_name]\
                  [get_attribute $pin actual_rise_transition_max]\
                  [get_attribute $pin actual_fall_transition_max]\
                  [get_attribute $pin pin_capacitance_max_rise] \
                  [get_attribute $pin pin_capacitance_max_fall]\
                  [get_attribute $pin x_coordinate]\
                  [get_attribute $pin y_coordinate] \
                  \
                  [get_attribute $pinOut full_name] \
                  [get_attribute $pinOut x_coordinate]\
                  [get_attribute $pinOut y_coordinate]\
                  [get_attribute $pinOut actual_rise_transition_max]\
                  [get_attribute $pinOut actual_fall_transition_max]\
                  \
                  [get_attribute [get_timing_arcs -from $pin -to $pinOut ] delay_max_rise]\
                  [get_attribute [get_timing_arcs -from $pin -to $pinOut ] delay_max_fall]\
                  \
                  [get_attribute [get_timing_arcs -from $pin -to $pinOut] sense ] ]       
                  }                      
                  }         
                  }  else  {
                  set count [expr {$count +1}] 
                  echo [format "alone %s " [get_attribute $cell full_name]  ]
                 } 

    }
  #reg_cell
  echo "reg_cell"
  echo [sizeof_collection [get_cells -hierarchical * \
  -filter "is_combinational==false" ]]
    foreach_in_collection cell [get_cells -hierarchical * \
  -filter "is_combinational==false"] {
    if { [get_attribute $cell is_hierarchical] ==false \
      && [get_attribute $cell number_of_pins] !=1} {
        echo [format "%s " [get_attribute $cell full_name]  ]
        foreach_in_collection pin [get_pins -of_objects $cell \
    -filter "direction==in"] {  
            foreach_in_collection pinOut [get_pins -of_objects $cell \
      -filter "direction==out"] {
            # name  slew  capacitance location1 location2 delay         
            echo [format "%s %s %s %s %s %s %s %s,%s %s %s %s,%s | %s,%s"\
      [get_attribute $pin full_name]\
      [get_attribute $pin actual_rise_transition_max]\
      [get_attribute $pin actual_fall_transition_max]\
      [get_attribute $pin pin_capacitance_max_rise] \
      [get_attribute $pin pin_capacitance_max_fall]\
            [get_attribute $pin x_coordinate]\
      [get_attribute $pin y_coordinate] \
      \
            [get_attribute $pinOut full_name] \
      [get_attribute $pinOut x_coordinate]\
      [get_attribute $pinOut y_coordinate]\
      [get_attribute $pinOut actual_rise_transition_max]\
      [get_attribute $pinOut actual_fall_transition_max]\
      \
      [get_attribute [get_timing_arcs -from $pin -to $pinOut ] delay_max_rise]\
      [get_attribute [get_timing_arcs -from $pin -to $pinOut ] delay_max_fall]\
      \
      [get_attribute [get_timing_arcs -from $pin -to $pinOut ] sense]
      ]
            }
                    
        } 
    }  else  {
       set count [expr {$count +1}] 
       echo [format "alone %s " [get_attribute $cell full_name]  ]  
     }

    }
  echo $count
  echo "netflag"
    foreach_in_collection net  [get_nets -hierarchical *] {
        echo [format "%s %s %s %s" \
    [get_attribute $net full_name]\
    [get_attribute $net pin_capacitance_max_rise]\
    [get_attribute $net pin_capacitance_max_fall]\
    [get_attribute $net wire_capacitance_max]\
    ]
        foreach_in_collection driver [get_attribute $net leaf_drivers] {
            foreach_in_collection sink [get_attribute $net leaf_loads] {
                  #start end delay
                  echo [format "%s  %s  %s  %s" \
            [get_attribute $driver full_name] \
            [get_attribute $sink full_name] \
            [get_attribute [get_timing_arcs -from $driver -to $sink ] delay_max_rise]\
            [get_attribute [get_timing_arcs -from $driver -to $sink ] delay_max_fall]
        ]
            }
        }
    }
}

邏輯綜合后,特征提取的函數(shù)

proc format_float {number {format_str "%.6f"}} {
        switch -exact -- $number {
        UNINIT { }
        INFINITY { }
             default {set number [format $format_str $number]}
           }
           return $number;
}

proc show_paths {args} {
           echo [format "%-20s %-20s %7s" "From" "To" "Slack"]
           echo "--------------------------------------------------------"
           foreach_in_collection path [get_timing_paths -nworst 1] {
             set slack [get_attribute $path slack]
             set startpoint [get_attribute $path startpoint]
             set endpoint [get_attribute $path endpoint]
             set point [get_attribute $path points]
         echo [llength $point]

         foreach_in_collection cell $point  {
            echo $cell
            echo [format "%s " [get_attribute $cell full_name] ]        
        }
           }
         }

proc show_arcs {args} {

           set arcs [eval [concat get_timing_arcs $args]]
           echo [format "%15s    %-15s  %8s %8s  %s" "from_pin" "to_pin" \
                     "rise" "fall" "is_cellarc"]
           echo [format "%15s    %-15s  %8s %8s  %s" "--------" "------" \
                     "----" "----" "----------"]

           foreach_in_collection arc $arcs {
             set is_cellarc [get_attribute $arc is_cellarc]
             set fpin [get_attribute $arc from_pin]
             set tpin [get_attribute $arc to_pin]
             set rise [get_attribute $arc delay_max_rise]
             set fall [get_attribute $arc delay_max_fall]

             set from_pin_name [get_attribute $fpin full_name]

             set to_pin_name [get_attribute $tpin full_name]
             echo [format "%15s -> %-15s  %8s %8s  %s  %s %s %s" \
                 $from_pin_name\
                 $to_pin_name \
                 [format_float $rise]\
                 [format_float $fall] \
                 $is_cellarc\
                 [get_attribute $arc is_disabled]\
                 [get_attribute $arc when]\
                 [get_attribute $arc sense]\
                 ]
           }
         }

proc export_timing {} { 
  #Inport
  set pad "0"
  set count 0
  echo "Inport" 
  echo [sizeof_collection [get_ports * -filter "direction==in"]]
  foreach_in_collection inPort [get_ports * -filter "direction==in"] {
    echo [format "%s %s %s"\
    [get_attribute $inPort full_name] \
    $pad\
    $pad\
    ]
}
  #Outport
  echo "Outport"
  echo [sizeof_collection [get_ports * -filter "direction==out"] ]
  foreach_in_collection outPort [get_ports * -filter "direction==out"] {
    echo [format "%s %s %s"\
    [get_attribute $outPort full_name]\
    $pad\
    $pad\
    ]
}
  set count 0
    #com_cell
  echo "com_cell"
  echo [sizeof_collection [get_cells -hierarchical * \
  -filter "is_combinational==true" ]]
  foreach_in_collection cell [get_cells -hierarchical * \
  -filter is_combinational==true] {
      if {  [get_attribute $cell is_hierarchical] ==false \
           && [get_attribute $cell number_of_pins] >1} {
             echo [format "%s" [get_attribute $cell full_name]  ]
             foreach_in_collection pin [get_pins -of_objects $cell \
             -filter "direction==in"] {
               foreach_in_collection pinOut [get_pins -of_objects $cell \
               -filter  "direction==out"] {
                # name  slew  capacitance location1 location2 delay
                  echo [format "%s %s %s %s %s %s %s,%s %s %s %s %s,%s | %s,%s"\
                  [get_attribute $pin full_name]\
                  [get_attribute $pin actual_rise_transition_max]\
                  [get_attribute $pin actual_fall_transition_max]\
                  [get_attribute $pin pin_capacitance_max_rise] \
                  [get_attribute $pin pin_capacitance_max_fall]\
                  $pad\
                  $pad\
                  \
                  [get_attribute $pinOut full_name] \
                  $pad\
                  $pad\
                  [get_attribute $pinOut actual_rise_transition_max]\
                  [get_attribute $pinOut actual_fall_transition_max]\
                  \
                  [get_attribute [get_timing_arcs -from $pin -to $pinOut ] delay_max_rise]\
                  [get_attribute [get_timing_arcs -from $pin -to $pinOut ] delay_max_fall]\
                  \
                  [get_attribute [get_timing_arcs -from $pin -to $pinOut] sense ] ]       
                  }                      
                  }         
                  }  else  {
                  set count [expr {$count +1}] 
                  echo [format "alone %s " [get_attribute $cell full_name]  ]
                 } 

    }
  #reg_cell
  echo "reg_cell"
  echo [sizeof_collection [get_cells -hierarchical * \
  -filter "is_combinational==false" ]]
    foreach_in_collection cell [get_cells -hierarchical * \
  -filter "is_combinational==false"] {
    if { [get_attribute $cell is_hierarchical] ==false \
      && [get_attribute $cell number_of_pins] !=1} {
        echo [format "%s " [get_attribute $cell full_name]  ]
        foreach_in_collection pin [get_pins -of_objects $cell \
    -filter "direction==in"] {  
            foreach_in_collection pinOut [get_pins -of_objects $cell \
      -filter "direction==out"] {
            # name  slew  capacitance location1 location2 delay         
            echo [format "%s %s %s %s %s %s %s %s,%s %s %s %s,%s | %s,%s"\
      [get_attribute $pin full_name]\
      [get_attribute $pin actual_rise_transition_max]\
      [get_attribute $pin actual_fall_transition_max]\
      [get_attribute $pin pin_capacitance_max_rise] \
      [get_attribute $pin pin_capacitance_max_fall]\
            $pad\
      $pad \
            [get_attribute $pinOut full_name] \
      \
      $pad\
      $pad\
      [get_attribute $pinOut actual_rise_transition_max]\
      [get_attribute $pin actual_fall_transition_max]\
      \
      [get_attribute [get_timing_arcs -from $pin -to $pinOut ] delay_max_rise]\
      [get_attribute [get_timing_arcs -from $pin -to $pinOut ] delay_max_fall]\
      \
      [get_attribute [get_timing_arcs -from $pin -to $pinOut ] sense]
      ]
            }
                    
        } 
    }  else  {
       set count [expr {$count +1}] 
       echo [format "alone %s " [get_attribute $cell full_name]  ]  
     }

    }
  echo $count
  echo "netflag"
    foreach_in_collection net  [get_nets -hierarchical *] {
        echo [format "%s %s %s %s" \
    [get_attribute $net full_name]\
    [get_attribute $net pin_capacitance_max_rise]\
    [get_attribute $net pin_capacitance_max_fall]\
    [get_attribute $net wire_capacitance_max]\
    ]
        foreach_in_collection driver [get_attribute $net leaf_drivers] {
            foreach_in_collection sink [get_attribute $net leaf_loads] {
                  #start end delay
                  echo [format "%s  %s  %s  %s" \
            [get_attribute $driver full_name] \
            [get_attribute $sink full_name] \
            [get_attribute [get_timing_arcs -from $driver -to $sink ] delay_max_rise]\
            [get_attribute [get_timing_arcs -from $driver -to $sink ] delay_max_fall]
        ]
            }
        }
    }
}

2.輸出特征

export_timing
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末政己,一起剝皮案震驚了整個(gè)濱河市益兄,隨后出現(xiàn)的幾起案子燕垃,更是在濱河造成了極大的恐慌,老刑警劉巖允华,帶你破解...
    沈念sama閱讀 207,113評(píng)論 6 481
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件圈浇,死亡現(xiàn)場(chǎng)離奇詭異,居然都是意外死亡靴寂,警方通過查閱死者的電腦和手機(jī)磷蜀,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 88,644評(píng)論 2 381
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來百炬,“玉大人褐隆,你說我怎么就攤上這事∑视唬” “怎么了庶弃?”我有些...
    開封第一講書人閱讀 153,340評(píng)論 0 344
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)蜜宪。 經(jīng)常有香客問我虫埂,道長(zhǎng),這世上最難降的妖魔是什么圃验? 我笑而不...
    開封第一講書人閱讀 55,449評(píng)論 1 279
  • 正文 為了忘掉前任掉伏,我火速辦了婚禮,結(jié)果婚禮上澳窑,老公的妹妹穿的比我還像新娘斧散。我一直安慰自己,他們只是感情好摊聋,可當(dāng)我...
    茶點(diǎn)故事閱讀 64,445評(píng)論 5 374
  • 文/花漫 我一把揭開白布鸡捐。 她就那樣靜靜地躺著,像睡著了一般麻裁。 火紅的嫁衣襯著肌膚如雪箍镜。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 49,166評(píng)論 1 284
  • 那天煎源,我揣著相機(jī)與錄音色迂,去河邊找鬼。 笑死手销,一個(gè)胖子當(dāng)著我的面吹牛歇僧,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播锋拖,決...
    沈念sama閱讀 38,442評(píng)論 3 401
  • 文/蒼蘭香墨 我猛地睜開眼诈悍,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼祸轮!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起侥钳,我...
    開封第一講書人閱讀 37,105評(píng)論 0 261
  • 序言:老撾萬榮一對(duì)情侶失蹤适袜,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后慕趴,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體痪蝇,經(jīng)...
    沈念sama閱讀 43,601評(píng)論 1 300
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 36,066評(píng)論 2 325
  • 正文 我和宋清朗相戀三年冕房,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了躏啰。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 38,161評(píng)論 1 334
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡耙册,死狀恐怖给僵,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情详拙,我是刑警寧澤帝际,帶...
    沈念sama閱讀 33,792評(píng)論 4 323
  • 正文 年R本政府宣布,位于F島的核電站饶辙,受9級(jí)特大地震影響蹲诀,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜弃揽,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 39,351評(píng)論 3 307
  • 文/蒙蒙 一脯爪、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧矿微,春花似錦痕慢、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,352評(píng)論 0 19
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)。三九已至娜庇,卻和暖如春塔次,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背名秀。 一陣腳步聲響...
    開封第一講書人閱讀 31,584評(píng)論 1 261
  • 我被黑心中介騙來泰國(guó)打工励负, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留,地道東北人泰偿。 一個(gè)月前我還...
    沈念sama閱讀 45,618評(píng)論 2 355
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像蜈垮,于是被迫代替她去往敵國(guó)和親耗跛。 傳聞我的和親對(duì)象是個(gè)殘疾皇子裕照,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 42,916評(píng)論 2 344

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