The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 28th, 2024, 2:02am
Pages: 1
Send Topic Print
run Monté Carlo simulation (Read 95 times)
MohEllayali
New Member
*
Offline



Posts: 4

run Monté Carlo simulation
Sep 03rd, 2010, 5:59am
 
hello everybody,

i wanted to run monté carlo simulation manually, for each run
i am interested in the spread of a certain value, but this value is not a simple expression, once the simulator has picked randomly some process parameters, i need to run an AC simulation a few times , in order for the algorithm to find the value of the parameter i want to calculate. so that's why i was wondering if it was possible just to use the simulator to generate the random sets of parameters , and for each set i will apply my algorithm , in other words, how can i make the simulator as a random generator , and run my simulations manually

i hope it's clear  ::)
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: run Monté Carlo simulation
Reply #1 - Sep 3rd, 2010, 8:14am
 
I can' find out any design issue in your post.
Your question is no more than usage of simulator.

MohEllayali wrote on Sep 3rd, 2010, 5:59am:
in other words, how can i make the simulator as a random generator,
and run my simulations manually
Run monte calro analysis as only one trial with fixed seed number.

Attached figure is a setting for Agilent GoldenGate and Agilent ADSsim.
You can do same task in almost all vendor's simulators.
Back to top
 

Monte_Calro.png
View Profile WWW Top+Secret Top+Secret   IP Logged
MohEllayali
New Member
*
Offline



Posts: 4

Re: run Monté Carlo simulation
Reply #2 - Sep 5th, 2010, 2:23am
 
hi pancho_hideboo
Quote:
I can' find out any design issue in your post.
Your question is no more than usage of simulator.

yes inded, i am new to mc simulations , so my question can seem trivial to you but it wasnt for me

Quote:
Run monte calro analysis as only one trial with fixed seed number.

yes, thank youy very much, your suggestion solved my problem, by specifying the seed number , i can keep the same model parameters picked by the random generator

Quote:
You can do same task in almost all vendor's simulators.

in cadence also, there is an option to set the seed #

thank you again
regards
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: run Monté Carlo simulation
Reply #3 - Sep 5th, 2010, 4:18am
 
MohEllayali wrote on Sep 5th, 2010, 2:23am:
in cadence also, there is an option to set the seed #
There is no simulator whose name is "cadence".
My setting example for Monte Calro is also in Cadence ADE.

If you use Cadence Spectre, see netlist.
You can see setting for seed there. Quote:
mc1 montecarlo variations=process seed=1234 numruns=200 {
 dcop1 dc      // a child analysis
 tran1 tran start=0 stop=1u    // another child analysis
 // expression calculations are sent to the scalardata file
 export slewrate=oceanEval("slewRate(v(\"vout\"),10n,t,30n,t,10,90 )")
}

Also see results as entering "spectre -h montecalro" in unix command line.

Seed number of Cadence Spectre's Monte Calro is fixed as "1" if you run it from Cadence ADE GUI.

You can change seed number even for Cadence Spectre by either of the followings.

(1) Run Monte Calro Simulation by netlist with setting seed number.

(2) Run Monte Calro Simulation by Ocean Script with setting seed number.
The following is a Ocean function for Monte Calro. Quote:
monteCarlo(
[?numIters x_numIters] [?startIter x_startIter] [?seed x_seed]
[?analysisVariation s_analysisVariation] [?sweptParam t_sweptParam]
[?sweptParamVals l_sweptParamVals] [?saveData saveData] [?append b_append]
[?nomRun b_nomRun] )


(3) Change default seed number of Monte Calro Analysis from Cadence ADE by "envSetVal()".


The followings are general notes for you.

- Always describe correct tool's name and vendor's name which you use as tool or simulator.
- Don't do multiple posts which are same content.
- Don't request source code or behavioral model without any efforts.
- There are many simulators which have analyses called as PSS, PAC and Pnoise.
- Describe in detail with using correct terminologies.
- Warnigns are different from Errors.
- ADS is not name of simulator.
- There is no tool which name is Cadence.
- Don't use Direct Plot of Cadence ADE blindly without knowing definition.
- All gains in Direct Plot of Cadence ADE are "right", "true" and "practical" voltage gain.
- Don't mix up Simulation with Post Processing. They are completely different phase.
- MATLAB are different from Simulink.
- Learn measurements using actual instruments. Not "EDA Tool Play

Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
MohEllayali
New Member
*
Offline



Posts: 4

Re: run Monté Carlo simulation
Reply #4 - Sep 8th, 2010, 9:46am
 
hi pancho_hideboo

thank you for your valuable help and remarks, i will be more cautious in future posts .
best regards
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.