The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
May 24th, 2024, 5:11pm
Pages: 1
Send Topic Print
About monte carlo analysis (Read 4577 times)
wunderkind
Junior Member
**
Offline



Posts: 10
oregon
About monte carlo analysis
Jun 24th, 2010, 11:15am
 
Hi all,

I want to simulate the offset of a comparator and want to follow the way mentioned in this document:

http://www.designers-guide.org/Analysis/comparator.pdf

However, i don't know how to store the comparator's results into a file. I used the sampler found in designer's guide community, the link is:

http://www.designers-guide.org/VerilogAMS/functional-blocks/smplr/sampler.vams

But the problem is the content of the file will be replaced each time when one run of Monte Carlo analysis is finished so that I can only get the comparator's results for the last run of Monte Carlo analysis.

I am just wondering how to store all comparator's results.

Thank you
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: About monte carlo analysis
Reply #1 - Jun 24th, 2010, 11:21am
 
wunderkind wrote on Jun 24th, 2010, 11:15am:
But the problem is the content of the file will be replaced each time when one run of Monte Carlo analysis is finished
so that I can only get the comparator's results for the last run of Monte Carlo analysis.
It depends on what simulator you use.

What simulator do you use ?

Show me netlist regarding analysis statements including monte carlo analysis.
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
wunderkind
Junior Member
**
Offline



Posts: 10
oregon
Re: About monte carlo analysis
Reply #2 - Jun 24th, 2010, 11:25am
 
pancho_hideboo wrote on Jun 24th, 2010, 11:21am:
wunderkind wrote on Jun 24th, 2010, 11:15am:
But the problem is the content of the file will be replaced each time when one run of Monte Carlo analysis is finished so that I can only get the comparator's results for the last run of Monte Carlo analysis.
It depends on what simulator you use.

What simulator do you use ?



The simulator I use is Cadence Spectre
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: About monte carlo analysis
Reply #3 - Jun 24th, 2010, 11:30am
 
wunderkind wrote on Jun 24th, 2010, 11:25am:
The simulator I use is Cadence Spectre
Set "savefamilyplots=yes" in montecarlo analysis statement.
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
wunderkind
Junior Member
**
Offline



Posts: 10
oregon
Re: About monte carlo analysis
Reply #4 - Jun 24th, 2010, 1:46pm
 
pancho_hideboo wrote on Jun 24th, 2010, 11:30am:
wunderkind wrote on Jun 24th, 2010, 11:25am:
The simulator I use is Cadence Spectre
Set "savefamilyplots=yes" in montecarlo analysis statement.


I have tried this, but it doesn't work
Back to top
 
 
View Profile   IP Logged
pancho_hideboo
Senior Fellow
******
Offline



Posts: 1424
Real Homeless
Re: About monte carlo analysis
Reply #5 - Jun 25th, 2010, 3:57am
 
wunderkind wrote on Jun 24th, 2010, 1:46pm:
I have tried this, but it doesn't work
Show me netlist regarding analysis statements including monte carlo analysis.

If you see result's data by using "Results Browser", there are many result's data.
Do you use correct data which include all trial data in monte carlo ?
Back to top
 
 
View Profile WWW Top+Secret Top+Secret   IP Logged
wunderkind
Junior Member
**
Offline



Posts: 10
oregon
Re: About monte carlo analysis
Reply #6 - Jun 28th, 2010, 4:03pm
 
pancho_hideboo wrote on Jun 25th, 2010, 3:57am:
wunderkind wrote on Jun 24th, 2010, 1:46pm:
I have tried this, but it doesn't work
Show me netlist regarding analysis statements including monte carlo analysis.

If you see result's data by using "Results Browser", there are many result's data.
Do you use correct data which include all trial data in monte carlo ?



I have solved my problem by modifying the sentence of "file = $fopen(filename)" to "file = $fopen(filename, "a")" in the VerilogA for sampler. In such a way that I can get all Monte Carlo simulation results
Back to top
 
 
View Profile   IP Logged
wunderkind
Junior Member
**
Offline



Posts: 10
oregon
Re: About monte carlo analysis
Reply #7 - Jun 28th, 2010, 4:04pm
 
pancho_hideboo wrote on Jun 25th, 2010, 3:57am:
wunderkind wrote on Jun 24th, 2010, 1:46pm:
I have tried this, but it doesn't work
Show me netlist regarding analysis statements including monte carlo analysis.

If you see result's data by using "Results Browser", there are many result's data.
Do you use correct data which include all trial data in monte carlo ?



Thank you very much, pancho_hideboo!!
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.