I would like to launch from a batch simulation through spectre, a transient simulation and to do an integration of the voltage and current curves to get the consumed power.
I have not managed yet to find the syntaxe for the "integration operation". Plus I would like to get the syntaxe for a "delay operation".
Extract of the input.scs :
tran tran stop=6.6nn write="spectre.ic" writefinal="spectre.fc" annotate=status save=selected maxiters=5
finalTimeOP info what=oppoint where=rawfile
modelParameter info what=models where=rawfile
element info what=inst where=rawfile
outputParameter info what=output where=rawfile
designParamVals info what=parameters where=rawfile
primitives info what=primitives where=rawfile
subckts info what=subckts where=rawfile
save vinput vss net_pl device_state vdd Rdevice:1
export power_dyn_consumed = int((i("Rdevice:1") * v("vinput")) 2n 4.6n)
saveOptions options save=selected subcktprobelvl=2
for the delay, it should be something like :
delay_writing = delay(?wf1 v("vinput" ?result "tran") ?value1 0.5 ?edge1 "rising" ?nth1 1 ?td1 0.0 ?wf2 v("device_state" ?result "tran") ?value2 0.5 ?edge2 "rising" ?nth2 1 ?td2 0.0 ?stop nil ?multiple nil)
spectre /home/.../simulations/FF_svtsvt_1V_0C/TC_TR/1_0.04//input.scs +log /home/.../simulations/FF_svtsvt_1V_0C/TC_TR/1_0.04//log_file.log
Thanks a lot !!