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

Pick a specific voltage value from a wave and save it [OCEAN]

$
0
0

Hello!

I'm new into OCEAN and skill, and I have a question regarding the use of output. I'm running a simulation for a pixel array with a loop. The loop changes the illumination power and saves the transient values into a .txt. The code is something like this.

analysis('tran ?stop "10m" ?errpreset "conservative" )
analysis('dc ?saveOppoint t )
envOption(
'enableNoiseRefactor t
'analysisOrder list("dc" "tran")
)
option( 'gmin "1e-18"
)
temp( 27 )
desVar( "tRST" 2m )
save('v "/Vp")
PoptValues = list(1 2 3)
Out = outfile("Voltages.txt" "w")
foreach(i PoptValues
desVar( "Popt" i )
saveOption( ?saveahdlvars "all" )
saveOption( 'useprobes "yes" )
saveOption( 'currents "all" )
saveOption( 'pwr "all" )
saveOption( 'save "all" )
run()
ocnPrint(?output Out VT("/Vp"))
)
results()
close(Out)

The thing is, i'm saving the whole wave, the time values + the voltages, but what I really need is 1 value for a specific timestamp. Let's say that I want the voltage value when t = 3ms. I was trying to use the cross() function but it doesnt work for what I want. Is there a way to save only that voltage value and not the whole simulation?

Thanks, Yassine


Viewing all articles
Browse latest Browse all 4919

Trending Articles



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