Since there is a problem to run simulation with spectremdl, I woud like to run simulation with ocean script. Can you please help me to write the measures mentioned below:
For DC analisis:
1. .MEASURE vtsat_sp find VTH(MN2) when v(vg1)=0.2
2. .MEASURE idsat find i(vd3) when V(Vg1)=0.2
Thanks in advance.
I think you'd need to save the operating point data for various components during the transient (assuming it's a transient) by including:
save *:oppoint sigtype=dev
in the netlist (or including a file containing that).
Then in OCEAN you can do:
openResults("/path/to/results.raw")selectResult('tran)threshTime=cross(v("Vg1") 0.2 1 "either" nil nil)vtsat_sp=value(getData("MN2:vth") threshTime)idsat=value(getData("vd3:i") threshTime)
Something like that anyway...
You may have to be cautious about the case of the names. If you interactively try typing outputs() after doing the selectResult, you'll see what's present. You can also use outputs(?map nil) which will give all the names in simulator names - I'm not sure whether you're doing this from ADE or from a standalone netlist.
Thanks a lot for your reply. There are no problems with transiet analisis, but I couldn't do these measurments for DC.
I'm using standalone netlist.
I will appreciate your help.
So is it a DC sweep? If you can post the components and analyses part of the netlist (I don't need the models) it would help me better understand what you're doing, so I can give a better tuned answer - and avoids going backwards and forewards so much.