• 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 SKILL
  3. Why could I get returned value from errored simulation?

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 144
  • Views 9438
  • 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

Why could I get returned value from errored simulation?

ichiro
ichiro over 3 years ago

My test bench has a reading model error now but below script return the "path". I expecte getting "nil" as the returned value.

How to check the simulation's fail ?

F_sim_pass=run()
if( (F_sim_pass!=nil)
    then
        printf("------------------------- Simulation Successful -------------------------\n")
    else
        printf("------------------------- Simulation Error -------------------------\n")
)

Best regards,

Ichiro

  • Cancel
  • Kevin Buck
    Kevin Buck over 3 years ago

    I don't see this function run() in the documentation but are you sure it doesn't just return t after it has executed?

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ichiro
    ichiro over 3 years ago in reply to Kevin Buck

    Hi, Kevin

    The run() is including Ocean reference.

    And I could run a simulation by this command.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to ichiro

    The run() function does not return the success/failure of simulation - as is clear from the documentation.

    Usually I'd do this by seeing whether the expected result database is present - for example looking at the return value of results() and seeing whether the analysis I'm expecting is present (using member() for example).

    Andrew

    • 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