summaryrefslogtreecommitdiff
path: root/3866/CH5/EX5.9/Ex5_9.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3866/CH5/EX5.9/Ex5_9.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 '3866/CH5/EX5.9/Ex5_9.sce')
-rw-r--r--3866/CH5/EX5.9/Ex5_9.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3866/CH5/EX5.9/Ex5_9.sce b/3866/CH5/EX5.9/Ex5_9.sce
new file mode 100644
index 000000000..9b561ed9f
--- /dev/null
+++ b/3866/CH5/EX5.9/Ex5_9.sce
@@ -0,0 +1,23 @@
+clc; clear; close;
+
+n1=10*(10^6);
+n2=50*(10^6);
+a1=0.1;
+c1=20*(10^(-15));//in F
+Vdd1=1.8;//in volts
+f1=500*(10^6);//in Hz
+a2=0.05;
+c2=10*(10^(-15));//in F
+Vdd2=1.2;//in volts
+f2=1*(10^9);//in Hz
+P1=n1*c1*Vdd1*Vdd1*f1*a1;
+disp(P1,'Case 1 Power(in watts)=');
+P2=n2*c2*Vdd2*Vdd2*f2*a2;
+disp(P2,'Case 2 Power(in watts)=');
+t1=1/f1;
+t2=1/f2;
+EDP1=P1*t1*t1;
+EDP2=P2*t2*t2;
+disp(EDP1,'case 1 EDP(in joule-seconds)=');
+disp(EDP2,'case 2 EDP(in joule-seconds)=');
+disp('Second design has lower energy delay product , so it is better ');