delete/rename inherited nets using Skill

D

dixit

Guest
Hi,

I have schematics using inherited nets for power and ground, and i want to replace that
global net name into a local one (without exclamation mark) and add a specific pin to the
schematic (and later also symbol). Below is my code to try the name replacement (not yet
pin placement) in the schematic. After i run this some "line" segments still have name
"VSS!" when i query them. Can anyone suggest how to improve the code?

thanks!

----------------

oldNetName = "VSS!"
newNetName = "VSS"

procedure( schRenameSupplyPins(libName viewName oldNetName newNetName)
let((lib cv cellName term)
lib = ddGetObj(libName)
foreach(cell lib~>cells
cv = dbOpenCellViewByType(libName cell~>name viewName "" "a")
net = dbFindNetByName(cv oldNetName)
foreach(fig net~>figs
when(fig~>objType=="label" && fig~>theLabel=="cdsNetExpr()"
fig~>theLabel=newNetName
fig~>prop~>value=nil
)
when(fig~>objType=="line"
fig~>net~>name=newNetName
)
);foreach

foreach(elem dbGetCellViewInheritedSig(cv)
dbDeleteSigNetExpr(elem)
);foreach

dbCheck(cv)
dbSave(cv)
dbClose(cv)
);foreach
);let
't
);procedure
 
On 07/25/12 14:29, dixit wrote:
Hi,

I have schematics using inherited nets for power and ground, and i want to replace that
global net name into a local one (without exclamation mark) and add a specific pin to the
schematic (and later also symbol). Below is my code to try the name replacement (not yet
pin placement) in the schematic. After i run this some "line" segments still have name
"VSS!" when i query them. Can anyone suggest how to improve the code?

thanks!

First of all, you really shouldn't write a function with sch as the
prefix - the recommendation is for customers to use uppercase prefixes
to avoid clashing with those from Cadence.

Secondly, you may just need to call schCheck() to do a schematic check.
You really don't need to call dbCheck which is for checking the
integrity of the database, not for doing a schematic check operation.

I've not tried your code though...

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top