Quantcast
Channel: Cadence Custom IC Design Forum
Viewing all articles
Browse latest Browse all 4908

Printing to a file using fprintf

$
0
0

Hi,

I have a simulation for generating MOS transistor data using a 4 nested sweeps (VGS, L, VDS, VSB) for a 4-terminal NMOS device. I am able to setup the simulation and run it with all working OK. However, I am trying to get the results into a .csv or .dat file in a clean manner.

I am using IC617 with Spectre version 16.1.0.479.isr9.

I know this question was asked before over here https://community.cadence.com/cadence_technology_forums/f/custom-ic-skill/33105/parametric-analysis  but the solution to use MATLAB is not something I can do at the current time. I will have to stick with using OCEAN or using a manual click and save as .csv

My setup is such that the VGS sweep is configured in ADE XL analysis window and the other sweeps are configured within the parametric analysis window (from top to bottom VSB,VDS,l)

My initial way to print the data into a .csv file was to use ocnPrint() which I know works best for plotting waveform data:

selectResult('dc)selectResult('dc)ocnPrint(?output "~/MOS_sweep/gm.csv" ?numberNotation 'scientific getData("M0:gm"))

This results in a .csv file that is a little cumbersome to read in MATLAB, in that it has blocks of 2-D data (with VGS and l as the sweep variables) and then multiple such blocks for swept values of VDS and VSB. 

By right clicking the parameter under the 'dc folder in Results Browser and creating a table, however the data is listed a 2-D data which is much more convenient to me. My question is how to invoke the table and save that as a .csv file from OCEAN?

AG


Viewing all articles
Browse latest Browse all 4908

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>