• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X Capture CIS
  3. TCL problem when get net name of pin in hierarchy desig...

Stats

  • State Not Answered
  • Replies 1
  • Subscribers 43
  • Views 1432
  • Members are here 0
More Content

TCL problem when get net name of pin in hierarchy design

LL202411014740
LL202411014740 10 months ago

when I get net name of a pin in hierarchy design,I get the ref path name,name,number successfully ,but failed  in get net name

eg:  a Inst U1 with 3 Occ U1,U2,U3 in hierarchy  m1,m2,m3

design  -> block m2 -> Occ u2 --> Occ pin clk -> effective property 

prop success:

      ref path: m2/u2/clk

       name: clk

        number: 20

fail:occ2 netname clk,not clk_m2

net name in orcad gui window:

inst.   occ1. occ2.    occ3

clk clk_m1 clk_m2 clk_m3

  • Sign in to reply
  • Cancel
  • CadAP
    0 CadAP 10 months ago

    LL202411014740 

    Please copy the below code in text editor and save with .tcl extension.

    Now source in the capture command window;

    #Get pin and conneted netnames of hierachical blocks


    proc dumphierpinsnets {} {
    # global i
    set lSession $::DboSession_s_pDboSession
    DboSession -this $lSession
    set lNullObj NULL
    set lCount 0
    set lStatus [DboState]
    set lDesign [$lSession GetActiveDesign]
    set lSchi_Name [DboTclHelper_sMakeCString]
    set lNetNameCString [DboTclHelper_sMakeCString]
    set lPinNameCString [DboTclHelper_sMakeCString]
    set lNameCString [DboTclHelper_sMakeCString]
    set lSchematicIter [$lDesign NewViewsIter $lStatus $::IterDefs_SCHEMATICS]
    #get the first schematic view
    set lView [$lSchematicIter NextView $lStatus]
    set lPage_Name [DboTclHelper_sMakeCString]
    while { $lView != $lNullObj} {
    #dynamic cast from DboView to DboSchematic
    set lSchematic [DboViewToDboSchematic $lView]
    $lSchematic GetName $lSchi_Name
    set lPagesIter [$lSchematic NewPagesIter $lStatus]
    #get the first page
    set lPage [$lPagesIter NextPage $lStatus]
    # puts [DboTclHelper_sGetConstCharPtr $lSchi_Name]
    while {$lPage!=$lNullObj} {

    set lPartInstsIter [$lPage NewPartInstsIter $lStatus]
    #get the first part inst
    set lInst [$lPartInstsIter NextPartInst $lStatus]
    while {$lInst!=$lNullObj} {
    #dynamic cast from DboPartInst to DboDrawnInst
    set lDrawnInst [DboPartInstToDboDrawnInst $lInst]
    if {$lDrawnInst != $lNullObj} {
    $lDrawnInst GetName $lNameCString
    puts [DboTclHelper_sGetConstCharPtr $lNameCString]
    set lIter [$lDrawnInst NewPinsIter $lStatus]
    #get the first pin of the part
    set lPin [$lIter NextPin $lStatus]
    while {$lPin !=$lNullObj } {
    #placeholder: do your processing on $lPin
    $lPin GetPinName $lPinNameCString
    set lNet [$lPin GetNet $lStatus]
    $lNet GetNetName $lNetNameCString
    # puts [DboTclHelper_sGetConstCharPtr $lNameCString]
    puts "Pin_Name:== [DboTclHelper_sGetConstCharPtr $lPinNameCString]"
    puts "Net_Name:== [DboTclHelper_sGetConstCharPtr $lNetNameCString]"
    #get the next pin of the part
    set lPin [$lIter NextPin $lStatus]
    }
    delete_DboPartInstPinsIter $lIter
    #placeholder: do your processing on $lDrawnInst
    }
    #get the next part inst
    set lInst [$lPartInstsIter NextPartInst $lStatus]
    }
    #placeholder: do your processing on $lPage
    # $lPage GetName $lPage_Name
    # puts [DboTclHelper_sGetConstCharPtr $lPage_Name]
    #get the next page
    set lPage [$lPagesIter NextPage $lStatus]
    }
    #puts $lSchematic

    #get the next schematic view
    set lView [$lSchematicIter NextView $lStatus]
    }
    delete_DboLibViewsIter $lSchematicIter
    delete_DboSchematicPagesIter $lPagesIter

    }


    dumphierpinsnets

    Hope it helps!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information