• 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 Scripting - TCL
  3. Generate ORCAD netlist (with orWirelist.dll) using TCL ...

Stats

  • State Not Answered
  • Replies 2
  • Subscribers 15
  • Views 5132
  • Members are here 0
More Content

Generate ORCAD netlist (with orWirelist.dll) using TCL Script

Shanmugi
Shanmugi over 4 years ago

Hi,

I need to generate netlist with orWirelist.dll (as if from the 'other' tab in OrCAD) from orcad using TCL script.

I manually generated the script from tools->create netlist->other option -> orWirelist.dll (under formatters option).

But trying to generate the same using TCL scripts.

Is there a way to do, if so kindly help me on the same.

Thanks for your help in advance!

  • Cancel
  • Sign in to reply
Parents
  • CA20240926987
    0 CA20240926987 14 days ago

    Did you ever figure this out? I am trying to solve this problem as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • CA20240926987
    0 CA20240926987 14 days ago

    Did you ever figure this out? I am trying to solve this problem as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • TechnoBobby
    0 TechnoBobby 14 days ago in reply to CA20240926987

    Hi CA20240926987 ,

    If you're looking to export similar format data using TCL script, you can try below code.

    Hope this helps!

    proc pinConnectivityReport {} {

    if {[file exists "pinConnectivity.txt"] == 1} {

    file delete "pinConnectivity.txt"

    }
    set lPathCS [DboTclHelper_sMakeCString]
    [GetActivePMDesign] GetName $lPathCS
    set lPath [file dirname [DboTclHelper_sGetConstCharPtr $lPathCS]]
    set lSession $::DboSession_s_pDboSession
    DboSession -this $lSession
    set lNullObj NULL
    set lStatus [DboState]
    set lDesign [$lSession GetActiveDesign]
    if {$lDesign == $lNullObj} {
    puts "ERROR: No active design."
    return
    }
    set lSchi_Name [DboTclHelper_sMakeCString]
    set lPinNameCS [DboTclHelper_sMakeCString]
    set lPinNumberCS [DboTclHelper_sMakeCString]
    set lNetNameCS [DboTclHelper_sMakeCString]
    set lRefdesNameCS [DboTclHelper_sMakeCString]
    set lReport [open "pinConnectivity.txt" a+]
    if {$lDesign != $lNullObj} {

    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} {
    #placeholder: do your processing on $lPage
    $lPage GetName $lPage_Name
    # puts [DboTclHelper_sGetConstCharPtr $lPage_Name]
    set lPageName [DboTclHelper_sGetConstCharPtr $lPage_Name]
    set lPartInstIter [$lPage NewPartInstsIter $lStatus]
    set lInst [$lPartInstIter NextPartInst $lStatus]
    while {$lInst != $lNullObj} {
    puts $lReport "++++++++++===========+++++++++++++"
    $lInst GetReferenceDesignator $lRefdesNameCS
    set lRefdes [DboTclHelper_sGetConstCharPtr $lRefdesNameCS]
    set lPinIter [$lInst NewPinsIter $lStatus]
    set lPin [$lPinIter NextPin $lStatus]

    while {$lPin !=$lNullObj } {
    # puts $lPin
    $lPin GetPinName $lPinNameCS
    set lPinName [DboTclHelper_sGetConstCharPtr $lPinNameCS]
    # puts "$lPinName pinName"
    $lPin GetPinNumber $lPinNumberCS
    set lPinNumber [DboTclHelper_sGetConstCharPtr $lPinNumberCS]
    # puts "$lPinNumber pinNumber"
    set lWire [$lPin GetNet $lStatus]
    # puts $lWire
    if {$lWire != $lNullObj} {
    $lWire GetNetName $lNetNameCS
    set lNetName [DboTclHelper_sGetConstCharPtr $lNetNameCS]
    # puts "$lRefdes.$lPinNumber.$lNetName.$lPageName"
    puts $lReport "$lRefdes.$lPinNumber.$lPinName.$lNetName.$lPageName"
    # puts [DboTclHelper_sGetConstCharPtr $lNetNameCS]
    }
    #get the next pin of the part
    set lPin [$lPinIter NextPin $lStatus]

    }
    delete_DboPartInstPinsIter $lPinIter
    puts $lReport "++++++++++===========+++++++++++++"
    set lInst [$lPartInstIter NextPartInst $lStatus]

    }
    delete_DboPagePartInstsIter $lPartInstIter
    #get the next page
    set lPage [$lPagesIter NextPage $lStatus]
    }
    #get the next schematic view
    delete_DboSchematicPagesIter $lPagesIter
    set lView [$lSchematicIter NextView $lStatus]
    }
    delete_DboLibViewsIter $lSchematicIter

    }
    close $lReport
    exec {*}[auto_execok start] "" "$lPath\\pinConnectivity.txt"
    }

    pinConnectivityReport

    • 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.

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

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