summaryrefslogtreecommitdiff
path: root/3515/CH2/EX2.1/Ex2_1.sce
blob: 55063165cee1bf39bcb4895017c0938f267c6212 (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
// Exa 2.1
format('v',7);
clc;
clear;
close;
// Given data 
V_S= 0;// As source is connected to ground
V_G= 1.5;// in V
V_D= 0.5;// in V
Vt= 0.7;// in V
// Part(a) V_D= 0.5;// in V
V_D= 0.5;// in V
V_DS= V_D-V_S;// in V
V_GS= V_G-V_S;// in V
if V_GS < Vt then
    disp("At V_D = 0.5 , the device is in cut off region")
elseif V_DS<= (V_GS-Vt) then
    disp("At V_D = 0.5 , the device is in triode region");
else
    disp("At V_D = 0.5 , the device is in saturation region");
      
end

// Part(b) V_D= 0.9;// in V
V_D= 0.9;// in V
V_DS= V_D-V_S;// in V
V_GS= V_G-V_S;// in V
if V_GS < Vt then
    disp("At V_D = 0.9 , the device is in cut off region")
elseif V_DS<= (V_GS-Vt) then
    disp("At V_D = 0.9 , the device is in triode region");
else
    disp("At V_D = 0.9 , the device is in saturation region");
      
end

// Part(c) V_D= 3;// in V
V_D= 3;// in V
V_DS= V_D-V_S;// in V
V_GS= V_G-V_S;// in V
if V_GS < Vt then
    disp("At V_D = 3 , the device is in cut off region")
elseif V_DS<= (V_GS-Vt) then
    disp("At V_D = 3 , the device is in triode region");
else
    disp("At V_D = 3 , the device is in saturation region");
      
end