Home > Community > Forums > Digital Implementation > How to get all special nets in the design?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to get all special nets in the design? 

Last post Fri, Aug 10 2012 10:52 AM by kazad. 1 replies.
Started by anil chatrathi 09 Aug 2012 10:27 PM. Topic has 1 replies and 1191 views
Page 1 of 1 (2 items)
Sort Posts:
  • Thu, Aug 9 2012 10:27 PM

    How to get all special nets in the design? Reply

    Is there any command to get all special nets in a design?

     Regards, Anil

     

     

    • Post Points: 20
  • Fri, Aug 10 2012 10:52 AM

    • kazad
    • Top 500 Contributor
    • Joined on Wed, Sep 16 2009
    • Posts 22
    • Points 305
    Re: How to get all special nets in the design? Reply

    Hi Anil

    You can try this procedure:

    Example: findSpecialNet *dvdd* 

    or findSpecialNet *

     

    proc findSpecialNet {netNamePattern} {

        set netList {}

        foreach netPtr [processResult [dbGet top.nets]] {
            if {[string match $netNamePattern [dbNetName $netPtr]] && [dbIsNetSpecial $netPtr]} {
                lappend netList [dbNetName $netPtr]
            }
        }

        return $netList
    }

    proc processResult {dbOutputs} {

        set returnList {}

        if {$dbOutputs == "0x0"} {
            set returnList ""
        } else {
            set returnList $dbOutputs
        }

        return $returnList

    }

     

     

     

    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by anil chatrathi at 09 Aug 2012 10:27 PM. Topic has 1 replies.