Home > Community > Forums > Custom IC SKILL > How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ?

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 use skill to change PCell parameter like using Edit Instance Properties to change parameter ? 

Last post Sun, May 22 2011 10:43 PM by Charley Chen. 9 replies.
Started by Charley Chen 18 May 2011 11:27 PM. Topic has 9 replies and 5261 views
Page 1 of 1 (10 items)
Sort Posts:
  • Wed, May 18 2011 11:27 PM

    How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply

    Hi All,

    When using Pcell , press  q to use "Edit Instance Properties" to change parameter (e.g.  length) ,

    in cdf  , it has callback ,  everything is right according to callback function . Different length has it different result in Pcell.

    Now I have many Pcells needs to changed  parameter - length (from 2um to 4um) by  "Edit Instance Properties" ,

    Is there any approach to do that ? (Not manual use "Edit Instance Properties" to change each Pcell's parameter ?

    After changing parameter - length , its result should same as using "Edit Instance Properties" .

     

    Thank you.

    Charley

    • Post Points: 20
  • Thu, May 19 2011 12:00 AM

    • StefanSL
    • Top 150 Contributor
    • Joined on Mon, Nov 2 2009
    • Reutlingen, Baden-Wurttemberg
    • Posts 47
    • Points 860
    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply

     Hi Charley,

    what about the following piece of code:

    tc=geGetEditCellView()
    foreach(ti tc~>instances if(ti~>PCLENGTH then ti~>PCLENGTH = 4))

    i check for existence of the parameter PCLENGTH to avoid to add this as property to
    other cells; perhaps you need to modify the if-condition to be sure only to modify the
    correct set of cells.

    hope this helps

    regards

    Stefan

    Filed under:
    • Post Points: 20
  • Thu, May 19 2011 12:25 AM

    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply

    Hi Stefan ,

     Does it do any CDF callback if length has callback function ?

    Thank you,

    Charley

    • Post Points: 20
  • Thu, May 19 2011 5:21 AM

    • StefanSL
    • Top 150 Contributor
    • Joined on Mon, Nov 2 2009
    • Reutlingen, Baden-Wurttemberg
    • Posts 47
    • Points 860
    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply

     Hi Charley,

    i'm not really sure about that, but the cdfuser-manual states
    "Callbacks are triggered whenever a change is made to the parameter value, even if the
    change is caused by loading a default value."

    This sounds good, but you should check if this applies to your special application too.

    Kind regards

    Stefan

    • Post Points: 20
  • Thu, May 19 2011 6:50 AM

    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply

    Take a look at solution 11018344 - this has code to call CDF callbacks procedurally.

    Regards,

    Andrew.


     

    • Post Points: 20
  • Thu, May 19 2011 6:10 PM

    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply
    Andrew,

    Thank you, but the link is not exist.

    Charley
    • Post Points: 35
  • Thu, May 19 2011 7:41 PM

    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply

    CDF callbacks are only executed during the interactive editing of the parameters through the Edit Property form or the Edit Property Assistant (IC6.1). If you are changing them programmatically, you have to execute the callback. Here is a way to do it:

    ;; Get the instance
    inst = car(selectedSet())
    ;; Instance CDF
    cdfgData = cdfGetInstCDF(inst)
    inst->length = newLength
    param = cdfFindParamByName( cdfgData "length")
    when(param->callback
      evalstring(param->callback)
    )

    Ted (this line is not part of the code)

     

    • Post Points: 20
  • Fri, May 20 2011 12:16 AM

    • StefanSL
    • Top 150 Contributor
    • Joined on Mon, Nov 2 2009
    • Reutlingen, Baden-Wurttemberg
    • Posts 47
    • Points 860
    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply

     Hi Charley,

    there's a small (but  nevertheless vital) error in Andrews link:

    http://support.cadence.com/wps/mypoc/cos?uri=deeplinkmin:ViewSolution;solutionNu mber=11018344

    remove the space within "Nu mber", then it works fine...

    regards, have a nice weekend

    Stefan

     

    • Post Points: 20
  • Fri, May 20 2011 1:24 AM

    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply
    Apologies - cut and paste error. Did it in too much of a hurry - thanks Stefan for fixing it!
    • Post Points: 5
  • Sun, May 22 2011 10:43 PM

    Re: How to use skill to change PCell parameter like using Edit Instance Properties to change parameter ? Reply

    Ted,

    It works , thank you.

    Charley

    • Post Points: 5
Page 1 of 1 (10 items)
Sort Posts:
Started by Charley Chen at 18 May 2011 11:27 PM. Topic has 9 replies.