dbFind usages...

Discussion in 'Cadence' started by eric.d.fitzsimmons, Apr 21, 2009.

  1. All,

    Is there an easy way to select a net in layout from SKILL? I thought
    the code below would work, it works for the Instance but not the
    signal. The instance is selected, the net I get the error. How can
    I select an Net in skill after finding the name from the database?


    cv = geGetWindowCellView()
    geSelectFig(dbFindAnyInstByName(cv "|M3"))
    t

    geSelectFig(dbFindSigByName(cv "vbias"))
    *Error* geSelectFig: Invalid figure - db:105918488

    Thank you in advance for your help!
    Eric
     
    eric.d.fitzsimmons, Apr 21, 2009
    #1
  2. eric.d.fitzsimmons

    Riad KACED Guest

    Hi Eric,

    geSelectFig expects a database ID of type figure. The Cadence design
    database supports the following figure types: Arc, Donut, Dot,
    Ellipse, Instance, Label, Text Display, Line, Mosaic, Mosaic instance,
    Path, Polygon and Rectangle. This is what I know of IC5141.
    dbFindAnyInstByName(cv "|M3") returns a dbId whose objType is "inst",
    thus a valid figure object. dbFindSigByName(cv "vbias") returns a dbId
    whose objType is "sig", thus _NOT_ a valid figure object. That
    explains the second part of your question.
    In order to select the objects attached to a given net in you layout,
    then you need first to get the ID of that net:
    vbiasNetId=dbFindNetByName(cv "vbias")
    the net database object has got an attribute called figs which returns
    the list of figures that are attached to this net:
    vbiasFigs=vbiasNetId~>figs
    foreach( fig vbiasFigs
    geSelectFig(fig)
    )

    This would do the trick I suppose.

    Cheers,
    Riad.
     
    Riad KACED, Apr 22, 2009
    #2
  3. Riad,

    Thank you for the explanation and the answer. It did work just as
    you posted and I see what the issue was, sans I wanted for it to pick
    up the vias. Hopefully I will be able to do this on my own.

    Thanks once again for your help,
    Eric
     
    eric.d.fitzsimmons, Apr 22, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...