blob: 81a2377ee51b8207c1740fdc681ac408143ff4c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)=');
|