SKill procedure in Ocean scripts ?.

S

sampah

Guest
Hello all,

Has anyone on this list tried to include a SKILL procedure defination
inside an Ocean script ? Example,

;-------------- MyOcean.ocn -------------------
simulator('spectre)
;
; Bunch of Ocean related statements
;
; Calling procedure to do something
MyProc1(arg1, arg2)
;
; More Ocean statements.
;
procedure MyProc1(

let(.....
; Do this and that
)
)
;------------------------------------------

I tried this and Ocean did not like it - not in Cadence 5.0.33 with
HPUX anyway. If it is not possible to include user defined procedures
inside an Ocean script, is there an alternative work around that anyone
has tried gotten to work successfully ?.

Thanks.

Jon
 
Hi,

We do it. But we do:


procedure MyProc1(

let(.....
; Do this and that
)
)

simulator('spectre)
;
; Bunch of Ocean related statements
;
; Calling procedure to do something
MyProc1(arg1, arg2)
;
; More Ocean statements.
;


Stefano

sampah wrote:
Hello all,

Has anyone on this list tried to include a SKILL procedure
defination inside an Ocean script ? Example,

;-------------- MyOcean.ocn -------------------
simulator('spectre)
;
; Bunch of Ocean related statements
;
; Calling procedure to do something
MyProc1(arg1, arg2)
;
; More Ocean statements.
;
procedure MyProc1(

let(.....
; Do this and that
)
)
;------------------------------------------

I tried this and Ocean did not like it - not in Cadence 5.0.33 with
HPUX anyway. If it is not possible to include user defined procedures
inside an Ocean script, is there an alternative work around that anyone
has tried gotten to work successfully ?.

Thanks.

Jon
 
Ocean is SKILL. You can do what you want, no problem.
As long as you respect SKILL language and define a procedure /before calling it/.
Note, if you run ocean scripts from within DFII, you have access to the whole
palette of SKILL functions, however if you run it from within the ocean executable,
you get a subset (as far as i remember - refer to the doc or sourcelink to find out exactly).

I have to point out, again, that "ocean did not like it" or similar statements are not very
descriptive. You're narrowing your chances of getting a relevant answer, if any.

cheers
stéphane

sampah wrote:
Hello all,

Has anyone on this list tried to include a SKILL procedure
defination inside an Ocean script ? Example,

;-------------- MyOcean.ocn -------------------
simulator('spectre)
;
; Bunch of Ocean related statements
;
; Calling procedure to do something
MyProc1(arg1, arg2)
;
; More Ocean statements.
;
procedure MyProc1(

let(.....
; Do this and that
)
)
;------------------------------------------

I tried this and Ocean did not like it - not in Cadence 5.0.33 with
HPUX anyway. If it is not possible to include user defined procedures
inside an Ocean script, is there an alternative work around that anyone
has tried gotten to work successfully ?.

Thanks.

Jon
 
sampah wrote:

Has anyone on this list tried to include a SKILL procedure defination
inside an Ocean script ? Example,
Look into the white paper "Functional verification of a differential
operational amplifier" from Cadence home page to see how to use SKILL
procedures with ocean.

--
Svenn
 
Hello everyone,

Thanks for the tip. Yup, got it to work when I have the function
defined *before* calling it. Got SKILL confused with Perl. Perl appears
more forgiving and allows defination of function at the end of the
script. I have also managed to exercise all my commonly used SKILL
functions within Ocean without any problem at all. It appears the claim
that Ocean *is* SKILL is correct after all :).

Again, thanks everyone.

Jon

By the way, I was executing the Ocean script from the Unix comamnd line
so I do not have the benefit of the CIW.






stefano zanella wrote:
Hi,

We do it. But we do:


procedure MyProc1(

let(.....
; Do this and that
)
)

simulator('spectre)
;
; Bunch of Ocean related statements
;
; Calling procedure to do something
MyProc1(arg1, arg2)
;
; More Ocean statements.
;


Stefano


sampah wrote:

Hello all,

Has anyone on this list tried to include a SKILL procedure
defination inside an Ocean script ? Example,

;-------------- MyOcean.ocn -------------------
simulator('spectre)
;
; Bunch of Ocean related statements
;
; Calling procedure to do something
MyProc1(arg1, arg2)
;
; More Ocean statements.
;
procedure MyProc1(

let(.....
; Do this and that
)
)
;------------------------------------------

I tried this and Ocean did not like it - not in Cadence 5.0.33
with HPUX anyway. If it is not possible to include user defined
procedures inside an Ocean script, is there an alternative work around
that anyone has tried gotten to work successfully ?.

Thanks.

Jon
 

Welcome to EDABoard.com

Sponsor

Back
Top