summaryrefslogtreecommitdiff
path: root/2702/CH2/EX2.2/Ex_2_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2702/CH2/EX2.2/Ex_2_2.sce')
-rw-r--r--2702/CH2/EX2.2/Ex_2_2.sce35
1 files changed, 35 insertions, 0 deletions
diff --git a/2702/CH2/EX2.2/Ex_2_2.sce b/2702/CH2/EX2.2/Ex_2_2.sce
new file mode 100644
index 000000000..e39b81ae4
--- /dev/null
+++ b/2702/CH2/EX2.2/Ex_2_2.sce
@@ -0,0 +1,35 @@
+// Exa 2.2
+clc;
+clear;
+close;
+// Given data
+unCox= 100;// in µA/V^2
+unCox= unCox*10^-6;// in A/V^2
+L= 1;//in µm
+L= L*10^-6;// in m
+W=10;// in µm
+W=W*10^-6;// in m
+V_GS= 1.5;// in V
+Vt= 0.7;// in V
+// For V_DS= 0.5 V
+V_DS= 0.5;// in V
+if V_DS<= (V_GS-Vt) then
+ I_D= unCox*W/L*[(V_GS-Vt)*V_DS-V_DS^2/2];
+ disp(I_D*10^6,"The device is in triode region. SO the drain current in the triode region in µA is : ")
+else
+ I_D= unCox*W/(2*L)*(V_GS-VT)^2
+ disp(I_D*10^6,"The device is in saturation region. SO the drain current in the saturation region in µA is : ")
+end
+// For V_DS= 0.9 V
+V_DS= 0.9;// in V
+if V_DS<= (V_GS-Vt) then
+ I_D= unCox*W/L*[(V_GS-Vt)*V_DS-V_DS^2/2];
+ disp(I_D*10^6,"The device is in triode region. So the drain current in the triode region in µA is : ")
+else
+ I_D= unCox*W/(2*L)*(V_GS-Vt)^2
+ disp(I_D*10^6,"The device is in saturation region. So drain current in the saturation region in µA is : ")
+end
+
+
+
+