Skill Code to move XL pins to devices

  • Thread starter Roland.Fontaine@gmail.com
  • Start date
R

Roland.Fontaine@gmail.com

Guest
I am looking for a piece of skill code, or a starting point, that will
allow me to automaticaly move all the XL generated pins in my layout to
the matching devices. I'm not sure if the path of the flight lines can
be used as a guide of where to connect them, any help would be
appreciated.

thanx,
 
This may be close, you select the instances with the pins you wish to
promote.
Use at your own risk.

Terry


procedure( tlPromotePins()
let( (cv labels instances all_figs
Label Net Term instTerm fig3 Pin all_pins)

unless( oport = outfile("./tlPromotePins.log" )
printf("ERROR: Cannot open the file - ./tlPromotePins.log to
write\n" nil )
return()
)

found = nil
cv = getWindowRep() ; assign the db element representing the
current cellview to cv

hiRaiseWindow(hiGetCIWindow())

all_figs = geGetSelectedSet()
foreach(fig2 all_figs ; for all instances
when(fig2~>isAnyInst ; make sure it is an
instance
found = t
fprintf(oport " Promoting the pins on an instance of %s\n"
fig2~>cellName)

foreach(iterm fig2~>instTerms
fprintf(oport "Processing term: %s -> %s\n" iterm~>name
iterm~>net~>name)
Label = iterm~>net~>name
foreach(term fig2~>master~>terminals
if( term~>name == iterm~>name then
foreach( Pin term~>pins
fprintf(oport "Found pin %s\n" Pin~>name)
if( !(Net = dbFindNetByName( cv Label)) then
fprintf(oport "Creating net: %s\n"
Label)
Net = dbCreateNet(cv Label)
Term = dbCreateTerm(Net ""
term~>direction)
)
fprintf(oport "Copying pin %s\n" Pin~>name)
fig3 = dbCopyFig( Pin~>fig cv
fig2~>transform)
Pin = dbCreatePin( Net fig3)
Pin~>accessDir = '("top" "bottom" "left"
"right")
)
)
)
)
) ;when
) ;foreach
if( !found then
fprintf(oport "\nNothing was done!\nSelect one or more instances
and try again!\n" nil)
nil
else
t
)
close(oport)
outwin = view( "./tlPromotePins.log" )
) ;let
) ;procedure

<Roland.Fontaine@gmail.com> wrote in message
news:1125577491.088847.17450@g44g2000cwa.googlegroups.com...
I am looking for a piece of skill code, or a starting point, that will
allow me to automaticaly move all the XL generated pins in my layout to
the matching devices. I'm not sure if the path of the flight lines can
be used as a guide of where to connect them, any help would be
appreciated.

thanx,
 

Welcome to EDABoard.com

Sponsor

Back
Top