Home > Community > Forums > Custom IC SKILL > pPar not works for intiger CDF parameters

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

 pPar not works for intiger CDF parameters 

Last post Thu, Jan 31 2013 11:51 AM by skillUser. 17 replies.
Started by Sarvani 31 Aug 2012 06:26 AM. Topic has 17 replies and 4292 views
Page 2 of 2 (18 items) < Previous 1 2
Sort Posts:
  • Thu, Jan 31 2013 11:08 AM

    Re: pPar not works for intiger CDF parameters Reply

    Hi ,

     I will be grateful if someone can help me with a pcell simple issue. I have a lyout cell that instanciate a 1 parameter pcell. I want to move that parameter up in the hierarchy so that when I instanciate the cell and set the parameter, the pcell inside is updated accordingly. The same as the pPar("variable") in schematic.

    Many thanks,

    Mouadh

    • Post Points: 35
  • Thu, Jan 31 2013 11:41 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: pPar not works for intiger CDF parameters Reply

    Hi Mouadh,

    I'm assuming that the topmost PCell is a SKILL PCell?  When you instantiate the lower level PCell in the code you supply the parameter to that cell - the name of the parameter can be the same as the lower level cell, or entirely different, it's up to you.  So in your call to dbCreateParamInst or dbCreateParamInstByMasterName, you use that parameter in the list of parameters supplied to the instance you are creating, something like this:

    dbCreateParamInstByMasterName(pcCellView "basic" "nand" "symbol" "inst1" 
    list(0 0) "R0" 1 list(list("area" "float" myTopLevelAreaParam)) t )
    

    In this case the lower level parameter is named "area" and the top level parameter is "myTopLevelAreaParam".  Hopefully this answers the question?

    regards,

    Lawrence.

    • Post Points: 5
  • Thu, Jan 31 2013 11:51 AM

    • skillUser
    • Top 10 Contributor
    • Joined on Fri, Sep 19 2008
    • Austin, TX
    • Posts 2,567
    • Points 15,575
    Re: pPar not works for intiger CDF parameters Reply

    Hi Mouadh,

    Sorry, my example was mostly copied from the docs and shows a "float" parameter rather than integer, but hopefully you get the idea? You can even make the top-level parameter a string (often more flexible to have parameters as strings) and then used something like cdfParseFloatString() in the lower-level instance, or pcRound(cdfParseFloatString(myTopLevelAreaParam)), for example.

    Hope this helps.

    Lawrence.

    • Post Points: 5
Page 2 of 2 (18 items) < Previous 1 2
Sort Posts:
Started by Sarvani at 31 Aug 2012 06:26 AM. Topic has 17 replies.