summaryrefslogtreecommitdiff
path: root/68/CH6
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /68/CH6
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '68/CH6')
-rwxr-xr-x68/CH6/EX6.2/ex2.sce53
1 files changed, 27 insertions, 26 deletions
diff --git a/68/CH6/EX6.2/ex2.sce b/68/CH6/EX6.2/ex2.sce
index c4555eddf..ba863c478 100755
--- a/68/CH6/EX6.2/ex2.sce
+++ b/68/CH6/EX6.2/ex2.sce
@@ -1,27 +1,28 @@
-// Example 6.2 : Comparison between NMOS transistor and npn transistor
-
-disp("For NMOS transistor")
-I_D=100*10^-6; // (A)
-V_a=5; // V'_A=V_a (A)
-L=0.4; // (um)
-K_n=267*4/0.4*10^-6; // K_n=u_n*C_ox*(W/L) (A/V^2)
-V_OV=sqrt(2*I_D/K_n);
-g_m=sqrt(2*K_n*I_D)
-disp(g_m,"g_m (A/V)")
-disp("R_in is infinite")
-r_o=V_a*L/I_D;
-disp(r_o,"r_o (ohm)")
-A_O=g_m*r_o;
-disp(A_O,"A_O (V/V)")
-disp("For npn transistor")
-I_C=0.1*10^-3; // collector current
-B_o=100; // beta value
-V_A=35; // (V)
-g_m=I_C/V_T;
-disp(g_m,"g_m (A/V)")
-R_in=B_o/g_m;
-disp(R_in,"R_in (ohm)")
-r_o=V_A/I_C;
-disp(r_o,"r_o (ohm)")
-A_O=g_m*r_o;
+// Example 6.2 : Comparison between NMOS transistor and npn transistor
+
+disp("For NMOS transistor")
+I_D=100*10^-6; // (A)
+V_a=5; // V'_A=V_a (A)
+L=0.4; // (um)
+V_T=0.025;
+K_n=267*4/0.4*10^-6; // K_n=u_n*C_ox*(W/L) (A/V^2)
+V_OV=sqrt(2*I_D/K_n);
+g_m=sqrt(2*K_n*I_D)
+disp(g_m,"g_m (A/V)")
+disp("R_in is infinite")
+r_o=V_a*L/I_D;
+disp(r_o,"r_o (ohm)")
+A_O=g_m*r_o;
+disp(A_O,"A_O (V/V)")
+disp("For npn transistor")
+I_C=0.1*10^-3; // collector current
+B_o=100; // beta value
+V_A=35; // (V)
+g_m=I_C/V_T;
+disp(g_m,"g_m (A/V)")
+R_in=B_o/g_m;
+disp(R_in,"R_in (ohm)")
+r_o=V_A/I_C;
+disp(r_o,"r_o (ohm)")
+A_O=g_m*r_o;
disp(A_O,"A_O (V/V)") \ No newline at end of file