Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computer Aided Design - CAD > Cadence > Global and loca...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 4193 of 4373
Post > Topic >>

Global and local variables and environments

by marcoballins@[EMAIL PROTECTED] Aug 27, 2008 at 01:45 AM

Hi all,

I use OCEAN scripts to simulate circuits. Typically I have one (or
more) script per circuit. At the moment all the variables in my
scripts are global.

However I'd like to reduce the number of global variables, or at least
make such that some variables that are used to simulate one circuit
are invisible when simulating a second one.

I do not want to use let(), because

    * I'd like to avoid to explicitly declare each variable
    * I still want to access some variables interactively from the CIW
at the end of the script

I thought something like a MATLAB workspace could do the job. I read
about SKILL++ environments, and I thought that they work like MATLAB
workspaces. However:

    * Can I use SKILL++ environment in scripts (i.e. non-
interactively)?
    * Can you use OCEAN functions directly inside SKILL++ scripts?
    * Is there anything with environments functionality that can be
used in (plain) SKILL scripts?
    * How are environments setup and used in a script? (simple code
example would help here)

In case I cannot use environments or they turn out to be not a good
solution for me:

    * What other options do I have to share/hide variables?
    * How can I clear all the variables?

Thanks for any suggestion.


As an example of how I would like to use this functionality, consider
the case where I want to have "workspaces", each dedicated to a
different circuit/script. All variables used in the script
corresponding to one circuit should be hidden when simulating a second
one. If this is not easily possible, than at least clear all variables
before calling a second script would help.
 




 3 Posts in Topic:
Global and local variables and environments
marcoballins@[EMAIL PROTE  2008-08-27 01:45:00 
Re: Global and local variables and environments
Andrew Beckett <andrew  2008-08-29 11:31:50 
Re: Global and local variables and environments
marcoballins@[EMAIL PROTE  2008-09-09 08:23:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 20:27:46 CST 2008.