• 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. Digital Implementation
  3. power pins of stdcells

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 92
  • Views 13554
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

power pins of stdcells

chitlesh
chitlesh over 9 years ago

Hi there,

Is there a way to get the power pin names of a particular placed stdcell within EDI?

  • Cancel
Parents
  • kazad
    kazad over 9 years ago

    Hi

    You can try the following procedure to get the power/ground name(s) of a given instance.

    Usage : findPGTerms -inst <instance_name> -termType <power | ground>

    ################################################################################
    # Procedure to find a list of Power/Ground pins of all cells in the design
    # Usage : findPGTerms -inst <instance_name> -termType <power | ground>
    ################################################################################
    proc findPGTerms {args} {

    # Get instance name
    if {[regexp {\-inst} $args]} {
    set instName [lindex $args [expr [lsearch $args -inst] + 1]]
    }

    # Get term type
    if {[regexp {\-termType} $args]} {
    set termType [lindex $args [expr [lsearch $args -termType] + 1]]
    }

    # Help
    set helpString "Usage : findPGTerms \
    \-inst <instance_name> \
    \-termType <power | ground> \
    \-help"


    if {[regexp {\-help} $args] || $args == ""} {
    puts $helpString
    return 0
    }


    # Main code
    ############################################################

    # Get inst/cell pointer
    if {[dbGet top.insts.name $instName] == "0x0"} {

    puts "\nERROR: Instance $instName not found!\n"
    return 0

    } else {

    set instPtr [dbGetInstByName $instName]
    set cellPtr [dbInstCell $instPtr]

    set allPGTerms {}

    dbForAllCellPGFTerm $cellPtr termPtr {

    if {${termType} == "power"} {

    if {[dbFTermType $termPtr] == "dbcPowerTerm"} {
    set powerTerm [dbFTermName $termPtr]
    lappend allPGTerms $powerTerm
    }
    } elseif {${termType} == "ground"} {

    if {[dbFTermType $termPtr] == "dbcGroundTerm"} {
    set groundTerm [dbFTermName $termPtr]
    lappend allPGTerms $groundTerm
    }
    }
    }
    }

    set PGTerms [lsort -unique $allPGTerms]

    return $PGTerms
    }

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • kazad
    kazad over 9 years ago

    Hi

    You can try the following procedure to get the power/ground name(s) of a given instance.

    Usage : findPGTerms -inst <instance_name> -termType <power | ground>

    ################################################################################
    # Procedure to find a list of Power/Ground pins of all cells in the design
    # Usage : findPGTerms -inst <instance_name> -termType <power | ground>
    ################################################################################
    proc findPGTerms {args} {

    # Get instance name
    if {[regexp {\-inst} $args]} {
    set instName [lindex $args [expr [lsearch $args -inst] + 1]]
    }

    # Get term type
    if {[regexp {\-termType} $args]} {
    set termType [lindex $args [expr [lsearch $args -termType] + 1]]
    }

    # Help
    set helpString "Usage : findPGTerms \
    \-inst <instance_name> \
    \-termType <power | ground> \
    \-help"


    if {[regexp {\-help} $args] || $args == ""} {
    puts $helpString
    return 0
    }


    # Main code
    ############################################################

    # Get inst/cell pointer
    if {[dbGet top.insts.name $instName] == "0x0"} {

    puts "\nERROR: Instance $instName not found!\n"
    return 0

    } else {

    set instPtr [dbGetInstByName $instName]
    set cellPtr [dbInstCell $instPtr]

    set allPGTerms {}

    dbForAllCellPGFTerm $cellPtr termPtr {

    if {${termType} == "power"} {

    if {[dbFTermType $termPtr] == "dbcPowerTerm"} {
    set powerTerm [dbFTermName $termPtr]
    lappend allPGTerms $powerTerm
    }
    } elseif {${termType} == "ground"} {

    if {[dbFTermType $termPtr] == "dbcGroundTerm"} {
    set groundTerm [dbFTermName $termPtr]
    lappend allPGTerms $groundTerm
    }
    }
    }
    }

    set PGTerms [lsort -unique $allPGTerms]

    return $PGTerms
    }

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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