summaryrefslogtreecommitdiff
path: root/1223/CH11/EX11.15/Ex11_15.sce
blob: 28d88be30303ad52743edee31cb8aab066219e65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
clear;
clc;
//Example 11.15
Kn=0.2;
Idq=0.1;
ro4=1000;//Kohm
ro6=1000;//KOhm
ro2=ro4;
//lambda=y
y=0.01;
gm=2*sqrt(Kn*Idq);
printf('\ntransconductance=%.3f mA/V\n',gm)
ro=1/(y*Idq);
printf('\noutput resistance=%.2f KOhm\n',ro)
Ro=ro4+ro6*(1+gm*ro);
Ro=Ro*0.001;//Mohm
printf('\noutput resistance of the cascode active load=%.2fMohm\n',Ro)
Ro=Ro*1000;//KOhm
Ad=gm*ro2*Ro/(ro4+Ro);
printf('\ndifferential mode voltage gain=%.2f\n',Ad)