The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> Saving simulation results in Cadence Spectre
https://designers-guide.org/forum/YaBB.pl?num=1148226570

Message started by schehrazi on May 21st, 2006, 8:49am

Title: Saving simulation results in Cadence Spectre
Post by schehrazi on May 21st, 2006, 8:49am

Hi,

Assume you have run a long transient simulation and you want to save the voltage of a node vs. time so that you can take it to Matlab for some processing. I used some Ocean commands to do this, however, it turned out that for large number of points (>10000), it takes for ever for it to save the data. In fact, I waited for an hour and then stopped it because I had to do other things. It works fine for small number of data points though. I have no idea why this problem should exist but I want to make sure I am not doing anything wrong. Here are the commands which I used:

selectResults('tran)
x=v("out")
ocnPrint(?output "filename.txt" ?numberNotation 'scientific x)

Is there a better way to do this?

Thank you,

Title: Re: Saving simulation results in Cadence Spectre
Post by Andrew Beckett on Jul 20th, 2006, 2:02pm

Well, for a start, MMSIM61 has a new "spectre toolbox" for matlab. This provides matlab commands so you can directly read spectre/spectreRF results directly into matlab (it's in <instdir>/tools/spectre/matlab , from memory).

Also, I think if you omit the numberNotation in your ocnPrint, it will be quicker. (again, this is from memory - I haven't checked).

Andrew.

Title: Re: Saving simulation results in Cadence Spectre
Post by jbdavid on Sep 2nd, 2006, 12:14am

ocnPrint (as Jay and I just discovered tonight) tries to read all the data into one list before printing it.. and so is limited to about 8K points..

6.1 hasn't had the first QSR yet.. and I'd need to get new keys to use it..
but I will tell jay about it..

Title: Re: Saving simulation results in Cadence Spectre
Post by Andrew Beckett on Sep 20th, 2006, 3:09am

Jonathan,

ocnPrint only has the 8K points limit if you do formatting on it - I think without that it's unlimited...

Andrew.

Title: Re: Saving simulation results in Cadence Spectre
Post by jbdavid on Sep 30th, 2006, 1:19am

if I don't want formatting why would I want to use ocnPrint?

Title: Re: Saving simulation results in Cadence Spectre
Post by Andrew Beckett on Dec 13th, 2006, 8:56am

Hi Jonathan,

Well, if you want to get the numbers out, but you don't want them in suffix notation, or some other notation, you
can just use ?numberNotation "none" and it is much quicker. It even tells you this if you try doing it. i.e. if you
just want the raw numbers, without interpolation, without additional formatting, it is quick, and doesn't
have any point limits.

Andrew.

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