• 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. csh C script for automating the ocean simulation

Stats

  • Locked Locked
  • Replies 14
  • Subscribers 125
  • Views 15934
  • 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

csh C script for automating the ocean simulation

Aksh
Aksh over 4 years ago

Dear all,

I am trying to build a C script that sets the environment, invokes the ocean software and completes the simulation without any interventions required. (basically automating the whole simulation).

In the bigger picture, I want simulations to be invoked by MATLAB and I want the simulations to be performed in inputs varying iteratively (given by a Matlab algorithm).

The C script looks something like this:

csh

source /home/install/cshrc

ocean

load("test.ocn")

The problem is that the commands up to the line "ocean" work beautifully.

But I am not able to run the "load" command and is the reason I am not able to complete the simulation.


After some searching, I found that the "load" command can be placed in a .oceanrc file. But I am not sure it will work and also I am not able to find its directory nor have any idea where to place it. 

Can anyone suggest a method so that I can complete this script?

Any leads are highly appreciated.

Thank You

Aksh Chordia

  • Cancel
  • Aksh
    Aksh over 4 years ago in reply to ShawnLogan

    Thanks for your insight Shawn and Andrew.

    But I am a newbie to the world of cadence and csh scripting.

    My basic question is: what can I can to make the script work? (either basically make the script readable after the ocean command or by doing something else)

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Aksh
    Aksh over 4 years ago in reply to ShawnLogan

    Gotcha! 
    Thanks, it works, the directory was changing.

    Thank You so much for your time and efforts.

    Cheers

    Aksh

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Aksh
    Aksh over 4 years ago in reply to Andrew Beckett

    Yes, this is exactly what I am looking for: how to pass the arguments through the wrapper scripts?

    Though the -restore works, I was missing the directory path.

    Thank You very much for your time and efforts.
    Cheers

    Aksh 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • ShawnLogan
    ShawnLogan over 4 years ago in reply to Aksh

    Dear Aksh,

    Aksh said:

    Yes, this is exactly what I am looking for: how to pass the arguments through the wrapper scripts?

    Though the -restore works, I was missing the directory path.

    Great! Thank you for letting us know!

    Shawn

    • 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