23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.2 Subcircuit and Device Model Definition 207<br />

The Circuit object shown below describes a common-source amplifier with a MOSFET device. In<br />

the model definition for MOSFET, the bulk terminal B is defined as an optional port. Since this node<br />

is not connected in the top-level netlist, the bulk terminal is connected implicitly to the source node.<br />

This netlist describes a<br />

common-source amplifier.<br />

Expand the MOSFET<br />

model.<br />

In[4]:= csamp = Circuit[<br />

Netlist[<br />

{V1, {1, 0}, Value −> {DC −> 1.5, AC −> 1}},<br />

{M1, {"out" −> "D", 1 −> "G", 3 −> "S"},<br />

Model −> "MOSFET", Selector −> "DCSmallSignal",<br />

GM −> 2.*^−4, GMB −> 3.*^−5, GDS −> 1.*^−6},<br />

{RD, {"VDD", "out"}, Symbolic −> Rd, Value −> 1.*^6},<br />

{RS, {3, 0}, Symbolic −> Rs, Value −> 5000.},<br />

{VDD, {"VDD", 0}, Value −> {DC −> 3.3, _ −> 0}}<br />

],<br />

Model[<br />

Name −> "MOSFET", Selector −> "DCSmallSignal",<br />

Ports −> {"D", "G", "S", Optional["B", "S"]},<br />

Parameters −> {gm, gmb, Gds, GM, GMB, GDS},<br />

Definition −> Netlist[<br />

{VCG, {"G", "S", "D", "S"}, Symbolic −> gm,<br />

Value −> GM},<br />

{VCB, {"B", "S", "D", "S"}, Symbolic −> gmb,<br />

Value −> GMB},<br />

{GDS, {"D", "S"}, Symbolic −> Gds,<br />

Value −> GDS}<br />

]<br />

]<br />

]<br />

Out[4]= Circuit <br />

In[5]:= ExpandSubcircuits[csamp] // DisplayForm<br />

Out[5]//DisplayForm=<br />

Netlist Flat, 7 Entries:<br />

V1, 1, 0, Value DC 1.5, AC 1<br />

VCG$M1, 1, 3, out, 3, Symbolic gm$M1, Value 0.0002, Hierarchy VCG,<br />

VCB$M1, 3, 3, out, 3, Symbolic gmb$M1, Value 0.00003, Hierarchy VCB<br />

GDS$M1, out, 3, Symbolic Gds$M1, Value 1. 10 6 , Hierarchy GDS, M1<br />

RD, VDD, out, Symbolic Rd, Value 1. 10 6 <br />

RS, 3, 0, Symbolic Rs, Value 5000.<br />

VDD, VDD, 0, Value DC 3.3, _ 0<br />

This example shows the effect of the argument Symbolic in a Model statement. The model equations<br />

describe the DC behavior of a linear resistor including first-order temperature dependence. Note that<br />

although there are four model parameters, only the resistance appears explicitly in symbolic circuit<br />

equations. Note also that the alias name R is used instead of RES to denote the resistance.

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

Saved successfully!

Ooh no, something went wrong!