• 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. ocnPrint to File

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 3999
  • 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

ocnPrint to File

tsnv
tsnv over 1 year ago

Using `ocnPrint` to write a waveform to a file, I am unable to locate the file it writes to if it even writes to the file. I have tried relative and absolute paths and searched through the simulation results directory, `getSkillPath()`directories, as well as the project location. Oddly enough the output that should be printed to the file is printed in the CIW. The OCEAN commands are called through Python-Skill Bridge, which simply allows to use OCEAN commands in Python for further processing.

How can I use the `ocnPrint`-function to write the waveform to a findable file?

# copied from File > Create Script... in maestro
ws['ocnSetXLMode']("explorer") # set mode to OCEANXL
ws['ocnxlProjectDir']("~/simulations") # location of simulation results
ws['ocnxlTargetCellView']("Library", "cell", "view") # substituted values by general names
ws['ocnxlResultsLocation']("") # same as project dir
ws['ocnxlSimResultsLocation']("") # same as project dir
ws['ocnxlMaxJobFail'](20)
# own addition
ws['openResults'](path_data)
ws['selectResult'](Symbol("tran"))
data = ws['getData']("/net1")
res = ws['ocnPrint']("?output", "./myOutputFile", data) # copied from OCEAN reference guide
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 1 year ago

    Given that this "Python-Skill Bridge" is not a Cadence feature, perhaps you should ask the authors of it? I'm unfamiliar with it (you could provide a link for anyone else who has time to explore it, although adding the URL will put the post into moderation as potential spam - if you do that and then appeal it, I'll allow the post).

    The arguments for ocnPrint look reasonable, assuming this bridge interface passes them through correctly. 

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • tsnv
    tsnv over 1 year ago in reply to Andrew Beckett

    My apologies for the premature forum post. The script does work when implemented in a normal SKILL script; should have started with this. The issue was with how the path is passed in the function call. It should have been: ws['ocnPrint'](data, output='~/myOutputFile")

    Link to the Python library for those interested: Python-Skill Bridge

    • 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