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*"
You need to change the "master" attribute:newMaster=dbOpenCellViewByType("newLib" "newCell" "newView")car(geGetSelSet())~>master=newMasterRegards,Andrew.
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)ORmyInstHeader = 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
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,
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
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~>nameinstId could be car(geGetSelSet()) if you have the instance selected.Regards,Andrew.
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
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 instanceIn your CIW, type (css() is a command to get the car of the selected set): css()~>prop~>name css()~>prop~>valueIn 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
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*
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.