summaryrefslogtreecommitdiff
path: root/3866/CH4/EX4.7/Ex4_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3866/CH4/EX4.7/Ex4_7.sce')
-rw-r--r--3866/CH4/EX4.7/Ex4_7.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3866/CH4/EX4.7/Ex4_7.sce b/3866/CH4/EX4.7/Ex4_7.sce
new file mode 100644
index 000000000..81a2377ee
--- /dev/null
+++ b/3866/CH4/EX4.7/Ex4_7.sce
@@ -0,0 +1,21 @@
+clc; clear; close;
+
+
+Wn=0.4;//in micrometer
+Wp=0.8;//in micrometer
+Vdd=1.8;//in volts
+Vtn=0.5;//in volts
+Ecp=24;
+Ecn=6;
+Vtp=0.5;//in volts
+Voh=Vdd;
+Vol=0;
+Vil=0.7;//in volts
+Vih=1;//in volts
+X=sqrt((Wn*Ecp)/(Wp*Ecn));
+Vs=(Vdd+(X*Vtn)-Vtp)/(1+X);
+NMH=Voh-Vih;
+NML=Vil-Vol;
+disp(Vs,'Vs(in volts)=');
+disp(NMH,'NMH(in volts)=');
+disp(NML,'NMH(in volts)=');