summaryrefslogtreecommitdiff
path: root/1223/CH6/EX6.11/Ex6_11.sce
blob: f1b57e17f226d084f9bbdaad4448d274b4c95838 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
clear;
clc;
//Example 6.11
Vtnd=1;
Vtnl=1;
Kn=30;
//let W/L=x
xl=1;
Vdd=5;
Av=10;
//Av=sqrt(xd/xl)
xd=(Av)^2*xl;
printf('\nwidth to length ratio of driver transistor=%0.2f\n',xd)
Knd=xd*Kn*0.001/2;
Knl=xl*Kn*0.001/2;
printf('\nconduction parameter Knd=%.2f mA/V^2\n',Knd)
printf('\nconduction parameter Knl=%.3f mA/V^2\n',Knl)
//Vgsd-Vtnd=(Vdd-Vtnl)-sqrt(Knd/Knl)*(Vgsd-Vtnd)
y=sqrt(Knd/Knl);
Vgsd=(y+5)/(1+y);
printf('\nVgsd=%.2f V\n',Vgsd)
Vdsd=Vgsd-1;
printf('\nVdsd=%.2f V\n',Vdsd)