summaryrefslogtreecommitdiff
path: root/68/CH4/EX4.6/ex6.sce
blob: cd91485deb06d4bd421b4307c0a118cb9afa7f4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Example 4.6;  Design of given circuit to obtain I_D=0.5mA and V_D=3V
// MOSFET is in saturation
V_DD=5; // (V)
V_D=3; // (V)
I_D=0.5*10^-3; // (A)
V_t=-1; // (V)
K=1*10^-3; // K=k'_n(W/L)
V_OV=sqrt(2*I_D/K);
V_GS=V_t+(-V_OV)
R_D=V_D/I_D;
V_Dmax=V_D-V_t; // - sign as magnitude of V_t is considered
R_D=V_Dmax/I_D;
disp(R_D,"R_D (ohm)")