The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> About monte carlo analysis
https://designers-guide.org/forum/YaBB.pl?num=1277403352

Message started by wunderkind on Jun 24th, 2010, 11:15am

Title: About monte carlo analysis
Post by wunderkind on 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

Title: Re: About monte carlo analysis
Post by pancho_hideboo 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 ?

Show me netlist regarding analysis statements including monte carlo analysis.

Title: Re: About monte carlo analysis
Post by wunderkind on 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

Title: Re: About monte carlo analysis
Post by pancho_hideboo 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.

Title: Re: About monte carlo analysis
Post by wunderkind on 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

Title: Re: About monte carlo analysis
Post by pancho_hideboo 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 ?

Title: Re: About monte carlo analysis
Post by wunderkind on 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

Title: Re: About monte carlo analysis
Post by wunderkind on 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!!

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.