• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Changing cellName in a code

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 142
  • Views 20351
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Changing cellName in a code

archive
archive over 18 years ago

Hi , I want to change the cellName of an instance "i2_09" to "i3_09" in a code. But im not able to set it using car(geGetSelSet())~>cellName="i3_09" or dbSet as this attribute is not valid for set. So Im using dbCreateInst to create "i3_09". Is there any other way to change the cellName without using "dbCreate*"


Originally posted in cdnusers.org by rimser9
  • Cancel
  • archive
    archive over 18 years ago

    You need to change the "master" attribute:

    newMaster=dbOpenCellViewByType("newLib" "newCell" "newView")
    car(geGetSelSet())~>master=newMaster

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 18 years ago

    There are two other commands that you can use:

    dbSetInstHeaderMasterName(d_instHeader t_libName t_cellName t_viewName) - If you have the instance header id (available from the instance and from the cellview - css()~>instHeader ) then you can change every instance of that cellName to use a different cellName. (FYI css() is the same as car(geGetSelSet()) ). This allows you to affect multiple instances at once. The arguments for libName, cellName and viewName can be nil if you don't want to change them.

    dbSetInstHeaderMasterName(css()~>instHeader nil "i3_09" nil)
    OR
    myInstHeader = car(setof(x geGetEditCellView()~>instHeaders x=="i2_09"))
    dbSetInstHeaderMasterName(css()~>instHeader nil "i3_09" nil)

    If you only want to change the cellview for one instance, and you are working in layout, you can also use:
    leReplaceAnyInstMaster(d_instId t_libName t_cellName t_viewName)

    This will update only the given instance id and again, you can use nil for any item you don't want to change.

    leReplaceAnyInstMaster(css() nil "i3_09" nil)

    -Derek


    Originally posted in cdnusers.org by dmay
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    If I want to change the props of pcells (lets width from 20 to 30 in code) what is the command. I tried using dbRepalce Prop but has no effect. Is ther any command or I have to delete that cell and use dbCreateParamInst.

    Thanks,


    Originally posted in cdnusers.org by rimser9
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    Try after selecting the instance:

    inst_id=car(geGetSelSet())
    cdf_id=cdfGetInstCDF(inst_id)
    param_id=cdfFindParamByName(cdf_id "w")
    param_id~>value = "3u"

    Note that this assumes "w" is the param name and string type parameter. Hence "30u".

    Thanks,
    RR


    Originally posted in cdnusers.org by rairaj
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    If the property is called (say) "w", then you can do instId~>w=value . Note that the value needs to be the correct type - if your pcell is expecting a string, make it a string and so on. dbReplaceProp() should work too. The chances are you either supplied the wrong type, or you got the parameter name wrong.

    You can find the parameter names by doing:

    instId~>master~>superMaster~>parameters~>value~>name

    instId could be car(geGetSelSet()) if you have the instance selected.

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    To get contacts over poly Im enabling "stretch handles" option from display options and Im stretching the gate contacts manually to get the contacts over the entire gate length. What are the commands to stretch it with code. Suppose I select the transistor and execute a command and it should stretch that gate contacts (handle).

    Thanks


    Originally posted in cdnusers.org by prahladh
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    A stretch handle is nothing more than a graphical way to change a pcell parameter. If your pcell has a stretch handle, then there is a parameter that is changed when that stretch handle is stretched. Once you know the parameter name then you can use Skill code to change the parameter value as was described in the previous posts.

    If you don't know the name of the parameter, ask your pcell developers or CAD team. If you want to figure it out, first take a look at all of the pcell parameter values on your pcell with this code:

    Select your pcell instance
    In your CIW, type (css() is a command to get the car of the selected set): 
      css()~>prop~>name
      css()~>prop~>value
    In your Cadence window, stretch your stretch handle then repeat the previous step.
    Note the parameter value that changed when you stretched the stretch handle.
    You can now manipulate it in Skill with:
      css()~>param=value    
    (where param is the name of the parameter and value is what you wish to set it to)

    -Derek


    Originally posted in cdnusers.org by dmay
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    I have a cell and I have to move that (same location sideways x-ais and y axis). Usually we do it with move command and then select sideways. How to do this in a code? dbTransform* or dbMove*


    Originally posted in cdnusers.org by prahladh
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • archive
    archive over 17 years ago

    Rather than jumping on the back of an existing topic, better to start a new one.

    Anyway, if you have an instance, you can change the instId~>xy attribute to move it, or you could use dbMoveFig() to move it.

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information