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.

156 2. Tutorial<br />

Replacing the load capacitor is done by editing our via ReadNetlist imported netlist. Therefore,<br />

we first remove the netlist entry for CL using the Analog Insydes command DeleteElements<br />

(Section 3.6.2) and in a second step we add an independent current source IZ using the command<br />

AddElements (Section 3.6.1).<br />

In[20]:= cmosdiffamp2 = DeleteElements[cmosdiffamp, CL];<br />

cmosdiffamp2 = AddElements[cmosdiffamp2,<br />

{IZ, {0, 5}, IZout}];<br />

After the modification of the netlist we set up the modified nodal equations and solve for the voltage<br />

at the output port, i.e. V$5.<br />

In[22]:= mnaZout = CircuitEquations[cmosdiffamp2,<br />

ElementValues −> Symbolic,<br />

DefaultSelector −> LowFrequency]<br />

Out[22]= DAEAC, 9 9 <br />

In[23]:= zout = Together[V$5 /. First[Solve[mnaZout, V$5]]<br />

/. {IBIAS −> 0, VDD −> 0, V1 −> 0, V2 −> 0, IZout −> 1}]<br />

Out[23]=<br />

Gds$M1 Gds$M2 Gds$M1 Gds$M3 <br />

Gds$M2 Gds$M3 Gds$M3 gm$M1 Gds$M1 gm$M2 Gds$M3 gm$M2 <br />

Gds$M1 gm$M3 Gds$M2 gm$M3 gm$M1 gm$M3 gm$M2 gm$M3 <br />

Gds$M1 Gds$M2 Gds$M3 Gds$M1 Gds$M2 Gds$M4 <br />

Gds$M1 Gds$M3 Gds$M4 Gds$M2 Gds$M3 Gds$M4 <br />

Gds$M2 Gds$M3 gm$M1 Gds$M3 Gds$M4 gm$M1 Gds$M1 Gds$M4 gm$M2 <br />

Gds$M3 Gds$M4 gm$M2 Gds$M1 Gds$M2 gm$M3 Gds$M1 Gds$M4 gm$M3 <br />

Gds$M2 Gds$M4 gm$M3 Gds$M2 gm$M1 gm$M3 Gds$M4 gm$M1 gm$M3 <br />

Gds$M4 gm$M2 gm$M3 Gds$M1 Gds$M2 gm$M4 Gds$M2 gm$M1 gm$M4<br />

For matching the MOS transistors forming the differential pair and the current-mirror load we again<br />

apply the command MatchSymbols:<br />

In[24]:= zoutmatch = Together @ MatchSymbols[zout,<br />

{{"$M1", "$M2", "12"}, {"$M3", "$M4", "34"}}]<br />

Out[24]=<br />

Gds12 2 Gds34 2 gm34<br />

<br />

2 Gds12 Gds34 Gds34 gm34<br />

As usual, this expression contains many numerically small terms which are identified and discarded<br />

by ApproximateTransferFunction. The output impedance is then given by the following simple<br />

formula in terms of the drain-source conductances Gds12 and Gds34.<br />

In[25]:= zoutSAG = ApproximateTransferFunction[<br />

zoutmatch, s, dpcmos, 0.05] // Simplify<br />

Out[25]=<br />

1<br />

<br />

Gds12 Gds34

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

Saved successfully!

Ooh no, something went wrong!