• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC SKILL
  3. Multiple variable MonteCarlo simulation in OCEAN

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 14129
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Multiple variable MonteCarlo simulation in OCEAN

Alex Vasjanov
Alex Vasjanov over 11 years ago

Hello,

 I've been wondering, is there any way of doing multiple variable Monte Carlo simulations using OCEAN programming language? Monte Carlo simulations from ADE provide only a singe parameter to be swept, but what about several? Is that even possible?

 

My guess is that it might be impossible due to the specifics of the algorithm that is implemented, but I might be mistaking.

 

 Regards,

Aleksandr

 

  • Cancel
Parents
  • pranucci
    pranucci over 11 years ago

    Andrew,

    I'm trying something similar in IC5141. I just want to run monte carlo inside of a paramter sweep. I have the following code:

    VIN_List='("5.0")
    temp_List='("25" "125")
    BG_code_List='("6")
    CL_code_List='("0")

    number = 0

    fprintf(myPort "number,VIN, BG_code, CL_code, temp, VBG, VREF, Voffset, Iout_DC\n")

    foreach(VIN VIN_List
                desVar("pvdd" VIN)
    foreach(BG_CODE BG_code_List
                desVar(      "BG_code" BG_CODE    )
    foreach(CL_CODE CL_code_List
                desVar(      "CL_code" CL_CODE    )
    foreach(temp temp_List
                    temp(temp)

                    monteCarlo( ?numIters "5" ?startIter "1"
                        ?analysisVariation 'mismatch
                        ?sweptParam "None"
                        ?sweptParamVals "27"  
                        ?saveData t
                        ?nomRun "yes"
                        ?append nil
                        ?saveProcessParams t
                        )
                    monteExpr( "VBG" "VDC(\"/BG_2036\")" )
                    monteExpr( "VREF" "VDC(\"/VREFA\")" )
                    monteExpr( "Voffset" "(VDC(\"/DRAIN\") - VDC(\"/IREF\"))" )
                    monteExpr( "Iout_dc" "IDC(\"/V17/MINUS\")" )
                    monteRun()


    number=number+1

    printf("***** %d *****\n" number)

    Right now I am just simply trying to run two different temperatures and the issue is that I WILL get 10 monte carlo runs, however, the mcdata file I get has identical results for the first 5 runs and the second 5 runs which I believe means that the monte carlo sweeps are ignoring my attempt to set the 'temp' variable. I have the same issue trying to set any other variable in the sweep - every monte carlo run appears to be the same regardless of the desVar statement.

    Here's the mcdata file for this run:

    1.23223 0.405017 0.000328546 0.504977 1.23223 0.405017 0.000328546 0.504977    
    1.21931 0.401064 0.000453496 0.492068 1.21931 0.401064 0.000453496 0.492068    
    1.22453 0.402812 -0.000109186 0.523377 1.22453 0.402812 -0.000109186 0.523377    
    1.22864 0.404161 0.000559947 0.491905 1.22864 0.404161 0.000559947 0.491905    
    1.2225 0.402226 0.000660994 0.487249 1.2225 0.402226 0.000660994 0.487249     

    I'm using 4 monteExpressions and the second 4 columns are identical to the first 4.

    Any idea what's going on?

    Thanks,

    Paul

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • pranucci
    pranucci over 11 years ago

    Andrew,

    I'm trying something similar in IC5141. I just want to run monte carlo inside of a paramter sweep. I have the following code:

    VIN_List='("5.0")
    temp_List='("25" "125")
    BG_code_List='("6")
    CL_code_List='("0")

    number = 0

    fprintf(myPort "number,VIN, BG_code, CL_code, temp, VBG, VREF, Voffset, Iout_DC\n")

    foreach(VIN VIN_List
                desVar("pvdd" VIN)
    foreach(BG_CODE BG_code_List
                desVar(      "BG_code" BG_CODE    )
    foreach(CL_CODE CL_code_List
                desVar(      "CL_code" CL_CODE    )
    foreach(temp temp_List
                    temp(temp)

                    monteCarlo( ?numIters "5" ?startIter "1"
                        ?analysisVariation 'mismatch
                        ?sweptParam "None"
                        ?sweptParamVals "27"  
                        ?saveData t
                        ?nomRun "yes"
                        ?append nil
                        ?saveProcessParams t
                        )
                    monteExpr( "VBG" "VDC(\"/BG_2036\")" )
                    monteExpr( "VREF" "VDC(\"/VREFA\")" )
                    monteExpr( "Voffset" "(VDC(\"/DRAIN\") - VDC(\"/IREF\"))" )
                    monteExpr( "Iout_dc" "IDC(\"/V17/MINUS\")" )
                    monteRun()


    number=number+1

    printf("***** %d *****\n" number)

    Right now I am just simply trying to run two different temperatures and the issue is that I WILL get 10 monte carlo runs, however, the mcdata file I get has identical results for the first 5 runs and the second 5 runs which I believe means that the monte carlo sweeps are ignoring my attempt to set the 'temp' variable. I have the same issue trying to set any other variable in the sweep - every monte carlo run appears to be the same regardless of the desVar statement.

    Here's the mcdata file for this run:

    1.23223 0.405017 0.000328546 0.504977 1.23223 0.405017 0.000328546 0.504977    
    1.21931 0.401064 0.000453496 0.492068 1.21931 0.401064 0.000453496 0.492068    
    1.22453 0.402812 -0.000109186 0.523377 1.22453 0.402812 -0.000109186 0.523377    
    1.22864 0.404161 0.000559947 0.491905 1.22864 0.404161 0.000559947 0.491905    
    1.2225 0.402226 0.000660994 0.487249 1.2225 0.402226 0.000660994 0.487249     

    I'm using 4 monteExpressions and the second 4 columns are identical to the first 4.

    Any idea what's going on?

    Thanks,

    Paul

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information