• 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 - data print to file

Stats

  • Locked Locked
  • Replies 27
  • Subscribers 129
  • Views 23607
  • 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 - data print to file

jugemu1234
jugemu1234 over 16 years ago

Hi,

I am very new to SKILL or ocean script . I have problems with following script. Firstly I created this ocean.ocn by ADE>Session>Save ocean script... Then added some lines to output data to file. However it ends up outputing error after successful simulation but I do not know what is wrong with this then tried to figure out by myself but couldnt.

I am sure this would be easy thing to do for some people. Hope someone help me out at the earliest oppotunity.

Thanks in advance.

---------------------------------
ocnWaveformTool( 'awd )
simulator( 'spectre )
design( "/netlist")
resultsDir( "/MydfII/simulation/sim_osc2/spectre/schematic" )
path( "/multiplelib" )
modelFile(
'("active_thin.scs" "tt")
)
analysis('tran ?stop "1.1u" ?errpreset "conservative" ?write "spectre.ic"
?writefinal "spectre.fc" ?annotate "status" ?finalTimeOp t ?maxiters "5"
?threshold "0.0" ?detail "node" ?sort "name" )
desVar( "Lvar" 1 )
save( 'v "/net019" "/dvss!" "/dvdd!" )
temp( 27 )
out = outfile("results.txt" "a")
run()

results()
selectResults('tran)
outputs()
ocnPrint(?output out frequency(clip(VT("/net019"),1u,1.1u)) )

close(out)


 

  • Cancel
Parents
  • jugemu1234
    jugemu1234 over 15 years ago

     Hi,

    Thanks for your reply. 

    I wrote codes as you mentioned but I got weird results with following codes.

    PM= getData("phaseMargin" ?result "stb_margin")
    DCgain= value(db(mag(getData("loopGain" ?result "stb"))),0,?histoDisplay nil ,?noOfHistoBins 1 )
    UGF= getData("phaseMarginFreq" ?result "stb_margin")

    Outpus were like followings individually.

    nan       -49.6481            nan

    I have no idea what "nan" means to say and how to make it work properly.

    Maybe you can help me again.

     Thanks,

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • jugemu1234
    jugemu1234 over 15 years ago

     Hi,

    Thanks for your reply. 

    I wrote codes as you mentioned but I got weird results with following codes.

    PM= getData("phaseMargin" ?result "stb_margin")
    DCgain= value(db(mag(getData("loopGain" ?result "stb"))),0,?histoDisplay nil ,?noOfHistoBins 1 )
    UGF= getData("phaseMarginFreq" ?result "stb_margin")

    Outpus were like followings individually.

    nan       -49.6481            nan

    I have no idea what "nan" means to say and how to make it work properly.

    Maybe you can help me again.

     Thanks,

    • 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