Home > Community > Forums > Custom IC SKILL > How do I get the default property values for an instance

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 do I get the default property values for an instance 

Last post Tue, Dec 2 2008 1:18 PM by SkillStudent. 2 replies.
Started by SkillStudent 02 Dec 2008 08:56 AM. Topic has 2 replies and 2332 views
Page 1 of 1 (3 items)
Sort Posts:
  • Tue, Dec 2 2008 8:56 AM

    How do I get the default property values for an instance Reply

    Hi,

    I am trying to create layout instances using SKILL and also be able to change the values of properties. The problem is when I create an instance using SKILL functions (either dbCreateParamInst or dbCreateInst) and change the value of a property (lets say number of fingers in an nfet) the instance comes out diffrerent than the one made through the GUI, basically the property values are not the same, (width, length and so on). I also tried running cdfUpdateInstParam but that didn't fix the problem either. Does anyone know why the property values are diffrerent?

    Thanks,

    • Post Points: 20
  • Tue, Dec 2 2008 9:42 AM

    • Anton
    • Not Ranked
    • Joined on Thu, Oct 30 2008
    • Columbia, MD
    • Posts 6
    • Points 105
    Re: How do I get the default property values for an instance Reply

    Hello,

    I'm assuming that the instance has associated cdf parameters.  If you change the value of these parameters through SKILL, you will need to manually trigger the cdf callback for that parameter.  As an example:

    inst = dbCreateParamInst(your_args_insterted_here) 

    cdf = cdfGetInstCDF(inst) 

    cdf->fingers->value = 12

    evalstring(cdf->fingers->callback)

    I hope this gets you what you need.  BTW, the default cdf values are stored as cdf->fingers->defValue.  

    • Post Points: 20
  • Tue, Dec 2 2008 1:18 PM

    Re: How do I get the default property values for an instance Reply

     evalstring on the parameter's callback did the trick. Thanks.

    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by SkillStudent at 02 Dec 2008 08:56 AM. Topic has 2 replies.