dbFind usages...

Guest
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
 
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.
 
On Apr 22, 2:41 pm, Riad KACED <riad.ka...@gmail.com> wrote:
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,

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
 

Welcome to EDABoard.com

Sponsor

Back
Top