Ocean script from UNIX terminal

Discussion in 'Cadence' started by Samiran, May 5, 2010.

  1. Samiran

    Samiran Guest

    Hi,

    How can I invoke and run ocean scripts from unix terminal (I am using
    bash shell)?

    Cheers
    Sam
     
    Samiran, May 5, 2010
    #1
  2. Samiran wrote, on 05/05/10 18:13:
    Sam,

    You could read the documentation? (The OCEAN Reference Manual)

    Use either:

    ocean -restore oceanScript.ocn

    or

    icfb [-nographE] -restore oceanScript.ocn

    (the second is if you're using IC5141 and want to use the design(lib cell view)
    form of the design function; if using IC61X, you can netlist with the "ocean"
    executable).

    Actually the documentation suggests redirecting the input rather than using the
    -restore argument, but personally I think the -restore method is better, and I
    promote that in the Cadence OCEAN training class.

    The shell you're using doesn't matter.

    Regards,

    Andrew.
     
    Andrew Beckett, May 6, 2010
    #2
  3. Samiran

    Samiran Guest

    I OceanRef the instruction given:

    To load an OCEAN script,
    1. Type the following command to start OCEAN:
    ocean
    The OCEAN prompt appears.
    2. Use the SKILL load command to load your script:
    load( "script_name.ocn" )
    Messages about the progress of your script appear.

    I followed it: enter $ocean , but got the error: bash: ocean: command
    not found

    What do I need to change to include the command? Do I need to update
    my .bashrc file? What will be the update statement?

    Please help!

    Regards
    Sam.
     
    Samiran, May 7, 2010
    #3
  4. Samiran wrote, on 05/07/10 06:12:
    Sam,

    This is really a basic UNIX question. Your $PATH cannot be set up properly.

    The "ocean" executable is in <ICinstDir>/tools/dfII/bin - the same place as icfb
    (in IC5141) and virtuoso (in IC614).

    You would need to have the path to your IC installation in the $PATH definition.
    If you are managing to run icfb/virtuoso somehow, then presumably you must have
    some kind of wrapper script in place around it? What does "which icfb" or "which
    virtuoso" say - is the resulting path inside the Cadence installation?

    Without knowing how your environment is set up (or not), it's very hard to give
    you the answer. It ought to just be a matter of putting:

    export PATH=<ICinstDir>/tools/dfII/bin:<ICinstDir>/tools/bin:$PATH

    in your .bashrc , but if there are wrapper scripts in place (for some reason -
    maybe because you are submitting the icfb/virtuoso jobs to a queueing system),
    that may not be the "right" thing to do for your environment.

    Regards,

    Andrew.
     
    Andrew Beckett, May 7, 2010
    #4
  5. Samiran

    PM Guest

    We have to suppose '$' is your prompt?
    You are not running this as root, aren't you?
    As already stated, you have first to take some basic lessons
    on the topic 'command line'.

    PM
     
    PM, May 7, 2010
    #5
  6. Samiran

    Debjit Guest

    Dear Sam,

    You really lack basic Unix knowledge and Cadence knowledge. Also
    please enhance the good practice of reading different Cadence manuals
    available within the doc folder of every type of Cadence Software
    distribution.

    You will get answer to every basic question you have .


    Thanks and Regards !!!!

    Debjit.
     
    Debjit, May 20, 2010
    #6
  7. Samiran

    Sabyasachi Guest

    Dear Samiran,
    I suppose you are using .bashrc file. Copy my
    settings of .bashrc file . It will run.
     
    Sabyasachi, May 21, 2010
    #7
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.