The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl
Simulators >> Circuit Simulators >> modelFile argument in OCEAN
https://designers-guide.org/forum/YaBB.pl?num=1143015405

Message started by sck236 on Mar 22nd, 2006, 12:16am

Title: modelFile argument in OCEAN
Post by sck236 on Mar 22nd, 2006, 12:16am

My ocean script is as the following.
-----------------------------
(a)-script
model = "~/models/nmos.scs"
section = "nnnnn"
modelFile('(model section))
--------------------------------
--------------------------------
(b)-script
modelFile('("~/models/nmos.scs" "nnnnn"))
----------------------------------------------

(a) does not work. The OCEAN coulcn't load the model file.
But (b) does work. I think that (a) and (b) are same.

what's wrong with the script (a)?

Title: Re: modelFile argument in OCEAN
Post by bernd on Mar 22nd, 2006, 2:43am

Try

modelFile(list(model section))

'(model section) does not evaluate the list.

SKILL Language User Guide, Chapter 1 SKILL Lists - Building Lists

Quote:
The single quote (') operator builds a list using the arguments exactly as they are presented. The values of a and b are irrelevant. The list function fetches the values of variables for inclusion in a list.

'( 1 2 3 )                   => ( 1 2 3 )
a = 1                        => 1
b = 2                        => 2
list( a b 3 )                => ( 1 2 3 )



Bernd

The Designer's Guide Community Forum » Powered by YaBB 2.2.2!
YaBB © 2000-2008. All Rights Reserved.