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

Accessing spectre sweep waveforms with two analysis of the same type

$
0
0

Hi Everyone,

I would like to run a command line spectre simulation with an ocean script as postprocessing. My problem is that I can not access the two ac simulation results in the inner loop of the sweep. I would like to get a waveform family to work with. I have done parametric sweep in the past couple of times, but not in the recent years, and I am not sure I used two analysis of the same type inside the sweep loop. I would expect that a sweep analysis will not alter the analysis names, just it would add multiple waveforms for a signals.

My simulation statements in my netlist:

sw_vg sweep param=VGS start=0.1 stop=0.6 step=0.05 {
   dcOp dc
   dcOpInfo info what=oppoint where=rawfile
   // AC source @ VG
   ac_g ac start=1M stop=1T
   alt_gac0 alter param=VAC_G value=0
   alt_dac1 alter param=VAC_D value=1
   // AC source @ VD
  ac_d ac start=1M stop=1T
}

My OCEAN output:

ocean> results()
ocean> (dcOp dcOpInfo ac "sw_vg_ac_d-sweep" model
instance output designParamVals primitives subckts
)

I would like to access the two AC simulations as "ac_g-ac" and "ac_d-ac", just as in the case without the sweep analysis, to make the script more general and easier to read and make it future proof - maybe the AC simulation statement changes and the postprocessing commands for the old AC analysis would give misleading results.

Seemingly there are two AC analysis in the result() output, but all waveforms are the same except one if I plot them - checked with ' plot(i("VD_AC:p" ?result "sw_vg_ac_d-sweep") - i("VD_AC:p" ?result "ac")) ', so I am pretty sure that I make something wrong, but I was not able to figure out what it is. I want to see/access all waveforms in both AC simulation. How am I supposed to do that?

Regards,
Zoltan

MMSIM Version: 15.1.0.627.isr12
Cadence/OCEAN Version: ICADV12.2-64b.500.7


Viewing all articles
Browse latest Browse all 4911

Trending Articles