• 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. OCEAN SCRIPT for getting dynamic energy consumption

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 125
  • Views 14534
  • 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

OCEAN SCRIPT for getting dynamic energy consumption

Carmichaeli
Carmichaeli over 11 years ago

Hi everyone,

I designed a circuit through cadence virtuoso and extracted the spice netlist (.scs) from the ADE. Then I want to do circuit simulation many many times with different input variables by OCEAN SCRIPT. I know a little about the Ocean Script on how to use the For Loops, but I don't know how to get the dynamic energy consumption just by coding in ocn file.

It seems that the ADE can generate an ocean script file for one state automatically. If I use the calculator, the value of dynamic consumption can be calculated and shown in the Result Display Window by click "Tools" -> "Table" in the calculator window (I use average(i("/V0/PLUS" ?result "tran-tran"))*1.8 to get the value). But after saving (in ADE), I can't find any code segment containing this part (like integ, average or other computation) in that ocean file (also can't find them in the spectre netlist I just extracted). The spectre netlist and ocean script file seems just gave me the settings about this simulation or generated the psf file. I just can get the correct result through the calculator way. If I add my own code I always get zero.

Can anyone help me get the dynamic consumption in the ocean script way or give me a few examples?

Thank you extremely!

Here is ocn file,

-------------------------------------------------------- 

simulator( 'spectre )

design( "/homes/grad/cadence/Design/inverter_simulate/simulation/inverter_simulate/spectre/schematic/netlist/netlist")

resultsDir( "/homes/grad/cadence/Design/inverter_simulate/simulation/inverter_simulate/spectre/schematic" )

modelFile( 

    '("/homes/grad/cadence/models/spectre/tsmc20N.m" "")

    '("/homes/grad/cadence/models/spectre/tsmc20P.m" "")

)

analysis('tran ?stop "30n"  )

envOption(

'analysisOrder  list("tran") 

)

save( 'v "/out" "/in") 

temp( 27 ) 

run()

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    If you add the expression from the calculator into the ADE outputs (Outputs->Setup), then it would also appear in the saved OCEAN script.

    You could also just add:

    ocnPrint( average(i("/V0/PLUS" ?result "tran-tran"))*1.8 )

    into your OCEAN script after the run(). Or whatever expression you're using in the calculator. ocnPrint will print to the screen, but can also be given arguments to get it to print to a file (see the documentation for more details).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 11 years ago

    If you add the expression from the calculator into the ADE outputs (Outputs->Setup), then it would also appear in the saved OCEAN script.

    You could also just add:

    ocnPrint( average(i("/V0/PLUS" ?result "tran-tran"))*1.8 )

    into your OCEAN script after the run(). Or whatever expression you're using in the calculator. ocnPrint will print to the screen, but can also be given arguments to get it to print to a file (see the documentation for more details).

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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