ocean script run from icfb

S

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
 
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

Shakti wrote:
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
 
On Sun, 11 Dec 2005 18:10:01 +0530, Suresh Jeevanandam
<sureshj@DELETETHISti.com> wrote:

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
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 wrote:
On Sun, 11 Dec 2005 18:10:01 +0530, Suresh Jeevanandam
sureshj@DELETETHISti.com> wrote:


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



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.
I thought ocean is a command line interface like the skill executable.

regards,
Suresh
 
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
 
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 wrote:

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....
The solution from Andrew needs less work. if you don t like getVersion() and the
use of the program name argv(0) , there is also some variable that has the mps
session name , like "icfb1234" .
 

Welcome to EDABoard.com

Sponsor

Back
Top