I face some problems in adexl with transient and stb analysis at two times points using spectre/mmsim 111 isr22 and ic615.16.2.
I run a transient simulation with ac times(where stb analysis is run): t_stb1 and t_stb2.
I find the loopgain at the two time points with these expressions in adexl:
ymax(dB20(famValue(getData("loopGain" ?result "stb") VAR("t_stb1"))))
ymax(dB20(famValue(getData("loopGain" ?result "stb") VAR("t_stb2"))))
This works for one adexl testbench but not for two others. In latter case, the loop gain for the last time point is evaluated in both cases. Looking at the loopgain waveforms, I see that the waveforms have a "sweep parameter" t_stb2 (which explains why this occurs).
Is there another way to have this correct regardless of what kind of parameters that are for some reason included in the waveform?