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.

14 1. A Short Introduction<br />

which automatically translates an external netlist description into the Analog Insydes netlist format.<br />

You can import netlists written for or generated by Eldo, PSpice, Saber, and the Spectre to Analog<br />

Insydes interface for Analog Artist.<br />

The first argument to ReadNetlist is the simulator input file. Since this file (*.cir in our case)<br />

only contains the numerical values of the elements, the operating-point information and the values<br />

for the small-signal parameters of the transistors have to be extracted from the simulator output file<br />

(*.out in our case). This is performed automatically by ReadNetlist, too. All we have to do is<br />

specifying the corresponding simulator output file as second argument.<br />

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

"AnalogInsydes/DemoFiles/OP−741.cir",<br />

"AnalogInsydes/DemoFiles/OP−741.out",<br />

Simulator −> "PSpice", KeepPrefix −> False]<br />

Out[3]= Circuit <br />

As the syntax of external netlist files varies for each simulator, you have to specify from which<br />

external format you are reading by means of the Simulator option of ReadNetlist.<br />

The return value of ReadNetlist is a Circuit object which contains symbolic values for each netlist<br />

element as well as the corresponding numerical reference information. By default, the Circuit object<br />

is displayed as a single line in your output cell. To view the complete netlist apply the command<br />

DisplayForm to the Circuit object (we will not evaluate the command since the output is too big<br />

to be shown here):<br />

DisplayForm[op741]<br />

Additionally, you can use the command Statistics (Section 3.6.17) to get an impression of the<br />

circuit complexity. This command prints the number of different element types occuring in the<br />

circuit.<br />

In[4]:= Statistics[op741]<br />

Number of Resistors : 13<br />

Number of Capacitors : 1<br />

Number of VoltageSources : 5<br />

Number of models BJT/QNPN741 : 15<br />

Number of models BJT/QPNP741 : 11<br />

Total number of elements : 45<br />

Setting Up Circuit Equations<br />

Once the netlist is imported, the next step is to set up the symbolic circuit equations. In Analog<br />

Insydes this can be done automatically using the command CircuitEquations (Section 3.5.1). The<br />

Analog Insydes netlist read by ReadNetlist contains generic model references for each transistor and<br />

does not specifiy a concrete model implementation. Thus, we have to instruct Analog Insydes which<br />

model to use during equation setup by means of the option ModelLibrary. Analog Insydes comes<br />

with a predefined SPICE-compatible, symbolic model library in three different complexity levels<br />

called "FullModels‘", "SimplifiedModels‘", and "BasicModels‘" (the implemented models are<br />

explained in detail in Chapter 4.3. For special tasks the model library can be extended by the user;

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

Saved successfully!

Ooh no, something went wrong!