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.

2.9 Frequency-Domain Analysis of Linear Circuits 161<br />

For standard applications, you do not need to take care of these things as on the one hand Analog Insydes<br />

provides a library with built-in device models and on the other hand there is no need to write netlists by hand<br />

as this is automatically done by ReadNetlist. Following, we explain the internal model mechanism which<br />

is implemented in the Analog Insydes model library.<br />

Consider the following circuit description which contains a model definition for the high-frequency<br />

MOSFET model introduced in Section 2.9.1 (see Figure 9.3). The symbolic element values are given<br />

as arguments to the Symbolic options while the design-point values, denoted by the names with<br />

a trailing $ac, are given as arguments to the Value options. Both sets of symbols must appear in<br />

the parameter lists of the model definitions to allow for passing design-point values from a model<br />

reference to a model instance and to ensure that symbolic parameters are correctly instantiated.<br />

In[35]:= hfMOSmodel =<br />

Circuit[<br />

Model[<br />

Name −> MOSFET,<br />

Selector −> HighFrequency,<br />

Scope −> Global,<br />

Ports −> {D, G, S, B},<br />

Parameters −> {gm, gmb, Gds, Cgs, Cgd, Cbs, Cbd,<br />

GM$ac, GMB$ac, GDS$ac, CGS$ac, CGD$ac, CBS$ac,<br />

CBD$ac},<br />

Definition −> Netlist[<br />

{CGS, {G, S}, Value −> CGS$ac, Symbolic −> Cgs},<br />

{CGD, {G, D}, Value −> CGD$ac, Symbolic −> Cgd},<br />

{VCG, {G, S, D, S}, Value −> GM$ac,<br />

Symbolic −> gm},<br />

{GDS, {D, S}, Value −> GDS$ac, Symbolic −> Gds},<br />

{VCB, {B, S, D, S}, Value −> GMB$ac,<br />

Symbolic −> gmb},<br />

{CBD, {B, D}, Value −> CBD$ac, Symbolic −> Cbd},<br />

{CBS, {B, S}, Value −> CBS$ac, Symbolic −> Cbs}<br />

]<br />

]<br />

]<br />

Out[35]= Circuit <br />

In[36]:= ExpandSubcircuits[hfMOSmodel];<br />

GlobalSubcircuits[]<br />

Out[37]=<br />

MOSFET, HighFrequency, MOSFET, LowFrequency<br />

Generating Design Points<br />

Please consider the circuit description of the differential amplifier circuit from Section 2.9.2 (see<br />

Figure 9.4). From the netlist entries for M1 to M4 it becomes apparent how the design-point<br />

information is specified for each transistor model instance. Values are assigned only to parameters<br />

which represent numerical information. No assignments are made to the corresponding symbolic<br />

model parameters to let them be instantiated automatically. Note again, that this is all taken care of<br />

automatically by the command ReadNetlist.

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

Saved successfully!

Ooh no, something went wrong!