summaryrefslogtreecommitdiff
path: root/2702/CH4/EX4.2/Ex_4_2.sce
blob: 63485c064173a00813b90858e9b720681cefbb1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Exa 4.2
clc;
clear;
close;
// Given data
V_DD= 1.5;// in V
V_SS= V_DD;// in V
KnWL= 4;// in mA/V^2
KnWL=KnWL*10^-3;// in A/V^2
Vt= 0.5;// in V
I=0.4;// in mA
I=I*10^-3;//in A
R_D= 2.5;// in kΩ
R_D= R_D*10^3;// in Ω

// Part (a)
disp("Part (a)")
V_OV= sqrt(I/KnWL);// in V
V_GS= V_OV+Vt;// in V
disp(V_OV,"Value of V_OV in volt is : ")
disp(V_GS,"Value of V_GS in volt is : ")

// Part (b)
disp("Part (b)")
V_CM= 0;// in volt
V_S= -V_GS;// in volt
disp(V_S,"Value of V_S in volt is :")
I=0.4;// in mA
i_D1= I/2;// in mA
disp(i_D1,"Value of i_D1 in mA is :")
i_D1=i_D1*10^-3;// in A
V_D1= V_DD-i_D1*R_D;// in V
V_D2=V_D1;// in V
disp(V_D1,"Value of V_D1 in volt is ")
disp(V_D2,"Value of V_D2 in volt is ")


// Part (c)
disp("Part (c)")
V_CM=1;// in V
V_GS= 0.82;// in V
V_G= 1;// in V
V_S= V_G-V_GS;// in V
disp(V_S,"Value of V_S in volt is :")
i_D1= I/2;// in mA
disp(i_D1,"Value of i_D1 in mA is :")
i_D1=i_D1*10^-3;// in A
V_D1= V_DD-i_D1*R_D;// in V
V_D2=V_D1;// in V
disp(V_D1,"Value of V_D1 in volt is ")
disp(V_D2,"Value of V_D2 in volt is ")

// Part (d)
disp("Part (d)")
V_CM_max= Vt+V_DD-i_D1*R_D
disp(V_CM_max,"Highest value of V_CM in volt is :")

// Part (e)
V_S= 0.4;// in V
disp("Part (e)")
V_CM_min= -V_SS+V_S+Vt+V_OV;// in V
disp(V_CM_min,"Lowest value of V_CM in volt is")
V_Smin= V_CM_min-V_GS;// in volt
disp(V_Smin,"Lowest value of V_S in volt is")