summaryrefslogtreecommitdiff
path: root/911/CH4/EX4.1.a/ex_4_1_a.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /911/CH4/EX4.1.a/ex_4_1_a.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '911/CH4/EX4.1.a/ex_4_1_a.sce')
-rw-r--r--911/CH4/EX4.1.a/ex_4_1_a.sce35
1 files changed, 35 insertions, 0 deletions
diff --git a/911/CH4/EX4.1.a/ex_4_1_a.sce b/911/CH4/EX4.1.a/ex_4_1_a.sce
new file mode 100644
index 000000000..c17cba077
--- /dev/null
+++ b/911/CH4/EX4.1.a/ex_4_1_a.sce
@@ -0,0 +1,35 @@
+//example 4.1(a)//
+//the average power dissipation of a single NAND gate//
+clc
+//clears the variables//
+clear
+//clears the screen//
+//given//
+a=0.4
+//I(oh)max in mA//
+b=2.7
+//V(oh) min in V//
+c=2
+//V(ih) min in V//
+d=.8
+//V(il)max in V//
+e=.4
+//V(ol) max in V//
+f=8
+//I(ol)max in mA//
+g=.4
+//I(il)max in mA//
+h=20
+//I(ih) max in micro amp//
+i=1.6
+//I(cch)max in mA//
+j=4.4
+//I(ccl)max in mA//
+t=15
+//t(pLH)=t(pHL) in mA//
+disp('average supply current = ')
+s=(i+j)/2;
+u=5*s/4;
+disp('mA',s)
+disp('average power dissipation for one gate (in mW) is: ')
+disp(u) \ No newline at end of file