ocean script run from icfb

Discussion in 'Cadence' started by Shakti, Dec 10, 2005.

  1. Shakti

    Shakti Guest

    Hi

    I run ocean scripts from command line as well from icfb.
    I want to run createNelist() if I run the script from icfb
    The code should look someting like

    if(blahblah()
    then
    design(libname cellname viewname)
    createNetlist(?recreateAll t)
    else
    design(netlistfile)
    )

    The function blahblah() should tell me if I am running ocean from
    command line
    or icfb. Can anybody tell me if such a function already exists ?

    Regards
    Shakti
     
    Shakti, Dec 10, 2005
    #1
  2. Shakthi,
    Just checking if an interactive command is callable should give you
    whether you are inside the icfb or not.
    if(isCallable('hiOpenWindow)
    then
    ;you are inside the icfb
    do soemthing
    else
    ;you are not inside the icfb
    do some other thing
    )

    regards,
    Suresh
     
    Suresh Jeevanandam, Dec 11, 2005
    #2
  3. Unfortunately the above wont' work, since hiOpenWindow() is callable from ocean.
    Remember the ocean executable is actually graphical; just doesn't have a CIW...

    So even hiGraphicMode() can't be used (well, unless you do "ocean -nograph").

    You could use rexMatchp("awd" getVersion()) I suppose?

    Andrew.
     
    Andrew Beckett, Dec 11, 2005
    #3
  4. I thought ocean is a command line interface like the skill executable.

    regards,
    Suresh
     
    Suresh Jeevanandam, Dec 12, 2005
    #4
  5. Shakti

    svenn.are Guest

    I would rather say "command line interpreter". ocean is the executable,
    OCEAN is the name for the convenience macros written in SKILL, the
    language and skill is what we all need to get things to work. :).
     
    svenn.are, Dec 12, 2005
    #5
  6. Shakti

    JoRobins Guest

    Well, icfb and ocean call two different startup files - icfb uses
    ..cdsinit & ocean uses .oceanrc if I remember right. So you should be
    able to set a variable for instance - "icfbSession" in your .cdsinit to
    "t" and to "nil" in your .oceanrc (or even undefined) and you should be
    able to distinguish between the two by checking the value of the
    variable.

    Unless I'm missing something, this should work....

    Good luck,
    Jose
     
    JoRobins, Dec 12, 2005
    #6
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.