Home > Community > Forums > Custom IC SKILL > Changing cellName in a code

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: *

 Changing cellName in a code 

Last post Tue, Aug 14 2007 1:30 AM by archive. 9 replies.
Started by archive 14 Aug 2007 01:30 AM. Topic has 9 replies and 2915 views
Page 1 of 1 (10 items)
Sort Posts:
  • Tue, Aug 14 2007 1:30 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    Changing cellName in a code Reply

    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
    • Post Points: 0
  • Tue, Aug 14 2007 1:46 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
  • Tue, Aug 14 2007 7:14 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
  • Mon, Mar 10 2008 4:55 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
  • Mon, Mar 10 2008 5:08 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
  • Mon, Mar 10 2008 5:10 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
  • Tue, Mar 11 2008 4:55 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
  • Tue, Mar 11 2008 6:51 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
  • Wed, Mar 12 2008 10:08 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
  • Thu, Mar 13 2008 12:29 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,950
    RE: Changing cellName in a code Reply

    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
    • Post Points: 0
Page 1 of 1 (10 items)
Sort Posts:
Started by archive at 14 Aug 2007 01:30 AM. Topic has 9 replies.