• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Pick a specific voltage value from a wave and save it [OCEAN...

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 126
  • Views 9165
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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

Yasso
Yasso over 3 years ago

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

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    You'd use:

    ocnPrint(?output Out value(VT("/Vp") 3m))

    The value() function is what you want.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information