Home > Community > Forums > Custom IC Design > Addition of source with know statistical data

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

 Addition of source with know statistical data 

Last post Wed, Jun 18 2008 8:21 AM by archive. 4 replies.
Started by archive 18 Jun 2008 08:21 AM. Topic has 4 replies and 2684 views
Page 1 of 1 (5 items)
Sort Posts:
  • Wed, Jun 18 2008 8:21 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    Addition of source with know statistical data Reply

        Hi All,

    I would like to run a monte carlo simulation on my analog design. I know the statistical distribution (gaussian shaped) of the input signal I have to provide to my system.

    Does anyone know how to provide this information to a source like VDC in analogLib library?

    Thanks for your support,
    Best regards,

    Axel


    Originally posted in cdnusers.org by axp
    • Post Points: 0
  • Wed, Jun 18 2008 2:39 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Addition of source with know statistical data Reply

    Create a file with a ".scs" suffix, and set up the distribution you want (see "spectre -h montecarlo" for more details.

    Then reference this file with Setup->Model Libraries in ADE. In the ADE variables, define variable MYDC, and give it a value (this will be your mean value).

    // statistics block for my
    // design variables
    
    statistics {
    
       process {
          vary MYDC dist=unif N=0.3
          }
    
       mismatch {
          vary MYDC dist=gauss std=0.05
       }
    
    }
    

    On an instance of the vsource, you can use the design variable "MYDC". If you want mismatch to be modelled, you'll need to ensure that the vsource is within a subckt - so create an additional level of hierarchy around the vsource in order to do this.

    That's it.

    Regards, Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Thu, Jun 19 2008 1:03 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Addition of source with know statistical data Reply

    Hi Andrew,

    thanks for your fast reply... However that fails.


    I have defined a variable in ADE named bgv = 1.2 V
    I have defined a new cell including a vsource component whose DC value is the variable "bgv"

    I have created a "bgvoltage.scs" file:

    statistics{

    mismatch{
    vary bgv dist=gauss std=15e-3
    }

    }


    and have added this file to ADE.

    However it tells me that the "bgvoltage.scs" file does not contain any library and it reports me an error.

    Do you have any idea of what I have to do ?

    Thanks in advance !!

    Axel


    Originally posted in cdnusers.org by axp
    • Post Points: 0
  • Thu, Jun 19 2008 1:34 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Addition of source with know statistical data Reply

    Two things:

    1. When you reference the "bgvoltage.scs" on the model libraries form, do [u]not[/u] specify a [i]section name[/i]. If you do this, it will expect the statistics block to be within a [i]library[/i] statement, which you don't have.
    2. If you want mismatch to work, the voltage source to be within a subckt, as I said before. Essentially mismatch in spectre works by having a parameterized component within a subckt - the mismatch parameters are then made different for each subckt.

    The specific problem you're describing here is (almost certainly) down to the first of the two above; I just wanted to mention the second as I don't want you to solve the first only to find that there is no mismatch!

    Regards,

    Andrew.


    Originally posted in cdnusers.org by adbeckett
    • Post Points: 0
  • Thu, Jun 19 2008 2:40 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,930
    RE: Addition of source with know statistical data Reply

    Great,

    indeed it was caused by the first problem you described !!
    Thanks for you help !!

    Best regards


    Originally posted in cdnusers.org by axp
    • Post Points: 0
Page 1 of 1 (5 items)
Sort Posts:
Started by archive at 18 Jun 2008 08:21 AM. Topic has 4 replies.