| Author |
Message |
Shakti
Guest
|
Posted:
Sat Dec 10, 2005 9:10 am Post subject:
ocean script run from icfb |
|
|
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
|
|
| Back to top |
|
 |
Suresh Jeevanandam
Guest
|
Posted:
Sun Dec 11, 2005 1:10 pm Post subject:
Re: ocean script run from icfb |
|
|
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 |
|
| Back to top |
|
 |
Andrew Beckett
Guest
|
Posted:
Mon Dec 12, 2005 1:10 am Post subject:
Re: ocean script run from icfb |
|
|
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.
|
|
| Back to top |
|
 |
Suresh Jeevanandam
Guest
|
Posted:
Mon Dec 12, 2005 9:10 am Post subject:
Re: ocean script run from icfb |
|
|
I thought ocean is a command line interface like the skill executable.
regards,
Suresh |
|
| Back to top |
|
 |
Guest
|
Posted:
Mon Dec 12, 2005 9:10 am Post subject:
Re: ocean script run from icfb |
|
|
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 |
|
| Back to top |
|
 |
JoRobins
Guest
|
Posted:
Mon Dec 12, 2005 1:10 pm Post subject:
Re: ocean script run from icfb |
|
|
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 |
|
| Back to top |
|
 |
|
|
|
|