Home > Community > Forums > Custom IC SKILL > How to change library name & cell name by SKILL

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to change library name & cell name by SKILL 

Last post Tue, Jun 9 2009 9:44 AM by skillUser. 2 replies.
Started by ajuvolkov 09 Jun 2009 04:14 AM. Topic has 2 replies and 4865 views
Page 1 of 1 (3 items)
Sort Posts:
  • Tue, Jun 9 2009 4:14 AM

    • ajuvolkov
    • Not Ranked
    • Joined on Mon, Nov 10 2008
    • Posts 1
    • Points 35
    How to change library name & cell name by SKILL Reply

    Hello.

    I need to change library name and cell name in all instances of the project.

    See below simple example, when I attempt to change this parameter:

    w = hiGetCurrentWindow()
    cv = geGetWindowCellView(w)

    inst=nthelem(1 cv~>instances)
    inst~>libName="NEW_PROCESS"

     

    but this returned:

    *Error* setSGq: dbSetq: Can not set attribute - libName

     

    How can I change this parameter? 

    • Post Points: 35
  • Tue, Jun 9 2009 5:38 AM

    Re: How to change library name & cell name by SKILL Reply
    You need to change the master attribute.

    For example:

    master=dbOpenCellViewByType("NEW_PROCESS" inst~>cellName inst~>viewName)
    inst~>master=master

    Regards,

    Andrew
    • Post Points: 5
  • Tue, Jun 9 2009 9:44 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,585
    • Points 15,875
    Re: How to change library name & cell name by SKILL Reply

    Hi,

    In addition to what Andrew has said, it may be more efficient to change the instHeader for the instances that you want to all change to a new master.  Find the instHeader, something like:

    ih = car(setof( instHead cv~>instHeaders instHead~>libName == "origLibName" && instHead~>cellName == "origCellName")

    dbSetInstHeaderMasterName(ih "NEW_PROCESS" ih~>cellName ih~>viewName)

    [I have not tested the above code, but it should work].  If the cell names are different, then you might want to have a mapping table for the from-to name mappings.  There are a few solutions in SourceLink for doing this too, for example:

    Solution 11300258
    Solution 11256326
    Solution 11406650
    Solution 11330954
    Solution 11330948
    Solution 11330942

    Take a look at the last two in particular, since they use the instHeader approach. Many of these will change multiple cells, or even a whole library. Did you look on SourceLink?

    If you need to re-reference all the cells to the same new library, why don't you use Edit->Rename Reference Library from the Library Manager menus?

    Regards,

    Lawrence.

    Filed under: ,
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by ajuvolkov at 09 Jun 2009 04:14 AM. Topic has 2 replies.