code to find the instance source and drain metal location in

V

vijayraj

Guest
Is there any skill command to get the instance source, drain and poly location in layout? Please help? Thanks in advacne
 
On 02/14/14 17:02, vijayraj wrote:
Is there any skill command to get the instance source, drain and poly
location in layout? Please help? Thanks in advacne

It somewhat depends on how your device is structured. Most likely, you
could use something like this:

procedure(CCCfindTermShapes(instId termName)
let((termId)
termId=dbFindTermByName(instId~>master termName)
foreach(mapcan pin termId~>pins
pin~>figs || list(pin~>fig) ; cope with OA and CDB
)
)
)

This will return you a list of the pin figures for an instance. If you
want to find the center of each of these shapes in the coordinate system
of the containing cellView, you'd do:

pinShapes=CCCfindTermShapes(instId "D") ; for drain pin
centers=foreach(mapcar pinShape pinShapes
dbTransformPoint(centerBox(pinShape~>bBox) instId~>transform)
)

centers will then be a list of the center (centre for me ;-> ) locations
of all the pins on a particular named terminal.

Note that NONE of the code above has been tested - I just wrote it in
the reply without testing it.

Regards,

Andrew.
 
thanks a lot Andrew.. but for some mos its showing three gates G for a single mos. Is there any way to get to it by only one G for each instance or we need to use code to skip other G for a specific instance.......
 
On 02/18/14 16:18, vijayraj wrote:
thanks a lot Andrew.. but for some mos its showing three gates G for
a single mos. Is there any way to get to it by only one G for each
instance or we need to use code to skip other G for a specific
instance.......

Well, somehow you'd have to code this based on your understanding of
which G you really want!

I can't see how anything could do this in a generic way (you could just
take the car() of the list - but that's completely arbitrary).

Andrew.
 
Ok Andrew thanks for your valuable suggestion i will use the code to do it..
 

Welcome to EDABoard.com

Sponsor

Back
Top