EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

Skill, change Inst LibName in layouts

elektroda.net NewsGroups Forum Index - Cadence - Skill, change Inst LibName in layouts

dinac
Guest

Fri Apr 23, 2010 12:59 pm   



Hi all,

need help in changing the Instances libName in layout.
tried the below, but it was complaining to use through superInstHeader

Thanks a lot,

Cheers
Dinac

----------------------------------------
cvID = dbOpenCellViewType(libName cellName "layout" "" "a")

procedure(changeLibName (cvID)
foreach( inst cvID~>instances
when(( inst~>libName == "oldLib")
dbSetInstHeaderMasterName( inst~>instHeader "newLib" "" "")
)
)

Andrew Beckett
Guest

Tue May 04, 2010 1:35 pm   



dinac wrote, on 04/23/10 10:59:
Quote:
Hi all,

need help in changing the Instances libName in layout.
tried the below, but it was complaining to use through superInstHeader

Thanks a lot,

Cheers
Dinac

----------------------------------------
cvID = dbOpenCellViewType(libName cellName "layout" "" "a")

procedure(changeLibName (cvID)
foreach( inst cvID~>instances
when(( inst~>libName == "oldLib")
dbSetInstHeaderMasterName( inst~>instHeader "newLib" "" "")
)
)

Either do:

procedure(changeLibName (cvID)
foreach( inst cvID~>instances
when(( inst~>libName == "oldLib")
newMaster=dbOpenCellViewByType("newLib" inst~>cellName inst~>viewName)
when(newMaster
inst~>master=newMaster
dbClose(newMaster)
)
)
)

Or do:

; note I have not tested this, so I may have got the attribute names wrong.
foreach(instHeader cvID~>instHeaders
when(instHeader~>libName
dbSetInstHeaderMasterName(instHeader "newLib" instHeader~>cellName
instHeader~>viewName)
)
)

dinac
Guest

Fri May 07, 2010 12:34 pm   



Hi Andrew,

Thanks a lot.
I used your idea and I managed to work it out.

But the inst~>prop remains the same as the old one (CDF parameter).
Actually it is an nmos of different technologies and so different Lmin
and Wmin.
I checked, instances~>prop~>name, there seems to be the property which
i could change. But couldn't succeed.

Thanks again,

Cheers!!

Andrew Beckett
Guest

Fri May 28, 2010 1:18 pm   



dinac wrote, on 05/07/10 10:34:
Quote:
Hi Andrew,

Thanks a lot.
I used your idea and I managed to work it out.

But the inst~>prop remains the same as the old one (CDF parameter).
Actually it is an nmos of different technologies and so different Lmin
and Wmin.
I checked, instances~>prop~>name, there seems to be the property which
i could change. But couldn't succeed.

Thanks again,

Cheers!!

This won't change the properties - changing the master will keep all the old
properties.

If you want to clear all the old properties, you could either delete the
properties (delete the prop objects themselves), or delete the instance and add
a new one in the same location.

You might find the code in these two references useful:

http://www.cadence.com/Community/forums/p/13227/20248.aspx#20248
http://www.designers-guide.org/Forum/YaBB.pl?num=1246969676

(the code should be the same - it was more to point out the two discussions).

Regards,

Andrew.

elektroda.net NewsGroups Forum Index - Cadence - Skill, change Inst LibName in layouts

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony