EEC210 Cascode Current Mirror Simulation - Problem Set #4, Problem 1 * * Specify the width & length in one place, for easier changes. * .param width=100u length=1u * * Power Supply * vdd vdd 0 3 * * Input * ir vdd 3 100u * * Test Circuit * vo out 0 3 m1 1 4 0 0 cmosn l=length w=width m2 out 3 1 1 cmosn l=length w=width m3 3 3 4 4 cmosn l=length w=width m4 4 4 0 0 cmosn l=length w=width *Note that connecting the body to the source eliminates the body effect. *Remember that I asked you to ignore body effect for this problem. * * Models * .model cmosn nmos level=1 lambda=0.024 vto=0.6 kp=194u ld=0.09u *Note that lambda = (dXd/dVds)/Leff = 0.02/0.82=0.0244 * * Don't print the model parameters * .options nomod * * Analysis * .op .dc vo 0 3 0.1 .print dc i(m2) .tf v(out) vo .end