23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.14 Global Options 433<br />

Display the options of<br />

ReadNetlist.<br />

Change the value of<br />

InstanceNameSeparator<br />

globally.<br />

Change the value of<br />

Protocol locally for<br />

ExpandSubcircuits.<br />

In[3]:= Options[ReadNetlist]<br />

Out[3]=<br />

CharacterMapping _ $,<br />

InstanceNameSeparator InheritedAnalogInsydes,<br />

KeepPrefix True, LevelSeparator , LibraryPath .,<br />

ParseOnly False, Protocol InheritedAnalogInsydes,<br />

Simulator InheritedAnalogInsydes, UserPDKMap None<br />

In[4]:= SetOptions[AnalogInsydes, InstanceNameSeparator −> "$$"]<br />

Out[4]=<br />

InstanceNameSeparator $$,<br />

LibraryPath ⧴ Prepend$Path, aidirAnalogInsydesModelLibrary,<br />

ModelLibrary FullModels‘, Protocol StatusLine,<br />

Simulator AnalogInsydes, UseExternals True<br />

In[5]:= SetOptions[ExpandSubcircuits, Protocol −> None]<br />

Out[5]=<br />

AutoloadModels True, DefaultSelector None, HoldModels None,<br />

InstanceNameSeparator InheritedAnalogInsydes,<br />

KeepLocalModels False, LibraryPath InheritedAnalogInsydes,<br />

ModelLibrary InheritedAnalogInsydes,<br />

Protocol None, Symbolic All, Value None<br />

Internally, Analog Insydes resolves inherited options by means of the function ResolveOptions.<br />

We use ResolveOptions here for documentation purposes only. Option inheritance is taken care of<br />

automatically by Analog Insydes. Below, ResolveOptions is used to determine the final values of<br />

the options for ExpandSubcircuits. Note that the local value of the Protocol option overrides the<br />

value from Options[AnalogInsydes].<br />

Get option settings for<br />

ExpandSubcircuits.<br />

In[6]:= ResolveOptions[{}, ExpandSubcircuits,<br />

{InstanceNameSeparator, Protocol}] // InputForm<br />

Out[6]//InputForm= {"$$", None}<br />

For ReadNetlist, the values of both options are retrieved from Options[AnalogInsydes].<br />

Get option settings for<br />

ReadNetlist.<br />

In[7]:= ResolveOptions[{}, ReadNetlist,<br />

{InstanceNameSeparator, Protocol}] // InputForm<br />

Out[7]//InputForm= {"$$", StatusLine}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!