summaryrefslogtreecommitdiff
path: root/1223/CH6/EX6.6/Ex6_6.sce
blob: fe3a60be03b84b415fc0bb49374916680b63cc83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear;
clc;
//Example 6.6
Vtn=0.8;
Kn=1;//(mA/V^2)
Idq=0.5;
Vdd=5;
Rd=7;//(Kohm)
Vgsq=sqrt(Idq/Kn)+Vtn;
printf('\nVgsq=%.2f V\n',Vgsq)
Vs=-Vgsq
Vdsq=Vdd-Idq*Rd-Vs;
printf('\nVdsq=%.2f V\n',Vdsq)
g_m=2*Kn*(Vgsq-Vtn);
printf('\ntransconductance=%.3f mA/V\n',g_m)
Av=-g_m*Rd;
printf('\nsmall signal voltage gain=%.2f\n',Av)