Skill, change Inst LibName in layouts

Discussion in 'Cadence' started by dinac, Apr 23, 2010.

  1. dinac

    dinac Guest

    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" "" "")
    )
    )
     
    dinac, Apr 23, 2010
    #1
  2. dinac wrote, on 04/23/10 10:59:
    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)
    )
    )
     
    Andrew Beckett, May 4, 2010
    #2
  3. dinac

    dinac Guest

    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!!
     
    dinac, May 7, 2010
    #3
  4. dinac wrote, on 05/07/10 10:34:
    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.
     
    Andrew Beckett, May 28, 2010
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.