• 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 problem &ocnPrint!

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 124
  • Views 1217
  • 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 problem &ocnPrint!

FormerMember
FormerMember over 16 years ago

I write ocean script for parameter analysis and use ocnPrint to print some simulation result.

For example:

fp=outfile( "./paramResults.out" "a" )

risetime_netA=riseTime(clip(VT("/C5") 5e-08 9e-08) 0 nil VAR("core_voltage") nil 10 90)*1e09

ocnPrint(?output fp ?numSpaces 2 ?width 12 )

After the simulation, the results in the file "paramResults.out" as following:

###############################################################

riseTime(clip(VT("/C5") 5e-08 9e-08) 0 nil VAR("core_voltage") nil 10 90)*1e09

xxx  xxx  xxx  xxx  xxx  xxx

xxx  xxx  xxx xxx  xxx  xxx

###############################################################

How can I get the results as following,use the "expression name" to replace the "expreesion"?  And also add some comments automatically at the end or begin of the results.

###############################################################

risetime_netA

xxx  xxx  xxx  xxx  xxx  xxx

xxx  xxx  xxx xxx  xxx  xxx

; comment

###############################################################

The other question is how to write a script to run paramatic analysis and corner analysis at the same time!!

Thanks in advance!!

  • Cancel
  • archive
    archive over 16 years ago

     Hello,

      You cannot customize what ocnPrint will write.  However, since you are arlready using file ports, you can print your expression name and comments both before and after your ocnPrint command using fprintf.  When using ports always remember to close them with close().

     Samir Jafferali 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • FormerMember
    FormerMember over 16 years ago

    Thanks for your reply.

    BTW , how to write a script to run corner analysis for paramatric analysis?

    • Cancel
    • Vote Up 0 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