Home > Community > Forums > Digital Implementation > Need a dbCommand to get names of objects with specific attributes

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: *

 Need a dbCommand to get names of objects with specific attributes 

Last post Tue, Jun 1 2010 1:02 PM by kazad. 4 replies.
Started by 0007 01 Feb 2010 05:23 PM. Topic has 4 replies and 1740 views
Page 1 of 1 (5 items)
Sort Posts:
  • Mon, Feb 1 2010 5:23 PM

    • 0007
    • Not Ranked
    • Joined on Fri, Jan 22 2010
    • Hyderabad, Andhra Pradesh
    • Posts 6
    • Points 105
    Need a dbCommand to get names of objects with specific attributes Reply

    Hi All,

    I want to know a command to get the names of objects with specific attributes.

    For example, I want to get all instances with baseClass as block

    dbGet top.cell.props.parent.baseClass will give the base classes of all the objects.

    can I use some sort of  filter or command to get the pointers which point instances with the base name block.

     Regards,

    Anil

     

    • Post Points: 20
  • Mon, Feb 1 2010 7:28 PM

    • BobD
    • Top 25 Contributor
    • Joined on Fri, Jul 11 2008
    • Chelmsford, MA
    • Posts 247
    • Points 9,125
    Re: Need a dbCommand to get names of objects with specific attributes Reply

    Hi Anil,

    I think you need to use dbGet's "-p" option to traverse back to the previous pointer and chain together a couple of dbGet commands.

    There's a good blog entry on this here from my colleague Kari:

    http://www.cadence.com/Community/blogs/di/archive/2009/08/12/useful-dbget-one-liners.aspx

    Hope this helps,
    Bob

    • Post Points: 20
  • Fri, May 28 2010 11:30 AM

    • kazad
    • Top 500 Contributor
    • Joined on Wed, Sep 16 2009
    • Posts 22
    • Points 305
    Re: Need a dbCommand to get names of objects with specific attributes Reply

    Hi Bob

    I was wondering how I can get the multi-cut via count with db command.

    Thanks

    Khandaker

    • Post Points: 20
  • Mon, May 31 2010 1:24 AM

    Re: Need a dbCommand to get names of objects with specific attributes Reply

     Hi Khandaker,

    you can use:

    llength [dbGet top.nets.vias.via.name *CUT*]

     Regards,

    Anil 

    • Post Points: 20
  • Tue, Jun 1 2010 1:02 PM

    • kazad
    • Top 500 Contributor
    • Joined on Wed, Sep 16 2009
    • Posts 22
    • Points 305
    Re: Need a dbCommand to get names of objects with specific attributes Reply

    Hi Anil

    Thanks - it's working perfectly!

    Regards

    Khandaker

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by 0007 at 01 Feb 2010 05:23 PM. Topic has 4 replies.